<div class="side-menu animate-dropdown outer-bottom-xs single_page_menu">

    <nav class="spn megamenu-horizontal" >
  
      <ul class="nav">
        <?php $__currentLoopData = $menus; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $menu): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
          <?php if($menu->menu_type == 'multi_mega_menu'): ?>
          <h4><?php echo e(\Illuminate\Support\Str::limit($menu->name, 25, $end='...')); ?></h4>
          <ul class="nav nav_width">
            <?php $__currentLoopData = @$menu->menus; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $menu): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php if(@$menu->menu->menu_type == 'mega_menu' && @$menu->menu->status == 1): ?>
            <li class="dropdown menu-item">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                <i class="<?php echo e(@$menu->menu->icon); ?>"></i><?php echo e(\Illuminate\Support\Str::limit(@$menu->menu->name, 25, $end='...')); ?></a>
              <ul class="dropdown-menu mega-menu">
                <li class="spn-content">
                  <div class="row ">
                    <div class="col-sm-12 col-md-12 col-xl-8">
                      <div class="row">
                        <?php
                            $is_same = 1;
                            $column_size = $menu->menu->columns[0]->size;
  
                            foreach($menu->menu->columns as $key => $column){
                              if($column->size != $column_size){
                                $is_same =0;
                              }
                            }
  
                        ?>
  
  
                          <?php $__currentLoopData = @$menu->menu->columns; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $column): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                          <div class="
                          <?php if($column->size == '1/1'): ?>
                          col-sm-12 col-md-12 col-lg-12 col-xl-12
                          <?php elseif($column->size == '1/2'): ?>
                          col-sm-12 col-md-6 col-lg-6 col-xl-6
                          <?php elseif($column->size == '1/3'): ?>
                          col-sm-6 col-md-6 col-lg-4 col-xl-4
                          <?php elseif($column->size == '1/4'): ?>
                          col-sm-6 col-md-6 col-lg-3 col-xl-3
                          <?php endif; ?>
                          ">
                          <ul class="links list-unstyled">
                            <li><span><?php echo e(\Illuminate\Support\Str::limit($column->column, 25, $end='...')); ?></span></li>
                            <?php $__currentLoopData = @$column->elements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php if($element->type == 'link'): ?>
                              <li><a target="<?php echo e($element->is_newtab == 1?'_blank':''); ?>" href="<?php if($element->link != null): ?>
                                <?php echo e(url($element->link)); ?>

                                <?php else: ?>
                                javascript:void(0);
                                <?php endif; ?>"><?php echo e(\Illuminate\Support\Str::limit($element->title, 25, $end='...')); ?></a></li>
  
                              <?php elseif($element->type == 'category' && $element->category->status == 1): ?>
                                <li><a target="<?php echo e($element->is_newtab == 1?'_blank':''); ?>" href="<?php echo e(route('frontend.category-product',['slug' => @$element->category->slug, 'item' =>'category'])); ?>"><?php echo e(ucfirst(\Illuminate\Support\Str::limit($element->title, 25, $end='...'))); ?></a></li>
  
                              <?php elseif(@$element->type == 'product' && @$element->product): ?>
                              <li><a target="<?php echo e($element->is_newtab == 1?'_blank':''); ?>" href="<?php echo e(route('frontend.item.show',@$element->product->slug)); ?>"><?php echo e(ucfirst(\Illuminate\Support\Str::limit($element->title, 25, $end='...'))); ?></a></li>
  
                              <?php elseif($element->type == 'brand' && $element->brand->status == 1): ?>
                              <li><a target="<?php echo e($element->is_newtab == 1?'_blank':''); ?>" href="<?php echo e(route('frontend.category-product',['slug' => @$element->brand->slug, 'item' =>'brand'])); ?>"><?php echo e(ucfirst(\Illuminate\Support\Str::limit($element->title, 25, $end='...'))); ?></a></li>
  
                              <?php elseif($element->type == 'page' && $element->page->status == 1): ?>
                                      <?php if(!isModuleActive('Lead') && $element->page->module == 'Lead'): ?>
                                          <?php continue; ?>
                                      <?php endif; ?>
                              <li><a target="<?php echo e($element->is_newtab == 1?'_blank':''); ?>" href="<?php echo e(url(@$element->page->slug)); ?>"><?php echo e(ucfirst(\Illuminate\Support\Str::limit($element->title, 25, $end='...'))); ?></a></li>
  
                              <?php elseif($element->type == 'tag'): ?>
                              <li><a target="<?php echo e($element->is_newtab == 1?'_blank':''); ?>" href="<?php echo e(route('frontend.category-product',['slug' => @$element->tag->name, 'item' =>'tag'])); ?>"><?php echo e(ucfirst(\Illuminate\Support\Str::limit($element->title, 25, $end='...'))); ?></a></li>
  
                              <?php endif; ?>
  
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  
                          </ul>
                          </div>
  
                          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                      </div>
                    </div>
                    <?php if(count(@$menu->menu->rightPanelData)> 0): ?>
                    <div class="col-sm-12 col-xl-4 d-none d-xl-block">
                      <div class="mega_menu_product">
                        <?php $__currentLoopData = @$menu->menu->rightPanelData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if($item->category->status == 1): ?>
                          <a target="<?php echo e($item->is_newtab == 1?'_blank':''); ?>" href="<?php echo e(route('frontend.category-product',['slug' => encrypt(@$item->category->id), 'item' =>'category'])); ?>" class="menu_product">
                              <div class="single_mega_menu_product">
                                <div class="media align-items-center">
                                  <div class="media_img">
                                    <img src="<?php echo e(asset(asset_path(@$item->category->categoryImage->image?@$item->category->categoryImage->image:'frontend//default/img/default_category.png'))); ?>"class="align-self-center"alt="<?php echo e(@$item->category->name); ?>"/>
                                  </div>
                                  <div class="media-body">
                                    <p><?php echo e($item->title); ?></p>
                                  </div>
                                </div>
                              </div>
                          </a>
                          <?php if($key >=5): ?>
                            <?php break; ?>
                          <?php endif; ?>
                        <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  
  
                      </div>
                    </div>
                    <?php endif; ?>
                    <?php if(count(@$menu->menu->bottomPanelData)> 0): ?>
                    <div class="col-lg-12 d-none d-xl-block">
                      <div class="product_logo">
                        <?php $__currentLoopData = @$menu->menu->bottomPanelData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if($item->brand->status == 1): ?>
                          <a target="<?php echo e($item->is_newtab == 1?'_blank':''); ?>" href="<?php echo e(route('frontend.category-product',['slug' => encrypt(@$item->brand->id), 'item' =>'brand'])); ?>" class="single_product_logo">
                            <img src="<?php echo e(asset(asset_path(@$item->brand->logo ? @$item->brand->logo:'frontend/default/img/brand_image.png'))); ?>" alt="<?php echo e(@$item->brand->name); ?>" />
                          </a>
                          <?php if($key >=7): ?>
                            <?php break; ?>
                          <?php endif; ?>
                        <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                      </div>
                    </div>
                    <?php endif; ?>
                    <!-- /.col -->
                  </div>
                  <!-- /.row -->
                </li>
                <!-- /.spn-content -->
              </ul>
              <!-- /.dropdown-menu -->
            </li>
            <?php endif; ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <!-- /.menu-item -->
          </ul>
          <?php endif; ?>
        <!-- /.menu-item -->
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  
      </ul>
      <!-- /.nav -->
    </nav>
      <!-- /.megamenu-horizontal -->
  
  </div>
  <?php /**PATH /home/penastud/public_html/gsport/resources/views/frontend/default/partials/_mega_menu_small.blade.php ENDPATH**/ ?>