<div class="org-tree-node level-<?php echo e($org->level?->slug); ?>" style="margin-left: <?php echo e($depth * 1.5); ?>rem; padding: 0.75rem; border-radius: 0 8px 8px 0;">
    <div style="display: flex; justify-content: space-between; align-items: center;">
        <div>
            <a href="<?php echo e(route('organizations.show', $org)); ?>" style="font-weight: 600; font-size: 1rem;">
                <?php echo e($org->name); ?>

            </a>
            <span class="badge badge-<?php echo e($org->level?->slug); ?>" style="margin-left: 0.5rem;">
                <?php echo e($org->level?->name); ?>

            </span>
            <?php if($org->code): ?>
            <span class="text-muted" style="margin-left: 0.5rem; font-size: 0.8rem;"><?php echo e($org->code); ?></span>
            <?php endif; ?>
        </div>
        <div style="display: flex; gap: 1rem; align-items: center; font-size: 0.85rem;">
            <span title="Direct Members">👥 <?php echo e($org->direct_member_count); ?></span>
            <span title="Child Organizations">📁 <?php echo e($org->children->count()); ?></span>
            <a href="<?php echo e(route('organizations.edit', $org)); ?>" class="btn btn-sm btn-link">✏️</a>
        </div>
    </div>
</div>

<?php if($org->children->count() > 0 && $depth < 4): ?>
    <?php $__currentLoopData = $org->children; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $child): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php echo $__env->make('organizations.partials.tree-node', ['org' => $child, 'depth' => $depth + 1], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>

<?php /**PATH C:\Projects\Atape\AtapeMgr\resources\views/organizations/partials/tree-node.blade.php ENDPATH**/ ?>