<?php foreach ($this->cart->contents() as $key => $row): ?>
	<?php $shop_id = $row['shop_id'] ?? 0; ?>
	<?php if (!isset($row['is_pos']) || $row['is_pos'] == 0): ?>
		<?php $type = (isset($row['is_package']) && $row['is_package'] == 1) ? 'package' : 'item'; ?>
		<li>
			<div class="single_item_cart">
				<div class="incress_area">
					<span class="value-button minus" data-id="<?= $row['rowid']; ?>" value="Decrease Value"><i class="icofont-minus"></i></span>

					<span class="cart_qty_field"><input readonly type="text" id="qty_<?= $row['rowid']; ?>" class="qty" value="<?= $row['qty']; ?>" min-value='1' /></span>

					<span class="value-button add" data-id="<?= $row['rowid']; ?>" value="Increase Value"><i class="icofont-plus"></i></span>
				</div>
				<div class="left_cart <?= is_image($shop_id); ?>">
					<?php if (is_image($shop_id) == 0): ?>
						<img src="<?= get_img($row['thumb'], $row['img_url'], $row['img_type']); ?>" alt="item_img" onclick='window.open("<?= base_url("item-details/" . md5($row['item_id']) . "/" . $type); ?>", "_blank")' class="pointer">
					<?php endif; ?>
					<div class="single_cart_item_details">
						<h4 class="pointer" onclick='window.open("<?= base_url("item-details/" . md5($row['item_id']) . "/" . $type); ?>", "_blank")'><?= html_escape($row['name']); ?> <span class="extrasTitleCard">
								<?php if (isset($row['is_extras']) && $row['is_extras'] == 1 && !empty($row['extra_id'])): ?>
									<?php foreach (json_decode($row['extra_id'], true) as $ex): ?>
										<?php echo $extras_name =  rtrim('+' . $this->common_m->get_extras_name($ex, $row['item_id']) . '+', '+'); ?>
									<?php endforeach ?>
								<?php endif ?>
							</span></h4>
						<div class="sizePrice">

							<?php if ((isset($row['is_variants']) && $row['is_variants'] == 1) && (isset($row['sizes']['size_slug']) && !empty($row['sizes']['size_slug']))): ?>
								<?php $item_size = item_size($row['sizes']['size_slug'], $row['item_id'], $row['shop_id']); ?>
								<p class="sizeTagName f-color"><?= isset($item_size) && !empty($item_size) ? $item_size->variant_name . ': ' . $item_size->name : ''; ?></p>
							<?php else: ?>
								<p><?= isset($row['sizes']['size_slug']) && !empty($row['sizes']['size_slug']) ? lang('size') . ' : ' . get_size($row['sizes']['size_slug'], $row['shop_id']) : ""; ?></p>
							<?php endif; ?>
						</div>

						<p class="currencyTag"><?= currency_position($row['price'], $row['shop_id']) . ' x ' . html_escape($row['qty']); ?> = <?= currency_position(($row['price'] * $row['qty']), $row['shop_id']); ?></p>

						<?php if (shop($shop_id)->is_tax == 1 && $row['tax_fee'] != 0): ?>
							<p class="tax_status"><?= tax($row['tax_fee'], $row['tax_status']); ?></p>
						<?php endif ?>
					</div>

				</div>
				<div class="right_cart">
					<a href="javascript:;" data-id="<?= $row['rowid']; ?>" class="remove_item"><i class="icofont-close-line"></i></a>
				</div>
			</div>
		</li>
	<?php endif ?>
<?php endforeach ?>