{{-- blade-formatter-disable --}} {{-- VARIABLE || COMMENT || TYPE || REQUIRED || DEFAULT $id || The id of the select tag. || string || REQUIRED || $name || The name of the select tag. || string || REQUIRED || $options || List of options. Can be enum-like. || array || REQUIRED || $helper || The helper of the input. || string || REQUIRED || $label || The label displayed. || string || OPTIONNAL || null $required || Is the field required ? || boolean || OPTIONNAL || false $placeholder || Placeholder label. || string || OPTIONNAL || __('forms.select.placeholder') $model || Model for binding value. || Model|null || OPTIONNAL || null $disabled || Disable the field. || boolean || OPTIONNAL || false $readonly || Make the select readonly. || boolean (HTML) || OPTIONNAL || false --}} @php $selectedValue = old($name, $model->{$name}->value ?? null); @endphp @if (!empty($label)) @endif @include('modules.input-error', [ 'inputName' => $name, 'helperId' => "{$id}Help", 'helper' => $helper, ])