@extends('layouts.admin') @section('title', 'Detail Pembayaran') @section('page_title', 'Detail Pembayaran') @section('content')
Booking Code: {{ $booking->booking_code }}
Customer: {{ $booking->customer_name }}
Kendaraan: {{ $booking->vehicle->name }}

Total Pembayaran

Rp {{ number_format($booking->total_amount, 0, ',', '.') }}

Status Payment

{{ $booking->payment?->payment_status ?? '-' }}

Status Booking

{{ $booking->booking_status }}

Detail Booking

Nama Customer: {{ $booking->customer_name }}

Email: {{ $booking->customer_email }}

HP: {{ $booking->customer_phone }}

Pickup: {{ $booking->pickup_date->format('d M Y') }} {{ $booking->pickup_time ?? '' }}

Return: {{ $booking->return_date->format('d M Y') }}

Lokasi Pickup: {{ $booking->pickup_location }}

Lokasi Return: {{ $booking->return_location ?? '-' }}

Metode: {{ $booking->payment?->payment_method ?? '-' }}

Nominal: Rp {{ number_format($booking->total_amount, 0, ',', '.') }}

Status Bukti: {{ $booking->payment?->payment_status ?? '-' }}

Rejection Note: {{ $booking->payment?->rejection_note ?? '-' }}

Bukti Pembayaran

@if ($booking->payment?->proof_payment) @php $proofUrl = asset('storage/' . $booking->payment->proof_payment); @endphp @if (str_ends_with(strtolower($booking->payment->proof_payment), '.pdf'))

Lihat file PDF

@else Bukti Pembayaran @endif @else

Belum ada bukti pembayaran.

@endif
@csrf @method('PATCH')
@csrf @method('PATCH')
@error('rejection_note') {{ $message }} @enderror
@endsection