From 124da9db6340da174eb6317d036e0249c4c57c50 Mon Sep 17 00:00:00 2001 From: DualFroz Date: Thu, 27 Aug 2026 13:45:00 +0200 Subject: [PATCH] views(admin): add analytics and attributes pages --- views/admin/analytics.php | 94 ++++++++++++++++++++++++++++++++ views/admin/attributes/index.php | 45 +++++++++++++++ 2 files changed, 139 insertions(+) create mode 100644 views/admin/analytics.php create mode 100644 views/admin/attributes/index.php diff --git a/views/admin/analytics.php b/views/admin/analytics.php new file mode 100644 index 0000000..916057e --- /dev/null +++ b/views/admin/analytics.php @@ -0,0 +1,94 @@ + +
+
+

Analytics

+

Sales, best sellers and stock health.

+
+
+ +
+
+
Revenue
+
+
Paid and fulfilled
+
+
+
Units sold
+
+
Across all orders
+
+
+
Avg order value
+
+
Per paid order
+
+
+
Low stock
+
+
At or below 5 units
+
+
+ +
+

Revenue, last 14 days

+
+ + 0 ? max(2, (int) round((int) $day['revenueCents'] / $maxRevenue * 100)) : 2; ?> +
+
+ +
+ +
+
+ +
+
+

Top products

+ +

No sales yet.

+ +
+ + + + + + + + + + + +
ProductUnitsRevenue
+
+ +
+ +
+

Coupon usage

+ +

No coupons redeemed yet.

+ +
+ + + + + + + + + + + +
CodeOrdersDiscount
+
+ +
+
diff --git a/views/admin/attributes/index.php b/views/admin/attributes/index.php new file mode 100644 index 0000000..56311ba --- /dev/null +++ b/views/admin/attributes/index.php @@ -0,0 +1,45 @@ +
+
+

Attributes

+

Options like Size or Color that product variants are built from.

+
+
+ +
+
+

New attribute

+
+ + + +
+
+ +
+ +

No attributes yet. Add one to start building variants.

+ +
+ +
+
+ + +
+
+ + + + No values yet. +
+
+ + + +
+
+ +
+ +
+