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

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

@if ($year && $class && ($sections->isEmpty() || $section)) {{ __('app.attendance.register.print_sheet') }} @endif
@if ($notice) {{ $notice }} @endif @if ($errors->any())
    @foreach ($errors->all() as $message)
  • {{ $message }}
  • @endforeach
@endif @if ($readOnly && $year) {{ __('app.academics.validation.year_archived') }} @endif
@foreach ($years as $option) @endforeach @foreach ($classes as $option) @endforeach @if ($sections->isNotEmpty()) @foreach ($sections as $option) @endforeach @endif
@error('attendanceDate')

{{ $message }}

@enderror
@if ($year === null || $class === null) @elseif ($sections->isNotEmpty() && $section === null) @else @unless ($canCreate || $canEdit) {{ __('app.attendance.register.not_allowed') }} @endunless @if ($students->isEmpty()) @else
{{ __('app.attendance.register.mark_all') }} @foreach ($statusOptions as $option) @endforeach
@if ($recordedCount > 0) {{ __('app.attendance.register.recorded', ['count' => $recordedCount]) }} @endif
@foreach ($students as $student) @endforeach
{{ __('app.students.name') }} {{ __('app.attendance.fields.roll') }} {{ __('app.attendance.fields.status') }} {{ __('app.attendance.fields.remarks') }}
{{ $student->name_en }} {{ $student->student_uid }} @if ($student->name_bn) {{ $student->name_bn }} @endif {{ $student->roll ?? '—' }}
@if ($canCreate || $canEdit)
@error('reason')

{{ $message }}

@enderror
{{ __('app.attendance.register.save') }} {{ __('app.loading') }}
@endif @endif
@endif