@if (isset($option)) {!! Form::model($option, array('url' => $type . '/' . $option->id, 'method' => 'put', 'files'=> true)) !!} @else {!! Form::open(array('url' => $type, 'method' => 'post', 'files'=> true)) !!} @endif
{!! Form::label('type', trans('option.category'), array('class' => 'control-label required')) !!}
{!! Form::select('category', $categories, null, array('id'=>'category', 'class' => 'form-control select2')) !!} {{ $errors->first('category', ':message') }}
{!! Form::label('title', trans('option.title'), array('class' => 'control-label required')) !!}
{!! Form::text('title', null, array('class' => 'form-control')) !!} {{ $errors->first('title', ':message') }}
{!! Form::label('value', trans('option.value'), array('class' => 'control-label required')) !!}
{!! Form::text('value', null, array('class' => 'form-control')) !!} {{ $errors->first('value', ':message') }}
{{trans('table.back')}}
{!! Form::close() !!}