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