{{-- One month of days for one employee. $days and $month come from BuildsAttendanceReports; $monthRoute is the page to reload with another month. --}} @use('App\Enums\PermissionName') @use('App\Models\Attendance')
| {{ __('Day') }} | {{ __('Status') }} | {{ __('In') }} | {{ __('Out') }} | {{ __('Hours') }} | {{ __('Note') }} | @can(PermissionName::ManageAttendance->value){{ __('Actions') }} | @endcan
|---|---|---|---|---|---|---|
|
{{ $day['date']->format('D, M j') }}
@if ($day['derived'] === 'pending')
{{ __('Today') }}
@endif
|
@include('attendance.partials.status-badge', ['status' => $day['status'], 'derived' => $day['derived']]) @if ($attendance?->wasMarkedByHand()) {{ __('by admin') }} @endif | {{ $attendance?->localCheckIn()?->format('g:i A') ?? '—' }} | {{ $attendance?->localCheckOut()?->format('g:i A') ?? '—' }} | {{ Attendance::formatHours($attendance?->hoursWorked()) }} | {{ $attendance?->note ?? '' }} | @can(PermissionName::ManageAttendance->value)
@if ($attendance)
|
@endcan