@php $details = $details ?? []; $date = $date ?? ''; @endphp @if (! empty($details))

Paid today (on-time) Arrears paid today Prepaid

@foreach ($details as $detail) @php $rowClass = match ($detail['category'] ?? '') { 'on_time' => 'bg-emerald-50', 'arrears' => 'bg-red-100', 'prepaid' => 'bg-teal-50', default => '', }; @endphp @endforeach
# Client Branch Loan Officer Days due Channel Amount Prepaid
{{ $loop->iteration }} {{ $detail['client_name'] }} {{ $detail['branch'] }} {{ $detail['loan_number'] ?? '—' }} {{ $detail['officer'] }} {{ $detail['days_due'] }} {{ $detail['channel'] ?? '—' }} KES {{ number_format($detail['amount'], 0) }} {{ number_format((float) ($detail['prepaid'] ?? 0), 0) }}
@else

No client-level receipts recorded for this day.

@endif