<table class="quickcheckout-cart">
<thead>
<tr>
<td class="image"><?php echo $column_image; ?></td>
<td class="name"><?php echo $column_name; ?></td>
<td class="quantity"><?php echo $column_quantity; ?></td>
<td class="price1"><?php echo $column_price; ?></td>
<td class="total"><?php echo $column_total; ?></td>
</tr>
</thead>
<?php if ($products || $vouchers) { ?>
<tbody>
<script>dataLayerProducts = []</script>
        <?php
foreach ($products as $product) {
        	$_productName = $product['name'];
        	if (strpos($product['name'],'<br>') !== false) {
				$_productName = explode('<br>', $product['name'])[0];
			}
		?>
		<script>
			dataLayerProducts.push(
				{
					"item_name": "<?=$_productName?>",
					"item_id": "1",
					"price": "<?=strtr($product['price'], [','=>'.', '₺'=>''])?>",
					"item_brand": "<?=$_productName?>",
					"item_category": "<?=$_productName?>",
					"item_variant": "<?=$product['model']?>",
					"item_quantity": "<?=$product['quantity']?>"
				}
			);
if (paymentMethodClicked) {
				paymentMethodClicked=false;
				dataLayerPaymentMethodPushOrUpdate();
			}
		</script>
<tr>
<td class="image">
		 <?php if($product['customcase_image']){ ?>
		<?php if((int)$product['product_type']!=11){ ?>
		  <img width="50" height="80" src="<?php echo $product['case_image']; ?>" alt="Frame" style="position:absolute;">
		<?php } ?>
	<img width="<?php echo (int)$product['product_type']==11?52:49;?>" height="<?php echo (int)$product['product_type']==11? 60:80;?>" src="<?php echo $product['customcase_image']; ?>" style="margin-left:<?php echo (int)$product['product_type']==11?'7px':'0px';?>" alt="">
		   <?php }else{ ?>
		    <a target="_blank" href="<?php echo $product['customer_order_image']; ?>">
			<img src="<?php echo $product['customer_order_image']; ?>" width="60"></a>
			 <?php } ?>
			</td>
<td class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
<div>
<?php foreach ($product['option'] as $option) { ?>
<small><?php echo $option['name']; ?> <?php echo $option['value']; ?></small><br />
<?php } ?>
<?php if ($product['reward']) { ?>
<br />
<small><?php echo $product['reward']; ?></small>
<?php } ?>
<?php if ($product['recurring']) { ?>
<br />
<span class="label label-info"><?php echo $text_recurring_item; ?></span> <small><?php echo $product['recurring']; ?></small>
<?php } ?>
</div></td>
<td class="quantity"><?php if ($edit_cart) { ?>
<div class="input-group btn-block">
<span class="input-group-btn">
<button data-toggle="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger button-remove" data-remove="<?php echo $product['key']; ?>"><i class="fa fa-times-circle"></i></button>
</span>
</div>
<?php } else { ?>
x&nbsp;<?php echo $product['quantity']; ?>
<?php } ?></td>
<td class="price1"><?php echo $product['price']; ?></td>
<td class="total"><?php echo $product['total']; ?></td>
</tr>
<?php } ?>
<?php foreach ($vouchers as $voucher) { ?>
<tr>
<td class="image"></td>
<td class="name"><?php echo $voucher['description']; ?></td>
<td class="quantity">x&nbsp;1</td>
<td class="price1"><?php echo $voucher['amount']; ?></td>
<td class="total"><?php echo $voucher['amount']; ?></td>
</tr>
<?php } ?>

<? if(!empty($reward_total)){ ?>
<tr>
 	<td class="text-center" colspan="5"><b><?php echo $reward_total; ?><b></td>
</tr>
<? } ?>

<?php foreach ($totals as $total) { ?>
<tr>
<td class="text-right" colspan="4"><b><?php echo $total['title']; ?>:</b></td>
				<td class="text-right"><?php echo $total['text']; ?></td>
</tr>
<?php } ?>
</tbody>
<?php } ?>
</table>