LAPORAN REKAPITULASI ABSENSI SISWA
Periode: {{ $startDate }} s/d {{ $endDate }}
@php $grouped = collect($report)->groupBy(fn($r) => $r['class_name'] ?? 'N/A'); @endphp @foreach($grouped as $className => $students)
Kelas: {{ $className }}
No
Nama Siswa
NIS
H
S
I
A
Persentase Hadir
@foreach($students as $i => $s)
{{ $i+1 }}
{{ $s['name'] }}
{{ $s['nis'] }}
{{ $s['hadir'] }}
{{ $s['sakit'] }}
{{ $s['izin'] }}
{{ $s['alpa'] }}
{{ $s['percentage'] }}
@endforeach
@endforeach