Kunde Details
= htmlspecialchars($customer['firstname'] . ' ' . $customer['lastname']) ?>
= htmlspecialchars($customer['email']) ?>
Registriert: = date('d.m.Y H:i', strtotime($customer['created_at'])) ?>
Kunden-ID: #= $customer['id'] ?>
Letzte Aktivität: = date('d.m.Y H:i', strtotime($customer['updated_at'] ?? $customer['created_at'])) ?>
= count($orders) ?>
Bestellungen€= number_format(array_sum(array_column($orders, 'total')), 2, ',', '.') ?>
Gesamtumsatz= count(array_filter($orders, function($o) { return strtotime($o['created_at']) > strtotime('-30 days'); })) ?>
Letzte 30 Tage€= count($orders) > 0 ? number_format(array_sum(array_column($orders, 'total')) / count($orders), 2, ',', '.') : '0,00' ?>
Ø BestellungBestellungen (= count($orders) ?>)
Keine Bestellungen
Dieser Kunde hat noch keine Bestellungen getätigt.
| Bestell-Nr. | Datum | Status | Artikel | Gesamt | Aktionen |
|---|---|---|---|---|---|
| #= $order['id'] ?> | = date('d.m.Y H:i', strtotime($order['created_at'])) ?> | = $statusText ?> | = $order['item_count'] ?> Artikel | €= number_format($order['total'], 2, ',', '.') ?> | Details |
Kundenaktivität
Kunde registriert
= date('d.m.Y H:i', strtotime($customer['created_at'])) ?>
Bestellung #= $order['id'] ?> getätigt
= date('d.m.Y H:i', strtotime($order['created_at'])) ?> - €= number_format($order['total'], 2, ',', '.') ?>