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

{{-- Customer & type --}}
{{ $job->localStartedAt()->format('d.m.Y') }} {{ $job->type->label() }}

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

{{ $job->customerObject?->customer?->name ?? $job->customer?->name ?? '–' }}

@if($job->customerObject)

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

{{ $job->customerObject->name }}

@endif @if($job->customerObject?->street)

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

{{ $job->customerObject->street }}, {{ $job->customerObject->zip }} {{ $job->customerObject->city }}

@endif
{{-- Vehicle --}} @if($job->vehicle)

{{ __('job.field_vehicle') }}

{{ $job->vehicle->displayLabel() }}

@endif {{-- Times & duration --}}

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

{{ $job->localStartedAt()->format('H:i') }}

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

@if($job->ended_at) {{ $job->localEndedAt()->format('H:i') }} @else {{ __('driver.history_duration_active') }} @endif

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

@if($job->ended_at) {{ $job->durationFormatted() }} @else {{ __('driver.history_duration_active') }} @endif

{{-- Notes --}}

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

{{ $job->notes ?: __('driver.history_detail_no_notes') }}

{{-- Weather --}} @if($job->weatherSnapshots->isNotEmpty())

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

@foreach($job->weatherSnapshots->sortBy('moment') as $ws)

{{ $ws->moment === \App\Enums\WeatherMoment::Start ? __('driver.history_detail_weather_start') : __('driver.history_detail_weather_end') }}

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

{{ number_format($ws->temperature, 1) }} °C

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

{{ number_format($ws->precipitation, 1) }} mm

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

{{ number_format($ws->snow_depth, 1) }} cm

@endforeach
@endif {{-- Photos --}} @if($job->jobPhotos->isNotEmpty())

{{ __('driver.history_detail_photos') }} ({{ $job->jobPhotos->count() }})

@foreach($job->jobPhotos->sortBy('sort_order') as $photo)
{{ $photo->caption ?: __('driver.dash_photo_alt') }}
@endforeach
@endif {{-- GPS points --}} @if($job->gps_points_count > 0)

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

{{ $job->gps_points_count }}

@endif