<?php $sl = 1; ?>

<?php if (!empty($this->cart->contents())): ?>
	<?php foreach ($this->cart->contents() as $productInfo): ?>
	    <tr class="productRow" id="productRow_<?= $productInfo['id'] ?>">
	    	<td><?= $sl++ ?></td>
		    <td>
			    <input class="form-control rowId" type="hidden" id="rowId_<?= $productInfo['id'] ?>" name="rowId[]" value="<?= $productInfo['rowid'] ?>">
			    <input class="form-control productId" type="hidden" id="productId_<?= $productInfo['id'] ?>" name="productId[]" value="<?= $productInfo['id'] ?>">
			    <?= $productInfo['name'] ?>
			</td>

		    <td align="right">
	    		<input class="form-control" type="hidden" min="1" id="unit_<?= $productInfo['id'] ?>" name="unit[]" value="<?= $productInfo['unit'] ?>" oninput="getTotalPrice(<?= $productInfo['id'] ?>)">
		    	<?= $productInfo['unit'] ?>
		    </td>

		    <td align="right">
	    		<input class="form-control" type="hidden" min="1" id="qty_<?= $productInfo['id'] ?>" name="qty[]" value="<?= $productInfo['qty'] ?>" oninput="getTotalPrice(<?= $productInfo['id'] ?>)">
		    	<?= $productInfo['qty'] ?>
		    </td>
		    <td><i class="fa fa-trash" style="color: red;" onclick="remove(<?= $productInfo['id'] ?>)"></i></td>
	    </tr>	
	<?php endforeach ?>
<?php endif ?>