@foreach ($userBookings as $booking)

{{__('messages.Booking ID')}}

{{ $booking['id'] }}

{{__('messages.Check-in')}}

{{ \Carbon\Carbon::parse($booking['check_in_date'])->format('j M, Y') }}

{{__('messages.Check-out')}}

{{ \Carbon\Carbon::parse($booking['check_out_date'])->format('j M, Y') }}

{{__('messages.Nights')}}

{{ $booking['number_of_nights'] }}

{{__('messages.Guests')}}

{{ $booking['number_of_guests'] }}

{{__('messages.Total')}}

${{ number_format($booking['total_price'], 2) }}

@php $status = strtolower($booking['status']); $colors = match ($status) { 'confirmed' => 'bg-green-100 text-green-800 border-green-200', 'approved' => 'bg-green-100 text-green-800 border-green-200', 'pending' => 'bg-yellow-100 text-yellow-800 border-yellow-200', 'cancelled' => 'bg-red-100 text-red-800 border-red-200', 'rejected' => 'bg-red-100 text-red-800 border-red-200', default => 'bg-gray-100 text-gray-800 border-gray-200', }; @endphp {{ __('messages.' . $status) }}

{{ $booking['payment_method'] }}

{{__('messages.Booking Details')}}

@foreach ($booking['details'] as $detail)

{{__('messages.Type')}}

{{ __('messages.' . $detail['type']) }}

@if ($detail['type'] == 'Room')

{{__('messages.Room Number')}}

{{ $detail['number'] }}

@endif @if ($detail['type'] == 'Room' && $detail['offer_name'])

{{__('messages.Offer')}}

{{ $detail['offer_name'] }}

@endif @if ( $detail['price'])

{{__('messages.Price')}}

${{ $detail['price'] }}

@endif
@endforeach
@endforeach