@extends('selfcheck.layouts.app') @section('title', 'Laporan — Log Activity') @section('page-title', 'Laporan — Log Activity') @section('content') @php $actionLabels = [ 'status' => 'Ubah Status', 'note' => 'Catatan', 'foto' => 'Foto', 'validasi' => 'Validasi QC', 'kunci' => 'Kunci', ]; $statusLabels = ['belum' => 'Belum', 'proses' => 'Proses', 'ok' => 'OK', 'kendala' => 'Kendala']; @endphp
| No | Waktu | Aksi | Proyek / Trainset | Komponen | Car | Perubahan | Keterangan |
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $log->created_at?->format('H:i:s') }} | {{ $actionLabels[$log->action] ?? ucfirst((string) $log->action) }} | {{ $log->execution?->project?->name ?: '—' }} {{ $log->execution?->trainset?->name ?: '—' }} | {{ $log->execution?->component?->code }} {{ $log->execution?->component?->name ?: '—' }} | {{ $log->execution?->car?->firstname ?: '—' }} | @if ($log->from_status || $log->to_status) {{ $statusLabels[$log->from_status] ?? ($log->from_status ?: '—') }} → {{ $statusLabels[$log->to_status] ?? ($log->to_status ?: '—') }} @else — @endif | {{ $log->message ?: '—' }} |