@extends('components.form', [
'id' => $id, // INPUT ID BIND
'resource' => $resource, // FORM RESOURCE TARGET
'static' => @$static, // NOT DINAMIC JUST ALWAYS INS
'table' => @$table, // RELATED TABLE ID
'groups' => [
[
'name' => [
'required' => true,
'type' => 'input-text',
'label' => __('form.label.name'),
'placeholder' => __('form.placeholder.category.name'),
'help' => __('form.help.category.name'),
]
],
[
'vat_tax' => [
'required' => true,
'type' => 'input-text',
'label' => __('form.label.vat-tax'),
'label-class' => 'col-md-3',
'div-class' => 'col-md-3',
'input-class' => 'centered',
'placeholder' => __('form.placeholder.category.vat-tax'),
'help' => __('form.help.category.vat-tax')
],
'code' => [
'required' => true,
'type' => 'input-text',
'label' => __('form.label.code'),
'label-class' => 'col-md-2',
'div-class' => 'col-md-3',
'value' => Utils::newCode($resource),
'placeholder' => __('form.placeholder.code'),
'help' => __('form.help.category.code'),
'help-icon' => 'fa fa-barcode',
]
],
[
'description' => [
'type' => 'textarea',
'label' => __('form.label.notes'),
]
],
]
])
@push('ready')
@endpush