<?php $__env->startSection('title', 'Category Tree'); ?>

<?php $__env->startSection('content'); ?>
<div class="walton-card walton-animated">
    <div class="walton-card-header">
        <i class="fas fa-tree"></i> Category Tree View
        <div class="float-end">
            <a href="<?php echo e(route('settings.categories.create')); ?>" class="walton-btn walton-btn-gold btn-sm">
                <i class="fas fa-plus-circle me-2"></i>Add New Category
            </a>
        </div>
    </div>
    <div class="walton-card-body">
        <ul class="walton-tree">
            <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php echo $__env->make('settings.categories.partials.tree-item', ['category' => $category, 'level' => 0], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </ul>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.walton', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/naowarin/walton.naowarinternational.my.id/resources/views/settings/categories/tree.blade.php ENDPATH**/ ?>