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 @@