{{ __('Attendance History') }}
| {{ __('Date') }} |
{{ __('Employee') }} |
{{ __('Code') }} |
{{ __('First Check-in') }} |
{{ __('Last Check-out') }} |
{{ __('Duration') }} |
{{ __('Entries (Same Day)') }} |
@forelse($attendanceRows as $row)
| {{ \Illuminate\Support\Carbon::parse($row->attendance_date)->format('Y-m-d') }} |
{{ trim(($row->first_name ?? '').' '.($row->last_name ?? '')) ?: '-' }} |
{{ $row->employee_code ?: '-' }} |
{{ $row->first_check_in_at ? \Illuminate\Support\Carbon::parse($row->first_check_in_at)->format('H:i') : '-' }} |
{{ $row->last_check_out_at ? \Illuminate\Support\Carbon::parse($row->last_check_out_at)->format('H:i') : '-' }} |
@php($stayMinutes = is_numeric($row->stay_minutes ?? null) ? max(0, (int) $row->stay_minutes) : null)
@if($stayMinutes === null)
-
@else
{{ intdiv($stayMinutes, 60) }}h {{ $stayMinutes % 60 }}m
@endif
|
{{ (int) $row->total_entries }} |
@empty
| {{ __('No attendance data found for selected filters.') }} |
@endforelse
{{ $attendanceRows->links('pagination::bootstrap-5') }}