@extends('layouts.master_backend') @section('content') @php $flag=0; $heading=lang_trans('btn_add'); if(isset($data_row) && !empty($data_row)){ $flag=1; $heading=lang_trans('btn_update'); } @endphp

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


@if($flag==1) {{ Form::model($data_row,array('url'=>route('save-room'),'id'=>"room-form", 'class'=>"form-horizontal form-label-left", "files"=>true)) }} {{Form::hidden('id',null)}} @else {{ Form::open(array('url'=>route('save-room'),'id'=>"room-form", 'class'=>"form-horizontal form-label-left", "files"=>true)) }} @endif
{{ Form::select('room_type_id',$roomtypes_list,null,['class'=>'form-control','placeholder'=>lang_trans('ph_select')]) }}
{{Form::text('room_name',null,['class'=>"form-control col-md-7 col-xs-12", "id"=>"room_name", "required"=>"required"])}}
{{Form::text('room_no',null,['class'=>"form-control col-md-7 col-xs-12", "id"=>"room_no", "required"=>"required"])}}
{{--
{{ Form::select('floor',getDynamicDropdownList('room_floor'),null,['class'=>'form-control','placeholder'=>lang_trans('ph_select')]) }}
--}} {{--
{{Form::number('order_num',null,['class'=>"form-control col-md-7 col-xs-12", "id"=>"order_num"])}}
--}}
{{ Form::select('status',config('constants.LIST_STATUS'),1,['class'=>'form-control']) }}
{{Form::file('room_images[]',['class'=>"form-control",'id'=>'room_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
@endsection