34 lines
1.6 KiB
PHP
34 lines
1.6 KiB
PHP
|
|
<x-layouts.app>
|
||
|
|
<div class="px-4 sm:px-6 lg:px-8">
|
||
|
|
<div class="max-w-2xl mx-auto">
|
||
|
|
<h1 class="text-2xl font-syncopate text-accent-blue mb-8">SUBSCRIPTION</h1>
|
||
|
|
|
||
|
|
@if(auth()->user()->hasActiveSubscription())
|
||
|
|
<div class="border-2 border-success rounded-lg p-6 mb-6">
|
||
|
|
<h3 class="text-xl font-bold text-success mb-2">Active Subscription</h3>
|
||
|
|
<p class="text-gray-100 mb-4">You have an active subscription.</p>
|
||
|
|
|
||
|
|
<form action="{{ route('subscription.cancel') }}" method="POST">
|
||
|
|
@csrf
|
||
|
|
<button type="submit" class="bg-red-600 hover:bg-red-700 text-white px-4 py-2 rounded transition-colors duration-200">
|
||
|
|
Cancel Subscription
|
||
|
|
</button>
|
||
|
|
</form>
|
||
|
|
</div>
|
||
|
|
@else
|
||
|
|
<div class="border-2 border-secondary rounded-lg p-6">
|
||
|
|
<h3 class="text-xl font-bold text-primary mb-2">Subscribe to Dish Planner</h3>
|
||
|
|
<p class="text-gray-100 mb-4">Get access to all features.</p>
|
||
|
|
|
||
|
|
<form action="{{ route('subscription.subscribe') }}" method="POST">
|
||
|
|
@csrf
|
||
|
|
<button type="submit" class="bg-accent-blue hover:bg-blue-600 text-white px-6 py-3 rounded font-bold transition-colors duration-200">
|
||
|
|
Subscribe Now
|
||
|
|
</button>
|
||
|
|
</form>
|
||
|
|
</div>
|
||
|
|
@endif
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</x-layouts.app>
|