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

Nothing to show here yet. Billing records appear once payment processing completes.

{{ else }}
{{ range .Invoices }} {{ end }}
Period Amount due Amount paid Status
{{ .Period }} {{ .AmountDue }} {{ .AmountPaid }} {{ .Status }}
{{ end }}