<%- include("../partials/page-header", { user, title: t.adminSidebar.invocieoverview, subtitle: "", showUserName: true }) %>
<%= t.global.yearcash %>
<% if (!yearly || yearly.length === 0) { %> <% } %> <% (yearly || []).forEach(y => { %> <% }) %>
<%= t.global.year %>
<%= t.global.nodata %>
<%= y.year %> <%= Number(y.total).toFixed(2) %>
<%= t.global.quartalcash %>
<% if (!quarterly || quarterly.length === 0) { %> <% } %> <% (quarterly || []).forEach(q => { %> <% }) %>
<%= t.global.year %> Q
<%= t.global.nodata %>
<%= q.year %> Q<%= q.quarter %> <%= Number(q.total).toFixed(2) %>
<%= t.global.monthcash %>
<% if (!monthly || monthly.length === 0) { %> <% } %> <% (monthly || []).forEach(m => { %> <% }) %>
<%= t.global.month %>
<%= t.global.nodata %>
<%= m.month %> <%= Number(m.total).toFixed(2) %>
<%= t.global.patientcash %>
<%= t.global.reset %>
<% if (!patients || patients.length === 0) { %> <% } %> <% (patients || []).forEach(p => { %> <% }) %>
<%= t.global.patient %>
<%= t.global.nodata %>
<%= p.patient %> <%= Number(p.total).toFixed(2) %>