Skip to content
Snippets Groups Projects
Verified Commit b9abf4fe authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

feat: add last month date range to statistics in HomeController

Added a new date range for "Last Month" in the statistics filters of the HomeController, enhancing the data analysis capabilities for users.
parent 9db74a84
Branches
No related tags found
No related merge requests found
Pipeline #1087 passed
......@@ -57,6 +57,7 @@ public function index(Request $request): View
now()->subDays(7)->format('Y-m-d') => 'Les 7 derniers jours',
now()->subDays(30)->format('Y-m-d') => 'Les 30 derniers jours',
now()->startOfMonth()->format('Y-m-d') => 'Ce mois-ci',
now()->subMonth()->startOfMonth()->format('Y-m-d') => 'Le mois dernier',
];
if ($visits->isNotEmpty()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment