<?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="cat-cb-item">
    <div class="form-check">
        <input class="form-check-input" type="checkbox"
               name="categories[]"
               value="<?php echo e($cat->id); ?>"
               id="cat-cb-<?php echo e($cat->id); ?>"
               <?php echo e(in_array($cat->id, $selected ?? []) ? 'checked' : ''); ?>>
        <label class="form-check-label" for="cat-cb-<?php echo e($cat->id); ?>">
            <?php if($cat->icon): ?>
                <i class="ti ti-<?php echo e($cat->icon); ?> text-primary me-1"></i>
            <?php endif; ?>
            <?php echo e($cat->name); ?>

        </label>
    </div>
    <?php if($cat->subCategories->isNotEmpty()): ?>
        <div class="cat-cb-children">
            <?php echo $__env->make('admin.products._category-checkboxes', [
                'items'    => $cat->subCategories,
                'selected' => $selected ?? [],
            ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
        </div>
    <?php endif; ?>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php /**PATH /home/louishop/public_html/engine/resources/views/admin/products/_category-checkboxes.blade.php ENDPATH**/ ?>