@extends('website.layouts.master', ['no_transparent_header' => false]) @section('css') @endsection @section('content')
{{-- searching --}}
@csrf
{{-- for small devices (mobiles) --}}
Destination

Click Here to search

{{-- for large devices --}} {{-- destination --}}
Destination
{{-- from date --}}
From
{{-- to date --}}
To
{{-- qty --}}
Travelers
{{-- submit --}}
{{-- for hotel search for small devices --}}
Search for the best hotels offers
@csrf
Destination
From
To

Room and Traveler
  • Rooms
    + -

  • Adult
    + -
  • Children
    + -
{{ csrf_field() }} @if($type !== "direct") {{-- the defulat search of the user --}} @else @endif
{{-- search filterion --}}
Search Filter
Delete All

@if (!empty($_GET['chains'])) @php $chains_filter = explode(',', $_GET['chains']); @endphp @endif
@foreach ($chains as $item)
name,$chains_filter)) checked @endif>
@endforeach
@if (!empty($_GET['client_rating'])) @php $client_rating = $_GET['client_rating']; @endphp @endif

@if (!empty($_GET['stars'])) @php $stars = $_GET['stars']; @endphp @endif

@if (!empty($_GET['features'])) @php $feature_filter = explode(',', $_GET['features']); @endphp @endif

@foreach ($features as $item) name,$feature_filter)) checked @endif> @endforeach
@if (!empty($_GET['tags'])) @php $tag_filter = explode(',', $_GET['tags']); @endphp @endif

@foreach ($tags as $item) slug,$tag_filter)) checked @endif> @endforeach
@if (!empty($_GET['hotel_type'])) @php $hotel_type = $_GET['hotel_type']; @endphp @endif

@if (!empty($_GET['price_from'])) @php $price_from = $_GET['price_from']; $price_to = $_GET['price_to']; @endphp @endif

From
-
To
@csrf @if($type !== "direct") {{-- the defulat search of the user --}} @else @endif @if (!empty($_GET['sort'])) @php $sort = $_GET['sort']; @endphp @else @php $sort = "lastest"; @endphp @endif {{-- sort search --}}

There are {{ $hotels->count() }} Hotels in this page

Search Filter
Search Filter
{{ csrf_field() }} @if($type !== "direct") {{-- the defulat search of the user --}} @else @endif

@if (!empty($_GET['chains'])) @php $chains_filter = explode(',', $_GET['chains']); @endphp @endif
@foreach ($chains as $item)
name,$chains_filter)) checked @endif>
@endforeach
@if (!empty($_GET['client_rating'])) @php $client_rating = $_GET['client_rating']; @endphp @endif

@if (!empty($_GET['stars'])) @php $stars = $_GET['stars']; @endphp @endif

@if (!empty($_GET['features'])) @php $feature_filter = explode(',', $_GET['features']); @endphp @endif

@foreach ($features as $item) name,$feature_filter)) checked @endif> @endforeach
@if (!empty($_GET['hotel_type'])) @php $hotel_type = $_GET['hotel_type']; @endphp @endif

@if (!empty($_GET['price_from'])) @php $price_from = $_GET['price_from']; $price_to = $_GET['price_to']; @endphp @endif

From
-
To
@if(count($hotels) > 0) {{-- ------ chooses hotel ------- --}}
@if($fav_hotel)
@if($fav_hotel->status == true) @php $url = route('patient_auth.unit_show', $fav_hotel->slug . '?slug=' . $fav_hotel->slug . '&search_hotel_input=' . $slug . '&from_ht_date=' . $from . '&to_ht_date=' . $to . '&room_qty=' . $room_qty. '&adult_qty=' . $adult_qty); @endphp @elseif($type === "direct") @php $url = route('patient_auth.unit_show', [$fav_hotel->slug, 'direct']); @endphp @else @php $url = route('patient_auth.unit_show', [$fav_hotel->slug, 'direct']); @endphp @endif
@if($fav_hotel->status == true)

Total Price for {{ $fav_hotel->nights }} Nights

{{ $fav_hotel->price }} L.E

Check Availability
@elseif($type === "direct")
Choose Date
@else

Special Offer

Ask for Price

@endif
{{ $fav_hotel->name }}

{{ $fav_hotel->address }}

{{ $fav_hotel->short_description }}

5.0
@endif
{{------- end of fav hotel -------}} @foreach ($hotels as $item)
@include('website.layouts.components.hotel_h')
@endforeach @else

Our offers has been ended

We are working to add new items soon
Discover the world more
@endif
{{ $hotels->appends(request()->input())->links() }}

@endsection @section('js') @endsection