Frühstückskonten Verwaltung

<% if (typeof user !== 'undefined' && user) { %> <% } %>

Dashboard

Konten

<%= typeof stats !== 'undefined' ? stats.count : 0 %>

Gesamtguthaben

<%= typeof stats !== 'undefined' ? (stats.total_balance || 0).toFixed(2) : '0.00' %> €

Letzte Transaktionen

<% if (typeof transactions !== 'undefined' && transactions.length > 0) { %> <% transactions.forEach(function(transaction) { %> <% }); %> <% } else { %> <% } %>
Datum Konto Typ Betrag Beschreibung Artikel Durchgeführt von
<%= new Date(transaction.created_at).toLocaleString('de-DE') %> <%= transaction.account_name %> <%= transaction.type === 'deposit' ? 'Einzahlung' : 'Abbuchung' %> <%= transaction.amount.toFixed(2) %> € <%= transaction.description %> <%= transaction.item_name || '-' %> <%= transaction.created_by_name || 'System' %>
Keine Transaktionen vorhanden
Neues Konto anlegen <% if (typeof isAdmin !== 'undefined' && isAdmin) { %> Neuen Artikel anlegen <% } %>