{{if $billingAgreement->status() === \IPS\nexus\Customer\BillingAgreement::STATUS_ACTIVE}} {{elseif $billingAgreement->status() === \IPS\nexus\Customer\BillingAgreement::STATUS_SUSPENDED}} {{elseif $billingAgreement->status() === \IPS\nexus\Customer\BillingAgreement::STATUS_CANCELED}} {{endif}}

{lang="billing_agreement" sprintf="$billingAgreement->gw_id"}

{$billingAgreement->term()}
{{if $billingAgreement->status() === \IPS\nexus\Customer\BillingAgreement::STATUS_ACTIVE}} {lang="billing_agreement_suspend"} {{endif}} {{if $billingAgreement->status() === \IPS\nexus\Customer\BillingAgreement::STATUS_SUSPENDED}} {lang="billing_agreement_reactivate"} {{endif}} {{if $billingAgreement->status() !== \IPS\nexus\Customer\BillingAgreement::STATUS_CANCELED}} {lang="billing_agreement_cancel"} {{endif}}
{{if isset( $purchases[0] ) and \count( $purchases[0] )}}

{lang="billing_agreement_purchases"}

{{endif}}

{lang="billing_agreement_payments"}

{{if $invoicePagination}}
{$invoicePagination|raw}
{{endif}} {{if $invoicePagination}}
{$invoicePagination|raw}
{{endif}}