{{-- Student Info Card --}} @if ($student)

{{ $student->user?->name ?? '—' }}

@if ($student->roll_no) Roll: {{ $student->roll_no }} @endif @if ($student->class) {{ $student->class->name }} @endif {{ $student->status->getLabel() }}
@endif {{-- Summary Cards --}}
{{-- Present --}}

{{ $presentCount }}

Present

{{-- Absent --}}

{{ $absentCount }}

Absent

{{-- Filter Card --}}
Filter by Date Range
{{ $records->count() }} {{ Str::plural('day', $records->count()) }} found
From To
Search Last 30 Days
{{-- Attendance Records --}} @if ($records->isEmpty()) No attendance records found for this date range. @else
@foreach ($records as $record)
{{-- Date --}}

{{ \Carbon\Carbon::parse($record->date)->format('d M Y') }}

{{ \Carbon\Carbon::parse($record->date)->format('l') }}

{{-- Status --}} {{ $record->status->getLabel() }}
@endforeach
@endif