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

<div class="row justify-content-center">
	<div class="col-10 col-md-12">

		<table class="cart-table responsive-table">

			<tr>
				<th>Dato</th>
				<th>Ordre</th>
				<th>Status</th>
				<th class="text-right">Point</th>
				<th class="text-right">Udløber</th>
				<th class="text-right">Afventer indtil</th>
			</tr>

			<{foreach $my_points as $point}>
				<tr>
					<td class="align-top"><{$point->getTime()|date_format:"%d.%m.%Y"}></td>

					<td class="align-top">
						<{if $order = $point->getOrder()}>
							<a href="<{$order->getPublicUrl()|escape}>"><{$order->getWebshopOrderId()|escape}></a>
						<{/if}>
					</td>

					<td class="align-top">
						<{if $point->getStatus() == "approved"}>
							<{t}>Godkendt<{/t}>
						<{elseif $point->getStatus() == "pending"}>
							<{t}>Afventer<{/t}>
						<{elseif $point->getStatus() == "revoked"}>
							<{t}>Tilbagekaldt<{/t}>
						<{elseif $point->getStatus() == "expired"}>
							<{t}>Udløbet<{/t}>
						<{else}>
							<{$point->getStatus()|escape}>
						<{/if}>
					</td>
					
					<td class="text-right align-top"><{$point->getPoints()|number_format:0:",":"."}></td>
					<td class="text-right align-top"><{$point->getExpires()|date_format:"%d.%m.%Y"}></td>
					<td class="text-right align-top"><{$point->getPendingUntil()|date_format:"%d.%m.%Y"}></td>
				</tr>
			<{/foreach}>

		</table>

		<br>

		<div class="clearfix"></div>
		
		<p><strong>Du har <{$customer->getActivePoints()|number_format:0:",":"."}> aktive point.</strong></p>

	</div>
</div>