 <div class="side-menu animate-dropdown outer-bottom-xs"> <div class="head"><i class="icon fa fa-align-justify fa-fw"></i> <?php echo app('translator')->getFromJson('Categories'); ?> </div> <nav class="yamm megamenu-horizontal"> <ul class="nav"> <?php if(count($root_categories) > 0): ?> <?php $__currentLoopData = $root_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($category->is_active): ?> <li class="dropdown menu-item"> <?php if($category->categories()->where('show_in_menu', true)->count()): ?> <a href="<?php echo e(route('front.category.show', [$category->slug])); ?>" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon fa fa-shopping-bag" aria-hidden="true"></i> <?php echo e($category->name); ?> </a> <?php echo $__env->make('partials.front.sidebar.sub-categories-sidebar', ['child_categories' => $category->categories()->where('show_in_menu', true)->orderBy('priority', 'asc')->get()], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> <?php else: ?> <a href="<?php echo e(route('front.category.show', [$category->slug])); ?>"><i class="icon fa fa-futbol-o"></i> <?php echo e($category->name); ?></a> <?php endif; ?> </li> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </ul> </nav> </div>