<!-- Table with stripped rows -->
<table class="table table-hover" id="tabelkeranjang">
<thead>
<tr>
    <th scope="col">Tanggal</th>
    <th scope="col">Keterangan</th>
    <th scope="col">Masuk</th>
    <th scope="col">Keluar</th>
    <th scope="col">Penyesuaian</th>
    <th scope="col">Sisa Stok</th>
</tr>
</thead>
<tbody>
<?php
foreach ($datakartu as $hasil) {
    ?>
    <tr>
        <td><?php echo date('d-m-Y H:i:s',strtotime($hasil->tanggal)) ?></td>
        <td><?php echo $hasil->keterangan ?></td>
        <td><?php echo $hasil->masuk ?></td>
        <td><?php echo $hasil->keluar ?></td>
        <td><?php echo $hasil->penyesuaian ?></td>
        <td><?php echo $hasil->saldo ?></td>
    </tr>
    <?php
}
?>
</tbody>
</table>
<!-- End Table with stripped rows -->