@extends('layouts.app') @section('content') @php $allHotels = $allHotels ?? []; $SelectedData = $SelectedData ?? []; $cities = $cities ?? []; $FiltersData = $FiltersData ?? []; $defaulthotels = $defaulthotels ?? null; $recommendedHotels = $recommendedHotels ?? collect(); @endphp {{-- Page-specific styles only — search bar CSS already comes from the partial --}}
@include('hotels.partials.hotel-card') @if(count($allHotels) > 0)
{{ count($allHotels) }} Hotels Found
@csrf @php $rateType = $SelectedData['rate_type'] ?? 'concise'; @endphp
@endif
@if(count($SelectedData) > 0 && count($allHotels) == 0)
No Hotels Found

No Hotels Found

We couldn't find any hotels matching your search. Try modifying the filters, changing the dates, or exploring nearby areas.

@endif @if(count($allHotels))
Filters
Preferences
@foreach(['Free Cancellation','Breakfast Included','Top Rated'] as $opt)
@endforeach
Star Rating
@foreach([5,4,3,2,1] as $star)
@endforeach
Property Type
@foreach(['0' => 'Hotels', '3' => 'Apartments / Aparthotel'] as $val => $lbl)
@endforeach
Price Range
Facilities
@foreach(['Free WiFi','Free Self Parking','Free Dinner'] as $fac)
@endforeach
@forelse($allHotels as $hotel)
{{ $hotel['name'] ?? '' }}
{{ $hotel['name'] ?? '' }} {!! str_repeat('', (int)($hotel['star_rating'] ?? 3)) !!}
{{ $hotel['address'] ?? '' }}
@if(!empty($hotel['boarding_details'])) {{ $hotel['boarding_details']['text'] }} @elseif(!empty($hotel['mealPlan'])) {{ $hotel['mealPlan']['text'] }} @endif @if(!empty($hotel['property_type'])) {{ $hotel['property_type'] }} @endif @if(!empty($hotel['facilities']))
@foreach($hotel['facilities'] as $facility) {{ $facility['name'] }} @endforeach
@endif @if(!empty($hotel['room_description']))
Recommended Room
{!! $hotel['room_description'] !!}
@endif
@if(!empty($hotel['Refund_Status']))
{{ $hotel['Refund_Status']['text'] }}
@endif @if(!empty($hotel['promo_text']))
{{ $hotel['promo_text'] }}
Limited Time Offer
@if(!empty($hotel['original_price']) && round((float)$hotel['original_price'], 2) > round((float)$hotel['display_price'], 2))
@if(strtolower($hotel['currency'] ?? 'inr') == 'inr') ₹ @endif {{ number_format($hotel['original_price'] ?? 0, 2) }} {{ $hotel['currency'] ?? 'INR' }}
@endif @endif
@if(strtolower($hotel['currency'] ?? 'inr') == 'inr') ₹ @endif {{ number_format($hotel['display_price'] ?? 0, 2) }} {{ $hotel['currency'] ?? 'INR' }}
@if(($hotel['taxAmount'] ?? 0) > 0)
+ @if(strtolower($hotel['currency'] ?? 'inr') == 'inr') ₹ @endif {{ number_format($hotel['taxAmount'] ?? 0, 2) }} taxes & fees
@endif
@empty
No hotels available.
@endforelse @if($recommendedHotels->count()) @endif
@endif
{{-- Page-specific JS only — jQuery, ALL_COUNTRIES, nationality/calendar/guest/recent-search logic all come from the partial already included above --}} @endsection