@php $hours = fn (int $m) => number_format($m / 60, 2, '.', '').' h'; $signed = fn (int $m) => ($m > 0 ? '+' : ($m < 0 ? '−' : '')).number_format(abs($m) / 60, 2, '.', '').' h'; $field = 'h-10 w-full rounded-lg border border-border bg-card px-2.5 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring'; $tone = ['NO_RECORDS' => 'bg-muted text-muted-foreground', 'INCOMPLETE' => 'bg-warning-soft text-warning', 'COMPLETE' => 'bg-success-soft text-success']; @endphp
{{ $error === 'INVALID_MONTH' ? __('reports.errors.INVALID_MONTH') : __('reports.errors.FORBIDDEN') }}
@else @include('livewire._monthly-journeys') @php($m = $report['month']){{ __('reports.monthly.period.subtitle', ['first' => \App\Domain\Time\BusinessCalendar::formatKey($m['firstKey']), 'last' => \App\Domain\Time\BusinessCalendar::formatKey($m['lastKey']), 'days' => $m['days']]) }}
{{ __('reports.monthly.kpi.'.$key) }}
{{ $value }}
{{ $caption }}
{{ __('reports.monthly.kpi.secondary') }}: {{ __('reports.monthly.kpi.days') }} {{ $t['recordedDays'] }} / {{ $t['scheduledDays'] }} · {{ __('reports.monthly.kpi.late') }} {{ $t['lateArrivals'] }} · {{ __('reports.monthly.kpi.travel') }} {{ \App\Support\Format::minutes($t['travelMinutes']) }} · {{ __('reports.monthly.kpi.break') }} {{ \App\Support\Format::minutes($t['breakMinutes']) }} · {{ __('reports.monthly.kpi.private') }} {{ \App\Support\Format::minutes($t['privateLeaveMinutes']) }}
{{ __('reports.monthly.table.subtitle', ['month' => __('reports.monthly.months.'.$m['month']).' '.$m['year']]) }}
{{ __('reports.monthly.table.emptyTitle') }}
{{ __('reports.monthly.table.emptyBody') }}
| {{ __('reports.monthly.table.'.$col) }} | @endforeach||
|---|---|---|
| @foreach ([$e['scheduledDays'], $e['recordedDays'], \App\Support\Format::minutes($e['workMinutes']), \App\Support\Format::minutes($e['breakMinutes']), \App\Support\Format::minutes($e['travelMinutes']), $e['lateArrivals'], $e['incompleteRecords'], $e['verifiedDays'], $hours($e['verifiedScheduledMinutes']), $hours($e['verifiedWorkMinutes']), $hours($e['overtimeMinutes']), $hours($e['belowMinutes']), $signed($e['netVarianceMinutes'])] as $cell) | {{ $cell }} | @endforeach{{ __('reports.monthly.status.'.$e['status']) }} |
| {{ __('reports.monthly.table.total') }} | @foreach ([$t['scheduledDays'], $t['recordedDays'], \App\Support\Format::minutes($t['workMinutes']), \App\Support\Format::minutes($t['breakMinutes']), \App\Support\Format::minutes($t['travelMinutes']), $t['lateArrivals'], $t['incompleteRecords'], $t['verifiedDays'], $hours($t['verifiedScheduledMinutes']), $hours($t['verifiedWorkMinutes']), $hours($t['overtimeMinutes']), $hours($t['belowMinutes']), $signed($t['netVarianceMinutes'])] as $cell){{ $cell }} | @endforeach
{{ __('reports.monthly.notes.'.$n) }}
@endforeach{{ __('reports.monthly.drawer.title', ['month' => __('reports.monthly.months.'.$m['month']).' '.$m['year']]) }}
{{ __('reports.monthly.drawer.factualNote') }}
{{ __('reports.monthly.drawer.noDays') }}
@else| @foreach (['start', 'end', 'work', 'break', 'travel', 'private', 'planned', 'overtime', 'below'] as $c) | {{ __('reports.monthly.drawer.cols.'.$c) }} | @endforeach
|---|---|
| {{ \App\Domain\Time\BusinessCalendar::formatKey($d['date']) }} @if (in_array($d['dayClass'], ['UNSCHEDULED_WORK', 'APPROVED_LEAVE'], true))· {{ __('reports.monthly.drawer.dayClass.'.$d['dayClass']) }}@endif @if ($d['incomplete'])· {{ __('reports.monthly.drawer.incompleteFlag') }}@endif @if ($d['noRecord'])· {{ __('reports.monthly.drawer.noRecordFlag') }}@endif @if ($d['lateMinutes'] !== null){{ __('reports.monthly.drawer.late', ['minutes' => $d['lateMinutes']]) }}@if ($d['explanation'] === 'PENDING') · {{ __('reports.monthly.drawer.explanationPending') }}@endif @if ($detail['reasons'][$d['date']] ?? null){{ $detail['reasons'][$d['date']] }}@endif @endif | @foreach ([$clock($d['workStartAt'] ?? $d['firstEventAt']), $clock($d['finishedAt']), $d['workMinutes'], $d['breakMinutes'], $d['travelMinutes'], $d['privateLeaveMinutes'], $d['scheduledNetMinutes'], $d['overtimeMinutes'], $d['belowMinutes']] as $i => $cell){{ $i < 2 ? $cell : ($cell === null ? '—' : \App\Support\Format::minutes((int) $cell)) }} | @endforeach
{{ __('reports.monthly.drawer.gpsNote') }}