<!-- Table with stripped rows -->
<table class="table table-hover" id="tabelkeranjang">
<thead>
<tr>
    <th scope="col">Tanggal</th>
    <th scope="col">No. Faktur</th>
    <th scope="col">Kode Barang</th>
    <th scope="col">Nama Barang</th>
    <th scope="col">Jumlah Retur</th>
    <th scope="col">Total Harga</th>
    <th scope="col">Nama Pegawai/Kasir</th>
    <th scope="col" width="2%"></th>
</tr>
</thead>
<tbody>
<?php
foreach ($dataretur as $hasil) {
    ?>
    <tr>
        <td><?php echo date('d-m-Y',strtotime($hasil->tanggal)) ?></td>
        <td><?php echo $hasil->faktur_jual ?></td>
        <td><?php echo $hasil->kode_barang ?></td>
        <td><?php echo $hasil->barang ?></td>
        <td><?php echo $hasil->jumlah_retur.' '.$hasil->satuan ?></td>
        <td><?php echo number_format($hasil->total_harga,0,',','.') ?></td>
        <td><?php echo $hasil->pegawai ?></td>
        <td><a href="<?php echo base_url('transaksi/cetak_returjual?id='.$hasil->id_returpenjualan) ?>" target="_blank" class="btn btn-secondary btn-xs" title="Cetak struk"><i class="fa fa-print"></i></a></td>
    </tr>
    <?php
}
?>
</tbody>
</table>
<!-- End Table with stripped rows -->