@extends('layouts.app') @section('title', 'Review P2H Unit ' . $record->vehicle->code . ' - ' . $record->transaction_no) @section('content')
Kembali ke P2H Unit Support
Cetak / Ekspor PDF Ekspor Excel (.xlsx)
@if($record->isPending()) Menunggu Approval QMA @elseif($record->isApproved()) Disetujui (Approved) @else Ditolak (Rejected) @endif
LEMBAR PEMERIKSAAN PRA-HARIAN (P2H)

{{ $record->transaction_no }}

Waktu Pemeriksaan: {{ $record->inspected_at->format('d F Y, H:i') }} WIB
UNIT SUPPORT

{{ $record->vehicle->code }}

{{ $record->vehicle->brand_type }}

Kategori: {{ $record->vehicle->unit_category ?? ($record->template->name ?? '-') }}
Lokasi: {{ $record->vehicle->location ?? '-' }}
OPERATOR (HSE)

{{ $record->employee->name ?? '-' }}

NIK: {{ $record->employee->nik ?? '-' }}

Divisi: {{ $record->employee->division ?? '-' }}
SIMPER: Aktif (s.d {{ $record->employee->simper_expired_at ? $record->employee->simper_expired_at->format('d/m/Y') : '-' }})
OPERASIONAL SHIFT

{{ $record->shift }}

Hour Meter (HM): {{ number_format($record->start_hm, 1, ',', '.') }} HM
Kondisi Fisik: @if($record->hasDefects()) {{ $record->defect_count }} Item Rusak @else Semua Normal @endif
@if($record->general_notes)
Catatan Umum dari Operator:

"{{ $record->general_notes }}"

@endif

Verifikasi & Keputusan Approval Admin QMA

@if($record->isPending())
@csrf
Setujui Hasil Pemeriksaan
@csrf
Tolak Hasil Pemeriksaan *
@else
Diverifikasi Oleh: {{ $record->validator->name ?? 'Admin QMA' }} Pada {{ $record->validated_at ? $record->validated_at->format('d/m/Y H:i') . ' WIB' : '-' }}
Catatan Verifikator: {{ $record->validation_notes ?? '-' }}
@endif

Rincian Butir Pemeriksaan Pra-Harian

@foreach($groupedItems as $sectionName => $itemsInSection)

{{ $sectionName }}

{{ count($itemsInSection) }} butir
@foreach($itemsInSection as $item)
{{ $loop->iteration }}.
{{ $item->title }} @if($item->notes)

Catatan: {{ $item->notes }}

@endif
@if(in_array($item->question_type, ['choice', 'condition', 'Multiple choice: only one answer', 'Matrix']) || !empty($item->condition_status)) @if($item->condition_status === 'rusak') Rusak @else Baik @endif @else {{ $item->answer_value ?? '-' }} @endif
@endforeach
@endforeach
@endsection