- Reverts the schneespur/ subdirectory restructure (b8e426b)
- Restores package.json and vite.config.js (needed for npm build, were
removed in an earlier cleanup before the restructure)
- Updates public/build/ assets with current Vite output (new content hashes)
40 lines
1.3 KiB
PHP
40 lines
1.3 KiB
PHP
<x-mail::message>
|
||
@php $mailContact = $job->customerObject ?? $job->customer; @endphp
|
||
{{ __('notification.greeting', ['name' => $mailContact->contact_name ?? $mailContact->name ?? '']) }}
|
||
|
||
@if($isWeatherUpdate)
|
||
{{ __('notification.weather_update_note') }}
|
||
|
||
@endif
|
||
{{ __('notification.job_completed_body', [
|
||
'date' => $job->localStartedAt()->format(__('notification.date_format')),
|
||
'time_start' => $job->localStartedAt()->format('H:i'),
|
||
'time_end' => $job->localEndedAt()?->format('H:i') ?? '–',
|
||
'type' => $job->type->label(),
|
||
'driver' => $job->user->name,
|
||
]) }}
|
||
|
||
@if($weatherAvailable)
|
||
@php
|
||
$endWeather = $job->weatherSnapshots->first(fn ($ws) => $ws->moment === \App\Enums\WeatherMoment::End);
|
||
$startWeather = $job->weatherSnapshots->first(fn ($ws) => $ws->moment === \App\Enums\WeatherMoment::Start);
|
||
$weather = $endWeather ?? $startWeather;
|
||
@endphp
|
||
@if($weather)
|
||
{{ __('notification.weather_summary', [
|
||
'temperature' => number_format((float) $weather->temperature, 1),
|
||
'precipitation' => number_format((float) $weather->precipitation, 1),
|
||
]) }}
|
||
@endif
|
||
@else
|
||
{{ __('notification.weather_unavailable') }}
|
||
@endif
|
||
|
||
@if($pdfAttached)
|
||
{{ __('notification.pdf_attached') }}
|
||
@elseif($pdfSkipped)
|
||
{{ __('notification.pdf_too_large') }}
|
||
@endif
|
||
|
||
{{ __('notification.regards') }}
|
||
</x-mail::message>
|