@extends('layouts.master_frontend') @section('content') @php $selectedRoomNumbers = []; if($cart_list){ foreach ($cart_list as $key => $val) { $selectedRoomNumbers[] = $val->room_id; } } @endphp

Searched Rooms

{{count($room_list)}} Results
{{-- Book Selected Rooms --}}
@if(count($room_list)) @foreach($room_list as $k=>$room) @php $roomImg = ($room->attachments && count($room->attachments)) ? $room->attachments[0]['file'] : null; $inCart = in_array($room->id, $selectedRoomNumbers) ? true : false; $isBooked = in_array($room->id, $booked_rooms) ? true : false; $totaAmenities = []; if($room->room_type && $room->room_type->amenities){ $totaAmenities = explode(',', $room->room_type->amenities); } @endphp

{{$room->room_name}}

{{($room->room_type) ? $room->room_type->title : ''}}

{{$settings['currency_symbol']}}{{numberFormat($room->room_type->base_price)}}

per night
@if($room->room_type && $room->room_type->amenities) @php $amenities = explode(',', $room->room_type->amenities); @endphp
    @foreach($amenities as $val) @php $amenitiesInfo = getAmenitiesById($val); @endphp
  • {{$amenitiesInfo->name}}
  • @endforeach
@endif
@if($isBooked) @elseif(!Auth::User()) Select @else @endif
@endforeach @endif
@endsection