@extends('layouts.app') @section('title', 'Log Aktivitas Kendaraan QMA') @section('content')
MANAJEMEN SISTEM

Log Aktivitas Kendaraan

Filter & Pencarian Log @if(request()->hasAny(['search', 'start_date', 'end_date', 'gate_id', 'direction', 'status'])) Reset Semua Filter @endif
Status PG:
Reset
@forelse($activities as $act) @empty @endforelse
Tanggal Kode LV Unit Penanggung Jawab Driver Gate Akses KM Sebelumnya KM Berjalan Aktivitas Status PG
{{ $act->recorded_at->locale('id')->translatedFormat('d M Y') }}
{{ $act->recorded_at->format('H:i') }} WIB
{{ $act->vehicle->code }}
{{ $act->vehicle->brand_type }}
@if($act->vehicle->license_plate) {{ $act->vehicle->license_plate }} @else - @endif
{{ $act->vehicle->ownership ?? '-' }}
{{ $act->driver->name }}
{{ $act->driver->division ?? '-' }}
{{ $act->gate->name }} @if($act->direction === 'in') MASUK @else KELUAR @endif {{ number_format($act->previous_km, 0, ',', '.') }} KM
+{{ number_format($act->distance, 0, ',', '.') }} KM
Akhir: {{ number_format($act->current_km, 0, ',', '.') }}
{{ $act->purpose }}
@if($act->validation_status === 'approved') Disetujui @elseif($act->validation_status === 'rejected') Ditolak @else Menunggu PG @endif
Belum Ada Data Log Aktivitas

Tidak ditemukan catatan aktivitas kendaraan yang sesuai dengan kriteria filter saat ini.

@if(request()->hasAny(['search', 'start_date', 'end_date', 'gate_id', 'direction', 'status'])) Reset Filter @endif
@if($activities->hasPages())
{{ $activities->links() }}
@endif
@endsection