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

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

@can('staff_attendance.export') {{ __('app.actions.export') }} @endcan @can('staff_attendance.print') {{ __('app.actions.print') }} @endcan
@if ($notice) {{ $notice }} @endif @if ($errors->any())
    @foreach ($errors->all() as $message)
  • {{ $message }}
  • @endforeach
@endif
@if ($mode === 'register')
@error('attendanceDate')

{{ $message }}

@enderror
@if ($recordedCount > 0) {{ __('app.attendance.staff.recorded', ['count' => $recordedCount]) }} @endif
@unless ($canCreate || $canEdit) {{ __('app.attendance.staff.not_allowed') }} @endunless @if ($staff->isEmpty()) @else
{{ __('app.attendance.register.mark_all') }} @foreach ($statusOptions as $option) @endforeach
@foreach ($staff as $user) @endforeach
{{ __('app.users.name') }} {{ __('app.users.roles_section') }} {{ __('app.attendance.fields.status') }} {{ __('app.attendance.fields.remarks') }}
{{ $user->name }} {{ $user->email }} {{ $user->roles->map(fn ($role) => __('app.roles.labels.'.$role->name))->join(', ') }}
@if ($canCreate || $canEdit)
@error('reason')

{{ $message }}

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

{{ __('app.attendance.summary.marked') }}

{{ $totals['marked'] }}

{{ __('app.enums.attendance_status.present') }}

{{ $totals['present'] }}

{{ __('app.enums.attendance_status.late') }}

{{ $totals['late'] }}

{{ __('app.enums.attendance_status.absent') }}

{{ $totals['absent'] }}

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

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

@if ($summary->isEmpty()) @else
@foreach ($summary as $row) @endforeach
{{ __('app.users.name') }} {{ __('app.enums.attendance_status.present') }} {{ __('app.enums.attendance_status.late') }} {{ __('app.enums.attendance_status.absent') }} {{ __('app.enums.attendance_status.leave') }} {{ __('app.attendance.summary.marked') }} {{ __('app.attendance.summary.percentage') }}
{{ $row->name }} {{ $row->email }} {{ $row->present }} {{ $row->late }} {{ $row->absent }} {{ $row->leave }} {{ $row->marked }} {{ number_format($row->percentage, 2) }}%
@endif
@endif