Staff Attendance Management

@if(auth()->user()->hasRole('Admin_' . restaurant()->id)) @endif

Today's Status

@if($this->currentAttendance) @if($this->currentAttendance->isCheckedIn() && !$this->currentAttendance->isCheckedOut())

✅ Checked in at {{ Carbon\Carbon::parse($this->currentAttendance->check_in_time)->timezone(timezone())->format('H:i') }}

@elseif($this->currentAttendance->isCheckedOut())

✅ Checked out at {{ Carbon\Carbon::parse($this->currentAttendance->check_out_time)->timezone(timezone())->format('H:i') }}

@endif @else

Not checked in today

@endif
@if(!$this->currentAttendance || $this->currentAttendance->isCheckedOut()) @endif @if($this->currentAttendance && $this->currentAttendance->isCheckedIn() && !$this->currentAttendance->isCheckedOut()) @endif
@if(auth()->user()->hasRole('Admin_' . restaurant()->id))
@endif
@if(auth()->user()->hasRole('Admin_' . restaurant()->id))
{{ $summary->total_records ?? 0 }}
Total Records
{{ $summary->present_count ?? 0 }}
Present
{{ $summary->absent_count ?? 0 }}
Absent
{{ $summary->late_count ?? 0 }}
Late
{{ number_format($summary->avg_hours ?? 0, 1) }}h
Avg Hours
@endif
@if(auth()->user()->hasRole('Admin_' . restaurant()->id)) @endif @forelse($attendance as $record) @if(auth()->user()->hasRole('Admin_' . restaurant()->id)) @endif @empty @endforelse
Staff Member Date Check In Check Out Hours Status Actions
{{ $record->user->name }}
{{ $record->branch->name ?? 'N/A' }}
{{ $record->attendance_date->timezone(timezone())->format('M d, Y') }} {{ $record->check_in_time ? Carbon\Carbon::parse($record->check_in_time)->timezone(timezone())->format('H:i') : 'N/A' }} {{ $record->check_out_time ? Carbon\Carbon::parse($record->check_out_time)->timezone(timezone())->format('H:i') : 'N/A' }} @if($record->session_hours)
Session: {{ number_format($record->session_hours, 2) }}h
Total: {{ number_format($record->total_hours ?? 0, 2) }}h
@else {{ number_format($record->total_hours ?? 0, 2) }}h @endif
{{ ucfirst($record->status) }} @if(!$record->is_approved) @else ✓ Approved @endif
No attendance records found
{{ $attendance->links() }}
Check In
Cancel Check In
Check Out
Cancel Check Out