@php use Carbon\Carbon; @endphp REKAPITULASI ABSENSI - {{ $kelas->name }}

REKAPITULASI ABSENSI

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

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


Kelas : {{ $kelas->name }}
Wali Kelas : {{ $kelas->guru->name }}
Tahun Pelajaran : {{ $kelas->tapel->tahun_pelajaran }} Semester {{ $kelas->tapel->semester }}
Periode Absen : {{ $periode }}

@foreach ($siswa as $index => $item) @php $H = $item->hitungJumlahAbsen($tglAwal, $tglAkhir, 'H'); $S = $item->hitungJumlahAbsen($tglAwal, $tglAkhir, 'S'); $I = $item->hitungJumlahAbsen($tglAwal, $tglAkhir, 'I'); $A = $item->hitungJumlahAbsen($tglAwal, $tglAkhir, 'A'); @endphp @endforeach
# NIS Nama Siswa L/P Jumlah
H S I A
{{ $loop->iteration }} {{ $item->nis }} {{ $item->name }} {{ $item->jk }}{{ $H > 0 ? $H : '' }} {{ $S > 0 ? $S : '' }} {{ $I > 0 ? $I : '' }} {{ $A > 0 ? $A : '' }}