HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/ivs.kaunokolegija.lt/laravel/resources/views/components/form/checkbox.blade.php
<div class="form-group">
    <div class="form-check {{ $errors->has($name) ? 'is-invalid' : '' }}">
        <input type="hidden" name="{{ $name }}" value="0">
        
        <input
            class="form-check-input"
            type="checkbox"
            name="{{ $name }}"
            id="{{ $name }}"
            value="1"
            {{ old($name, $value) == 1 ? 'checked' : '' }}
            {{ $attributes->merge(['class' => $errors->has($name) ? 'is-invalid' : '']) }}
        >
        @if ($label)
        <label class="form-check-label" for="{{ $name }}">
            {{ $label }}
        </label>
        @endif
    </div>

    @if ($errors->has($name))
    <div class="text-danger">
        {{ $errors->first($name) }}
    </div>
    @endif

    @if ($helpLabel)
    <span class="help-block">{{ $helpLabel }}</span>
    @endif
</div>