<div class="row">
    <div class="col-md-12">
      <?php $this->load->view('admin/settings/tabs/departments/departments-table'); ?>
    </div>
    <!-- <div class="col-md-12 col-lg-4">
      <div class="card card-border-primary">
        <div class="card-body text-center">
          <i class="material-icons-two-tone text-primary d-block f-46">add_business</i>
          <h4 class="mt-3"><span class="text-primary"><?= $total_departments ?></span> Departments</h4>
          <p class="mb-3">Total Number of Departments</p>
          <button class="btn btn-primary btn-sm btn-round" data-bs-toggle="modal" data-bs-target="#add_departments_modal">
            Add New Department
          </button>
        </div>
      </div>
  </div> -->
</div>

<?php $this->load->view('admin/layout/form-status-notification'); ?> 
<?php $this->load->view('admin/layout/delete-confirmation-modal'); ?>
<?php $this->load->view('admin/settings/tabs/departments/add-departments-modal'); ?>
<?php $this->load->view('admin/settings/tabs/departments/edit-departments-modal'); ?>

<script>
$(document).ready(function () {
    // Department Edit Modal
    $('.edit-department-btn').click(function () {
        $('#editDepartmentModal #editDeptId').val($(this).data('id'));
        $('#editDepartmentModal #editDeptName').val($(this).data('name'));
        $('#editDepartmentModal #editDeptDescription').val($(this).data('description'));
        $('#editDepartmentModal').modal('show');
    });
});
</script>