Minor fixes for subscriptions v2

This commit is contained in:
David Bomba 2023-03-01 19:14:04 +11:00
parent b18e7773c2
commit 212f5920e0
2 changed files with 16 additions and 12 deletions

View File

@ -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;

View File

@ -268,27 +268,28 @@
@endif
<div class="border-gray-200 border-opacity-50 mt-4">
@if($discount)
<div class="flex font-semibold justify-between py-1 text-sm uppercase">
<span>{{ ctrans('texts.one_time_purchases') }}</span>
<span>{{ $non_recurring_total }}</span>
</div>
<div class="flex font-semibold justify-between py-1 text-sm uppercase">
<span>{{ ctrans('texts.recurring_purchases') }}</span>
<span>{{ $recurring_total }}</span>
</div>
@if($discount)
<!-- <div class="flex font-semibold justify-between py-1 text-sm uppercase">
<span>{{ ctrans('texts.subtotal') }}</span>
<span>{{ $sub_total }}</span>
</div>
</div> -->
<div class="flex font-semibold justify-between py-1 text-sm uppercase">
<span>{{ ctrans('texts.discount') }}</span>
<span>{{ $discount }}</span>
</div>
@endif
<div class="flex font-semibold justify-between py-1 text-sm uppercase border-t-2">
<span>{{ ctrans('texts.one_time_purchases') }}</span>
<span>{{ $non_recurring_total }}</span>
</div>
<div class="flex font-semibold justify-between py-1 text-sm uppercase border-t-2">
<span>{{ ctrans('texts.recurring_purchases') }}</span>
<span>{{ $recurring_total }}</span>
</div>
<div class="flex font-semibold justify-between py-1 text-sm uppercase border-t-2">
<span>{{ ctrans('texts.total') }}</span>
<span>{{ $total }}</span>