<!-- Table with stripped rows -->
<table class="table table-hover" id="tabelkeranjang">
<thead>
<tr>
    <th scope="col">Tanggal</th>
    <th scope="col">No. Nota</th>
    <th scope="col">Kode Barang</th>
    <th scope="col">Nama Barang</th>
    <th scope="col">Satuan</th>
    <th scope="col">Jumlah Masuk</th>
    <th scope="col">Total Harga</th>
    <th scope="col">Suplier</th>
</tr>
</thead>
<tbody>
<?php
foreach ($datamasuk as $hasil) {
    ?>
    <tr>
        <td><?php echo date('d-m-Y',strtotime($hasil->tanggal)) ?></td>
        <td><?php echo $hasil->no_nota ?></td>
        <td><?php echo $hasil->kode_barang ?></td>
        <td><?php echo $hasil->barang ?></td>
        <td><?php echo $hasil->satuan ?></td>
        <td><?php echo $hasil->jumlah_diterima ?></td>
        <td><?php echo number_format($hasil->total_harga_diterima,0,',','.') ?></td>
        <td><?php echo $hasil->suplier ?></td>
    </tr>
    <?php
}
?>
</tbody>
</table>
<!-- End Table with stripped rows -->