From d2e1ff1fd32cc05f29822f51726f7cfe7b1a90e2 Mon Sep 17 00:00:00 2001 From: sayliraut Date: Mon, 12 Aug 2024 16:17:45 +0530 Subject: [PATCH] changes --- app/Http/Controllers/Admin/DashboardController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Http/Controllers/Admin/DashboardController.php b/app/Http/Controllers/Admin/DashboardController.php index c24ff58..a53c63f 100644 --- a/app/Http/Controllers/Admin/DashboardController.php +++ b/app/Http/Controllers/Admin/DashboardController.php @@ -127,8 +127,7 @@ class DashboardController extends Controller $restaurantCount = ManageRestaurant::where('is_active', 1)->count(); $formattedDateTime = now()->format('Y-m-d H:i:s'); - $recent_transactions = Subscriptions::where('next_payment_date', '>=', $formattedDateTime) - ->with('subscription') + $recent_transactions = Subscriptions::with('subscription') ->orderBy('id', 'desc') ->get();