@extends('layout.ext-app') @section('title', 'Find a stay') @section('content')

Find a place to stay

@include('public._stayForm', ['action' => '/search'])
@php($stayQuery = http_build_query(array_filter(['check_in' => $stay['check_in'], 'check_out' => $stay['check_out'], 'guests' => $stay['guests'], 'rooms' => $stay['rooms']]))) @if(!$error && $location && $featured->isNotEmpty())

Featured stays in {{ $location }}

@foreach($featured as $item) @php($property = $item['property']) @endforeach
@endif @if($error)
{{ $error }}
@elseif($searched)

{{ count($results) }} {{ count($results) === 1 ? 'property' : 'properties' }} available{{ $location ? ' in '.$location : '' }} · prices for {{ $stay['rooms'] }} room(s), whole stay, in {{ $visitorCurrency->code }}

@forelse($results as $result) @php($property = $result['property'])
@if($result['photo']) {{ $property->property_name }} @else
@endif

{{ $property->property_name }}

{{ $property->city?->city_name }}, {{ $property->city?->district?->district_name }}
@if($property->categories->isNotEmpty())
{{ $property->categories->pluck('name')->join(' ยท ') }}
@endif
from
{{ $visitorCurrency->code }} {{ number_format($result['price'], 2) }}
{{ $visitorCurrency->code }} {{ number_format($result['per_night'], 2) }} per night, per room
See rooms
@empty
@if($filters['active']) No properties match these filters for these dates. Try other types of stay, a wider price range or other dates. @else No properties are available for these dates. Try other dates or another area. @endif
@endforelse @endif
@stop @section('styles') @include('public._styles') @stop @section('scripts') @include('public._scripts') @stop