@php
$itemInp = $itemConfigInputs;
$itemInp['config_id'] = [
'type' => 'hidden',
'value' => $styleItemConfig->id,
'id' => 'hidden-config' . $styleItemConfig->id
];
$itemInp['template_id'] = [
'type' => 'hidden',
'value' => $template->id,
'id' => 'hidden-template-' . $template->id
];
@endphp
@include($_base.'forms.form', [
'inputs' => $itemInp,
'data' => $styleItemConfig->toArray(),
'config' => [
'button_block_type' => 1,
'save_button_text' => 'Thêm',
'hide_cancel_button' => true,
// 'cancel_button_class' => 'danger btn-delete-item',
// 'cancel_button_url' => route('admin.style-sets.personal.templates.delete-item'),
'form_group_options' => [
'group_class' => '',
'label_class' => '',
'wrapper_class' => ''
],
'form_group_style' => 'custom',
'log_style' => true,
],
'attrs' => [
'method' => 'post',
'class' => 'style-template-item-config-create-form',
'data-id' => $styleItemConfig->id,
'action' => route('admin.style-sets.personal.templates.create-item-config'),
'id' => 'style-template-item-config-create-form-' . $styleItemConfig->id,
]
])