Periode: {{ \Carbon\Carbon::parse($startDate)->translatedFormat('d F Y') }} s/d {{ \Carbon\Carbon::parse($endDate)->translatedFormat('d F Y') }}
@if(isset($mapelInfo) && $mapelInfo)Mata Pelajaran: {{ $mapelInfo->nama_mapel }}
@elseMata Pelajaran: SEMUA MATA PELAJARAN
@endif
Ringkasan Kehadiran:
|
{{-- KOLOM FOTO DENGAN BASE64 (Khusus Foto Siswa Tetap Dipertahankan) --}}
@php
$fotoBase64 = null;
if (!empty($siswa->foto_url)) {
$fotoPath = base_path('../public_html/storage/' . $siswa->foto_url);
if (file_exists($fotoPath)) {
$type = pathinfo($fotoPath, PATHINFO_EXTENSION);
$data = file_get_contents($fotoPath);
$fotoBase64 = 'data:image/' . $type . ';base64,' . base64_encode($data);
}
}
@endphp
@if($fotoBase64)
FOTO 3x4
@endif
|
| Mata Pelajaran | Total Sesi | Hadir | Absen | Persentase |
|---|---|---|---|---|
| {{ $item->nama_mapel }} | {{ $item->total }} | {{ $item->hadir }} | {{ $item->total - $item->hadir }} | {{ $item->persen }}% |
| No | Waktu | Mata Pelajaran | Guru Pengajar | Status | Keterangan |
|---|---|---|---|---|---|
| {{ $idx + 1 }} | {{ $row->created_at->format('d/m/Y H:i') }} | {{ $row->sesiPembelajaran->jadwal->mataPelajaran->nama_mapel ?? '-' }} | {{ $row->sesiPembelajaran->user->name ?? '-' }} | @if($row->status_kehadiran == 'Hadir') Hadir @else {{ $row->status_kehadiran }} @endif | {{ $row->keterangan ?? '-' }} |
| Tidak ada data kehadiran pada periode ini. | |||||
| Kelas | : | {{ $kelasInfo->nama_kelas ?? 'Semua' }} | Wali Kelas | : | {{ $kelasInfo->waliKelas->name ?? '-' }} |
| Jumlah | : | {{ $rekapKelas->count() }} Siswa |
| No | Nama Siswa | Rincian Kehadiran | Persentase Kehadiran |
|||
|---|---|---|---|---|---|---|
| Hadir | Sakit | Izin | Alpa | |||
| {{ $idx + 1 }} | {{ $row['siswa']->nama_lengkap }} | {{ $row['h'] }} | {{ $row['s'] }} | {{ $row['i'] }} | {{ $row['a'] }} | {{ $row['p'] }}% |