@if($logoPath) logo @else
{{ strtoupper(substr($schoolName, 0, 1)) }}
@endif
{{ $schoolName }}
{{ $schoolTagline }}
{{ $schoolContact }}

Finance Report — {{ ucfirst($type) }}

{{ $rows->count() ?? $collection->count() }} record(s)

KES {{ number_format($totals['collection'], 0) }}Total collection KES {{ number_format($totals['balances'], 0) }}Outstanding balances {{ number_format($totals['defaulters'], 0) }}Defaulters
@if($type === 'collection') @forelse($collection as $i => $c) @empty @endforelse
#MethodCountTotal
{{ $i + 1 }}{{ $c->method }}{{ $c->n }}KES {{ number_format($c->total, 0) }}
No collections recorded.
@else @if($type === 'defaulters')@endif @forelse($rows as $i => $r) @if($type === 'defaulters')@endif @empty @endforelse
#InvoiceLearnerBalanceStatus
{{ $i + 1 }} {{ $r->invoice_no }} {{ $r->learner ? $r->learner->first_name.' '.$r->learner->last_name.' ('.$r->learner->admission_no.')' : '#'.$r->learner_id }} KES {{ number_format($r->balance, 0) }}{{ ucfirst($r->status) }}
Nothing to show.
@endif