@extends('layouts.booking') @section('title', 'Available Rooms') @section('content')
Modify Search {{ \Carbon\Carbon::parse($criteria['check_in_date'])->format('M j') }} — {{ \Carbon\Carbon::parse($criteria['check_out_date'])->format('M j, Y') }} · {{ $criteria['adults'] }} adult(s)@if(($criteria['children'] ?? 0) > 0), {{ $criteria['children'] }} child(ren)@endif
@if($availability->isEmpty())

No rooms available for your selected dates.

@else
@foreach($availability as $row) @php $type = $row['room_type']; $quote = $row['quote']; @endphp
{{ $type->name }}

{{ $type->description ? Str::limit($type->description, 120) : 'Comfortable accommodation for your stay.' }}

Max {{ $type->max_occupants }} {{ $row['available_count'] }} available
Total stay
{{ $hotel?->currency ?? 'USD' }} {{ number_format($quote['total'] ?? $quote['subtotal'] ?? $type->base_rate, 2) }}
@endforeach
@endif @endsection