
<?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <?php
        $depth = (int) ($depth ?? 0);
        $hasChildren = $cat->allChildren->isNotEmpty();
    ?>
    <li class="nav-item rm-cat-item rm-cat-depth-<?php echo e(min($depth, 3)); ?>">
        <a href="<?php echo e(route('shop.category', $cat->slug)); ?>" class="nav-link">
            <?php if($depth === 0 && $cat->icon): ?>
                <i class="bi bi-<?php echo e($cat->icon); ?>"></i>
            <?php endif; ?>
            <?php echo e($cat->name); ?>

        </a>
        <?php if($hasChildren): ?>
            <span class="showSubMenu"><i class="bi bi-chevron-left"></i></span>
            <ul class="navbar-nav h-0 rm-submenu">
                <?php echo $__env->make('site.partials._mobile-menu-cat', [
                    'items' => $cat->allChildren,
                    'depth' => $depth + 1,
                ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
            </ul>
        <?php endif; ?>
    </li>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php /**PATH C:\xampp\htdocs2\engine\resources\views/site/partials/_mobile-menu-cat.blade.php ENDPATH**/ ?>