{{try { $extra = $purchase->clientAreaPage(); } catch( \ErrorException $e ) { $extra = array(); } }}
{{if $image = $purchase->image()}} url )"}" );'>  {{else}}   {{endif}}
{{if ( $purchase->expire AND $canRenewUntil = $purchase->canRenewUntil(NULL,TRUE) ) OR $purchase->canCancel()}} {{endif}}
{lang="ps_start"}
{$purchase->start->localeDate()}
{{if $purchase->expire}}
{lang="ps_expire"}
{$purchase->expire->localeDate()}
{{endif}} {{if $purchase->renewals and !$purchase->grouped_renewals}}
{lang="purchase_renewal_terms"}
{$purchase->renewals->toDisplay( $purchase->member )}
{{endif}} {{if $purchase->billing_agreement AND !$purchase->billing_agreement->canceled}}
{lang="ps_billing_agreement"}
{{endif}}

{$purchase->name}

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



{{if $pendingInvoice = $purchase->invoice_pending and $pendingInvoice->status === $pendingInvoice::STATUS_PENDING}}
{lang="purchase_pending_invoice"} {{if $pendingInvoice->canView()}}{lang="order_pay_now"}{{endif}}
{{endif}} {{if $lkey = $purchase->licenseKey()}}

{lang="purchase_license_key"}

{$lkey->key}
{{endif}} {{if isset( $extra['packageInfo'] )}}

{lang="purchase_package_info"}

{template="richText" group="global" app="core" location="global" params="$extra['packageInfo'], array('ipsType_normal', 'ipsContained', 'ipsType_break', 'ipsSpacer_bottom')"} {{endif}} {{if isset( $extra['purchaseInfo'] )}}
{$extra['purchaseInfo']|raw}


{{endif}}