<{* Template: user-orders.html Description: Author: 1260 A/S, @1260-digital Since: 2022-09-01 *}> <{capture name="title"}> <{t section="User"}>Mine point<{/t}> <{/capture}> <{include file="partials/user.profile.wrapper.start.html"}>

<{t}>Dine point<{/t}>

<{foreach $my_points as $point}> <{/foreach}>
<{t}>Dato<{/t}> <{t}>Ordre<{/t}> <{t}>Status<{/t}> <{t}>Point<{/t}> <{t}>Udløber<{/t}> <{t}>Afventer indtil<{/t}>
<{$point->getTime()|date_format:"%d.%m.%Y"}> <{if $order = $point->getOrder()}> <{$order->getWebshopOrderId()|escape}> <{/if}> <{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}> <{$point->getPoints()|number_format:0:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}> <{$point->getExpires()|date_format:"%d.%m.%Y"}> <{$point->getPendingUntil()|date_format:"%d.%m.%Y"}>
<{if $webshop->hasLoyaltyProgram()}> <{capture name="hasLoyaltyProgram"}> <{t x=$customer->getActivePoints()|number_format:0:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}>Du har {x} aktive point.<{/t}> <{/capture}> <{include file="components/alert.html" variant="info" text=$smarty.capture.hasLoyaltyProgram}> <{/if}>
<{include file="partials/user.profile.wrapper.end.html"}> <{include file="components/page-blocks.html"}>