<div class="checkout-section cart">Din kurv</div>

<table class="checkout cart-table responsive-table">
	<tr>
		<th class="hide-on-mobile">Vare</th>
		<th></th>
		<th class="text-right">Pris</th>
		<th class="text-right">Antal</th>
		<th class="text-right">Total</th>
	</tr>

	<{section name="i" loop=$basket}>
		<{assign var="product" value=$basket[i].product}>
		<{assign var="image" value=$product->getImage()}>

		<tr>
			<td class="hide-on-mobile">
				<a href="<{$product->getRemoteUrl()|escape}>">
					<{if $image}>
						<img src="<{$image->getSrc(80, 80, 'box')}>">
					<{else}>
						<img src="images/small_product_list_08.jpg" alt=""/>
					<{/if}>
				</a>
			</td>
			<td class="cart-title">
				<a href="<{$product->getRemoteUrl()|escape}>"><{$product->getName()|escape}></a>

				<{if $product->hasBundleProducts()}>
					<{assign var="bundle" value=$product->getBundleProducts()}>
					<{if $bundle}>
						<dl>
							<{section name="j" loop=$bundle}>
								<{assign var="b_product" value=$bundle[j]}>
								<{assign var="id" value=$b_product->getProductId()}>
								<dd>
									<small><{$b_product->getName()|escape}>
									<{if $basket[i].bundle.$id}>
										(<{$basket[i].bundle.$id.val}>)
									<{/if}></small>
								</dd>
							<{/section}>
						</dl>
					<{/if}>
				<{/if}>
			</td>
			<td class="text-right" nowrap>
				<{if $product->getBulkDiscountOver() && $basket[i].amount > $product->getBulkDiscountOver()}>
					<{$product->getBulkDiscountPrice()|number_format:2:",":"."}> <{$webshop->getCurrency()}>
				<{else}>
					<{$product->getRealPrice(1, $basket[i].attributes)|number_format:2:",":"."}> <{$webshop->getCurrency()}>
				<{/if}>
			</td>
			<td class="qty-checkout text-right"><{$basket[i].amount}></td>
			<td class="text-right" nowrap>
				<{$product->getRealPrice($basket[i].amount, $basket[i].attributes)|number_format:2:",":"."}> <{$webshop->getCurrency()}>
			</td>
		</tr>

	<{/section}>

</table>

<table class="cart-table bottom">
	<tr>
		<th class="checkout-totals">
			<div class="checkout-subtotal text-right">
				Samlet: <span><{$total_price|number_format:2:",":"."}> <{$webshop->getCurrency()}></span>
			</div>
		</th>
	</tr>
</table>