{{foreach $purchases[$rootId] as $purchase}}
  • {{if $fromBillingAgreement}} {lang="view"} {{else}} {{if $canRenewUntil = $purchase->canRenewUntil(NULL,TRUE)}} {lang="purchases_renewal_price"} {money="$purchase->renewal_price"}    1}}data-ipsDialog data-ipsDialog-size='narrow'{{endif}}>{lang="purchase_renew_now"} {{endif}} {lang="manage"} {{endif}}

    {{if $image = $purchase->image()}} url )"}" );' title="{lang="purchases_manage_purchase"}">  {{else}}   {{endif}}

    {lang="$purchase->getTypeTitle()"}

    {{if !$fromBillingAgreement and $pendingInvoice = $purchase->invoice_pending and $pendingInvoice->status === $pendingInvoice::STATUS_PENDING}}

    {lang="purchase_pending_invoice"} {{if $pendingInvoice->canView()}}{lang="order_pay_now"}{{endif}}


    {{endif}}

    {lang="purchase_status"}

    {{if $purchase->active}}{{if $purchase->grace_period and $expire = $purchase->expire and $expire->getTimestamp() < time()}}{lang="purchase_in_grace_period_front"}{{else}}{lang="purchase_active"}{{endif}}{{elseif $purchase->cancelled}}{lang="purchase_canceled"}{{else}}{lang="purchase_expired"}{{endif}}

    {lang="ps_start"}

    {$purchase->start->localeDate()}
    {{if $purchase->expire}}

    {lang="ps_expire"}

    {$purchase->expire->localeDate()}
    {{endif}} {{if !$fromBillingAgreement and $purchase->billing_agreement AND !$purchase->billing_agreement->canceled}}

    {lang="ps_billing_agreement"}

    {$purchase->billing_agreement->gw_id}
    {{endif}}
    {{if isset( $purchases[ $purchase->id ])}} {{endif}}
  • {{endforeach}}