{{-- Riwayat Booking Customer --}} @if ($bookings->count() === 0)
Belum ada riwayat booking.
Booking Pertama Anda
@else
@foreach ($bookings as $booking) @endforeach
Tanggal Paket Kendaraan Status Pembayaran Aksi
{{ $booking->schedule->date->locale('id')->isoFormat('D MMM Y') }}
{{ substr($booking->schedule->time_slot, 0, 5) }} WIB
{{ $booking->service->name }}
{{ $booking->formatted_price }}
{{ $booking->vehicle_plate }}
{{ $booking->vehicle_type }}
@php $b = $booking->status_badge; @endphp {{ $b['label'] }} @if ($booking->payment) @php $p = $booking->payment->status_badge; @endphp {{ $p['label'] }} @else Belum Bayar @endif
Detail @if ($booking->status === 'completed') Booking Lagi @endif {{-- Tombol Refund: hanya muncul jika status Hangus (void) --}} @if ($booking->status === 'void' && $booking->payment && $booking->payment->status === 'paid') @if ($booking->refund) Status Refund @elseif (now()->lessThan($booking->updated_at->copy()->addHours(24))) Ajukan Refund @else Refund Kedaluwarsa @endif @endif
@if ($bookings->hasPages())
{{ $bookings->links() }}
@endif
@endif