@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; $navGroups = \App\Support\Navigation\StudentNav::groups('attendance'); $statusColors = ['present' => 'text-emerald-600', 'absent' => 'text-rose-600', 'late' => 'text-amber-600', 'excused' => 'text-brand-600']; @endphp
List Monthly
@foreach(\App\Models\AttendanceRecord::STATUS_SHORT_LABELS as $status => $short) {{ $short }} {{ \App\Models\AttendanceRecord::STATUS_LABELS[$status] }} @endforeach
@for($day = 1; $day <= $daysInMonth; $day++) @php $date = $month->copy()->day($day); @endphp @endfor @for($day = 1; $day <= $daysInMonth; $day++) @php $date = $month->copy()->day($day); $record = $records->get($day); @endphp @endfor
Student{{ $day }}
{{ $student->fullName() }} {{ $record?->statusShortLabel() ?? '—' }}