{{-- Top Bar --}}
{{-- Date + View History --}}
{{-- Warning --}} @if ($date !== now()->toDateString())
{{ $date < now()->toDateString() ? 'Past Date' : 'Future Date' }} — Admin will be notified
@endif
{{-- Teacher List --}} @php $teachers = $this->getTeachers(); @endphp @if ($teachers->isEmpty()) No active teachers found. @else
{{-- Header --}}
Teachers ({{ $teachers->count() }})
Select All Deselect All
{{-- Teacher Checkboxes: 2 cols mobile, 3 tablet, 4 laptop --}} @php $yesterdayAttendance = $this->getYesterdayAttendance(); @endphp
@foreach ($teachers as $teacher) @php $yesterdayStatus = $yesterdayAttendance->get($teacher->id); @endphp @endforeach
{{-- Summary + Save --}}
Present: {{ count($presentIds) }} Absent: {{ $teachers->count() - count($presentIds) }}
Save Attendance Saving...
@endif