@php $portalText = \App\Models\MediaSetting::get('portal_text', config('app.name')); $actionLabels = [ 'status' => 'Ubah Status', 'note' => 'Catatan', 'foto' => 'Foto', 'validasi' => 'Validasi QC', 'kunci' => 'Kunci', ]; $statusLabels = ['belum' => 'Belum', 'proses' => 'Proses', 'ok' => 'OK', 'kendala' => 'Kendala']; @endphp
Tutup Atur ukuran kertas & orientasi lewat dialog cetak browser (disarankan Landscape / A4–A3).
@if ($logo) @endif

{{ $portalText }}

Log Aktivitas Saya — {{ $dayLabel }}

Akun: {{ $userName }}  •  Dicetak: {{ now()->format('d M Y H:i') }}  •  Total: {{ $logs->count() }} aktivitas

@if ($logs->isEmpty())
Tidak ada aktivitas pada tanggal ini.
@else @foreach ($logs as $log) @endforeach
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 ?: '—' }}
@endif
{{ $portalText }} — Log Aktivitas Saya (Selfcheck) {{ $dayLabel }}