{{ __('Report by Class') }}
{{ \App\Helpers\Qs::getSchoolName() }}
{{-- Filter Card --}}
Filter Reports
{{-- Stats Card --}}

Total Collected

{{ number_format($totalCollected) }} RWF

{{-- Summary Table Card --}}
Class Summary
@foreach($classSummary as $class => $total) @endforeach
Class Total Collected (RWF)
{{ $class }} {{ number_format($total) }}
{{-- Details Table Card --}}
Payment Details
@foreach($payments as $p) @endforeach
Date Student Destination Term Amount (RWF)
{{ $p->payment_date ? $p->payment_date->format('M d, Y') : '-' }} {{ $p->student->name ?? 'N/A' }} {{ $p->destination }} {{ $p->term }} {{ number_format($p->amount) }}