|
|
@endif
{{ __('job.pdf_title') }}{{ __('job.pdf_subtitle', ['id' => $job->id, 'date' => $job->localStartedAt()->format('d.m.Y')]) }}
{{ $job->customerObject?->customer?->name ?? $job->customer?->name ?? '–' }}@if($job->customerObject) — {{ $job->customerObject->name }}@endif
|
@if ($companyName)
{{ $companyName }}
@if ($companyStreet)
{{ $companyStreet }}
@endif
@if ($companyZip || $companyCity)
{{ $companyZip }} {{ $companyCity }}
@endif
@if ($companyPhone)
{{ $companyPhone }}
@endif
@if ($companyEmail)
{{ $companyEmail }}
@endif
|
@endif
| {{ __('job.detail_customer') }} | {{ $pdfCustomer?->name ?? '–' }} |
| {{ __('job.detail_object') }} | {{ $pdfObject->name }} |
| {{ __('job.pdf_address') }} | {{ $addrSource->street }}@if($addrSource->street && ($addrSource->zip || $addrSource->city)),@endif {{ $addrSource->zip }} {{ $addrSource->city }} |
| {{ __('job.pdf_contact') }} | {{ $addrSource->contact_name }} |
| {{ __('job.detail_type') }} | {{ $job->type->label() }} @if ($job->is_manual) {{ __('job.detail_manual_badge') }} @endif |
| {{ __('job.detail_driver') }} | {{ $job->user->displayName() }} |
| {{ __('job.detail_vehicle') }} | {{ $job->vehicle->displayLabel() }} |
| {{ __('job.detail_started_at') }} | {{ $job->localStartedAt()->format('d.m.Y H:i') }} |
| {{ __('job.detail_ended_at') }} | @if ($job->ended_at) {{ $job->localEndedAt()->format('d.m.Y H:i') }} ({{ $job->durationFormatted() }}) @else {{ __('job.status_active') }} @endif |
| {{ __('weather.col_moment') }} | {{ __('weather.col_temperature') }} | {{ __('weather.col_precipitation') }} | {{ __('weather.col_snow_depth') }} | {{ __('weather.col_weather') }} |
|---|---|---|---|---|
| {{ $snapshot->moment->label() }} | {{ $snapshot->temperature }} °C | {{ $snapshot->precipitation }} mm | {{ $snapshot->snow_depth }} cm | {{ $snapshot->weatherLabel() }} |
{{ __('job.pdf_gps_sampled', ['shown' => $gpsTableData['points']->count(), 'total' => $gpsTableData['total']]) }}
@endif| # | {{ __('job.pdf_time') }} | {{ __('job.pdf_lat') }} | {{ __('job.pdf_lon') }} |
|---|---|---|---|
| {{ $idx + 1 }} | {{ \Carbon\Carbon::createFromTimestamp($point->timestamp)->setTimezone(config('app.display_timezone'))->format('H:i:s') }} | {{ number_format($point->lat, 5) }} | {{ number_format($point->lon, 5) }} |
|
@php
$photoPath = $photo->annotated_path ?? $photo->file_path;
$photoAbsPath = storage_path('app/public/' . $photoPath);
@endphp
@if (file_exists($photoAbsPath))
{{ $photo->caption }}
@endif
@if ($photo->taken_at)
{{ $photo->taken_at->setTimezone(config('app.display_timezone'))->format('H:i') }}
@endif
|
@endforeach