<div class="container-fluid">
	
		<div class="card">
  		<h5 class="card-header">Detail Produk</h5>
  		<div class="card-body">
  		<?php foreach ($barang as $brg):  ?>
    		<div class="row">
    			<div class="col-md-4">
    				<img src="<?= base_url('uploads/'.$brg->gambar) ?>" class="img-thumbnail" alt="">
    			</div>
    			<div class="col-md-8">
    				<table class="table">
    					<tr>
    						<td>Nama Produk</td>
    						<td><strong> <?php echo $brg->nama_brg ?></strong></td>
    					</tr>

    					<tr>
    						<td>Keteragan</td>
    						<td><strong> <?php echo $brg->keterangan ?></strong></td>
    					</tr>

    					<tr>
    						<td>Kategori</td>
    						<td><strong> <?php echo $brg->kategori ?></strong></td>
    					</tr>

    					<tr>
    						<td>Stok</td>
    						<td><strong> <?php echo $brg->stok ?></strong></td>
    					</tr>

    					<tr>
    						<td>Harga</td>
    						<td><strong><div class="btn btn-sm btn-success">Rp.<?php echo number_format($brg->harga+$brg->keuntungan,0,',','.') ?></div></strong></td>
    					</tr>
    				</table>
                    <?php echo anchor(base_url('admin/data_barang'), '<div class="btn btn-sm btn-danger">Kembali</div>') ?>
    			</div>
  </div>
    <?php endforeach; ?>
</div>
</div>