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

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

{{ else }}

No billing accounts have been projected yet.

{{ end }}
{{ else }}
{{ range .Accounts }} {{ end }}
Name Organization Status Stripe Sync Stripe Customer Created
{{ .Name }} {{ if .OrgName }} {{ .OrgName }} {{ else }} {{ .OrgID }} {{ end }} {{ if eq .Status "active" }} {{ .Status }} {{ else if eq .Status "suspended" }} {{ .Status }} {{ else if eq .Status "closed" }} {{ .Status }} {{ else }} {{ .Status }} {{ end }} {{ if eq .StripeSyncStatus "synced" }} Synced {{ else if eq .StripeSyncStatus "pending" }} Pending {{ else if eq .StripeSyncStatus "not_mapped" }} Not Mapped {{ else }} {{ .StripeSyncStatus }} {{ end }} {{ if .StripeCustomerID }} {{ $url := stripeEntityURL "customers" .StripeCustomerID }} {{ if $url }} {{ .StripeCustomerID }} {{ else }} {{ .StripeCustomerID }} {{ end }} {{ else }} {{ end }} {{ .CreatedAt }}

Total: {{ len .Accounts }} billing accounts

{{ end }} {{ end }}