{{define "content"}}

Invoices

All Pending Paid
{{template "invoice-table" .}}
{{end}} {{define "invoice-table"}}
{{if .Invoices}} {{range .Invoices}} {{end}} {{else}} {{end}}
Invoice # Customer Status Due Date Amount Actions
{{.InvoiceNumber}} {{.CustomerName}} {{statusBadge .Status}} {{formatDate .DueDate}} {{formatMoney .Amount}} View {{if eq .Status "pending"}} {{end}}
No invoices found. Invoices are auto-generated when orders are fulfilled.
{{end}}