{extends file="layout.tpl"}

{* Security *}
{block name="no-return-functions" prepend}
    {check_auth role="CUSTOMER" login_tpl="login"}
{/block}

{* Body Class *}
{block name="body-class"}page-order-payment{/block}

{* Breadcrumb *}
{block name='no-return-functions' append}
    {$breadcrumbs = [
        ['title' => {intl l="Cart"}, 'url'=>{url path="/cart"}],
        ['title' => {intl l="Secure Payment"}, 'url'=>{url path="/order/pay"}]
    ]}
{/block}


{block name="main-content"}
    <div class="main">
        <article class="col-main clearfix" role="main" aria-labelledby="main-label">

            <h1 id="main-label" class="page-header">{intl l="Your Cart"}</h1>

            {include file="misc/checkout-progress.tpl" step="last"}

            {loop type="order" name="placed-order" id=$placed_order_id}

            <div id="payment-success" class="panel">
                <div class="panel-heading">
                    <h3 class="panel-title">{intl l="You choose to pay by"} : <span class="payment-method">{loop name="payment-module" type="module" id=$PAYMENT_MODULE}{$TITLE}{/loop}</span></h3>
                </div>
                <div class="panel-body">
                    <h3>{intl l="Thank you for the trust you place in us."}</h3>
                    <p>{intl l="A summary of your order email has been sent to the following address"} : {customer attr="email"}</p>
                    <p>{intl l="Your order will be confirmed by us upon receipt of your payment."}</p>

                    <dl class="dl-horizontal">
                        <dt>{intl l="Order number"} : </dt>
                        <dd>{$REF}</dd>
                        <dt>{intl l="Date"} : </dt>
                        <dd>{format_date date=$CREATE_DATE output="date"}</dd>
                        <dt>{intl l="Total"} : </dt>
                        <dd>{$TOTAL_TAXED_AMOUNT} {loop type="currency" name="order-currency" id=$CURRENCY}{$SYMBOL}{/loop}</dd>
                    </dl>
                </div>
            </div>

            {/loop}

            <a href="{navigate to="index"}" role="button" class="btn btn-checkout-home"><span>{intl l="Go home"}</span></a>

        </article>

    </div>
{/block}
