<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag; ?>
<?php foreach($attributes->onlyProps([
    'id' => uniqid('checkbox-'),
    'name' => '',
    'value' => '',
    'label' => '',
    'checked' => false,
    'disabled' => false,
    'classCheckbox' => ''
]) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
} ?>
<?php $attributes = $attributes->exceptProps([
    'id' => uniqid('checkbox-'),
    'name' => '',
    'value' => '',
    'label' => '',
    'checked' => false,
    'disabled' => false,
    'classCheckbox' => ''
]); ?>
<?php foreach (array_filter(([
    'id' => uniqid('checkbox-'),
    'name' => '',
    'value' => '',
    'label' => '',
    'checked' => false,
    'disabled' => false,
    'classCheckbox' => ''
]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
} ?>
<?php $__defined_vars = get_defined_vars(); ?>
<?php foreach ($attributes as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
} ?>
<?php unset($__defined_vars); ?>

<label for="<?php echo e($id); ?>" class="flex items-center space-x-3 cursor-pointer select-none">
    <input
        type="checkbox"
        id="<?php echo e($id); ?>"
        name="<?php echo e($name); ?>"
        value="<?php echo e($value); ?>"
        <?php if($checked): echo 'checked'; endif; ?>
        <?php if($disabled): echo 'disabled'; endif; ?>
        <?php echo e($attributes->merge(['class' => "peer hidden $classCheckbox"])); ?>

    />

    
    <span class="w-6 h-6 flex items-center justify-center rounded-md border border-gray-400
                 peer-checked:bg-primary100 peer-checked:border-primary100
                 peer-disabled:bg-gray-200 peer-disabled:border-optional
                 transition-colors duration-200">
        <svg class="w-3 h-3 text-white hidden peer-checked:block" fill="none" stroke="currentColor" stroke-width="3" viewBox="0 0 24 24">
            <path d="M5 13l4 4L19 7"/>
        </svg>
    </span>

    
    <?php if($label): ?>
        <span class="text-black peer-disabled:text-gray-400 parrafo"><?php echo e($label); ?></span>
    <?php endif; ?>
</label>
<?php /**PATH C:\laragon\www\housecontract\resources\views/components/controls/checkbox.blade.php ENDPATH**/ ?>