@extends('layouts.app') @section('content') @if(empty($hotels) && isset($bookings))

Booking List

{{-- ── SUCCESS TOAST (generic) ── --}} @if(session('success'))
Success
{{ session('success') }}
@endif {{-- ── EMAIL TOAST ── --}} @if(session('emailsuccess'))
📧
Email Sent!
{{ session('emailsuccess') }}
@endif {{-- ── CANCEL TOAST ── --}} @if(session('cancelmsg'))
Booking Cancelled
{{ session('cancelmsg') }}
@endif {{-- ── ERROR TOAST ── --}} @if(session('error'))
⚠️
Booking Failed
{{ session('error') }}
@endif

Booking List

{{ count($bookings) }} Total
@forelse($bookings as $index => $booking) @empty @endforelse
S.No Booking ID Customer Destination Amount Status Actions
{{ $index + 1 }}
{{ $booking->booking_reference }}
{{ $booking->holder_name }} {{ $booking->holder_surname }}
{{ $booking->holder_email }}
{{ $booking->city_name }}@if($booking->country_name), {{ $booking->country_name }}@endif
{{ \Carbon\Carbon::parse($booking->checkin)->format('d M Y') }} → {{ \Carbon\Carbon::parse($booking->checkout)->format('d M Y') }}
{{ number_format($booking->receivable_price, 2) }} {{ $booking->currency }} @if($booking->status == 'confirmed') ✅ Confirmed @elseif($booking->status == 'ON_HOLD') ⏳ On Hold @else ❌ Cancelled @endif
No bookings found.

No bookings found for this filter.

{{-- Pagination info --}}

{{-- end .card --}}
{{-- end #kt_app_content_container --}}
{{-- end #kt_app_content --}}
{{-- end .d-flex.flex-column-fluid --}} {{-- ── VIEW DETAILS MODALS ── --}} @foreach($bookings as $booking) {{-- All policy data is pre-parsed in the controller, no @php block needed --}} @endforeach {{-- ── ADVANCED FILTER MODAL ── --}}
Advanced Filter
{{-- CHECK-IN DATE RANGE --}}
@endif {{-- end @if(empty($hotels) && isset($bookings)) --}} @endsection