From e30cbcebd725add84c495dbf9dc01de03565a17b Mon Sep 17 00:00:00 2001 From: jouls Date: Fri, 26 Apr 2024 13:01:28 +0800 Subject: [PATCH] improvements on admin dashboard and order history --- admin/index.php | 18 +++++++++++++++--- admin/order-history.php | 10 ++++++---- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/admin/index.php b/admin/index.php index b4fbff9..efbe96a 100644 --- a/admin/index.php +++ b/admin/index.php @@ -114,7 +114,7 @@ $allSignups = array_merge($all_customers, $all_vendors);
  • - + My Profile
  • @@ -1060,6 +1060,8 @@ $allSignups = array_merge($all_customers, $all_vendors); $val) { $paymentStatus = strtolower($val['payment']['status']); $formattedOrderDate = date('m-d-Y', strtotime($val['order_date'])); @@ -1085,6 +1087,8 @@ $allSignups = array_merge($all_customers, $all_vendors); } if ($formattedOrderDate == $currentDate) { + $ordersDisplayed = true; + $displayDate = date('m-d-Y, g:i A', strtotime($val['order_date'])); ?> @@ -1103,6 +1107,14 @@ $allSignups = array_merge($all_customers, $all_vendors); } } } + + if (!$ordersDisplayed) { + ?> + + No Recent Orders Yet. + + @@ -1181,7 +1193,7 @@ $allSignups = array_merge($all_customers, $all_vendors); if (!$customersDisplayed) { ?> - No new vendors in the past week + No new customers in the past week - No new vendors in the past week + No new vendors in the past week @@ -24,9 +24,9 @@ $allorders = json_encode($orders, true); - + - Ekka - Admin Dashboard HTML Template. + oBanana B2B - Admin Dashboard @@ -82,7 +82,8 @@ $allorders = json_encode($orders, true); - + + @@ -102,6 +103,7 @@ $allorders = json_encode($orders, true); ?> +
    DateUpdated DateOrder Date Customer Vendor Product