2020-01-21 17:05:37 +03:00
|
|
|
{!! 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
|
|
|
|
]) !!}
|
|
|
|
<div class="row">
|
|
|
|
{{ Form::textGroup('name', trans('general.name'), 'tag') }}
|
|
|
|
|
2020-03-09 11:57:06 +03:00
|
|
|
{{ Form::selectGroup('tax_id', trans_choice('general.taxes', 1), 'percentage', $taxes, setting('default.tax'), []) }}
|
2020-01-21 17:05:37 +03:00
|
|
|
|
|
|
|
{{ 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') }}
|
|
|
|
|
2020-03-09 11:57:06 +03:00
|
|
|
{{ Form::selectGroup('category_id', trans_choice('general.categories', 1), 'folder', $categories, null) }}
|
2020-01-21 17:05:37 +03:00
|
|
|
|
|
|
|
{!! Form::hidden('enabled', '1', []) !!}
|
|
|
|
</div>
|
|
|
|
{!! Form::close() !!}
|