{{-- Detail Riwayat Booking --}} {{-- VOID / HANGUS BANNER --}} @if ($booking->status === 'void')
Booking Anda Dinyatakan Hangus
Anda berhak mengajukan refund sebesar 70% dari harga layanan ({{ 'Rp ' . number_format($booking->service_price * 0.7, 0, ',', '.') }}). @php $expiresAt = $booking->updated_at->copy()->addHours(24); @endphp
Batas waktu pengajuan: {{ $expiresAt->locale('id')->isoFormat('D MMM Y, HH:mm') }} WIB @if(now()->greaterThan($expiresAt)) Waktu habis @else Masih berlaku ({{ $expiresAt->diffForHumans() }}) @endif
@endif
Kode Booking
{{ $booking->booking_code }}
@php $b = $booking->status_badge; @endphp {{ $b['label'] }}
Paket
{{ $booking->service->name }}
Harga
{{ $booking->formatted_price }}
Tanggal
{{ $booking->schedule->date->locale('id')->isoFormat('D MMMM Y') }}
Jam
{{ substr($booking->schedule->time_slot, 0, 5) }} WIB
Nomor Antrian
#{{ str_pad($booking->queue_number, 2, '0', STR_PAD_LEFT) }}
Kendaraan
{{ $booking->vehicle_type }}
Plat Nomor
{{ $booking->vehicle_plate }}
@if ($booking->vehicle_color)
Warna
{{ $booking->vehicle_color }}
@endif @if ($booking->detailer)
Petugas Cuci
{{ $booking->detailer->name }}
@endif @if ($booking->notes)
Catatan
{{ $booking->notes }}
@endif @if ($booking->checked_in_at)
Check-In
{{ $booking->checked_in_at->format('d M Y, H:i') }} WIB
@endif @if ($booking->completed_at)
Selesai Pada
{{ $booking->completed_at->format('d M Y, H:i') }} WIB
@endif
{{-- Tombol Lihat Struk --}} @if (in_array($booking->status, ['completed', 'in_process', 'check_in', 'confirmed', 'late', 'void'])) @if ($booking->payment && $booking->payment->status === 'paid') Lihat Struk @endif @endif {{-- Tombol Ajukan Refund untuk 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 70% @endif @endif {{-- Booking Lagi --}} @if ($booking->status === 'completed') Booking Lagi @endif {{-- Bayar Sekarang --}} @if ($booking->payment && $booking->payment->status === 'unpaid') Bayar Sekarang @endif Kembali
{{-- Info Pembayaran --}} @if ($booking->payment)
Pembayaran
@php $pb = $booking->payment->status_badge; @endphp
Status {{ $pb['label'] }}
Total {{ $booking->payment->formatted_amount }}
Metode {{ $booking->payment->method_label }}
@if ($booking->payment->paid_at)
Waktu Bayar {{ $booking->payment->paid_at->format('d M Y, H:i') }}
@endif
@endif {{-- Info Refund --}} @if ($booking->refund)
Pengajuan Refund
@php $rb = $booking->refund->status_badge; @endphp
Status {{ $rb['label'] }}
Jumlah Refund {{ $booking->refund->formatted_amount }}
Bank {{ $booking->refund->bank_name }}
No. Rekening {{ $booking->refund->account_number }}
@if ($booking->refund->admin_notes && $booking->refund->status !== 'pending')
Catatan Admin: {{ $booking->refund->admin_notes }}
@endif
@endif