@forelse($students as $student)
{{ $student->name }} — Class
{{ $student->class }}{{ $student->section ? ' - ' . $student->section : '' }}
@if ($student->attendances->count())
| Date
|
Status |
Check-in Time |
@foreach ($student->attendances->sortByDesc('date') as $attendance)
|
{{ $attendance->date->format('d M Y') }} |
{{ ucfirst($attendance->status) }}
|
{{ $attendance->check_in_time ?? '—' }} |
@endforeach
@else
No attendance records found.
@endif
@empty
No students linked to your account.
@endforelse