<ul>

    <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

    <li class="<?php echo e(count($category->subs) > 0 ? 'dropdown_list':''); ?> <?php echo e($loop->index >= 14 ? 'rx-child' : ''); ?>">
    <?php if(count($category->subs) > 0): ?>
        <div class="img">
            <img loading="lazy" src="<?php echo e(asset('assets/images/categories/'.$category->photo)); ?>" alt="">
        </div>
        <div class="link-area">
            <span><a href="<?php echo e(route('front.category',$category->slug)); ?>"><?php echo e($category->name); ?></a></span>
            <a href="javascript:;">
                <i class="fa fa-angle-right" aria-hidden="true"></i>
            </a>
        </div>

    <?php else: ?>
        <a href="<?php echo e(route('front.category',$category->slug)); ?>"><img loading="lazy" src="<?php echo e(asset('assets/images/categories/'.$category->photo)); ?>"> <?php echo e($category->name); ?></a>

    <?php endif; ?>
        <?php if(count($category->subs) > 0): ?>


        <ul class="<?php echo e($category->subs()->withCount('childs')->get()->sum('childs_count') > 0 ? 'categories_mega_menu' : 'categories_mega_menu column_1'); ?>">
            <?php $__currentLoopData = $category->subs()->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subcat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <li>
                    <a href="<?php echo e(route('front.subcat',['slug1' => $category->slug, 'slug2' => $subcat->slug])); ?>"><?php echo e($subcat->name); ?></a>
                    <?php if(count($subcat->childs) > 0): ?>
                        <div class="categorie_sub_menu">
                            <ul>
                                <?php $__currentLoopData = $subcat->childs()->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $childcat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <li><a href="<?php echo e(route('front.childcat',['slug1' => $category->slug, 'slug2' => $subcat->slug, 'slug3' => $childcat->slug])); ?>"><?php echo e($childcat->name); ?></a></li>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </ul>
                        </div>
                    <?php endif; ?>
                </li>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </ul>

        <?php endif; ?>

        </li>

        <?php if($loop->index == 14): ?>
            <li>
            <a href="<?php echo e(route('front.categories')); ?>"><i class="fas fa-plus"></i> <?php echo e(__('See All Categories')); ?> </a>
            </li>
            <?php break; ?>
        <?php endif; ?>


        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

</ul>
<?php /**PATH /home/u834843299/domains/agreeme.in/public_html/demo/ecomsingle/project/resources/views/load/category.blade.php ENDPATH**/ ?>