<!-- Table with stripped rows -->
<table class="table table-hover" id="tabelku">
<thead>
<tr>
    <th scope="col" width="2%">No.</th>
    <th scope="col">Metode Pembayaran</th>
    <th scope="col">Jumlah</th>
</tr>
</thead>
<tbody>
<?php
$no=1;
$total=0;;
foreach ($arrmetode as $key => $value) {
    $jumlah=@array_sum($arrjumlah[$value]);
    ?>
    <tr>
        <td><?php echo $no ?></td>
        <td><?php echo $value ?></td>
        <td><?php echo number_format($jumlah,0,',','.') ?></td>
    </tr>
    <?php
    $total=$total+$jumlah;
    $no++;
}
?>
</tbody>
<tfoot>
<tr>
    <th colspan="2">Total</th>
    <th><?php echo number_format($total,0,',','.') ?></th>
</tr>
</tfoot>
</table>
<!-- End Table with stripped rows -->
<script type="text/javascript">
$(document).ready(function() {
    $("#tabelku").DataTable({
        "processing":true,
        "serverSide":false,
        "responsive":true,
        "paging": false
    });
});
</script>