My Attendance

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- Clock in/out card --}}

{{ now()->format('l, d M Y') }}

@if(!$log)

You haven't clocked in today.

@csrf
@elseif(!$log->clock_out_at)

Clocked in at

{{ $log->clock_in_at->format('h:i A') }}

@if($log->status === 'late') Late @endif
@csrf
@else

Today's hours

{{ $log->clock_in_at->format('h:i A') }} – {{ $log->clock_out_at->format('h:i A') }}

{{ round($log->duration_minutes / 60, 1) }} hrs worked

@endif
{{-- This month's history --}}

{{ now()->format('F Y') }} History

@forelse($history as $h) @empty @endforelse
Date Clock In Clock Out Status
{{ $h->date->format('d M') }} {{ $h->clock_in_at->format('h:i A') }} {{ $h->clock_out_at?->format('h:i A') ?? '—' }} {{ ucfirst(str_replace('_', ' ', $h->status)) }}
No attendance recorded yet this month.