@php use Carbon\Carbon; use App\Models\Absen; @endphp REKAPITULASI ABSENSI PER-TINGKAT

REKAPITULASI ABSENSI

{{ $sekolah->name ?? '' }}

{{ $sekolah->alamat ?? '' }}


Periode Absen : {{ $periode }}

@foreach ($tingkat as $item) @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 @endforeach
# Tingkat Jumlah
H S I A
{{ $loop->iteration }} Kelas {{ $item['int'] }} {{ '(' . $item['str'] . ')' }}{{ $H > 0 ? $H : '' }} {{ $S > 0 ? $S : '' }} {{ $I > 0 ? $I : '' }} {{ $A > 0 ? $A : '' }}