WebOrbiton
v1.1.0.0

StocketBase

23 lines · 955 B
  1. <?php
  2. ​
  3. declare(strict_types=1);
  4. ​
  5. if (count(get_included_files()) === 1) {
  6. http_response_code(403);
  7. exit;
  8. }
  9. ​
  10. ?>
  11. <div class="account-orders">
  12. <?php foreach ($recentOrders as $orderRow): ?>
  13. <a class="account-order" href="account.php?tab=orders&amp;order=<?= (int) $orderRow['id'] ?>">
  14. <span class="account-order-main">
  15. <strong><?= htmlspecialchars((string) $orderRow['order_number']) ?></strong>
  16. <small><?= htmlspecialchars(OrderView::date((string) $orderRow['created_at'])) ?></small>
  17. </span>
  18. <span class="status-pill status-<?= htmlspecialchars((string) $orderRow['status']) ?>"><?= htmlspecialchars(OrderView::statusLabel((string) $orderRow['status'])) ?></span>
  19. <span class="account-order-total"><?= htmlspecialchars(Currency::format((int) $orderRow['total_cents'], (string) $orderRow['currency'])) ?></span>
  20. </a>
  21. <?php endforeach; ?>
  22. </div>
  23. ​