@extends('layouts.main') @push('styles') @endpush @section('content')

Cement Loans Management

{{-- Summary Cards --}}
Total Principal (All Loans)

{{ number_format((float) $totalPrincipal, 2) }} Tsh

Total Outstanding Balance

{{ number_format((float) $totalBalance, 2) }} Tsh

Active Loans (Count)

{{ number_format($totalActive) }}

{{-- Loans Table (one row per customer) --}}
Cement Loans Per Customer
{{-- Filled by DataTables --}}
# Customer Total Principal (Tsh) Total Balance (Tsh) Active Loans Action
{{-- ================================================================= --}} {{-- TRANSACTIONS MODAL (READ-ONLY) --}} {{-- ================================================================= --}} {{-- ================================================================= --}} {{-- LOAN PAYMENT MODAL --}} {{-- ================================================================= --}} {{-- ================================================================= --}} {{-- CLOSE / DEFAULT MODAL (ONLY NON-CLOSED LOANS) --}} {{-- ================================================================= --}} {{-- ================================================================= --}} {{-- LOAN STATUS MODAL (Close / Default single loan) --}} {{-- ================================================================= --}} @endsection @push('scripts') @endpush