@if (count($errors) > 0)
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
@if(Session::has('flash_message'))
{{ Session::get('flash_message') }}
@endif
{!! Form::open(array('url' => array('admin/hotels/addroom'),'class'=>'form-horizontal padding-15','name'=>'category_form','id'=>'category_form','role'=>'form','enctype' => 'multipart/form-data')) !!}
Room Facilities
@php
$facilities = [
'Tea Coffee Maker' => 'tea_coffee_maker',
'Television' => 'television',
'Refrigerator' => 'refrigerator',
'Iron & Ironing Board' => 'iron_ironing_board',
'Shaving Kit' => 'shaving_kit',
'Hair Dryer' => 'hair_dryer',
'Dental Kit' => 'dental_kit',
'Mini Bar' => 'mini_bar',
'Phone Near Toilet Seat' => 'phone_near_toilet_seat',
'In Room Service' => 'in_room_service',
'Wheelchair' => 'wheelchair',
'Room for Physically Challenged' => 'room_physical_challenge'
];
@endphp
@foreach($facilities as $label => $key)
@endforeach
@if(isset($roomFacility->other_service))
@php
$otherService = $roomFacility->other_service;
@endphp
@foreach($roomFacility->getAmentity as $key => $otherServ)
@php
$isChecked = in_array($otherServ->id, $otherService['name']);
// Find matching index (so that the correct type is applied)
$index = array_search($otherServ->id, $otherService['name']);
$selectedType = $index !== false ? $otherService['type'][$index] : null;
@endphp
@endforeach
@endif