{{-- Top Bar --}}
{{-- Back --}} {{-- Date (pushed to the right) --}}
{{-- Warning (only when not today) --}} @if ($date !== now()->toDateString())
{{ $date < now()->toDateString() ? 'Past Date' : 'Future Date' }} — Admin will be notified
@endif
{{-- Student List --}} @php $students = $this->getStudents(); @endphp @if ($students->isEmpty()) No students found in this class. @else
{{-- Header --}}
Students ({{ $students->count() }})
Select All Deselect All
{{-- Student Checkboxes: 2 cols on mobile, 3 on tablet, 4 on lg --}} @php $yesterdayAttendance = $this->getYesterdayAttendance(); @endphp
@foreach ($students as $student) @php $yesterdayStatus = $yesterdayAttendance->get($student->id); @endphp @endforeach
{{-- Summary + Save --}}
Present: {{ count($presentIds) }} Absent: {{ $students->count() - count($presentIds) }}
Save Attendance Saving...
@endif