<div class="row align-items-center">
    <label for="{{ $name }}-{{ $value }}" class="col-form-label @if(!($right ?? null)) col-8 col-md-4 text-md-end @endif">
        {{ $title ?? '' }}
        @isset($required) <sup>*</sup> @endisset
    </label>
    <div class="@if(!($right ?? null)) col-4 col-md-8 pt-0 @endif form-check form-switch d-flex justify-content-end justify-content-md-start">
        <input type="{{ $type ?? 'checkbox' }}" name="{{ $name }}" id="{{ $name }}-{{ $value }}"
               @checked($checked)
               class="form-check-input @error($name) is-invalid @enderror" @disabled($disabled ?? null)
               value="{{ old($name, $value ?? '') }}">
        @error($name)
        <span class="invalid-feedback" role="alert"><strong>{{ $message }}</strong></span>
        @enderror
    </div>
</div>
