@php $note = $note ?? false; $options = is_object($options) && method_exists($options, 'map') ? $options->map(function($label, $value) { return [ 'value' => $value, 'label' => $label ]; })->values()->toArray() : $options; $required = $required ?? false; $default = $default ?? false; $inline = $inline ?? false; $border = $border ?? false; $columns = $columns ?? 0; $disabled = $disabled ?? false; // do not use for now, but this will allow you to create a new option directly from the form $addNew = $addNew ?? false; $moduleName = $moduleName ?? null; $storeUrl = $storeUrl ?? ''; $inModal = $fieldsInModal ?? false; $confirmMessageText = $confirmMessageText ?? ''; $confirmTitleText = $confirmTitleText ?? ''; $requireConfirmation = $requireConfirmation ?? false; @endphp @if($addNew)
@partialView(($moduleName ?? null), 'create', ['renderForModal' => true, 'fieldsInModal' => true])
@endif
@unless($renderForBlocks || $renderForModal || (!isset($item->$name) && null == $formFieldsValue = getFormFieldsValue($form_fields, $name, $default))) @push('vuexStore') @include('twill::partials.form.utils._selector_input_store') @endpush @endunless