<!-- Table with stripped rows -->
<table class="table table-hover" id="tabelkeranjang">
<thead>
<tr>
    <th scope="col">Tanggal</th>
    <th scope="col">Kode Barang</th>
    <th scope="col">Nama Barang</th>
    <th scope="col">Jumlah</th>
    <th scope="col">Total Harga</th>
    <th scope="col">Suplier</th>
</tr>
</thead>
<tbody>
<?php
foreach ($databeli as $hasil) {
    $jumbel=$hasil->jumlah_beli/$hasil->konversi;
    $jumbel=round($jumbel,1);
    ?>
    <tr>
        <td><?php echo date('d-m-Y',strtotime($hasil->tgl_beli)) ?></td>
        <td><?php echo $hasil->kode_barang ?></td>
        <td><?php echo $hasil->barang ?></td>
        <td><?php echo $jumbel.' '.$hasil->satuan_grosir ?></td>
        <td><?php echo number_format($hasil->total_harga,0,',','.') ?></td>
        <td><?php echo $hasil->suplier ?></td>
    </tr>
    <?php
}
?>
</tbody>
</table>
<!-- End Table with stripped rows -->