@props([ 'name' => '', 'value' => '', 'label' => '', 'nullable' => false, 'disable' => false, 'tooltip' => '', 'options' => [], 'format' => 'text', 'result' => '', 'resultPosition' => 'under', 'func' => '', 'autocomplete' => 'off', 'max' => 255, 'warning' => '', 'showSidePanelButton' => false, 'maxWidth' => 8, 'nameLength' => 20, 'showError' => true, 'keydownEnter' => "", 'showsMinusMark' => false, 'focusSkip' => false, ]) @php $format = toEnum($format, \App\Enums\FieldFormat::class); $type = $format->inputType(); @endphp @if($format->isSameAs(\App\Enums\FieldFormat::BOOLEAN->value)) @elseif(count($options) > 0) {{-- @livewire(--}} {{-- 'selectors.combobox',--}} {{-- ['base_options' => $options, 'label' => $label, 'required' => !$nullable, 'disabled' => $disable,--}} {{-- 'key' => $name, 'selected_key' => $value ?: 0, 'keydown_enter' => $keydownEnter],--}} {{-- key($name . $value . '-' . $disable)--}} {{-- )--}} @elseif($format->isSameAs(\App\Enums\FieldFormat::FOREIGN_KEY->value)) @elseif($format->isSameAs(\App\Enums\FieldFormat::TEXTAREA->value)) @else {{$slot}} @endif @if($showSidePanelButton) @endif