{{ __('app.portal.attendance.title') }}

{{ __('app.portal.attendance.desc') }}

@if ($students->isEmpty()) @else
@if ($students->count() > 1) @foreach ($students as $option) @endforeach @else

{{ $students->first()->localizedName() }} ({{ $students->first()->student_uid }})

@endif
@if ($student)

{{ $student->localizedName() }}

{{ $student->student_uid }} · {{ $student->academicClass?->localizedName() ?? __('app.students.no_class') }} @if ($student->section) · {{ $student->section->localizedName() }} @endif @if ($student->roll) · {{ __('app.students.roll') }}: {{ $student->roll }} @endif

{{ $monthDate->translatedFormat('F Y') }}
@foreach ([ 'marked' => __('app.portal.attendance.marked'), 'present' => __('app.enums.attendance_status.present'), 'late' => __('app.enums.attendance_status.late'), 'absent' => __('app.enums.attendance_status.absent'), 'leave' => __('app.enums.attendance_status.leave'), ] as $key => $label)

{{ $label }}

{{ $counts[$key] }}

@endforeach

{{ __('app.portal.attendance.percentage') }}

{{ number_format((float) $counts['percentage'], 2) }}%

@if ($records->isEmpty()) @else
@foreach ($records as $record) @endforeach
{{ __('app.portal.attendance.day') }} {{ __('app.portal.attendance.status') }} {{ __('app.portal.common.remarks') }}
{{ $record->attendance_date->translatedFormat('d M Y') }} ({{ $record->attendance_date->translatedFormat('l') }}) {{ $record->status->label() }} {{ $record->remarks ?: '—' }}
@endif
@endif @endif