diff --git a/packages/admin/resources/lang/en/widgets.php b/packages/admin/resources/lang/en/widgets.php index 83f2f3e09f..ab7cd41cba 100644 --- a/packages/admin/resources/lang/en/widgets.php +++ b/packages/admin/resources/lang/en/widgets.php @@ -83,7 +83,7 @@ ], ], 'popular_products' => [ - 'heading' => 'This months best sellers', + 'heading' => 'Best Sellers (last 30 days)', 'description' => 'These figures are based on the number of times a product appears on an order, not the quantity ordered.', ], 'latest_orders' => [ diff --git a/packages/admin/src/Filament/Widgets/Dashboard/Orders/PopularProductsTable.php b/packages/admin/src/Filament/Widgets/Dashboard/Orders/PopularProductsTable.php index 81511afcba..02f2e98d96 100644 --- a/packages/admin/src/Filament/Widgets/Dashboard/Orders/PopularProductsTable.php +++ b/packages/admin/src/Filament/Widgets/Dashboard/Orders/PopularProductsTable.php @@ -34,7 +34,7 @@ public function table(Table $table): Table ->query(function () { return OrderLine::query()->whereHas('order', function ($relation) { $relation->whereBetween('placed_at', [ - now()->subYear()->startOfMonth(), + now()->subDays(30)->startOfDay(), now()->endOfDay(), ]); })->select(