@php $options = is_object($options) && method_exists($options, 'map') ? $options->map(function($label, $value) { return [ 'value' => $value, 'label' => $label ]; })->values()->toArray() : $options; $note = $note ?? false; $placeholder = $placeholder ?? false; $required = $required ?? false; $searchable = $searchable ?? false; $disabled = $disabled ?? false; $columns = $columns ?? 0; // 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; @endphp @if ($unpack ?? false) @if($addNew)
@php unset($note, $placeholder, $emptyText, $default, $required, $inModal, $addNew, $options); @endphp @partialView(($moduleName ?? null), 'create', ['renderForModal' => true, 'fieldsInModal' => true])
@endif
@elseif ($native ?? false) @if($addNew)
@php unset($note, $placeholder, $emptyText, $default, $required, $inModal, $addNew, $options); @endphp @partialView(($moduleName ?? null), 'create', ['renderForModal' => true, 'fieldsInModal' => true])
@endif
@else @if($addNew)
@php unset($note, $placeholder, $emptyText, $default, $required, $inModal, $addNew, $options); @endphp @partialView(($moduleName ?? null), 'create', ['renderForModal' => true, 'fieldsInModal' => true])
@endif
@endif @unless($renderForBlocks || $renderForModal || (!isset($item->$name) && null == $formFieldsValue = getFormFieldsValue($form_fields, $name))) @push('vuexStore') @include('twill::partials.form.utils._selector_input_store') @endpush @endunless