{{ if .Error }} {{ else }} {{ if eq (len .Subscriptions) 0 }}
{{ if not .StripeConfigured }}

Billing data requires Stripe to be configured for this deployment. Configure Stripe.

{{ else }}

No subscriptions have been projected yet.

{{ end }}
{{ else }}
{{ range .Subscriptions }} {{ end }}
ID Billing Account Status Current Period Cancel at Period End Stripe Sync Created
{{ slice .SubscriptionID 0 8 }}... {{ .BillingAccountName }} {{ .Status }} {{ if .CurrentPeriodStart }} {{ .CurrentPeriodStart }} → {{ .CurrentPeriodEnd }} {{ else }} {{ end }} {{ if .CancelAtPeriodEnd }} Yes {{ else }} No {{ end }} {{ if eq .StripeSyncStatus "synced" }} Synced {{ else if eq .StripeSyncStatus "pending" }} Pending {{ else if eq .StripeSyncStatus "not_mapped" }} Not Mapped {{ else }} {{ .StripeSyncStatus }} {{ end }} {{ .CreatedAt }}

Total: {{ len .Subscriptions }} subscriptions

{{ end }} {{ end }}