<div class="form-group col-{{ $col }}">
    <div class="mb-1">
        <label class="form-label">{{ $label }}  @if ($required)
                <span class="text-danger">*</span>
            @endif
        </label>
        <input type="{{ $type }}" id="{{ $name }}" class="form-control @error($name) is-invalid @enderror" name="{{ $name }}"
            placeholder="{{ $label }}" value="{{ old($name, $value) }}" maxlength="{{ $maxLength }}"
            @if ($required) required @endif>
        <span class="error-{{ $name }} text-danger"></span>
        @error($name) <div class="invalid-feedback">{{ $message }} </div>@enderror

    </div>

</div>
