@php use Carbon\Carbon; use App\Models\Absen; @endphp
{{ $sekolah->alamat ?? '' }}
| Periode Absen | : | {{ $periode }} |
| # | Tingkat | Jumlah | |||
|---|---|---|---|---|---|
| H | S | I | A | ||
| {{ $loop->iteration }} | Kelas {{ $item['int'] }} {{ '(' . $item['str'] . ')' }} | @php $absenModel = new Absen(); $H = $absenModel->hitungJumlahAbsenPerTingkat($item['int'], $tglAwal, $tglAkhir, 'H'); $S = $absenModel->hitungJumlahAbsenPerTingkat($item['int'], $tglAwal, $tglAkhir, 'S'); $I = $absenModel->hitungJumlahAbsenPerTingkat($item['int'], $tglAwal, $tglAkhir, 'I'); $A = $absenModel->hitungJumlahAbsenPerTingkat($item['int'], $tglAwal, $tglAkhir, 'A'); @endphp{{ $H > 0 ? $H : '' }} | {{ $S > 0 ? $S : '' }} | {{ $I > 0 ? $I : '' }} | {{ $A > 0 ? $A : '' }} |