diff --git a/app/Http/Controllers/ClientPortal/SubscriptionController.php b/app/Http/Controllers/ClientPortal/SubscriptionController.php index 6e637d8223..e668299ab7 100644 --- a/app/Http/Controllers/ClientPortal/SubscriptionController.php +++ b/app/Http/Controllers/ClientPortal/SubscriptionController.php @@ -29,7 +29,9 @@ class SubscriptionController extends Controller ->where('client_id', auth('contact')->user()->client->id) ->where('company_id', auth('contact')->user()->client->company_id) ->where('status_id', RecurringInvoice::STATUS_ACTIVE) + ->where('is_deleted', 0) ->whereNotNull('subscription_id') + ->withTrashed() ->count(); if($count == 0) diff --git a/composer.json b/composer.json index 07c4fc75da..b67486d54c 100644 --- a/composer.json +++ b/composer.json @@ -150,4 +150,4 @@ }, "minimum-stability": "dev", "prefer-stable": true -} +} \ No newline at end of file