@extends('frontend.layouts.master') @section('title', ___('frontend.hotel_booking') . ' — ' . (settings('name') ?: 'Travelio')) @section('meta', ___('frontend.hotel_meta_description')) @section('page', 'hotels') @section('content') @include('frontend.components.page-hero', [ 'title' => ___('frontend.hotel_booking'), 'subtitle' => ___('frontend.hotel_booking_subtitle'), 'crumbs' => [___('frontend.hotel_booking') => null], ])
{{-- Searches our real hotel inventory; the enquiry form handles the booking. --}}
@foreach($cities as $city)
{{-- Dates ride along to the Book links, so the enquiry arrives with the stay filled in. --}}
{{-- Live rates (Amadeus) — only once Settings → Flight API holds Amadeus credentials. --}} @if($liveHotels && $liveCities->isNotEmpty())

{{ ___('frontend.live_hotel_rates') }}

{{ ___('frontend.live_hotel_rates_copy') }}

@endif
{{ ___('frontend.featured_stays') }}

{{ request('city') ? str_replace(':query', request('city'), ___('frontend.hotels_matching')) : ___('frontend.popular_hotels_resorts') }}

@forelse($hotels as $hotel) @php $img = media_url($hotel->image, placeholder_image('card')); $stars = max(0, min(5, (int) $hotel->category)); @endphp
{{ $hotel->name }} @if($stars) @for($s = 0; $s < $stars; $s++)@endfor @endif
{{ $hotel->city }}{{ $hotel->country ? ', ' . $hotel->country : '' }}

{{ $hotel->name }}

@if(multiVendorEnabled() && $hotel->vendor)
{{ ___('vendor.Sold by') }} {{ $hotel->vendor->company_name }}
@endif @if($hotel->description)

{{ Str::limit($hotel->description, 90) }}

@endif
{{ currency_symbol() }}{{ number_format($hotel->price_per_night) }} {{ ___('frontend.per_night_suffix') }}
{{ ___('frontend.book') }}
@empty

{{ request('city') || request('stars') ? ___('frontend.no_hotels_matched') : ___('frontend.no_hotels_published') }}

{{ ___('frontend.tell_us_where_stay') }}
@endforelse
@endsection @if($liveHotels && $liveCities->isNotEmpty()) @push('scripts') {{-- Copy arrives via data-* attributes so it stays translatable; offers are the rows HotelSearchService::search() returns. Booking goes through the enquiry form — the website never takes a card for the hotel. --}} @endpush @endif