{{ __('Attendance Records') }}

@if(session()->has('message'))
{{ session('message') }}
@endif
@if(!$employee_id)
@endif
@forelse($attendances as $index => $att) @php $firstCheckIn = $att->first_check_in; $lastCheckOut = $att->last_check_out_display; $totalSeconds = $att->total_worked_seconds; $h = floor($totalSeconds / 3600); $m = floor(($totalSeconds % 3600) / 60); $s = $totalSeconds % 60; @endphp @empty @endforelse
{{ '#' }} {{ __('Name') }} {{ __('Date') }} {{ __('Check In') }} {{ __('Check Out') }} {{ __('Duration') }} {{ __('Action') }}
{{ $index + 1 }} {{ $att->employee->name }} {{ $att->date }} {{ $firstCheckIn ?? '-' }} {{ $lastCheckOut }} {{ str_pad($h, 2, '0', STR_PAD_LEFT) }}h {{ str_pad($m, 2, '0', STR_PAD_LEFT) }}m {{ str_pad($s, 2, '0', STR_PAD_LEFT) }}s {{ __('View') }}
{{ __('No Records') }}