@extends('components.form', [
'id' => $id, // INPUT ID-NAME BIND
'resource' => $resource, // FORM RESOURCE TARGET
'static' => @$static, // NOT DINAMIC JUST ALWAYS INS
'table' => @$table, // RELATED TABLE ID
'groups' => [
[
'store_code' => [
'required' => true,
'type' => 'input-text',
'label' => __('form.label.store'),
'div-class' => 'col-md-5',
'input-class' => 'select2x',
'input-attrs' => 'data-init="store_code:store_label"',
'placeholder' => __('form.placeholder.details.store'),
'help' => __('form.help.details.store'),
],
'code' => [
'required' => true,
'type' => 'input-text',
'label' => __('form.label.code'),
'label-class' => 'col-md-1',
'div-class' => 'col-md-2',
'value' => Utils::newCode($resource),
'placeholder' => __('form.placeholder.code'),
'help' => __('form.help.details.code'),
'help-icon' => 'fa fa-barcode',
]
],
[
'deliver_from' => [
'required' => true,
'type' => 'timepicker',
'label' => __('form.label.from'),
'label-class' => 'col-md-3',
'div-class' => 'col-md-3',
'input-class' => 'centered',
'placeholder' => __('form.placeholder.details.from'),
'help' => __('form.help.details.from'),
'help-icon' => 'fa fa-clock',
],
'deliver_until' => [
'required' => true,
'type' => 'timepicker',
'label' => __('form.label.until'),
'label-class' => 'col-md-1',
'div-class' => 'col-md-3',
'input-class' => 'centered',
'placeholder' => __('form.placeholder.details.until'),
'help' => __('form.help.details.until'),
'help-icon' => 'fa fa-clock',
],
],
[
'deliver_ref' => [
'type' => 'input-text',
'label' => __('form.label.receiver'),
'div-class' => 'col-md-7',
'placeholder' => __('form.placeholder.details.receiver'),
'help' => __('form.help.details.receiver'),
]
],
[
'deliver_address' => [
'type' => 'input-buttons',
'label' => __('form.label.address'),
'div-class' => 'col-md-7',
'placeholder' => __('form.placeholder.details.address'),
'help' => __('form.help.details.address'),
'buttons' => [
[
'class' => 'address-view',
'icon' => 'fa fa-eye',
'title' => __('form.message.view-address'),
],
[
'class' => 'address-set',
'icon' => 'fa fa-globe',
'attrs' => 'data-target="{{ $id }}" data-field="deliver_address"',
'title' => __('form.message.set-address'),
],
]
]
],
[
'deliver_lat' => [
'required' => true,
'type' => 'input-text',
'label' => __('form.label.latitude'),
'label-class' => 'col-md-3',
'div-class' => 'col-md-2',
'input-class' => 'centered',
'placeholder' => __('form.placeholder.details.latitude'),
'help' => __('form.help.details.latitude'),
'help-icon' => 'fa fa-globe',
'hclass' => 'latitude',
],
'deliver_long' => [
'required' => true,
'type' => 'input-text',
'label' => __('form.label.longitude'),
'label-class' => 'col-md-2',
'div-class' => 'col-md-2',
'input-class' => 'centered',
'placeholder' => __('form.placeholder.details.longitude'),
'help' => __('form.help.details.longitude'),
'help-icon' => 'fa fa-globe',
'hclass' => 'longitude',
],
],
[
'billing_address' => [
'type' => 'input-text',
'label' => __('form.label.billing'),
'div-class' => 'col-md-7',
'placeholder' => __('form.placeholder.details.billing'),
'help' => __('form.help.details.billing'),
]
],
[
'notes' => [
'type' => 'textarea',
'label' => __('form.label.notes'),
]
]
]
])
@push('ready')
@endpush