@php $statusLabels = [ 'hadir' => 'Hadir', 'izin' => 'Izin', 'sakit' => 'Sakit', 'alpha' => 'Alpha', ]; @endphp @if ($errors->any())
{{ $errors->first() }}
@endif
@forelse ($attendances as $attendance) @php $summary = $attendance->details->countBy('status'); @endphp @empty @endforelse
Tanggal Kelompok Pertemuan Jam Guru Ringkasan Aksi
{{ $attendance->attendance_date->format('d M Y') }} {{ $attendance->group?->name }} Ke-{{ $attendance->meeting_number }} {{ $attendance->start_time ? substr($attendance->start_time, 0, 5) : '-' }} - {{ $attendance->end_time ? substr($attendance->end_time, 0, 5) : '-' }} {{ $attendance->teacher?->name ?: '-' }} H: {{ $summary['hadir'] ?? 0 }}, I: {{ $summary['izin'] ?? 0 }}, S: {{ $summary['sakit'] ?? 0 }}, A: {{ $summary['alpha'] ?? 0 }}
@csrf @method('DELETE')
Data presensi belum tersedia.
{{ $attendances->links() }}
@foreach ($attendances as $attendance)

Detail Presensi

{{ $attendance->group?->name }} | Pertemuan ke-{{ $attendance->meeting_number }}

@csrf @method('PUT')
@foreach ($attendance->details->sortBy('student.name') as $detail) @endforeach
No. Santri Status Catatan
{{ $loop->iteration }} {{ $detail->student?->name }}
@endforeach