@if(session('error'))

{{ session('error') }}

@endif @if(session('success'))

{{ session('success') }}

@endif

{{ now()->translatedFormat('l, F j') }}

{{ now()->format('H:i:s') }}
$attendance && !$attendance->check_out && $attendance->status !== 'on_break', 'bg-amber-500' => $attendance && $attendance->status === 'on_break', 'bg-zinc-300 dark:bg-zinc-600' => !$attendance || $attendance->check_out, ])>
@if(!$attendance) {{ __('Not Checked In') }} @elseif($attendance->check_out) {{ __('Shift Completed') }} @elseif($attendance->status === 'on_break') {{ __('On Break') }} @else {{ __('Working') }} @endif
{{ __('Overtime Bank') }}
{{ number_format(auth()->user()->overtime_bank, 1) }}h
{{ __('Balance') }}
{{ __('Flexible Week Progress') }}
{{ number_format(auth()->user()->current_week_hours, 1) }}h
{{ __('of 48h') }}
@if(!$attendance) @if($checkInBlockReason)
{{ $checkInBlockReason }}
@endif @elseif(!$attendance->check_out) @if($currentBreak) @else
@endif @else

{{ __('You are all set!') }}

{{ __('Shift Duration:') }} {{ intdiv($attendance->work_duration, 60) }}h {{ $attendance->work_duration % 60 }}m

{{ __('Have a good rest.') }}

@endif

{{ __('End Your Shift?') }}

{{ __('Are you sure you want to check out? This will end your current shift.') }}

@if($attendance && $attendance->check_in)
{{ __('Check-in Time') }} {{ $attendance->check_in->format('H:i') }}
{{ __('Current Time') }} {{ now()->format('H:i') }}
{{ __('Work Duration') }} {{ intdiv(now()->diffInMinutes($attendance->check_in), 60) }}h {{ now()->diffInMinutes($attendance->check_in) % 60 }}m
@endif