13bf5285c7dc451badaa7a1be88094cfd7897551.php 1.6 KB

1234567891011121314151617
  1. <div class="card-columns">
  2. <?php $__currentLoopData = \App\Utility\CategoryUtility::get_immediate_children_ids($category->id); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $first_level_id): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  3. <div class="card shadow-none border-0">
  4. <ul class="list-unstyled mb-3">
  5. <li class="fw-600 border-bottom pb-2 mb-3">
  6. <a class="text-reset" href="<?php echo e(route('products.category', \App\Models\Category::find($first_level_id)->slug)); ?>"><?php echo e(\App\Models\Category::find($first_level_id)->getTranslation('name')); ?></a>
  7. </li>
  8. <?php $__currentLoopData = \App\Utility\CategoryUtility::get_immediate_children_ids($first_level_id); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $second_level_id): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  9. <li class="mb-2">
  10. <a class="text-reset" href="<?php echo e(route('products.category', \App\Models\Category::find($second_level_id)->slug)); ?>"><?php echo e(\App\Models\Category::find($second_level_id)->getTranslation('name')); ?></a>
  11. </li>
  12. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  13. </ul>
  14. </div>
  15. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  16. </div>
  17. <?php /**PATH /www/wwwroot/www.easybuyjp.shop/resources/views/frontend/partials/category_elements.blade.php ENDPATH**/ ?>