@if (count($featured_contents) < 1 && count($currentPageData) < 1)
{{ __('NO HOTEL FOUND') }}
@else
@foreach ($featured_contents as $hotel_content)
@endforeach @foreach ($currentPageData as $hotel_content)
Hotel
@if (Auth::guard('web')->check()) @php $user_id = Auth::guard('web')->user()->id; $checkWishList = checkHotelWishList($hotel_content->id, $user_id); @endphp @else @php $checkWishList = false; @endphp @endif
@for ($i = 0; $i < $hotel_content->stars; $i++) @endfor
{{ $hotel_content->categoryName }} @php $city = null; $State = null; $country = null; if ($hotel_content->city_id) { $city = App\Models\Location\City::Where('id', $hotel_content->city_id)->first()->name; } if ($hotel_content->state_id) { $State = App\Models\Location\State::Where('id', $hotel_content->state_id)->first()->name; } if ($hotel_content->country_id) { $country = App\Models\Location\Country::Where('id', $hotel_content->country_id)->first()->name; } @endphp

{{ __('Total Room') . ':' }} {{ totalHotelRoom($hotel_content->id) }}

  • {{ @$city }}@if (@$State) , {{ $State }} @endif @if (@$country) , {{ $country }} @endif
  • {{ number_format($hotel_content->average_rating, 2) }} ({{ totalHotelReview($hotel_content->id) }} {{ totalHotelReview($hotel_content->id) > 1 ? __('Reviews') : __('Review') }})
@php $amenities = json_decode($hotel_content->amenities); $totalAmenities = count($amenities); $displayCount = 5; @endphp
    @foreach ($amenities as $index => $amenitie) @php if ($index >= $displayCount) { break; } $amin = App\Models\Amenitie::find($amenitie); @endphp
  • @endforeach @if ($totalAmenities > $displayCount)
  • (+{{ $totalAmenities - $displayCount }})
    @foreach ($amenities as $index => $amenitie) @php if ($index < $displayCount) { continue; } $amin = App\Models\Amenitie::find($amenitie); @endphp @endforeach
  • @endif
@endforeach @if ($hotel_contentss->count() / $perPage > 1) @endif
@endif