@extends('guest.layouts.auth') @section('title', 'My Bookings & Stays | Kevron Suites & Apartments') @section('dashboard_content')

My Bookings & Stays

Explore your visual history, upcoming itineraries, and checked-in suites.

@if($bookings->isEmpty())

No Stays Linked

You do not have any active or confirmed stays linked to this account. You can link one using the stay linking form on your dashboard overview!

@else
@foreach($bookings as $booking)
REF: {{ $booking->booking_reference }}

{{ $booking->apartmentType->name }}

@php $badgeClass = 'bg-slate-50 border-slate-200 text-slate-850'; if($booking->status === 'checked_in') $badgeClass = 'bg-emerald-50 border-emerald-200 text-emerald-800'; elseif($booking->status === 'confirmed') $badgeClass = 'bg-blue-50 border-blue-200 text-blue-800'; elseif($booking->status === 'completed') $badgeClass = 'bg-slate-100 border-slate-300 text-slate-800'; elseif($booking->status === 'cancelled') $badgeClass = 'bg-red-50 border-red-200 text-red-800'; @endphp {{ str_replace('_', ' ', $booking->status) }}
Check-In {{ Carbon\Carbon::parse($booking->check_in_date)->format('M d, Y') }}
Check-Out {{ Carbon\Carbon::parse($booking->check_out_date)->format('M d, Y') }}
Guests {{ $booking->guests_count }} Guests
Price Nightly ₦{{ number_format($booking->apartmentType->base_price_nightly, 0) }}
Total Charge ₦{{ number_format($booking->total_price, 2) }}
View stay details
@endforeach
@endif
@endsection