<?php if(isset($current_category)): ?>
    <option value="<?php echo e($current_category->id); ?>" <?php echo e($category->parent_id == $current_category->id ? 'selected=selected' : ''); ?>>
    <?php if($current_category->parent_id): ?>
        <?php echo e(str_repeat('-', $depth * 5)); ?> <!--⋅-->

        <?php endif; ?>
        <?php echo e($current_category->name); ?>

    </option>
<?php endif; ?>

<?php if(!empty($categories) && count($categories)): ?>
    <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $current_category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

        <?php echo $__env->make('admin.category.items_select', ['categories' => $current_category->subcats, 'current_category' => $current_category, 'depth' => $current_category->depth ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?><?php /**PATH /home/superch1/public_html/resources/views/admin/category/items_select.blade.php ENDPATH**/ ?>