{!! Form::open([ 'id' => 'form-create-category', '@submit.prevent' => 'onSubmit', '@keydown' => 'form.errors.clear($event.target.name)', 'role' => 'form', 'class' => 'form-loading-button', 'route' => 'categories.store', 'novalidate' => true ]) !!}
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }} @stack('color_input_start')
{!! Form::label('color', trans('general.color'), ['class' => 'form-control-label']) !!}
{!! Form::text('color', '#55588b', ['v-model' => 'form.color', '@input' => 'onChangeColorInput', 'id' => 'color', 'class' => 'form-control color-hex', 'required' => 'required']) !!}
{!! $errors->first('color', '

:message

') !!}
@stack('color_input_end') {!! Form::hidden('type', $type, []) !!} {!! Form::hidden('enabled', '1', []) !!}
{!! Form::close() !!}