@if (isset($priceplan)) {!! Form::model($priceplan, array('url' => $type . '/' . $priceplan->id, 'method' => 'put', 'files'=> true)) !!} @else {!! Form::open(array('url' => $type, 'method' => 'post', 'files'=> true)) !!} @endif
{!! Form::label('name', trans('priceplans.name'), array('class' => 'control-label required')) !!}
{!! Form::text('name', null, array('class' => 'form-control')) !!} {{ $errors->first('name', ':message') }}
{!! Form::label('name', trans('priceplans.apartments'), array('class' => 'control-label required')) !!}
{{ $errors->first('apartments', ':message') }}
@foreach($apartments as $id => $name)
@endforeach
{!! Form::label('name', trans('priceplans.meal_plans'), array('class' => 'control-label required')) !!}
{{ $errors->first('meal_plans', ':message') }}
@foreach($meal_plans as $id => $name)
@endforeach
{{trans('table.back')}}
{!! Form::close() !!}