fix: subscription link

This commit is contained in:
Andras Bacsai 2023-07-27 17:09:01 +02:00
parent c7fc00095c
commit d0a85713d2
2 changed files with 2 additions and 26 deletions

View File

@ -11,30 +11,6 @@
class="text-warning">{{ session('currentTeam.name') }}</span></span>
</div>
<x-pricing-plans />
{{-- @if (data_get(
auth()->user()->currentTeam(),
'subscription',
))
<div>Status: {{ auth()->user()->currentTeam()->subscription->lemon_status }}</div>
<div>Type: {{ auth()->user()->currentTeam()->subscription->lemon_variant_name }}</div>
@if (auth()->user()->currentTeam()->subscription->lemon_status === 'cancelled')
<div class="pb-4">Subscriptions ends at: {{ getEndDate() }}</div>
<x-forms.button><a class="text-white" href="{{ getSubscriptionLink() }}">Subscribe
Again</a>
</x-forms.button>
@else
<div class="pb-4">Renews at: {{ getRenewDate() }}</div>
@endif
<x-forms.button><a class="text-white" href="{{ getPaymentLink() }}">Update Payment Details</a>
</x-forms.button>
@else
<x-forms.button class="mt-4"><a class="text-white" href="{{ getSubscriptionLink() }}">Subscribe
Now</a>
</x-forms.button>
@endif
<x-forms.button><a class="text-white" href="https://app.lemonsqueezy.com/my-orders">Manage My
Subscription</a>
</x-forms.button> --}}
</div>
</div>
@else

View File

@ -10,7 +10,7 @@
<div>Type: {{ auth()->user()->currentTeam()->subscription->lemon_variant_name }}</div>
@if (auth()->user()->currentTeam()->subscription->lemon_status === 'cancelled')
<div class="pb-4">Subscriptions ends at: {{ getRenewDate() }}</div>
<x-forms.button><a class="text-white" href="{{ getSubscriptionLink() }}">Subscribe
<x-forms.button><a class="text-white" href="{{ route('subscription') }}">Subscribe
Again</a>
</x-forms.button>
@else
@ -19,7 +19,7 @@
<x-forms.button><a class="text-white" href="{{ getPaymentLink() }}">Update Payment Details</a>
</x-forms.button>
@else
<x-forms.button class="mt-4"><a class="text-white" href="{{ getSubscriptionLink() }}">Subscribe Now</a>
<x-forms.button class="mt-4"><a class="text-white" href="{{ route('subscription') }}">Subscribe Now</a>
</x-forms.button>
@endif
<x-forms.button><a class="text-white" href="https://app.lemonsqueezy.com/my-orders">Manage My