<%- include("../partials/page-header", { user, title: t.openInvoices.title, subtitle: "", showUserName: true }) %>
<%- include("../partials/flash") %>

<%= t.openInvoices.title %>

<% if (invoices.length === 0) { %>

<%= t.openInvoices.noinvoices %>

<% } else { %> <% invoices.forEach(inv => { %> <% }) %>
# <%= t.openInvoices.patient %> <%= t.openInvoices.date %> <%= t.openInvoices.amount %> <%= t.openInvoices.status %>
<%= inv.id %> <%= inv.firstname %> <%= inv.lastname %> <%= inv.invoice_date_formatted %> <%= inv.total_amount_formatted %> € <%= t.openInvoices.open %>
<% } %>