@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $statusColors = ['present' => 'text-emerald-600', 'absent' => 'text-rose-600', 'late' => 'text-amber-600', 'excused' => 'text-brand-600']; @endphp
Daily Monthly
@if(! $branchId || ! $shiftChosen || ! $schoolClassId)
Select a session, branch, shift and class to load the roster.
@elseif($students->isEmpty())
No active students found for this session/branch/shift/class.
@else
@foreach(\App\Models\AttendanceRecord::STATUS_SHORT_LABELS as $status => $short) {{ $short }} {{ \App\Models\AttendanceRecord::STATUS_LABELS[$status] }} @endforeach Click a day to edit it.
@for($day = 1; $day <= $daysInMonth; $day++) @php $date = $month->copy()->day($day); @endphp @endfor @foreach($students as $student) @for($day = 1; $day <= $daysInMonth; $day++) @php $date = $month->copy()->day($day); $record = $recordsByStudent->get($student->id)?->get($day); @endphp @endfor @endforeach
Student{{ $day }}
{{ $student->fullName() }} {{ $record?->statusShortLabel() ?? '—' }}
@endif