@extends('layouts.master_backend') @section('content') @php $flag=0; $heading=lang_trans('btn_add'); $expAmenities = []; if(isset($data_row) && !empty($data_row)){ $flag=1; $heading=lang_trans('btn_update'); $expAmenities = explode(',', $data_row->amenities); } @endphp

{{$heading}} {{lang_trans('txt_room_type')}}


@if($flag==1) {{ Form::model($data_row,array('url'=>route('save-room-types'),'id'=>"room-type-form", 'class'=>"form-horizontal form-label-left", "files"=>true)) }} {{Form::hidden('id',null)}} @else {{ Form::open(array('url'=>route('save-room-types'),'id'=>"room-type-form", 'class'=>"form-horizontal form-label-left", "files"=>true)) }} @endif
{{Form::text('title',null,['class'=>"form-control col-md-7 col-xs-12", "id"=>"type_title", "required"=>"required"])}}
{{--
{{Form::text('short_code',null,['class'=>"form-control col-md-7 col-xs-12", "id"=>"type_short_code"])}}
--}}
{{Form::number('adult_capacity',null,['class'=>"form-control col-md-7 col-xs-12", "id"=>"adult_capacity", "required"=>"required"])}}
{{Form::number('kids_capacity',null,['class'=>"form-control col-md-7 col-xs-12", "id"=>"kids_capacity", "required"=>"required"])}}
{{Form::text('base_price',null,['class'=>"form-control col-md-7 col-xs-12", "id"=>"base_price", "required"=>"required"])}}
{{--
{{Form::number('order_num',null,['class'=>"form-control col-md-7 col-xs-12", "id"=>"order_num"])}}
--}}
@if($amenities_list) @foreach($amenities_list as $k => $val)
@endforeach @endif
{{ Form::select('status',config('constants.LIST_STATUS'),1,['class'=>'form-control']) }}
{{Form::file('room_type_images[]',['class'=>"form-control",'id'=>'room_type_images','multiple'=>true])}}
@if( $flag==1 && $data_row->attachments->count())
@if($data_row->attachments) @foreach($data_row->attachments as $k=>$val) @if($val->file!='') @endif @endforeach @else @endif
{{lang_trans('txt_sno')}}. {{lang_trans('txt_name')}}. {{lang_trans('txt_action')}}
{{$k+1}} {{$val->file}}
{{lang_trans('txt_no_file')}}
 
@endif
{{ Form::close() }}
@endsection