@php $pageTitle = 'Servis'; $filterActive = $search !== '' || $status || $dari || $sampai; $nextLabels = [ 'dikerjakan' => 'Mulai Kerjakan', 'selesai' => 'Tandai Selesai', 'diambil' => 'Tandai Diambil', ]; $nextIcons = [ 'dikerjakan' => 'bx bx-play-circle', 'selesai' => 'bx bx-check-circle', 'diambil' => 'bx bx-package', ]; @endphp @push('styles') @endpush @include('admin.partials.page-head') @include('admin.partials.page-header', [ 'title' => 'Servis', 'subtitle' => $subtitle, 'subtitleId' => 'servis-subtitle', 'icon' => 'bx bx-wrench', ])
| Servis | Pelanggan | Kendaraan | Masuk | Odometer | Status | Aksi |
|---|---|---|---|---|---|---|
|
Servis #{{ $item->id }} {{ $item->reservasi?->kode ?? 'Tanpa reservasi' }} |
{{ $item->reservasi?->pelanggan?->name ?? '-' }} {{ $item->reservasi?->pelanggan?->no_hp ?: 'Nomor HP belum diisi' }} |
{{ $item->kendaraan?->plat_nomor ?? '-' }} {{ trim(($item->kendaraan?->merk?->nama ?? '').' '.($item->kendaraan?->model ?? '')) ?: '-' }} |
{{ $item->tanggal_masuk?->translatedFormat('d M Y') ?? '-' }}
@if ($item->tanggal_selesai)
Selesai {{ $item->tanggal_selesai->translatedFormat('d M Y') }} @endif |
@if ($item->odometerTampil() !== null)
{{ number_format($item->odometerTampil(), 0, ',', '.') }} km
Awal {{ number_format((int) $item->odometer_awal, 0, ',', '.') }} km @else - @endif |
{{ $serviceStatus->label() }}
@include('partials.service-timeline', ['servis' => $item, 'compact' => true])
|
@if ($nextStatus) @endif |
|
|
||||||