v1.1.0.0
StocketBase
- <?php
-
- declare(strict_types=1);
-
- if (count(get_included_files()) === 1) {
- http_response_code(403);
- exit;
- }
-
- ?>
- <div class="account-orders">
- <?php foreach ($recentOrders as $orderRow): ?>
- <a class="account-order" href="account.php?tab=orders&order=<?= (int) $orderRow['id'] ?>">
- <span class="account-order-main">
- <strong><?= htmlspecialchars((string) $orderRow['order_number']) ?></strong>
- <small><?= htmlspecialchars(OrderView::date((string) $orderRow['created_at'])) ?></small>
- </span>
- <span class="status-pill status-<?= htmlspecialchars((string) $orderRow['status']) ?>"><?= htmlspecialchars(OrderView::statusLabel((string) $orderRow['status'])) ?></span>
- <span class="account-order-total"><?= htmlspecialchars(Currency::format((int) $orderRow['total_cents'], (string) $orderRow['currency'])) ?></span>
- </a>
- <?php endforeach; ?>
- </div>
-