

<?php $__env->startSection('content'); ?>

<div class="d-flex justify-content-between align-items-center mb-3">
    <h3>Counselors</h3>

    <!-- ✅ Add Button -->
    <a href="<?php echo e(route('admin.counselor.create')); ?>" class="btn btn-success">
        + Add Counselor
    </a>
</div>

<table class="table table-bordered">
    <thead class="table-dark">
        <tr>
            <th>Name</th>
            <th>Assigned Leads</th>
        </tr>
    </thead>

    <tbody>
        <?php $__currentLoopData = $counselors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <tr>
            <td><?php echo e($c->name); ?></td>
            <td><?php echo e($c->assigned_count); ?></td>
        </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </tbody>
</table>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.adminapp', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home2/jitrealx/public_html/zoho/resources/views/admin/counselors.blade.php ENDPATH**/ ?>