@php $recentJobs = $widget['data']['recentJobs']; @endphp

{{ __('dashboard.recent_jobs') }}

@if ($recentJobs->isEmpty())

{{ __('dashboard.no_recent_jobs') }}

@else
@foreach ($recentJobs as $job) @endforeach
{{ __('dashboard.col_date') }} {{ __('dashboard.col_customer') }} {{ __('dashboard.col_type') }} {{ __('dashboard.col_driver_short') }} {{ __('dashboard.col_duration') }}
{{ $job->localStartedAt()->format('d.m.Y H:i') }} {{ $job->customerObject?->customer?->name ?? $job->customer?->name ?? '—' }} @if($job->customerObject) / {{ $job->customerObject->name }} @endif {{ $job->type?->label() ?? '—' }} {{ $job->user?->displayName() ?? '—' }} @if ($job->ended_at) @php $mins = $job->started_at->diffInMinutes($job->ended_at); @endphp {{ intdiv($mins, 60) }}h {{ $mins % 60 }}m @else — @endif
@endif