context->session->user->name); echo "

Umsatz-Übersicht für {$userName}

"; if (empty($this->bookings)) { echo '

Keine Buchungen

'; } echo ''; foreach ($this->bookings as $booking) { $timeInfo = date('d.m.Y H:i', $booking['time']); $text = htmlspecialchars(static::bookingText($booking['type'], $booking['relatedName'])); $comment = htmlspecialchars($booking['comment']); $amount = MoneyFormatter::formatAmount($booking['amount']); echo ""; } $final = MoneyFormatter::formatAmount($this->finalBalance); echo ""; echo '
{$timeInfo}{$text}{$comment}{$amount}
Kontostand:{$final}
'; } }