<div @class(['mb-3','col-12' => !$customDivClass,$customDivClass => $customDivClass])>
    <label for="{{$id}}" class="form-label">
        {{$label}}
        @if($required)
            <span class="text-danger">*</span>
        @endif
    </label>
    <select id="{{$id}}"
            name="{{$name}}"
            @if($wireIgnore) wire:ignore @endif
            @if($wireModel) wire:model="{{$wireModel}}" @endif
            @class(["form-select","is-invalid" => $errors->first($name),$customInputClass => $customInputClass])
            @if($type) type="{{$type}}" @else type="text" @endif
            @if($readOnly) readonly @endif
            @if($disabled) disabled @endif
            @if($required) required @endif>
        @if(!$wireModel)
            <option selected readonly value="">@lang('Choose a value')</option>
        @endif
        @if($options)
            @foreach($options as $key => $value)
                <option @selected(($key ?? $value) == $selected) value="{{$key ?? $value}}">{{$value ?? $key}}</option>
            @endforeach
        @endif
    </select>
    @error($name)
    <div class="invalid-feedback animated fadeIn">
        {{$message}}
    </div>
    @enderror
</div>
