{{ define "title" -}} {{( pgettext "Invoices" "title" )}} {{- end }} {{ define "breadcrumb" -}} {{- end }} {{ define "content" }} {{- /*gotype: dev.tandem.ws/tandem/camper/pkg/invoice.invoiceIndex*/ -}}
{{ CSRFInput }}
{{ with .Filters }} {{ with .Customer }}{{ end }} {{ with .InvoiceStatus }}{{ end }} {{ with .FromDate }}{{ end }} {{ with .ToDate }}{{ end }} {{ with .InvoiceStatus }}{{ end }} {{ end }}
{{ with .Filters }} {{ with .Customer -}} {{- end }} {{ with .InvoiceStatus -}} {{- end }} {{ with .FromDate -}} {{- end }} {{ with .ToDate -}} {{- end }} {{ with .InvoiceNumber -}} {{- end }} {{ end }}
{{ if .Filters.HasValue }} {{( pgettext "Reset" "action" )}} {{ end }}
{{( pgettext "Add invoice" "action" )}}

{{ template "title" . }}

{{ with .Invoices }} {{- range $invoice := . }} {{ $title := .Number | printf (pgettext "Select invoice %v" "action") }} {{- $title = .Number | printf (pgettext "Download invoice %s" "action") -}} {{- end }} {{ else }} {{ end }} {{ if .Invoices }} {{ end }}
{{( pgettext "All" "invoice" )}} {{( pgettext "Date" "title" )}} {{( pgettext "Invoice Num." "title" )}} {{( pgettext "Customer" "title" )}} {{( pgettext "Status" "title" )}} {{( pgettext "Download" "title" )}} {{( pgettext "Amount" "title" )}}
{{ .Date|formatDate }} {{ .Number }} {{ .CustomerName }} {{ .Total|formatPrice }}
{{( gettext "No invoices added yet." )}}
{{( gettext "Total" )}} {{ .TotalAmount|formatPrice }}
{{- end }}