<div class="table-responsive">
    <table id="expenseTypeTable" class="table table-bordered table-striped">
       <thead>
      <tr>
        <th>ID</th>
        <th>Type Name</th>
        <th class="text-right">Action</th>
      </tr>
    </thead>
    <tbody>
      <?php foreach($expense_types as $row): ?>
      <tr>
        <td><?= $row->id ?></td>
        <td><?= $row->expense_type ?></td>
        <td class="text-right">
          <a href="#" class="btn btn-sm edit-type-btn btn-warning"
   data-id="<?= $row->id ?>"
   data-type="<?= htmlspecialchars($row->expense_type, ENT_QUOTES) ?>">
   <i class="fa fa-edit"></i>
</a>
          <a href="javascript:void(0);" class="btn btn-sm delete-confirmation-modal btn-danger" data-url="<?= base_url('admin/DailyExpense/delete_expense_type/' . $row->id) ?>">
            <i class="fa fa-trash"></i>
          </a>
        </td>
      </tr>
      <?php endforeach; ?>
    </tbody>
    </table>
</div>
