<%- include("../partials/page-header", { user, title: t.paidInvoices.title, subtitle: "", showUserName: true }) %> <% if (query?.error === "already_credited") { %>
⚠️ <%= t.global.nodata %>
<% } %>
<%- include("../partials/flash") %>

<%= t.paidInvoices.title %>

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