<li> <?php echo e(str_repeat('|--',$category->depth) . $category->name); ?> (<?php echo e($category->id); ?>) <?php if($category->children->count()): ?> <ul> <?php $__currentLoopData = $category->children; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $child): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php echo $__env->make('news.elements.category-item', ['category'=>$child], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> <?php endif; ?> </li><?php /**PATH D:\xampp\htdocs\offline_laravel_duongle\resources\views/news/elements/category-item.blade.php ENDPATH**/ ?>