@props(['name'])
<select name="{{ $name }}" class="form-select @error($name) is-invalid @enderror" {{ $attributes }}>
    <option value="">Select an option</option>
    {{ $slot }}
</select>

@error($name)
    <div class="invalid-feedback">
        {{ $message }}
    </div>
@enderror