

    
        
            
        
        
            
                
                    
                
                
                    
                        
                            
                        
                    
                
            
        
    





<?php if(!empty($categories)): ?>
    <div class="navbar-vertical">
        <ul class="nav nav-stacked">
            <li class="header">
                <h6 class="text-uppercase">Categories <i class="fa fa-navicon pull-right"></i></h6>
            </li>
            <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <li class="dropdown active">

                    <a target="_blank" href="display/categories/<?php echo $category->id; ?>" class="dropdown-toggle" data-toggle="dropdown" >
                        <?php echo $category->name; ?> <i class="fa fa-angle-right pull-right"></i>
                    </a>
                    <ul class="dropdown-menu mega-menu" style="min-width: 800px; line-height: 200%">
                        <?php $__currentLoopData = $sbcalias; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k=>$sba): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php if($sba->category_id == $category->id): ?>
                                <div class="column-1-3">
                                    <h2><?php echo $sba->alias; ?></h2>
                                    <?php $__currentLoopData = $subcategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subcategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <?php if($category->id === $subcategory->category_id and $sba->alias ===$subcategory->alias ): ?>
                                            <li><a href="<?php echo url('display.subcategory.index'); ?>"><?php echo $subcategory->name; ?></a></li>
                                        <?php endif; ?>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </div>
                            <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </ul>
                </li>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </ul>
    </div><!-- end navbar-vertical -->
<?php endif; ?>