diff --git a/LittleShop/Areas/Admin/Controllers/OrdersController.cs b/LittleShop/Areas/Admin/Controllers/OrdersController.cs index 7e1303e..f8c58f4 100644 --- a/LittleShop/Areas/Admin/Controllers/OrdersController.cs +++ b/LittleShop/Areas/Admin/Controllers/OrdersController.cs @@ -22,6 +22,10 @@ public class OrdersController : Controller switch (tab.ToLower()) { + case "pending": + ViewData["Orders"] = await _orderService.GetOrdersByStatusAsync(LittleShop.Enums.OrderStatus.PendingPayment); + ViewData["TabTitle"] = "Pending Payment"; + break; case "accept": ViewData["Orders"] = await _orderService.GetOrdersRequiringActionAsync(); ViewData["TabTitle"] = "Orders to Accept"; @@ -53,6 +57,7 @@ public class OrdersController : Controller } // Get workflow counts for tab badges + ViewData["PendingCount"] = (await _orderService.GetOrdersByStatusAsync(LittleShop.Enums.OrderStatus.PendingPayment)).Count(); ViewData["AcceptCount"] = (await _orderService.GetOrdersRequiringActionAsync()).Count(); ViewData["PackingCount"] = (await _orderService.GetOrdersForPackingAsync()).Count(); ViewData["DispatchedCount"] = (await _orderService.GetOrdersByStatusAsync(LittleShop.Enums.OrderStatus.Dispatched)).Count(); diff --git a/LittleShop/Areas/Admin/Views/Account/Login.cshtml b/LittleShop/Areas/Admin/Views/Account/Login.cshtml index 1536954..9d3c3fa 100644 --- a/LittleShop/Areas/Admin/Views/Account/Login.cshtml +++ b/LittleShop/Areas/Admin/Views/Account/Login.cshtml @@ -24,7 +24,7 @@
-

LittleShop Admin

+

TeleShop Admin

diff --git a/LittleShop/Areas/Admin/Views/Dashboard/Index.cshtml b/LittleShop/Areas/Admin/Views/Dashboard/Index.cshtml index 5c5ebb6..a28209e 100644 --- a/LittleShop/Areas/Admin/Views/Dashboard/Index.cshtml +++ b/LittleShop/Areas/Admin/Views/Dashboard/Index.cshtml @@ -157,11 +157,11 @@ document.addEventListener('DOMContentLoaded', function() { } // Show manual install instructions - alert(`To install LittleShop Admin as an app: + alert(`To install TeleShop Admin as an app: 🌐 Chrome/Edge: 1. Click the install icon (⊞) in the address bar, OR -2. Menu (⋮) → "Install LittleShop Admin" +2. Menu (⋮) → "Install TeleShop Admin" 🍎 Safari (iOS): 1. Share button → "Add to Home Screen" diff --git a/LittleShop/Areas/Admin/Views/Orders/Index.cshtml b/LittleShop/Areas/Admin/Views/Orders/Index.cshtml index 21c0962..96dfe44 100644 --- a/LittleShop/Areas/Admin/Views/Orders/Index.cshtml +++ b/LittleShop/Areas/Admin/Views/Orders/Index.cshtml @@ -4,6 +4,7 @@ var currentTab = ViewData["CurrentTab"] as string ?? "accept"; var tabTitle = ViewData["TabTitle"] as string ?? "Orders"; + var pendingCount = (int)(ViewData["PendingCount"] ?? 0); var acceptCount = (int)(ViewData["AcceptCount"] ?? 0); var packingCount = (int)(ViewData["PackingCount"] ?? 0); var dispatchedCount = (int)(ViewData["DispatchedCount"] ?? 0); @@ -24,6 +25,17 @@