65 lines
1.9 KiB
Plaintext
65 lines
1.9 KiB
Plaintext
<div class="layout">
|
|
|
|
<!-- ✅ SIDEBAR -->
|
|
<%- include("partials/sidebar", { user, active: "patients", lang }) %>
|
|
|
|
<!-- ✅ MAIN -->
|
|
<div class="main">
|
|
|
|
<!-- ✅ HEADER (inkl. Uhrzeit) -->
|
|
<%- include("partials/page-header", {
|
|
user,
|
|
title: "Dashboard",
|
|
subtitle: "",
|
|
showUserName: true,
|
|
hideDashboardButton: true
|
|
}) %>
|
|
|
|
<div class="content p-4">
|
|
|
|
<!-- Flash Messages -->
|
|
<%- include("partials/flash") %>
|
|
|
|
<!-- =========================
|
|
WARTEZIMMER MONITOR
|
|
========================= -->
|
|
<div class="waiting-monitor">
|
|
<h5 class="mb-3">🪑 Wartezimmer-Monitor</h5>
|
|
|
|
<div class="waiting-grid">
|
|
<% if (waitingPatients && waitingPatients.length > 0) { %>
|
|
|
|
<% waitingPatients.forEach(p => { %>
|
|
|
|
<% if (user.role === 'arzt' || user.role === 'mitarbeiter') { %>
|
|
<a href="/patients/<%= p.id %>/overview" class="waiting-slot occupied clickable">
|
|
<div class="patient-text">
|
|
<div class="name"><%= p.firstname %> <%= p.lastname %></div>
|
|
<div class="birthdate">
|
|
<%= new Date(p.birthdate).toLocaleDateString("de-DE") %>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
<% } else { %>
|
|
<div class="waiting-slot occupied">
|
|
<div class="patient-text">
|
|
<div class="name"><%= p.firstname %> <%= p.lastname %></div>
|
|
<div class="birthdate">
|
|
<%= new Date(p.birthdate).toLocaleDateString("de-DE") %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% } %>
|
|
|
|
<% }) %>
|
|
|
|
<% } else { %>
|
|
<div class="text-muted">Keine Patienten im Wartezimmer.</div>
|
|
<% } %>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|