@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 'hidden' => [ 'all_stores' => '0', // STD ALWAYS RESPONSE 'all_products' => '0' // STD ALWAYS RESPONSE ], 'groups' => [ [ 'name' => [ 'required' => true, 'type' => 'input-text', 'label' => __('form.label.name'), 'div-class' => 'col-md-5', 'placeholder' => __('form.placeholder.convention.name'), 'help' => __('form.help.convention.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.convention.code'), 'help-icon' => 'fa fa-barcode', ] ], [ 'rate' => [ 'required' => true, 'type' => 'input-text', 'label' => __('form.label.rate'), 'label-class' => 'col-md-3', 'div-class' => 'col-md-2', 'input-class' => 'centered', 'placeholder' => __('form.placeholder.convention.rate'), 'help' => __('form.help.convention.rate') ], 'all_products' => [ 'type' => 'input-switch', 'label' => __('form.label.products'), 'label-class' => 'col-md-1', 'div-class' => 'col-md-2', 'input-text-on' => __('form.button.all'), 'input-text-off' => __('form.button.selected'), 'help' => __('form.help.convention.all-products') ], 'all_stores' => [ 'type' => 'input-switch', 'label' => __('form.label.stores'), 'label-class' => 'col-md-1', 'div-class' => 'col-md-2', 'input-text-on' => __('form.button.all'), 'input-text-off' => __('form.button.selected'), 'help' => __('form.help.convention.all-stores') ], ], [ 'description' => [ 'type' => 'textarea', 'label' => __('form.label.notes'), ] ], ] ]) @push('ready') @endpush