@props(['name', 'label', 'options', 'class' => '', 'required' => 'false', 'visually_hidden' => 'false' ]) @if (isset($label)) {{ $label }} @else {{ Str::title(Str::replace('_', ' ', $name)) }} @endif -- Select @if (isset($label)) {{ Str::lower($label) }} @else {{ Str::title(Str::replace('_', ' ', $name)) }} @endif -- @foreach ($options as $option_id => $option_name ) isNotEmpty() && $slot->toHTML() == $option_id) selected="selected" @endif>{{ $option_name }} @endforeach @error($name)