@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'), 'div-class' => 'col-md-5', 'placeholder' => __('form.placeholder.store.name'), 'help' => __('form.help.store.name'), ], '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.store.code'), 'help-icon' => 'fa fa-barcode', ] ], [ 'address' => [ 'required' => true, 'type' => 'input-buttons', 'label' => __('form.label.address'), 'div-class' => 'col-md-5', 'placeholder' => __('form.placeholder.store.address'), 'help' => __('form.help.store.address'), 'buttons' => [ [ 'class' => 'address-view', 'icon' => 'fa fa-eye', 'title' => __('form.message.view-address'), ], ] ], 'vat_number' => [ 'required' => true, 'type' => 'input-text', 'label' => __('form.label.vat-number'), 'label-class' => 'col-md-1', 'div-class' => 'col-md-2', 'placeholder' => __('form.placeholder.store.vat-number'), 'help' => __('form.help.store.vat-number'), 'help-icon' => 'fa fa-barcode', ] ], [ 'cap' => [ 'type' => 'input-text', 'label' => __('form.label.cap'), 'div-class' => 'col-md-2', 'placeholder' => __('form.placeholder.store.cap'), 'help' => __('form.help.store.cap'), ], 'city' => [ 'type' => 'input-text', 'label' => __('form.label.city'), 'label-class' => 'col-md-2', 'div-class' => 'col-md-2', 'placeholder' => __('form.placeholder.store.city'), 'help' => __('form.help.store.city'), ] ], [ 'phone' => [ 'type' => 'input-text', 'label' => __('form.label.phone'), 'div-class' => 'col-md-2', 'placeholder' => __('form.placeholder.store.phone'), 'help' => __('form.help.store.phone'), ], 'fax' => [ 'type' => 'input-text', 'label' => __('form.label.fax'), 'label-class' => 'col-md-2', 'div-class' => 'col-md-2', 'placeholder' => __('form.placeholder.store.fax'), 'help' => __('form.help.store.fax'), ], ], [ 'email' => [ 'type' => 'input-text', 'label' => __('form.label.email'), 'div-class' => 'col-md-3', 'placeholder' => __('form.placeholder.store.email'), 'help' => __('form.help.store.email'), ], 'pec' => [ 'type' => 'input-text', 'label' => __('form.label.pec'), 'label-class' => 'col-md-1', 'div-class' => 'col-md-3', 'placeholder' => __('form.placeholder.store.pec'), 'help' => __('form.help.store.pec'), ] ], [ 'notes' => [ 'type' => 'textarea', 'label' => __('form.label.notes'), ] ] ] ]) @push('ready') @endpush