<div class="site-title"><?= htmlspecialchars($this->name . ' ' . $this->surname, ENT_QUOTES, 'UTF-8'); ?></div>
<div class="site-subtitle">
  Łączne zakupy: <?= number_format((float)$this->total_spent, 2, '.', ' '); ?> zl,
  liczba zamówień: <?= (int)$this->total_orders; ?>
</div>

<br />

<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->ordersTable]); ?>