@if (count($featured_contents) < 1 && count($currentPageData) < 1)
{{ __('NO ROOM FOUND') }}
@else
@foreach ($featured_contents as $room)
@endforeach @foreach ($currentPageData as $room)
{{ __('Room Image') }} @if (Auth::guard('web')->check()) @php $user_id = Auth::guard('web')->user()->id; $checkWishList = checkroomWishList($room->id, $user_id); @endphp @else @php $checkWishList = false; @endphp @endif
@for ($i = 0; $i < $room->stars; $i++) @endfor
@php $city = null; $State = null; $country = null; if ($room->city_id) { $city = App\Models\Location\City::Where('id', $room->city_id)->first()->name; } if ($room->state_id) { $State = App\Models\Location\State::Where('id', $room->state_id)->first()->name; } if ($room->country_id) { $country = App\Models\Location\Country::Where('id', $room->country_id)->first()->name; } @endphp
  • {{ @$city }}@if (@$State) , {{ $State }} @endif @if (@$country) , {{ $country }} @endif
  • {{ number_format($room->average_rating, 2) }} ({{ totalRoomReview($room->id) }} {{ totalRoomReview($room->id) > 1 ? __('Reviews') : __('Review') }})
  • @php $amenities = json_decode($room->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
      @php $hour = request()->input('hour'); $query = App\Models\HourlyRoomPrice::where('room_id', $room->id) ->where('hourly_room_prices.price', '!=', null) ->join('booking_hours', 'hourly_room_prices.hour_id', '=', 'booking_hours.id') ->orderBy('booking_hours.serial_number') ->select('hourly_room_prices.*', 'booking_hours.serial_number'); if (!is_null($hour)) { $query->where('hourly_room_prices.hour', '<=', $hour); } $prices = $query->get(); @endphp @foreach ($prices as $price)
    • {{ symbolPrice($price->price) }} {{ $price->hour }} {{ __('Hrs') }}
    • @endforeach
    @endforeach
    @if ($room_contents->count() / $perPage > 1) @endif @endif