{{if $package->_image || $showImagePlaceholder}}
{{if $subscription and $subscription->package and $subscription->package->id === $package->id}}
{$package->_title}
{{if $priceInfo = $package->priceInfo() and $priceInfo['primaryPrice']}}
{template="packageBlockPrice" app="nexus" group="store" params="$priceInfo"}
{{else}}
{lang="nexus_sub_cost_unavailable"}
{{endif}}
{$package->description}
{{if $subscription}}
{{if $subscription->package and $subscription->purchase }}
{{$upgradeCost = (!( $subscription->purchase->billing_agreement and !$subscription->purchase->billing_agreement->canceled ) )? $package->costToUpgradeIncludingTax( $subscription->package, \IPS\nexus\Customer::loggedIn() ) : NULL;}}
{{if $subscription->package->id === $package->id}}
{{if $subscription->purchase->expire and ( $canRenewUntil = $subscription->purchase->canRenewUntil( NULL,TRUE ) or ( $subscription->purchase->can_reactivate ) or ( $pendingInvoice = $subscription->purchase->invoice_pending and $pendingInvoice->status === $pendingInvoice::STATUS_PENDING ) or $subscription->purchase->canCancel())}}