{{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 isset( $purchases[0] ) and \count( $purchases[0] )}}