{!! Form::open([ 'route' => 'items.store', 'id' => 'item', '@submit.prevent' => 'onSubmit', '@keydown' => 'form.errors.clear($event.target.name)', 'role' => 'form', 'class' => 'form-loading-button', 'novalidate' => true ]) !!}
{{ Form::textGroup('name', trans('general.name'), 'tag') }} {{ Form::selectAddNewGroup('tax_id', trans_choice('general.taxes', 1), 'percentage', $taxes, setting('default.tax'), ['path' => route('modals.taxes.create')]) }} {{ Form::textareaGroup('description', trans('general.description')) }} {{ Form::textGroup('sale_price', trans('items.sales_price'), 'money-bill-wave') }} {{ Form::textGroup('purchase_price', trans('items.purchase_price'), 'money-bill-wave-alt') }} {{ Form::selectAddNewGroup('category_id', trans_choice('general.categories', 1), 'folder', $categories, null, ['required' => 'required', 'path' => route('modals.categories.create') . '?type=item']) }} {!! Form::hidden('enabled', '1', []) !!}
{!! Form::close() !!}