true, 'year' => $year, ]) : []; $recentEntries = $hasAccess ? ledger_fetch_recent_entries($pdo, $tenantId, ['limit' => 25]) : []; function ledger_preview_money(int $cents): string { return saas_format_money_cents($cents) . ' EUR'; } function ledger_preview_entry_type(string $type): string { if ($type === 'payment') { return 'Einzahlung'; } if ($type === 'consumption') { return 'Kaffeeverbrauch'; } return $type; } include 'header.php'; include 'headerline.php'; include 'nav.php'; ?>