From 0d9b40dcb68c40d26cdbed82166d08a01b6f5755 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 28 Jan 2024 11:05:50 +1100 Subject: [PATCH] Fixes for subscription switching --- .../SubscriptionPlanSwitchController.php | 2 +- app/Livewire/SubscriptionPlanSwitch.php | 1 - .../livewire/subscription-plan-switch.blade.php | 16 +++++++++++----- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/app/Http/Controllers/ClientPortal/SubscriptionPlanSwitchController.php b/app/Http/Controllers/ClientPortal/SubscriptionPlanSwitchController.php index b616ee161746..d44666ad6704 100644 --- a/app/Http/Controllers/ClientPortal/SubscriptionPlanSwitchController.php +++ b/app/Http/Controllers/ClientPortal/SubscriptionPlanSwitchController.php @@ -54,6 +54,6 @@ class SubscriptionPlanSwitchController extends Controller public function not_availabe() { - abort(404, 'ewwo'); + abort(404, 'Not Available'); } } diff --git a/app/Livewire/SubscriptionPlanSwitch.php b/app/Livewire/SubscriptionPlanSwitch.php index be3fbb42fbee..a4518efe8453 100644 --- a/app/Livewire/SubscriptionPlanSwitch.php +++ b/app/Livewire/SubscriptionPlanSwitch.php @@ -155,7 +155,6 @@ class SubscriptionPlanSwitch extends Component $this->dispatch('redirectRoute', ['route' => $response]); - // return redirect($response); } public function render() diff --git a/resources/views/portal/ninja2020/components/livewire/subscription-plan-switch.blade.php b/resources/views/portal/ninja2020/components/livewire/subscription-plan-switch.blade.php index 8d3c0301d58b..c1be68fc7043 100644 --- a/resources/views/portal/ninja2020/components/livewire/subscription-plan-switch.blade.php +++ b/resources/views/portal/ninja2020/components/livewire/subscription-plan-switch.blade.php @@ -42,7 +42,7 @@ @if(!$state['payment_initialised']) @foreach($this->methods as $method) @@ -80,11 +80,17 @@ - + \ No newline at end of file