{{define "invoice_card"}}
Customer: {{.name}}
{{end}} {{with .job}}Job: {{.name}}
{{end}} {{/* Show location only in single invoice view */}} {{if not .MultipleInvoices}} {{with .location}}Location: {{.name}}
{{end}} {{end}}Total: ${{.totalPrice}}
{{/* Show items only in single invoice view */}} {{if not .MultipleInvoices}} {{if .items}}