@props([ 'name', 'label' => null, 'options' => [], 'selected' => null, 'required' => false, 'placeholder' => null, 'help' => null, // Optional bootstrap-icons name rendered inside the control; omitted by // every existing caller, which keeps their markup unchanged. 'icon' => null, 'spacing' => 'mb-3', ]) @php $id = $attributes->get('id', 'field-'.$name); $hasError = $errors->has($name); $current = old($name, $selected); @endphp
@if ($label) @endif
@if ($icon) @endif
@if ($help)
{{ $help }}
@endif {{-- See the note in form/input: the wrapper breaks Bootstrap's sibling rule. --}} @error($name)
{{ $message }}
@enderror