@include('loan.collections.hub.partials.collections-due-register-tones')
Loans Due Tomorrow

{{ number_format($totals['client_count'] ?? $totals['count'] ?? 0, 0) }}

Expected Cash

KES {{ number_format($totals['expected'] ?? 0, 0) }} ({{ number_format($totals['client_count'] ?? $totals['count'] ?? 0, 0) }} {{ (($totals['client_count'] ?? $totals['count'] ?? 0) === 1) ? 'client' : 'clients' }})

Prepaid

KES {{ number_format($totals['prepaid'] ?? 0, 0) }}

Paid before tomorrow

Outstanding

KES {{ number_format($totals['outstanding'] ?? 0, 0) }} ({{ number_format($totals['outstanding_count'] ?? 0, 0) }} {{ (($totals['outstanding_count'] ?? 0) === 1) ? 'client' : 'clients' }})

@if (($totals['maturing_count'] ?? 0) > 0)
{{ number_format((int) $totals['maturing_count'], 0) }} {{ ((int) $totals['maturing_count']) === 1 ? 'loan is' : 'loans are' }} on their final installment and maturity date tomorrow — repeat-client opportunity.
@endif
@forelse ($installments as $row) @php $loan = $row->loan; $client = $loan?->loanClient; $case = $loan?->collectionCases?->first(); $score = $row->register_client_score; $lowScore = $score !== null && (float) $score < 49; $contact = $row->register_contact ?: ($client?->phone ?? ''); $rowToneClass = match ($row->register_row_tone ?? 'open') { 'cleared' => 'collections-due-row--cleared', 'partial' => 'collections-due-row--partial', 'arrears' => 'collections-due-row--arrears', default => '', }; @endphp @empty @endforelse
# Client Contact Inst. Officer Branch Outstanding Balance Tomorrow Due Prepaid Running Arrears Client Score Collection Status Expected Cash Actions
{{ ($installments->firstItem() ?? 0) + $loop->index }} {{ trim(($client->first_name ?? '').' '.($client->last_name ?? '')) }} @if ($contact) {{ $contact }} @else — @endif {{ $row->register_installment_label ?? $row->installment_no }} @if ($row->register_maturing ?? false) Maturing @endif {{ trim(($client->assignedEmployee->first_name ?? '').' '.($client->assignedEmployee->last_name ?? '')) ?: '—' }} {{ $row->register_branch ?? ($loan->loanBranch?->name ?? $loan->branch ?? '—') }} {{ number_format((float) ($loan->balance ?? 0), 0) }} {{ number_format((float) ($row->register_due_today ?? 0), 0) }} {{ number_format((float) ($row->register_prepaid ?? 0), 0) }} {{ number_format((float) ($row->register_running_arrears ?? $row->register_past_due ?? 0), 0) }} {{ $score !== null ? number_format((float) $score, 1) : '—' }} {{ $row->register_collection_status ?? 'open' }} {{ number_format((float) ($row->register_expected_cash ?? 0), 0) }} @if ($case) Case @else — @endif
No loans due tomorrow.