 <ul class="dropdown-menu container"> <li> <div class="yamm-content "> <div class="row"> <div class="col-md-8"> <?php $__currentLoopData = $child_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $child): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($child->is_active): ?> <div class="col-xs-12 col-sm-6 col-md-2 col-menu"> <h2 class="title"><a href="<?php echo e(route('front.category.show', [$child->slug])); ?>"><?php echo e($child->name); ?></a></h2> <ul class="links 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 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> <?php if($category->photo): ?> <div class="col-xs-12 col-sm-6 col-md-4 col-menu banner-image"> <a href="<?php echo e(route('front.category.show', [$category->slug])); ?>"> <?php if($category->photo): ?> <?php
                                    $image_url = \App\Helpers\Helper::check_image_avatar($category->photo->name, 200);
                                ?> <img class="img-responsive" src="<?php echo e($image_url); ?>" alt="<?php echo e($category->name); ?>" /> <?php else: ?> <img class="img-responsive" src="https://via.placeholder.com/200x200?text=No+Image" alt="<?php echo e($category->name); ?>" /> <?php endif; ?> </a> </div> <?php endif; ?> </div> </div> </li> </ul>