$participant['participant_id'], 'type' => 'payment', 'limit' => 100, ]) : []; $consumptionEntries = $participant !== null ? ledger_fetch_recent_entries($pdo, $tenantId, [ 'participant_id' => $participant['participant_id'], 'type' => 'consumption', 'limit' => 100, ]) : []; function teilnehmerauswertung_money(int $cents): string { return saas_format_money_cents($cents) . ' €'; } function teilnehmerauswertung_date(string $value): string { try { return (new DateTimeImmutable($value))->format('d.m.Y'); } catch (Throwable $e) { return $value; } } function teilnehmerauswertung_current_name(?array $saasUser): string { return trim((string)($saasUser['display_name'] ?? '')); } function teilnehmerauswertung_paypal_action(string $template, string $amount): string { return trim($template) . $amount; } function teilnehmerauswertung_render_payments(array $entries): void { echo "

Letzte Einzahlungen

"; echo ""; if ($entries === []) { echo ""; } foreach ($entries as $entry) { echo ""; echo ""; echo ""; echo ""; } echo "
DatumEinzahlung
Keine Einzahlungen vorhanden.
" . saas_html(teilnehmerauswertung_date((string)$entry['booked_at'])) . "" . saas_html(teilnehmerauswertung_money((int)$entry['amount_cents'])) . "
"; } function teilnehmerauswertung_render_consumption(array $entries): void { echo "

Letzte Striche

"; echo ""; if ($entries === []) { echo ""; } foreach ($entries as $entry) { echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
DatumStricheKosten
Keine Striche vorhanden.
" . saas_html(teilnehmerauswertung_date((string)$entry['booked_at'])) . "" . number_format((int)($entry['marks_count'] ?? 0), 0, ',', '.') . "" . saas_html(teilnehmerauswertung_money(abs((int)$entry['amount_cents']))) . "
"; } include "header.php"; include "headerline.php"; include "nav.php"; ?>