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

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

{{ else }}

No invoices have been projected yet.

{{ end }}
{{ else }}
{{ range .Invoices }} {{ end }}
ID Billing Account Status Amount Due Amount Paid Due Date Paid At Stripe Sync Created
{{ slice .InvoiceID 0 8 }}... {{ .BillingAccountName }} {{ .Status }} {{ .AmountDue }} {{ .AmountPaid }} {{ if .DueDate }} {{ .DueDate }} {{ else }} {{ end }} {{ if .PaidAt }} {{ .PaidAt }} {{ else }} {{ 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 .Invoices }} invoices

{{ end }} {{ end }}