{{-- Back Button --}} Back to Attendance {{-- Session Header --}}

{{ __('Edit Attendance') }}

{{ $session->topic ?? 'Class Session' }} • {{ $session->schoolClass->name ?? '' }} • {{ \Carbon\Carbon::parse($session->session_date)->format('F j, Y') }}

{{ $stats['present'] ?? 0 }}

Present

{{ $stats['absent'] ?? 0 }}

Absent

{{ $stats['late'] ?? 0 }}

Late

{{ $stats['excused'] ?? 0 }}

Excused

{{ $stats['total'] ?? 0 }}

Total

{{-- Edit Form --}}
@csrf @method('PUT')

{{ __('Student Attendance') }}

@forelse($roster as $student) {{-- Alpine :class applies row background tint based on status --}} @empty @endforelse
Student Status Notes
{{ strtoupper(substr($student['student_name'], 0, 1)) }}

{{ $student['student_name'] }}

@if($student['is_auto_logged']) Auto-Synced @endif
No students enrolled.
@if($roster->isNotEmpty())

Review changes and save.

@endif