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();