<?php $__currentLoopData = $childs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $child): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(count($child->categories) > 0): ?> <option class="bolden" value="<?php echo e($child->id); ?>"><?php echo e(str_repeat('&emsp;', $space)); ?><?php echo e($child->name); ?> (ID: <?php echo e($child->id); ?>)</option> <?php echo $__env->make('partials.manage.subcategories-select', ['childs' => $child->categories, 'space'=>$space+1], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> <?php else: ?> <option value="<?php echo e($child->id); ?>"><?php echo e(str_repeat('&emsp;', $space)); ?><?php echo e($child->name); ?> (ID: <?php echo e($child->id); ?>)</option> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>