@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' => [ [ 'status' => [ 'type' => 'select', 'label' => __('form.label.status'), 'div-class' => 'col-md-4', 'input-class' => 'select2me', 'placeholder' => __('form.placeholder.surplus.status'), 'help' => __('form.help.surplus.status'), 'help-icon' => 'fa fa-user', 'data' => App\Surplus::$status, ], '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.surplus.code'), 'help-icon' => 'fa fa-barcode', ] ], [ 'store_code' => [ 'required' => true, 'type' => 'input-text', 'label' => __('form.label.store'), 'div-class' => 'col-md-7', 'input-class' => 'select2x', 'input-attrs' => 'data-init="store_code:store_label"', 'placeholder' => __('form.placeholder.surplus.store'), 'help' => __('form.help.surplus.store') ], ], [ 'courier_code' => [ 'type' => 'input-text', 'label' => __('form.label.courier'), 'div-class' => 'col-md-7', 'input-class' => 'select2x', 'input-attrs' => 'data-init="courier_code:courier_label"', 'placeholder' => __('form.placeholder.surplus.courier'), 'help' => __('form.help.surplus.courier') ], ], [ 'notes' => [ 'type' => 'textarea', 'label' =>__('NOTES'), 'div-class' => 'col-md-7', ] ] ] ]) @push('ready') @endpush