%- include("partials/page-header", {
user,
title: "Offene Leistungen",
subtitle: "Offene Rechnungen",
showUserName: true
}) %>
<% let currentPatient = null; %>
<% if (!rows.length) { %>
โ
Keine offenen Leistungen vorhanden
<% } %>
<% rows.forEach(r => { %>
<% if (!currentPatient || currentPatient !== r.patient_id) { %>
<% currentPatient = r.patient_id; %>
๐ค <%= r.firstname %> <%= r.lastname %>
<% } %>
<%= r.name %>
<% }) %>