@extends('layout.ext-app') @section('content')

{{ $property->property_name }}

@if($property->categories->isNotEmpty())

{{ $property->categories->pluck('name')->join(' · ') }}

@endif

{{ $property->address }} · {{ $property->city?->city_name }}, {{ $property->city?->district?->district_name }} @if($property->mapUrl()) · Open in Google Maps @endif

@if($photos->isNotEmpty()) {{-- Photo categories (entrance, lobby, pool...): each opens the viewer with only those photos --}} @php($photoTags = collect(\App\Models\Photo::tagsFor('property'))->filter(fn ($label, $key) => $photos->contains('tag', $key))) @if($photoTags->count() > 1)
@foreach($photoTags as $key => $label) @endforeach
@endif @endif
Cancellation policy
{{ $cancellationSummary }}
@if($amenities->isNotEmpty())
Amenities
@foreach(\App\Models\Amenity::grouped('property', $amenities) as $category => $items)
{{ $category }}: {{ $items->pluck('amenity')->join(' · ') }}
@endforeach
@endif @if($property->mapEmbedUrl())
Location
Open in Google Maps for directions
@endif
@include('public._stayForm', ['action' => '/stay/'.$property->id])
@if($error)
{{ $error }}
@elseif(empty($offers))
No rooms are available for these dates. Please try other dates.
@else

Prices for {{ $stay['rooms'] }} room(s), {{ $stay['check_in'] }} to {{ $stay['check_out'] }}, in {{ $visitorCurrency->code }}

@foreach($offers as $offer) @php($gallery = $roomPhotos->get($offer['roomType']->id, collect()))
@if($gallery->isNotEmpty())
@foreach($gallery as $photo) first) hidden @endunless> {{ $offer['roomType']->roomType }} @endforeach @if($gallery->count() > 1) {{ $gallery->count() }} photos
@foreach($gallery->slice(1, 4) as $photo) @endforeach
@endif
@endif

{{ $offer['roomType']->roomType }}

Up to {{ $offer['roomType']->max_occupancy }} guests · {{ $offer['available'] }} room(s) left

@php($amenityGroups = $roomAmenities->get($offer['roomType']->id, collect())) @if($amenityGroups->isNotEmpty()) @php($allRoomAmenities = $amenityGroups->collapse())

{{ $allRoomAmenities->take(6)->pluck('amenity')->join(' · ') }}

All room amenities ({{ $allRoomAmenities->count() }})
@foreach($amenityGroups as $category => $items)
{{ $category }}
    @foreach($items as $item)
  • {{ $item->amenity }}
  • @endforeach
@endforeach
@endif

Choose the number of guests and a meal plan below.

@foreach($offer['options'] as $option) @php($quote = $option['quote']) @endforeach
GuestsMealsPrice
{{ $option['occupancy']->occupancy_name }} ({{ $option['occupancy']->occupancy }}) {{ $option['mealType']->mealType }} @if($quote['discount_total'] > 0) {{ number_format($quote['subtotal'], 2) }}
{{ collect($quote['discounts'])->pluck('description')->join(', ') }}
@endif {{ $visitorCurrency->code }} {{ number_format($quote['total'], 2) }}
Book
@endforeach @endif
@stop @section('styles') @include('public._styles') @stop @section('scripts') @include('public._scripts') @stop