<!-- Table with stripped rows -->
<table class="table table-hover" id="tabelkeranjang">
<thead>
<tr>
    <th scope="col">Tanggal</th>
    <th scope="col">Kode Masuk</th>
    <th scope="col">Nomor Nota</th>
    <th scope="col">Nama Suplier</th>
    <th scope="col">Jumlah Bayar</th>
    <th scope="col">Nama Kasir/Pegawai</th>
    <th scope="col">Keterangan</th>
</tr>
</thead>
<tbody>
<?php
$jumbayar=0;
foreach ($datahutang as $hasil) {
    ?>
    <tr>
        <td><?php echo date('d-m-Y',strtotime($hasil->tanggal)) ?></td>
        <td><a href="<?php echo base_url('transaksi/cetak_cetak_masuk?no='.$hasil->kode_masuk) ?>" target="_blank" title="Cetak barang masuk"><?php echo $hasil->kode_masuk ?></a></td>
        <td><?php echo $hasil->no_nota ?></td>
        <td><?php echo $hasil->suplier ?></td>
        <td><?php echo number_format($hasil->bayar,0,',','.') ?></td>
        <td><?php echo $hasil->pegawai ?></td>
        <td><?php echo $hasil->keterangan ?></td>
    </tr>
    <?php
    $jumbayar=$jumbayar+$hasil->bayar;
}
?>
</tbody>
<tfoot>
<tr>
    <th colspan="4">Jumlah Total</th>
    <th><?php echo number_format($jumbayar,0,',','.') ?></th>
    <th></th>
    <th></th>
</tr>
</tfoot>
</table>
<!-- End Table with stripped rows -->