Total Booking
@extends('layouts.admin') @section('title', 'Laporan Booking | Super Admin') @section('page_title', 'Laporan Booking') @push('styles') @endpush @section('content') @php $bookingStatusBadge = function (?string $status): string { return match (strtolower((string) $status)) { 'confirmed', 'ongoing' => 'is-info', 'completed' => 'is-success', 'waiting_payment', 'waiting_verification' => 'is-warning', 'cancelled' => 'is-danger', default => 'is-muted', }; }; $paymentStatusBadge = function (?string $status): string { return match (strtolower((string) $status)) { 'verified' => 'is-success', 'uploaded' => 'is-info', 'rejected' => 'is-danger', 'unpaid' => 'is-muted', default => 'is-muted', }; }; @endphp
Monitoring aktivitas booking lintas rental dengan status booking dan pembayaran yang mudah dipindai.
Total Booking
Booking Completed
Booking Ongoing
Booking Cancelled
Gunakan scroll horizontal jika tabel melebar agar data tetap terbaca nyaman.
| No | Booking Code | Rental | Customer | Kendaraan | Pickup Date | Return Date | Duration | Total Amount | Booking Status | Payment Status | Tanggal Booking |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ ($bookings->firstItem() ?? 1) + $index }} | {{ $booking->booking_code }} | {{ $booking->rentalCompany?->company_name ?? $booking->vehicle?->rentalCompany?->company_name ?? '-' }} | {{ $booking->customer_name ?: ($booking->customer?->name ?? '-') }} | {{ $booking->vehicle?->name ?? '-' }} | {{ $booking->pickup_date?->format('d M Y') ?? '-' }} | {{ $booking->return_date?->format('d M Y') ?? '-' }} | {{ $durationDays ? $durationDays . ' hari' : '-' }} | Rp {{ number_format((float) $booking->total_amount, 0, ',', '.') }} | {{ $booking->bookingStatusLabel() }} | {{ $booking->paymentStatusLabel() }} | {{ $booking->created_at?->format('d M Y H:i') ?? '-' }} |
Belum ada data laporan untuk filter yang dipilih.