Generated on {{ now()->format('M d, Y H:i') }}
@foreach($inspections as $inspection) @php $byCategory = $byInspection[$inspection->id] ?? collect(); $rpMechanic = null; foreach ($inspection->answers->sortByDesc('created_at') as $a) { $m = $a->mechanic; if ($m && $m->id != 1) { $rpMechanic = $m; break; } } if (!$rpMechanic && $inspection->mechanic && $inspection->mechanic->id != 1) $rpMechanic = $inspection->mechanic; @endphp| Question | Answer | Notes |
|---|---|---|
| {{ is_string($answer->question ?? null) ? $answer->question : ($answer->question?->question_text ?? '—') }} | @php $ans = $answer->status ?? $answer->answer ?? ''; @endphp @if($ans === 'pass')Pass @elseif($ans === 'fix')Fix @elseif($ans === 'fail')Fail @else — @endif | {{ $answer->notes ?? '—' }} |
No answers recorded.
@endifNo inspections in this period.
@endif