Tanggal
{{ $check->date->format('d M Y') }}
Driver
{{ $check->driver->name ?? '-' }}
Truck
{{ $check->truck->plate_number ?? '-' }}
@php
$notOkCount = collect($check->items)->filter(fn($i) => isset($i['ok']) && !$i['ok'])->count();
@endphp
Item Tidak OK
{{ $notOkCount }}
@if ($check->notes)
Catatan Umum
{{ $check->notes }}
@endif
@foreach ($groupedItems as $category => $items)
{{ $category }}
| Item |
Status |
Catatan |
@foreach ($items as $item)
| {{ $item['label'] }} |
@if (($item['ok'] ?? true) === true)
OK
@else
Tidak OK
@endif
|
{{ $item['note'] }} |
@endforeach
@endforeach