<!-- DataTables -->
<link rel="stylesheet" href="<?php echo base_url();?>assets/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="<?php echo base_url();?>assets/plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
<link rel="stylesheet" href="<?php echo base_url();?>assets/plugins/datatables-buttons/css/buttons.bootstrap4.min.css">

<div id = "errmsg"></div>
<div class="card">
  <div class="card-header">
    <h3 class="card-title"></h3>
  </div>
    <table id="example3" class="table table-bordered table-hover">
      <thead>
        <tr>
            <th>Source Bank</th>
            <th>Dest Bank</th>
            <th>BrandGroup</th>
            <th>AdminFee</th>
       
          </tr>
        </thead>
        <tbody>
          <?php for($i = 0; $i < count($adminfeelist); $i++){ ?>      
            <tr> 
                <td><?php echo $adminfeelist[$i]->sourcebank; ?></td>
                <td><?php echo $adminfeelist[$i]->destbank; ?></td>
                <td><?php echo $adminfeelist[$i]->brandgroup; ?></td>
                <td><?php echo $adminfeelist[$i]->fee; ?></td>
             
            </tr>
          <?php                          
            }
          ?>
        </tbody>
      </table>

</div>

<!-- DataTables  & Plugins -->
<script src="<?php echo base_url();?>assets/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="<?php echo base_url();?>assets/plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
<script src="<?php echo base_url();?>assets/plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
<script src="<?php echo base_url();?>assets/plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
<script src="<?php echo base_url();?>assets/plugins/datatables-buttons/js/dataTables.buttons.min.js"></script>
<script src="<?php echo base_url();?>assets/plugins/datatables-buttons/js/buttons.bootstrap4.min.js"></script>
<script src="<?php echo base_url();?>assets/plugins/jszip/jszip.min.js"></script>
<script src="<?php echo base_url();?>assets/plugins/pdfmake/pdfmake.min.js"></script>
<script src="<?php echo base_url();?>assets/plugins/pdfmake/vfs_fonts.js"></script>
<script src="<?php echo base_url();?>assets/plugins/datatables-buttons/js/buttons.html5.min.js"></script>
<script src="<?php echo base_url();?>assets/plugins/datatables-buttons/js/buttons.print.min.js"></script>
<script src="<?php echo base_url();?>assets/plugins/datatables-buttons/js/buttons.colVis.min.js"></script>

<script>
  $(function () {
    $('#example2').DataTable({
      "paging": false,
      "lengthChange": false,
      "searching": true,
      "ordering": true,
      "info": true,
      "autoWidth": false,
      "responsive": true,
      "order": [[2,'asc'], [5,'asc']],

    });
  });
</script>