{{ __('driver.history_title') }}

@forelse($jobs as $job)
{{ $job->localStartedAt()->format('d.m.Y') }} {{ $job->type->label() }}

{{ $job->customerObject?->customer?->name ?? $job->customer?->name ?? '–' }} @if($job->customerObject) / {{ $job->customerObject->name }} @endif

@if($job->ended_at) {{ $job->durationFormatted() }} @else {{ __('driver.history_duration_active') }} @endif @if($job->job_photos_count > 0) {{ $job->job_photos_count }} @endif {{ $job->localStartedAt()->format('H:i') }}@if($job->ended_at)–{{ $job->localEndedAt()->format('H:i') }}@endif
@empty

{{ __('driver.history_empty_heading') }}

{{ __('driver.history_empty_body') }}

@endforelse
{{ $jobs->links() }}