@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' => [ [ 'order_code' => [ 'required' => true, 'type' => 'input-text', 'label' => __('form.label.order'), 'div-class' => 'col-md-6', 'input-class' => 'select2x', 'input-attrs' => 'data-init="order_code:order_label"', 'placeholder' => __('form.placeholder.payment.order'), 'help' => __('form.help.payment.order') ], '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.payment.code'), 'help-icon' => 'fa fa-barcode', ] ], [ 'cash' => [ 'type' => 'input-text', 'label' => __('form.label.cash'), 'label-class' => 'col-md-3', 'div-class' => 'col-md-3', 'placeholder' => __('form.placeholder.payment.cash'), 'help' => __('form.help.payment.cash'), 'value' => '0.00', ], 'cheque' => [ 'type' => 'input-text', 'label' => __('form.label.cheque'), 'label-class' => 'col-md-1', 'div-class' => 'col-md-3', 'placeholder' => __('form.placeholder.payment.'), 'help' => __('form.help.payment.'), 'value' => '0.00', ], ], [ 'bancomat' => [ 'type' => 'input-text', 'label' => __('form.label.bancomat'), 'label-class' => 'col-md-3', 'div-class' => 'col-md-3', 'placeholder' => __('form.placeholder.payment.bancomat'), 'help' => __('form.help.payment.bancomat'), 'value' => '0.00', ], 'transfer' => [ 'type' => 'input-text', 'label' => __('form.label.transfer'), 'label-class' => 'col-md-1', 'div-class' => 'col-md-3', 'placeholder' => __('form.placeholder.payment.transfer'), 'help' => __('form.help.payment.transfer'), 'value' => '0.00', ], ], [ 'notes' => [ 'type' => 'textarea', 'label' => __('form.label.notes'), ] ] ] ]) @push('ready') @endpush