<x-form.group label="{{ $label ?? $name }}" class="{{ $classGroup ?? '' }}">
    <input  type="{{ $type ?? 'text' }}" class="form-control {{ $class ?? '' }}{{ $errors->has($name) ? ' is-invalid' : '' }}"  name="{{$name}}" value="{{ $value?? '' }}" @if(isset($classGroup)&&in_array('required',explode(' ',$classGroup))) required @endif />
    @if ($errors->has($name)) 
    <div class="invalid-feedback">
        {{  $errors->first($name) }}
    </div>
    @endif
</x-form.group>