Feature: Creating Cart Service, Cart Events, Save For Later functionality, Adding Filament Views for viewing abandoned carts

This commit is contained in:
2026-08-28 13:14:47 +03:00
parent a8ddbb8056
commit f6ef0761d6
19 changed files with 935 additions and 23 deletions
+7 -5
View File
@@ -39,11 +39,13 @@ class CartResource extends Resource
}
/**
* Count only, not a fetch — no rows are loaded. Scoped to genuinely abandoned
* carts specifically (mirrors ListCarts::getTabs()'s "Abandoned" query, not
* "Ongoing"), since that's the number a staff member glancing at the sidebar
* actually wants: how many carts might need following up on, not the total
* including ones someone is actively shopping in right now.
* Count only, not a fetch — no rows are loaded. Combines BOTH abandoned
* states (`active()` already covers "no order at all" and "draft order,
* never placed" together — see ListCarts::getTabs()'s "Abandoned Cart" /
* "Abandoned Checkout" tabs for where they're split apart), not "Ongoing"
* — the badge is meant to answer "how many carts might need following up
* on," not the total including ones someone is actively shopping in right
* now.
*/
public static function getNavigationBadge(): ?string
{