    <div class="card">
    <div class="card-header">
<div class="row align-items-center">
    <!-- Icon + Text -->
    <div class="col-md-9 d-flex align-items-center">
        <i class="material-icons-two-tone text-primary f-46 me-3">add_task</i>

        <div>
            <h5 class="mb-0">
                List of all <span class="text-primary"><?= $total_services ?></span> consultants with actions
            </h5>
            <small>You can Edit or Delete (depending on rights)</small>
        </div>
    </div>

    <!-- Button -->
    <div class="col-md-3 text-end">
        <button class="btn btn-primary btn-sm btn-round"
                data-bs-toggle="modal"
                data-bs-target="#addServiceModal">
            Add Consultant
        </button>
    </div>
</div>

      
      
    </div>
      <div class="card-body table-responsive">
        <table id="consultant-table" class="table table-striped table-bordered nowrap">

          <thead>
            <tr>
              <th>ID</th>
              <th>Department</th>
              <th>Consultant Name</th>
              <th>Description</th>
              <th>Action</th>
            </tr>
          </thead>
          <tbody>
            <?php foreach($services as $s): 
    
            ?>
            <tr>
              <td><?= $s->id ?></td>
              <td><?= $s->department_name ?></td>
              <td><?= $s->name ?></td>
              <td><?= $s->description ?></td>
              <td class="text-right">
                <a href="#" class="badge bg-light-success edit-service-btn"
                   data-id="<?= $s->id ?>"
                   data-name="<?= $s->name ?>"
                   data-department="<?= $s->department_id ?>"
                   data-description="<?= $s->description ?>">
                   <i data-feather="edit"></i>
                </a>
                <a href="javascript:void(0);" class="badge  bg-light-danger delete-confirmation-modal"
                   data-url="<?= base_url('admin/consultants/delete/'.$s->id) ?>">
                   <i data-feather="trash"></i>
                 </a>
              </td>
            </tr>
            <?php endforeach; ?>
          </tbody>
        </table>
      </div>
    </div>