From 212f5920e0cafbe61568559dd0edcc64bd746265 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 1 Mar 2023 19:14:04 +1100 Subject: [PATCH] Minor fixes for subscriptions v2 --- app/Http/Livewire/BillingPortalPurchasev2.php | 3 +++ .../billing-portal-purchasev2.blade.php | 25 ++++++++++--------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/app/Http/Livewire/BillingPortalPurchasev2.php b/app/Http/Livewire/BillingPortalPurchasev2.php index e3dce5a479ea..612dfd5b8209 100644 --- a/app/Http/Livewire/BillingPortalPurchasev2.php +++ b/app/Http/Livewire/BillingPortalPurchasev2.php @@ -173,6 +173,9 @@ class BillingPortalPurchasev2 extends Component $this->authenticated = true; $this->payment_started = true; } + else { + $this->bundle = collect(); + } $this->discount = 0; $this->sub_total = 0; diff --git a/resources/views/portal/ninja2020/components/livewire/billing-portal-purchasev2.blade.php b/resources/views/portal/ninja2020/components/livewire/billing-portal-purchasev2.blade.php index cd2eee01fd45..d3417dded2f0 100644 --- a/resources/views/portal/ninja2020/components/livewire/billing-portal-purchasev2.blade.php +++ b/resources/views/portal/ninja2020/components/livewire/billing-portal-purchasev2.blade.php @@ -268,27 +268,28 @@ @endif
- @if($discount)
+ {{ ctrans('texts.one_time_purchases') }} + {{ $non_recurring_total }} +
+ +
+ {{ ctrans('texts.recurring_purchases') }} + {{ $recurring_total }} +
+ + + @if($discount) +
{{ ctrans('texts.discount') }} {{ $discount }}
@endif -
- {{ ctrans('texts.one_time_purchases') }} - {{ $non_recurring_total }} -
- -
- {{ ctrans('texts.recurring_purchases') }} - {{ $recurring_total }} -
-
{{ ctrans('texts.total') }} {{ $total }}