<!-- Add Department Modal -->
<div id="add_departments_modal" class="modal fade" tabindex="-1" aria-labelledby="addDepartmentModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-dialog-centered" role="document" style="display: block;">
    <form method="post" action="<?= base_url('admin/departments/add') ?>">
      <input type="hidden" name="<?= $this->security->get_csrf_token_name(); ?>" 
             value="<?= $this->security->get_csrf_hash(); ?>" />
      
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title" id="addDepartmentModalLabel">Add Department</h5>
          <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
        </div>
        
        <div class="modal-body">
          <div class="mb-3">
            <label for="addDeptName" class="form-label">Department Name</label>
            <input type="text" name="name" id="addDeptName" class="form-control" placeholder="Department Name Here" required>
          </div>
          <div class="mb-3">
            <label for="addDeptDescription" class="form-label">Department Description</label>
            <input type="text" name="description" id="addDeptDescription" class="form-control" placeholder="Department Description Here" required>
          </div>
        </div>
        
        <div class="modal-footer">
          <button type="submit" class="btn btn-primary">Submit</button>
          <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
        </div>
      </div>
    </form>
  </div>
</div>
