@use('App\Models\Attendance')

{{ __('My attendance') }}

{{ $localNow->format('l, F j') }}
{{ __('Office hours :start to :end', ['start' => \Carbon\Carbon::parse($schedule['start_time'])->format('g:i A'), 'end' => \Carbon\Carbon::parse($schedule['end_time'])->format('g:i A')]) }} · {{ __('Your time: :time (:tz)', ['time' => $localNow->format('g:i A'), 'tz' => str_replace('_', ' ', $employee->timezone())]) }}
@if ($today) @include('attendance.partials.status-badge', ['status' => $today->status, 'derived' => null]) {{ __('In :in', ['in' => $today->localCheckIn()?->format('g:i A') ?? '—']) }} @if ($today->check_out_at) · {{ __('Out :out', ['out' => $today->localCheckOut()->format('g:i A')]) }} · {{ Attendance::formatHours($today->hoursWorked()) }} @endif @elseif (! $isWorkingDay) {{ __('Weekend') }} {{ __('No work expected today, but you can still check in if you are working.') }} @else {{ __('Not checked in yet') }} @endif
@if (! $today)
@csrf {{ __('Check in') }}
@elseif ($today->check_in_at && ! $today->check_out_at)
@csrf {{ __('Check out') }}
@else {{ __('Done for today') }} @endif
@include('attendance.partials.summary') @include('attendance.partials.history', ['monthRoute' => route('attendance.mine')])

{{ __('Late means checking in more than :grace minutes after :start. See something wrong? Ask an administrator; only they can change attendance records.', ['grace' => $schedule['grace_minutes'], 'start' => \Carbon\Carbon::parse($schedule['start_time'])->format('g:i A')]) }}