{{-- Service Report PDF (normalized renderer) Do not inline legacy keys here. All mapping lives in ServiceReport::normalized(). --}} @php // Safety: allow the template to work even if controller forgot $data $data = $data ?? ($report->relationLoaded('items') ? $report->normalized() : []); @endphp
Service Report
Report # {{ $report->report_number }} • {{ $report->type }}
{{ $report->compliant ? 'Compliant' : 'Non-Compliant' }}
Status: {{ strtoupper($report->status) }}
Service Summary
Date{{ $data['service']['date'] ?? '—' }}
Start{{ $data['service']['start_time'] ?? '—' }}
End{{ $data['service']['end_time'] ?? '—' }}
Total Hours{{ $data['service']['total_hours'] ?? '—' }}
Technician (ID){{ $data['service']['technician'] ?? '—' }}
Return Visit Required{{ strtoupper($data['service']['return_visit_required'] ?? '—') }}
Leaks Found{{ strtoupper($data['service']['leaks_found'] ?? '—') }}
Fan Belt Replaced{{ strtoupper($data['service']['exhaust_fan_belt_replaced'] ?? '—') }}
Equipment
Canopy Manufacturer{{ $data['equipment']['canopy_manufacturer'] ?? '—' }}
Model #{{ $data['equipment']['model_no'] ?? '—' }}
Serial #{{ $data['equipment']['serial_no'] ?? '—' }}
Fuel{{ $data['equipment']['fuel'] ?? '—' }}
Cooking Volume{{ $data['equipment']['cooking_volume'] ?? '—' }}
Cooking Equipment{{ $data['equipment']['cooking_equipment'] ?? '—' }}
UV System (legacy slots)
@foreach(($data['equipment']['ecologizer_uv'] ?? []) as $i => $v) @endforeach
UV {{ $i }}{{ $v ?? '—' }}
Inspection Checklist
@foreach(($data['checklist'] ?? []) as $row) @endforeach @if(empty($data['checklist'])) @endif
ItemResult
{{ $row['label'] }} {{ $row['result'] }}
No checklist items found.
Comments
{{ $data['notes']['comments'] ?? '—' }}