{{if $invoice->billaddress or $invoice->hasPhysicalItems()}}
{{if $invoice->billaddress}}

{lang="billing_address"} ({lang="edit"})

{$invoice->billaddress->toString('
')|raw} {{if isset( $invoice->billaddress->vat ) and $invoice->billaddress->vat}}
{lang="cm_checkout_vat_number"}: {$invoice->billaddress->vat} {{endif}}
{{endif}} {{if $invoice->hasPhysicalItems()}}

{lang="shipping_address"} ({lang="edit"})

{$invoice->shipaddress->toString('
')|raw}
{{endif}}
{{endif}} {{if $invoice->member->email}}
{lang="confirmation_sent_to" sprintf="$invoice->member->email"}
{{endif}} {$couponForm|raw}

{{if \IPS\Request::i()->isSecure() === TRUE}} {lang="secure_payment"} {{else}} {lang="payment"} {{endif}}

{$form|raw}

{lang="order_review"}

    {{foreach $summary['items'] as $item}} {{if !( $item instanceof \IPS\nexus\extensions\nexus\Item\CouponDiscount )}}
  • {{if $image = $item->image()}} {{else}}
     
    {{endif}}
    {$item->quantity} x {$item->name} {{if \count( $item->details )}}
    {{foreach $item->details as $k => $v}} {lang="nexus_pfield_{$k}"}: {expression="\IPS\nexus\Package\CustomField::load( $k )->displayValue( $v )" raw="true"}
    {{endforeach}}
    {{endif}}
    {$item->linePrice()} {{if $item->quantity > 1}}

    {lang="each_short" sprintf="$item->price"}

    {{endif}}
  • {{endif}} {{endforeach}} {{foreach $summary['items'] as $item}} {{if $item instanceof \IPS\nexus\extensions\nexus\Item\CouponDiscount}}
  • {lang="coupon"}
    {$item->linePrice()}
  • {{endif}} {{endforeach}}
  • {lang="subtotal"}
    {$summary['subtotal']}
  • {{foreach $summary['shipping'] as $shipping}}
  • {lang="shipping"} ({$shipping->name})
    {$shipping->linePrice()}
  • {{endforeach}} {{foreach $summary['tax'] as $taxId => $tax}}
  • {lang="nexus_tax_{$taxId}"} ({expression="$tax['rate']*100"}%)
    {$tax['amount']}
  • {{endforeach}} {{if $transactionsReceived = $invoice->transactions( array( \IPS\nexus\Transaction::STATUS_PAID, \IPS\nexus\Transaction::STATUS_PART_REFUNDED, \IPS\nexus\Transaction::STATUS_HELD, \IPS\nexus\Transaction::STATUS_REVIEW, \IPS\nexus\Transaction::STATUS_GATEWAY_PENDING ) )}} {{if \count( $transactionsReceived )}} {{foreach $transactionsReceived as $id => $transaction}}
  • {lang="payment_received"}
    {money="$transaction->amount->amount->subtract( $transaction->partial_refund->amount )->multiply( new \IPS\Math\Number('-1') )" currency="$transaction->currency"}
  • {{endforeach}}
  • {lang="total_to_pay"}
    {$invoice->amountToPay( TRUE )}
  • {{else}}
  • {lang="total"}
    {$invoice->amountToPay()}
  • {{endif}} {{endif}}
{{if \count( $recurrings )}} {{$taxAmount = new \IPS\Math\Number('0');}} {{foreach $recurrings as $recurring}}

{lang="renewals_header" sprintf="$recurring['term']->getTermUnit()"}

    {{foreach $recurring['items'] as $rId => $item}} {{if !( $item instanceof \IPS\nexus\extensions\nexus\Item\CouponDiscount )}}
  • {{if $image = $item->image()}} {{else}}
     
    {{endif}}
    {$item->quantity} x {$item->name} {{if \count( $item->details )}}
    {{foreach $item->details as $k => $v}} {lang="nexus_pfield_{$k}"}: {expression="\IPS\nexus\Package\CustomField::load( $k )->displayValue( $v )" raw="true"}
    {{endforeach}}
    {{endif}} {{if isset( $recurring['showDueDate'] ) AND !$recurring['showDueDate']}}
    {lang="product_renews_on" sprintf="$item->expireDate->relative()"} {{endif}}
    {{if $item instanceof \IPS\nexus\Invoice\Item\Renewal}} {$item->linePrice()} {{else}} {{if isset( $overriddenRenewalTerms[ $rId ] )}} {money="$overriddenRenewalTerms[ $rId ]->cost->amount->multiply( new \IPS\Math\Number( (string) $item->quantity ) )" currency="$overriddenRenewalTerms[ $rId ]->cost->currency"} {{elseif $item->renewalTerm}} {money="$item->renewalTerm->cost->amount->multiply( new \IPS\Math\Number( (string) $item->quantity ) )" currency="$item->renewalTerm->cost->currency"} {{endif}} {{endif}} {{if $item->quantity > 1 AND (!$item instanceof \IPS\nexus\Invoice\Item\Renewal)}}

    {lang="each_short" sprintf="$item->renewalTerm->cost"}

    {{endif}}
  • {{endif}} {{endforeach}} {{if $recurring['term']->tax and $taxRate = $recurring['term']->tax->rate( $invoice->billaddress ) and $taxAmount = $recurring['term']->cost->amount->multiply( new \IPS\Math\Number( $taxRate ) )}}
  • {$recurring['term']->tax->_title} ({expression="$taxRate*100"}%)
    {money="$taxAmount" currency="$recurring['term']->cost->currency"}
  • {{endif}} {{if !isset( $recurring['showDueDate'] ) OR $recurring['showDueDate'] }}
  • {lang="total_due_on" sprintf="$recurring['dueDate']->relative()"}
    {money="$recurring['term']->cost->amount->add( $taxAmount )" currency="$recurring['term']->cost->currency"}
  • {{endif}}
{{endforeach}} {{endif}} {{if settings.nexus_tac === 'button'}}

{lang="you_agree_to_tac" sprintf="\IPS\Settings::i()->nexus_tac_link"}

{{endif}}