@php use App\Support\InspectionChecklist; $answers = $data['answers'] ?? []; $notes = $data['item_notes'] ?? []; $measurements = $data['measurements'] ?? []; $defects = $data['defects'] ?? []; $system = $data['system'] ?? []; $site = $data['site'] ?? []; $declaration = $data['declaration'] ?? []; $review = $data['review'] ?? null; $job = $detail['job'] ?? null; $customer = $job['customer'] ?? null; $jobSite = $job['site'] ?? null; $systemType = collect(InspectionChecklist::systemTypes())->firstWhere('value', $system['type'] ?? ''); $systemLabel = is_array($systemType) ? $systemType['label'] : '—'; $brand = \App\Support\Branding::name(); $accent = \App\Support\Branding::colour() ?? '#f0a020'; $tick = ['pass' => 'Pass', 'fail' => 'Fail', 'na' => 'N/A']; @endphp
{{ $brand }}
{{ $report->reference }} @if ($detail['job']) · job {{ $detail['job']['job_number'] }} @endif @if ($report->inspected_on) · inspected {{ $report->inspected_on->format('j F Y') }} @endif
@if ($report->outcome){{ $report->outcome->label() }}
@endif| {{ $item['label'] }} | {{ $tick[$value] ?? '—' }} | {{ $notes[$section['key']][$item['key']] ?? '' }} |
| {{ $measurement['label'] }} | {{ $measurements[$key] ?? '—' }} {{ $measurement['unit'] }} |
| Test instrument | {{ $measurements['instrument'] ?? '—' }} @if (! empty($measurements['calibration_due'])) · calibrated to {{ $measurements['calibration_due'] }} @endif |
{{ $severity }} @if (! empty($defect['due'])) · due {{ $defect['due'] }} @endif
{{ $defect['title'] ?? '' }}
@if (! empty($defect['description'])){{ $defect['description'] }}
@endif @if (! empty($defect['action']))Action: {{ $defect['action'] }}
@endif{{ $data['findings'] }}
@endif @if (! empty($data['recommendations']))Recommendations
{{ $data['recommendations'] }}
@endif @endif @if (! empty($data['customer']['comment'])){{ $data['customer']['comment'] }}
@endifI certify that I carried out this inspection, that the results recorded are the readings I measured on site, and that the work complies with the standards named above except where a defect is listed.
Signature images are in the signatures folder of this pack.
@if ($review)
Reviewed by {{ $review['by'] ?? '' }} on {{ \Illuminate\Support\Carbon::parse($review['at'] ?? null)->format('j F Y') }}.
@if (! empty($review['note']))
{{ $review['note'] }}
@endif
@endif
| {{ $attachment->original_name }} | {{ ucfirst($attachment->kind) }} · {{ $attachment->humanSize() }} |
| No files attached. |