@if (isset($apartment)) {!! Form::model($apartment, array('url' => $type . '/' . $apartment->id, 'method' => 'put', 'files'=> true)) !!} @else {!! Form::open(array('url' => $type, 'method' => 'post', 'files'=> true)) !!} @endif
{!! Form::label('name', trans('apartments.name'), array('class' => 'control-label required')) !!}
{!! Form::text('name', null, array('class' => 'form-control', 'maxlength' => 100)) !!} {{ $errors->first('name', ':message') }}
{!! Form::label('is_active', trans('apartments.area_id'), array('class' => 'control-label required')) !!}
{!! Form::select('area_id', $areas , null, array('id'=>'status', 'class' => 'form-control')) !!} {{ $errors->first('area_id', ':message') }}
{!! Form::label('is_active', trans('apartments.apartment_type'), array('class' => 'control-label required')) !!}
{!! Form::select('apartment_type_id', $apartmentTypes , null, array('id'=>'status', 'class' => 'form-control')) !!} {{ $errors->first('apartment_type_id', ':message') }}
{!! Form::label('adults', trans('apartments.max_number_of_adults'), array('class' => 'control-label')) !!}
{!! Form::number('adults', null, array('class' => 'form-control', 'min' => 0, 'max' => 50)) !!} {{ $errors->first('adults', ':message') }}
{!! Form::label('childs', trans('apartments.max_number_of_childs'), array('class' => 'control-label')) !!}
{!! Form::number('childs', null, array('class' => 'form-control', 'min' => 0, 'max' => 50)) !!} {{ $errors->first('childs', ':message') }}
{{trans('table.back')}}
{!! Form::close() !!}