Welcome Back, {{ Auth::user()->name }}

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

Quick Actions

Account: {{ Auth::user()->email }}

My Stay Reservations

Total Bookings: {{ $reservasi->count() }}
@if($reservasi->count() > 0)
@foreach($reservasi as $r) @endforeach
Ref ID Accommodation Check-in Check-out Total Price Booking Status Payment Actions
#{{ $r->reservasi_id }}
{{ $r->kamar->tipe_kamar }}
{{ $r->kamar->property->nama_property }}
{{ $r->tanggal_checkin->format('d M Y') }} {{ $r->tanggal_checkout->format('d M Y') }} Rp {{ number_format($r->total_harga, 0, ',', '.') }} @php $statusClass = 'pill-expired'; if(in_array($r->status, ['confirmed', 'checkedin'])) $statusClass = 'pill-confirmed'; elseif($r->status == 'pending') $statusClass = 'pill-pending'; elseif($r->status == 'cancelled') $statusClass = 'pill-cancelled'; @endphp {{ ucfirst($r->status) }} @if($r->pembayaran) @php $payClass = 'pill-expired'; if($r->pembayaran->status_pembayaran == 'paid') $payClass = 'pill-paid'; elseif($r->pembayaran->status_pembayaran == 'unpaid') $payClass = 'pill-unpaid'; elseif($r->pembayaran->status_pembayaran == 'failed') $payClass = 'pill-failed'; @endphp {{ ucfirst($r->pembayaran->status_pembayaran) }} @else N/A @endif Details @if($r->pembayaran && $r->pembayaran->status_pembayaran == 'paid') Receipt @endif @if(in_array($r->status, ['confirmed', 'pending']) && $r->tanggal_checkin->isFuture()) Cancel @endif
@foreach($reservasi as $r)
{{ $r->kamar->tipe_kamar }}
{{ $r->kamar->property->nama_property }}
{{ ucfirst($r->status) }}
Reference #{{ $r->reservasi_id }}
Stay Dates {{ $r->tanggal_checkin->format('d M') }} - {{ $r->tanggal_checkout->format('d M Y') }}
Total Price Rp {{ number_format($r->total_harga, 0, ',', '.') }}
Payment {{ ucfirst($r->pembayaran->status_pembayaran ?? 'unpaid') }}
View Details @if($r->pembayaran && $r->pembayaran->status_pembayaran == 'paid') Receipt @endif
@endforeach
@else

No Reservations Found

You have not placed any room bookings yet. Explore our luxury accommodations and plan your next stay.

Browse Available Rooms
@endif