 <ul class="dropdown-menu mega-menu"> <li class="yamm-content"> <div class="row"> <?php $__currentLoopData = $child_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $child): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($child->is_active): ?> <div class="col-sm-12 col-md-3"> <h2 class="title"><a class="pl-0" href="<?php echo e(route('front.category.show', [$child->slug])); ?>"><?php echo e($child->name); ?></a></h2> <ul class="links list-unstyled sub-cat-container"> <?php if($child->categories()->where('show_in_menu', true)->count()): ?> <?php $__currentLoopData = $child->categories()->where('show_in_menu', true)->orderBy('priority', 'asc')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $child_sub_category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($child_sub_category->is_active): ?> <li> <a class="pl-0" href="<?php echo e(route('front.category.show', [$child_sub_category->slug])); ?>"><?php echo e($child_sub_category->name); ?></a> </li> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </ul> </div> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </li> </ul>