11d36d5a501ce0e68368484641e8f80efe3e4733.php 2.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <div class="aiz-category-menu bg-white rounded <?php if(Route::currentRouteName() == 'home'): ?> shadow-sm" <?php else: ?> shadow-lg" id="category-sidebar" <?php endif; ?>>
  2. <div class="p-3 bg-soft-primary d-none d-lg-block rounded-top all-category position-relative text-left">
  3. <span class="fw-600 fs-16 mr-3"><?php echo e(translate('Categories')); ?></span>
  4. <a href="<?php echo e(route('categories.all')); ?>" class="text-reset">
  5. <span class="d-none d-lg-inline-block"><?php echo e(translate('See All')); ?> ></span>
  6. </a>
  7. </div>
  8. <ul class="list-unstyled categories no-scrollbar py-2 mb-0 text-left">
  9. <?php $__currentLoopData = \App\Models\Category::where('level', 0)->orderBy('order_level', 'desc')->get()->take(11); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  10. <li class="category-nav-element" data-id="<?php echo e($category->id); ?>">
  11. <a href="<?php echo e(route('products.category', $category->slug)); ?>" class="text-truncate text-reset py-2 px-3 d-block">
  12. <img
  13. class="cat-image lazyload mr-2 opacity-60"
  14. src="<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>"
  15. data-src="<?php echo e(uploaded_asset($category->icon)); ?>"
  16. width="16"
  17. alt="<?php echo e($category->getTranslation('name')); ?>"
  18. onerror="this.onerror=null;this.src='<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>';"
  19. >
  20. <span class="cat-name"><?php echo e($category->getTranslation('name')); ?></span>
  21. </a>
  22. <?php if(count(\App\Utility\CategoryUtility::get_immediate_children_ids($category->id))>0): ?>
  23. <div class="sub-cat-menu c-scrollbar-light rounded shadow-lg p-4">
  24. <div class="c-preloader text-center absolute-center">
  25. <i class="las la-spinner la-spin la-3x opacity-70"></i>
  26. </div>
  27. </div>
  28. <?php endif; ?>
  29. </li>
  30. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  31. </ul>
  32. </div>
  33. <?php /**PATH /www/wwwroot/www.easybuyjp.shop/resources/views/frontend/partials/category_menu.blade.php ENDPATH**/ ?>