@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' => [ [ 'completable' => [ 'type' => 'input-hidden' // CHECK COMPLETABLE ], 'name' => [ 'required' => true, 'type' => 'input-text', 'label' => __('form.label.name'), 'div-class' => 'col-md-5', 'value' => Utils::newName($resource), 'placeholder' => __('form.placeholder.order.name'), 'help' => __('form.help.order.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.order.code'), 'help-icon' => 'fa fa-barcode', ] ], [ 'status' => [ 'type' => 'select', 'label' => __('form.label.status'), 'div-class' => 'col-md-7', 'input-class' => 'select2me', 'placeholder' => __('form.placeholder.order.status'), 'help' => __('form.help.order.status'), 'help-icon' => 'fa fa-user', 'data' => Utils::translateConfig('options.order.status', 'const.courier.order.status') ] ], [ '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.order.store'), 'help' => __('form.help.order.store') ], ], [ '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') ], ], [ 'notes' => [ 'type' => 'textarea', 'label' =>__('NOTES'), 'div-class' => 'col-md-8', ] ] ] ]) @push('ready') @endpush