<div class="row mb-{{ ($mb ?? 2) }}">
    <label for="{{ $name }}" class="col-form-label @if(!($right ?? null)) col-md-4 text-md-end @endif mt-1">
        {{ $title }}
        @isset($required) <sup>*</sup> @endisset
    </label>
    <div class="@if(!($right ?? null)) col-md-8 @endif">
        <select name="{{ $name }}"
                id="{{ $name }}"
                @isset($multiple) multiple @endisset
                class="form-select @error($name) is-invalid @enderror class-{{ $name }}"
                @required($required ?? null)
                @disabled($disabled ?? null)>
            @if(isset($first_empty))
                <option value="" class="first-empty-{{ $name }}">Выберите...</option>
            @endif
            @foreach($options as $k => $v)
                @php
                    if(isset($key_as_val)) $k = $v;
                @endphp
                <option @selected($k == ($value ?? null)) value="{{ $k }}">{{ $v }}</option>
            @endforeach
        </select>
        @error($name)
        <span class="invalid-feedback" role="alert"><strong>{{ $message }}</strong></span>
        @enderror
    </div>
</div>
