<%- include("partials/flash") %> <% if (patients.length === 0) { %>
Keine Patienten im Wartezimmer
<% } else { %> <% patients.forEach(p => { %> <% }) %>
Name Geburtstag Aktion
<%= p.firstname %> <%= p.lastname %> <%= new Date(p.birthdate).toLocaleDateString("de-DE") %> <% if (user.role === 'arzt') { %>
<% } else { %> 🔒 Nur Arzt <% } %>
<% } %>