@if (subscriptions && subscriptions.length > 0) {
{{ 'PLUGIN.HIERARCHY.TITLE' | translate }}
@for (node of nodes; track node) {
{{ 'PLUGIN.HIERARCHY.USER_ID' | translate }}: {{ getUserId(node.subscription) }}
{{ 'PLUGIN.HIERARCHY.TYPE' | translate }}: {{ node.Subscription.plan.type | titlecase }}
{{ 'PLUGIN.HIERARCHY.BILLING_PERIOD' | translate }}: {{ node.subscription.plan?.billingPeriod ?? node.subscription.billingPeriod | titlecase }}
{{ 'PLUGIN.HIERARCHY.AMOUNT' | translate }}: {{ formatAmount(node.subscription) }}
{{ 'PLUGIN.HIERARCHY.START_DATE' | translate }}: {{ formatDate(node.subscription.startDate) }}
@if (node.subscription.endDate) {
{{ 'PLUGIN.HIERARCHY.END_DATE' | translate }}: {{ formatDate(node.subscription.endDate) }}
} @if (node.subscription.nextBillingDate) {
{{ 'PLUGIN.HIERARCHY.NEXT_BILLING' | translate }}: {{ formatDate(node.subscription.nextBillingDate) }}
}
{{ 'PLUGIN.HIERARCHY.AUTO_RENEW' | translate }}: {{ (node.subscription.isAutoRenew ? 'PLUGIN.HIERARCHY.ENABLED' : 'PLUGIN.HIERARCHY.DISABLED' ) | translate }}
@if ( (node.subscription.plan?.features ?? node.subscription.features) && (node.subscription.plan?.features ?? node.subscription.features).length > 0 ) {
{{ 'PLUGIN.HIERARCHY.FEATURES' | translate }}:
@for ( feature of node.subscription.plan?.features ?? node.subscription.features ; track feature) { }
}
}
} @if (!subscriptions || subscriptions.length === 0) {

{{ 'PLUGIN.HIERARCHY.NO_SUBSCRIPTIONS' | translate }}

}