@extends('layouts.app') @section('title', 'Cetak Rekap Absensi') @section('content') @php $printDate = $monthDate->copy()->endOfMonth(); $statusSymbols = ['Hadir' => '✓', 'Terlambat' => 'T', 'Izin' => 'I', 'Sakit' => 'S', 'Alpha' => 'A', 'Alpa' => 'A']; @endphp
Kembali

Rekapitulasi Absensi {{ ucfirst($kind) }}

{{ $institution->nama_pkbm ?? 'PKBM' }}

Bulan:{{ $monthDate->translatedFormat('F Y') }} Tahun Pelajaran:{{ $period->tahun_pelajaran ?? '-' }}
{{ $kind === 'guru' ? 'Kategori' : 'Kelas' }}:{{ $kind === 'guru' ? 'Semua Guru' : ($className ?: 'Semua Kelas') }} Semester:{{ $period->semester ?? '-' }}
@foreach ($dates as $date)@endforeach @forelse ($participants as $participant) @php $presentCount = 0; @endphp @foreach ($dates as $date) @php $status = $attendance[$participant->id][$date] ?? ''; $symbol = $statusSymbols[$status] ?? '-'; if ($status === 'Hadir') { $presentCount++; } @endphp @endforeach @empty @endforelse
NoNama lengkap TanggalHadir
{{ (int) substr($date, -2) }}
{{ $loop->iteration }}{{ $participant->name ?: '-' }}{{ $symbol }}{{ $presentCount }}
Data tidak ditemukan.

{{ $institution->kabupaten ?? '' }}, {{ $printDate->translatedFormat('d F Y') }}

Kepala {{ $institution->nama_pkbm ?? 'PKBM' }}

{{ $principal ?: ' ' }}

@endsection