@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; $statusOptions = \App\Models\AttendanceRecord::STATUS_LABELS; @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
@csrf
@foreach(['present' => ['green', 'check'], 'absent' => ['orange', 'x'], 'late' => ['purple', 'clock'], 'excused' => ['blue', 'alert-triangle']] as $status => [$tint, $icon])

{{ $statusOptions[$status] }}

@endforeach
Mark all: @foreach($statusOptions as $value => $label) @endforeach
@foreach($students as $student) @endforeach
SL Code Name Status
{{ $loop->iteration }} {{ $student->student_code }} {{ $student->fullName() }}
@foreach($statusOptions as $value => $label) @endforeach
@endif