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

<%= t.patientOverview.patientdata %>

<%= t.patientOverview.firstname %> <%= patient.firstname %>
<%= t.patientOverview.lastname %> <%= patient.lastname %>
<%= t.patientOverview.birthdate %> <%= patient.birthdate ? new Date(patient.birthdate).toLocaleDateString("de-DE") : "-" %>
<%= t.patientOverview.email %> <%= patient.email || "-" %>
<%= t.patientOverview.phone %> <%= patient.phone || "-" %>
๐Ÿ“ <%= t.patientOverview.notes %>

<% if (!notes || notes.length === 0) { %>

<%= t.patientOverview.nonotes %>

<% } else { %> <% notes.forEach(n => { %>
<%= new Date(n.created_at).toLocaleString("de-DE") %> <% if (n.first_name && n.last_name) { %> โ€“ <%= (n.title ? n.title + " " : "") %><%= n.first_name %> <%= n.last_name %> <% } %>
<%= n.note %>
<% }) %> <% } %>
๐Ÿ’Š <%= t.patientOverview.createrecipe %>
๐Ÿงพ <%= t.patientOverview.searchservice %>

<% if (!todayServices || todayServices.length === 0) { %>

<%= t.patientOverview.noservices %>

<% } else { %> <% todayServices.forEach(ls => { %>
<%= ls.name %>
<%= t.global.quantity %>: <%= ls.quantity %>
<%= t.global.price %>: <%= Number(ls.price).toFixed(2) %> โ‚ฌ
<% }) %> <% } %>