<div class="row mb-2">
    <label for="{{ $name }}" class="col-form-label @if(!($right ?? null)) col-md-4 text-md-end @endif">
        {{ $title ?? '' }}
        @isset($required) <sup>*</sup> @endisset
    </label>
    <div class="@if(!($right ?? null)) col-md-8 @endif">
        <div class="input-group">
        <input type="{{ $type ?? 'text' }}" name="{{ $name }}" id="{{ $name }}"
               class="form-control @error($name) is-invalid @enderror" @disabled($disabled ?? null) @required($required ?? null)
                @isset($min) min="{{ $min }}" @endisset
                @isset($max) max="{{ $max }}" @endisset
                @isset($style) style="{{ $style }}" @endisset
                @isset($pattern) pattern="{{ $pattern }}" @endisset
                placeholder="{{ $placeholder ?? ''}}"
                @isset($multiple) multiple="multiple" @endisset
                @isset($datalist) list="dl-{{ $name }}" @endisset
               value="{{ old($name, $value ?? '') }}" autocomplete="off">
            @isset($datalist)
                <datalist id="dl-{{ $name }}">
                    @foreach($datalist as $s)
                        <option value="{{ $s }}"></option>
                    @endforeach
                </datalist>
            @endisset

            @isset($button)
                <button class="btn btn-outline-info" type="button" id="{{ $button }}">{{ $buttonText ?? 'Имя' }}</button>
            @endisset
        </div>
        @error($name)
        <div class="invalid-feedback" role="alert"><strong>{{ $message }}</strong></div>
        @enderror
    </div>
</div>
