@props(['hasCheckedIn', 'hasCheckedOut', 'attendance', 'overtime' => null])
{{-- Top Header --}}
{{ __('Attendance') }}
{{ \Carbon\Carbon::now()->translatedFormat('l, d F Y') }}
{{-- Live Badge --}}
{{ __('Live') }}
{{-- Status Cards --}}
{{-- Check In --}}
{{ $attendance?->time_in ? \Carbon\Carbon::parse($attendance->time_in)->format('H:i') : '--:--' }}
{{-- Check Out --}}
{{ $attendance?->time_out ? \Carbon\Carbon::parse($attendance->time_out)->format('H:i') : '--:--' }}
{{-- Actions --}}
@if(!$hasCheckedIn)
{{ __('Ready to start your shift?') }}
@elseif(!$hasCheckedOut)
@php
$shiftEndTime = ($attendance && $attendance->shift)
? \Carbon\Carbon::parse($attendance->date)->format('Y-m-d') . ' ' . $attendance->shift->end_time
: null;
@endphp
{{ __('Shift ends in') }}:
{{ __('Don\'t forget to clock out when you\'re done.') }}
@pushOnce('scripts')
@endpushOnce
@endif