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

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

{{ else }}

No payments have been projected yet.

{{ end }}
{{ else }}
{{ range .Payments }} {{ end }}
ID Invoice Billing Account Status Amount Payment Method Stripe Sync Created
{{ slice .PaymentID 0 8 }}... {{ slice .InvoiceID 0 8 }}... {{ .BillingAccountName }} {{ .Status }} {{ .Amount }} {{ .PaymentMethod }} {{ 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 .Payments }} payments

{{ end }} {{ end }}