<div class="row 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">
        <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
               value="{{ old($name, $value ?? '') }}" autocomplete="{{ $name }}">
        @error($name)
        <span class="invalid-feedback" role="alert"><strong>{{ $message }}</strong></span>
        @enderror
    </div>
</div>

