@props(['hasCheckedIn', 'hasCheckedOut', 'attendance', 'overtime' => null])
{{-- Top Header --}}

{{ __('Attendance') }}

{{ \Carbon\Carbon::now()->translatedFormat('l, d F Y') }}

{{-- Live Badge --}}
{{ __('Live') }}
{{-- Status Cards --}}
{{-- Check In --}}
{{ __('Check In') }}
{{ $attendance?->time_in ? \Carbon\Carbon::parse($attendance->time_in)->format('H:i') : '--:--' }}
{{-- Check Out --}}
{{ __('Check Out') }}
{{ $attendance?->time_out ? \Carbon\Carbon::parse($attendance->time_out)->format('H:i') : '--:--' }}
{{-- Actions --}} @if(!$hasCheckedIn)

{{ __('Ready to start your shift?') }}

{{ __('Clock In') }}
@elseif(!$hasCheckedOut) @php $shiftEndTime = ($attendance && $attendance->shift) ? \Carbon\Carbon::parse($attendance->date)->format('Y-m-d') . ' ' . $attendance->shift->end_time : null; @endphp
@pushOnce('scripts') @endpushOnce
{{ __('Clock Out') }}
@endif