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