@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' => [
[
'deliver_at' => [
'type' => 'datepicker',
'label' => __('form.label.deliver-on'),
'div-class' => 'col-md-3',
'input-class' => 'centered',
'placeholder' => __('label.message.as-soon-as-possible'),
'help' => __('form.help.order.deliver-on'),
'help-icon' => 'fa fa-clock',
],
'code' => [
'required' => true,
'type' => 'input-text',
'label' => __('form.label.code'),
'label-class' => 'col-md-1',
'div-class' => 'col-md-3',
'value' => Utils::newCode($resource),
'placeholder' => __('form.placeholder.code'),
'help' => __('form.help.order.code'),
'help-icon' => 'fa fa-barcode',
]
],
[
'detail_code' => [
'required' => true,
'type' => 'input-text',
'label' => __('form.label.details'),
'div-class' => 'col-md-7',
'input-class' => 'select2x',
'input-attrs' => 'data-init="detail_code:detail_label"',
'placeholder' => __('form.placeholder.order.details'),
'help' => __('form.help.order.details')
],
],
[
'name' => [
'type' => 'input-text',
'label' => __('form.label.name'),
'value' => __('label.new.order').'( '.__('label.message.as-soon-as-possible').' )',
'div-class' => 'col-md-8',
'placeholder' => __('form.placeholder.order.name'),
'help' => __('form.help.order.name'),
],
],
[
'notes' => [
'type' => 'textarea',
'label' =>__('NOTES'),
'div-class' => 'col-md-8',
]
]
]
])
@push('ready')
@endpush