<x-form.group label="" class="{{ $classGroup ?? '' }}">
    <div class="custom-control custom-switch">
        <input name="{{$name}}"  type="checkbox" id="customSwitch1" class="custom-control-input" @if($value)checked @endif />
        <label class="custom-control-label" for="customSwitch1">{{ __(ucfirst($label ?? $name )) }}</label>

    </div>
    @if ($errors->has($name))
    <div class="invalid-feedback">
        {{ $errors->first($name) }}
    </div>
    @endif
</x-form.group>