<%- include("partials/page-header", { user, title: t.patienteoverview.patienttitle, subtitle: patient.firstname + " " + patient.lastname, showUserName: true, hideDashboardButton: false }) %>
<%- include("partials/flash") %>

๐Ÿ‘ค <%= patient.firstname %> <%= patient.lastname %>

<%= t.global.birthday %> <%= new Date(patient.birthdate).toLocaleDateString("de-DE") %>

  • <%= t.patientDashboard.email %> <%= patient.email || "-" %>
  • <%= t.patientDashboard.phone %> <%= patient.phone || "-" %>
  • <%= t.patientDashboard.address %> <%= patient.street || "" %> <%= patient.house_number || "" %>, <%= patient.postal_code || "" %> <%= patient.city || "" %>
๐Ÿ’Š <%= t.patientDashboard.medications %>
<% if (medications.length === 0) { %>

<%= t.patientDashboard.nomedications %>

<% } else { %> <% medications.forEach(m => { %> <% }) %>
<%= t.patientDashboard.medication %> <%= t.patientDashboard.variant %> <%= t.patientDashboard.instruction %>
<%= m.medication_name %> <%= m.variant_dosage %> <%= m.dosage_instruction || "-" %>
<% } %>
๐Ÿงพ <%= t.patientDashboard.invoices %>
<% if (invoices.length === 0) { %>

<%= t.patientDashboard.noinvoices %>

<% } else { %> <% invoices.forEach(i => { %> <% }) %>
<%= t.patientDashboard.date %> <%= t.patientDashboard.amount %> <%= t.patientDashboard.pdf %>
<%= new Date(i.invoice_date).toLocaleDateString("de-DE") %> <%= Number(i.total_amount).toFixed(2) %> โ‚ฌ <% if (i.file_path) { %> ๐Ÿ“„ <%= t.patientDashboard.open %> <% } else { %> - <% } %>
<% } %>