@if($reservasi->pembayaran && $reservasi->pembayaran->snap_token) @endif

Booking Confirmation & Details

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

Reservation Summary

@php $statusClass = 'pill-expired'; if(in_array($reservasi->status, ['confirmed', 'checkedin'])) $statusClass = 'pill-confirmed'; elseif($reservasi->status == 'pending') $statusClass = 'pill-pending'; elseif($reservasi->status == 'cancelled') $statusClass = 'pill-cancelled'; @endphp {{ ucfirst($reservasi->status) }}
Accommodation
{{ $reservasi->kamar->tipe_kamar }}
{{ $reservasi->kamar->property->nama_property }} • {{ $reservasi->kamar->property->alamat ?? 'Prime Location' }}
Order Reference
{{ $reservasi->pembayaran->order_id ?? 'BOOKING-' . $reservasi->reservasi_id }}
Booked on {{ $reservasi->created_at->format('d M Y, H:i') }}
Check-in
{{ $reservasi->tanggal_checkin->format('d M Y') }}
Check-out
{{ $reservasi->tanggal_checkout->format('d M Y') }}
Duration & Quantity
{{ $reservasi->tanggal_checkin->diffInDays($reservasi->tanggal_checkout) }} Night(s) • {{ $reservasi->jumlah_kamar }} Room(s)
Guest Name {{ $reservasi->user->name }}
Email Address {{ $reservasi->user->email }}
@if($reservasi->promo_id)
Promo Code Applied {{ $reservasi->promo }} ({{ $reservasi->persentase_diskon }}% OFF)
Discount Amount -Rp {{ number_format(($reservasi->total_harga / (1 - $reservasi->persentase_diskon / 100)) - $reservasi->total_harga, 0, ',', '.') }}
@endif

Payment Information

@php $payStatusClass = 'pill-expired'; if($reservasi->pembayaran->status_pembayaran == 'paid') $payStatusClass = 'pill-paid'; elseif($reservasi->pembayaran->status_pembayaran == 'unpaid') $payStatusClass = 'pill-unpaid'; elseif($reservasi->pembayaran->status_pembayaran == 'failed') $payStatusClass = 'pill-failed'; @endphp Payment {{ ucfirst($reservasi->pembayaran->status_pembayaran) }}
Total Amount Due
Rp {{ number_format($reservasi->pembayaran->total_bayar ?? $reservasi->total_harga, 0, ',', '.') }}
@if($reservasi->pembayaran->status_pembayaran == 'paid') @endif
@if($reservasi->pembayaran->status_pembayaran == 'unpaid')
Pay at Location (Manual Payment)
Please present your booking reference (#{{ $reservasi->reservasi_id }}) to the receptionist upon check-in and complete your payment directly at the property using Cash, Credit Card (EDC), or Manual Bank Transfer.
@elseif($reservasi->pembayaran->status_pembayaran == 'paid')
Payment Confirmed. Thank you! Your booking is fully paid and confirmed. @if($reservasi->pembayaran->tanggal_bayar)
Payment Date: {{ $reservasi->pembayaran->tanggal_bayar->format('d M Y, H:i') }} WIB
@endif
@elseif($reservasi->pembayaran->status_pembayaran == 'failed')
Payment Unsuccessful. Please contact reception or customer service for assistance.
@endif
Back to Dashboard @if(in_array($reservasi->status, ['confirmed', 'pending']) && $reservasi->tanggal_checkin->isFuture()) Cancel Reservation @endif