<?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <?php
        $cat_name = $cat->getTranslation('name');
        $children = $cat->childrenCategories ?? collect();
    ?>

    <li class="mb-2 fs-14 " style="padding-left: <?php echo e($depth * 12); ?>px">
       <a class="<?php echo e($depth == 0 ? 'fw-600' : ''); ?> text-gray-dark hov-text-primary animate-underline-primary"
            href="<?php echo e(route('products.category', $cat->slug)); ?>">
            <?php echo e($cat_name); ?>

        </a>
    </li>

    <?php if($children->count()): ?>
        <?php echo $__env->make('frontend.partials.mega_sub_items', ['categories' => $children, 'depth' => $depth + 1], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php /**PATH /home/akhanei2/public_html/resources/views/frontend/partials/mega_sub_items.blade.php ENDPATH**/ ?>