<{if $order_return}>
	<{$order = $order_return->getOrder()}>

	<div class="text-right">
		Returnering, ordre <{$order->getWebshopOrderId()}>
	</div>

	<h3 class="headline">Returnerede varer</h3><span class="line margin-bottom-25"></span><div class="clearfix"></div>

	<{if $order_return->getStatus() == "new"}>

		<div class="alert alert-warning">Din returnering er under behandling</div>

	<{elseif $order_return->getStatus() == "done"}>

		<div class="alert alert-success">Din returnering er færdigbehandlet</div>

	<{/if}>

	<div class="my-4">
		<a href="#small-dialog" class="popup-with-zoom-anim button color margin-left-0">Har du spørgsmål til din returnering?</a>
	</div>

	<div id="small-dialog" class="zoom-anim-dialog mfp-hide">
		<h3 class="headline">Spørgsmål</h3><span class="line margin-bottom-25"></span><div class="clearfix"></div>

		<form id="add-comment" class="add-comment" method="post">
			<input type="hidden" name="subject" value="Spørgsmål ang. returnering ordre <{$order->getWebshopOrderId()|escape}>"/>
			<input type="hidden" name="order_url" value="<{$order_return->getPublicUrl()|escape}>"/>

			<fieldset>
				<p>Skriv dit spørgsmål her, og vi vender tilbage hurtigst muligt pr. mail:</p>

				<div>
					<label>Dit navn:</label>
					<input type="text" name="name" value="<{$order->getOrderName()|escape}>" size="50"/>
				</div>

				<div>
					<label>Din e-mail-adresse: <span>*</span></label>
					<input type="text" name="from" value="<{$order->getEmail()|escape}>" size="50" required/>
				</div>

				<div>
					<label>Dit spørgsmål: <span>*</span></label>
					<textarea cols="40" rows="3" name="question" required></textarea>
				</div>

			</fieldset>

			<input type="submit" value="Send" class="button color" id="send_button"/>
			<div class="clearfix"></div>

		</form>
	</div>

	<div class="row justify-content-center">
		<div class="col-10 col-md-12">
			<h3 class="headline">Produkter</h3><span class="line margin-bottom-35"></span><div class="clearfix"></div>
		</div>
	</div>

	<form action="" method="post">

		<table class="cart-table responsive-table">
			<tr>
				<th>Produkt</th>
				<th>Evt. begrundelse</th>
				<th class="text-right">Pris</th>
			</tr>

			<{foreach $order_return->getReturnProducts() as $return_product}>
				<{if $product = $return_product->getProduct()}>
					<tr>
						<td>
							<{if $image = $product->getImage()}>
								<a href="<{$product->getRemoteUrl()|escape}>"><img src="<{$image->getSrc(50, 50, 'box')}>" <{$image->getHtmlSize(50, 50, 'box')}> alt="" style="border-radius:100px;"></a>
							<{/if}>

							<a href="<{$product->getRemoteUrl()|escape}>"><{$product->getName()|escape}></a>

							<{if $attributes = $return_product->getAttributes()}>
								<ul>
									<{section name="j" loop=$attributes}>
										<li><{$attributes[j].name}>: <{$attributes[j].val}></li>
									<{/section}>
								</ul>
							<{/if}>
						</td>

						<td>
							<{$return_product->getReason()|escape}>
						</td>

						<td class="text-right">
							<strong><{$webshop->getCurrency()}> <{$product->getUnitPrice()|number_format:2:",":"."}></strong>
							<div><small>Moms <{$webshop->getCurrency()}> <{$product->getUnitVat()|number_format:2:",":"."}></small></div>
						</td>
					</tr>
				<{/if}>
			<{/foreach}>

			<tr>
				<td>
					<strong>Oprindelig pris</strong>
				</td>

				<td>
				</td>

				<td class="text-right">
					<strong><{$webshop->getCurrency()|escape}> <{$order->getTotalPrice()|number_format:2:",":"."}></strong><br>
					<small>Moms <{$webshop->getCurrency()}> <{$order->getVat()|number_format:2:",":"."}></small>
				</td>
			</tr>

			<tr>
				<td>
					<strong>Samlet returnering</strong>
				</td>

				<td>
				</td>

				<td class="text-right">
					<strong><{$webshop->getCurrency()|escape}> <{$order_return->getPrice()|number_format:2:",":"."}></strong><br>
					<small>Moms <{$webshop->getCurrency()}> <{$order_return->getVat()|number_format:2:",":"."}></small>
				</td>
			</tr>

			<{if $shipping = $order_return->getShipping()}>
				<tr>
					<td>
						<strong>Tilbageleveringsmetode via <{$shipping->getName()|escape}></strong>
					</td>

					<td>
					</td>

					<td class="text-right">
						<strong><{$webshop->getCurrency()|escape}> <{$order_return->getShippingPrice()|number_format:2:",":"."}></strong><br>
						<small>Moms <{$webshop->getCurrency()}> <{$order_return->getShippingVat()|number_format:2:",":"."}></small>
					</td>
				</tr>
			<{/if}>

			<tr>
				<td>
					<strong>Refungering</strong>
				</td>

				<td class="text-right">
				</td>

				<td class="text-right">
					<strong><{$webshop->getCurrency()}> <{$order_return->getReturnPrice()|number_format:2:",":"."}></strong><br>
					<small>Moms <{$webshop->getCurrency()}> <{$order_return->getReturnVat()|number_format:2:",":"."}></small>
				</td>
			</tr>

		</table>

		<div class="mt-4"></div>

	</form>

	<div class="mt-4"></div>
<{/if}>