@php $accent = \App\Support\Branding::colour() ?? '#f0a020'; $brand = \App\Support\Branding::name(); @endphp {{ $reference }} — {{ $brand }}
@if (! empty($defects)) @endif
 

{{ $brand }}

Inspection report {{ $reference }} has been submitted

{{ $outcome ?? 'Submitted' }}

@if ($jobNumber)
Job: {{ $jobNumber }}
@endif @if ($customer)
Customer: {{ $customer }}
@endif @if ($address)
Site: {{ $address }}
@endif @if (($openedOnSite ?? false) && ! $jobNumber)
Started: On site, from the standing warranty link
@endif @if ($inspector)
Inspected by: {{ $inspector }}
@endif @if ($inspectedOn)
Inspected on: {{ $inspectedOn }}
@endif
Defects: {{ $defectCount }}

What was found

@foreach ($defects as $defect) @endforeach
@php $severity = $defect['severity'] ?? 'minor'; $colour = match ($severity) { 'critical' => '#b91c1c', 'major' => '#b45309', default => '#4b5563', }; @endphp {{ $severity }}
{{ $defect['title'] ?? '' }} @if (! empty($defect['action']))
Action: {{ $defect['action'] }} @endif
Open the report in the CRM

The photos and documents are attached to the report. A submitted report can no longer be changed by the crew, so if something has to be corrected, close the link and send a new report.