|
3 | 3 |
|
4 | 4 | @section('content')
|
5 | 5 | @include('components.dashboard.subscription-nav')
|
6 |
| - <div class="bg-white overflow-hidden shadow-sm sm:rounded-lg border border-stone-200"> |
7 |
| - <div class="p-6 prose max-w-none"> |
8 |
| - <h2> |
9 |
| - Subscription overview |
10 |
| - </h2> |
11 |
| - <p> |
12 |
| - Here's a summary of your subscription. |
13 |
| - </p> |
14 |
| - @if (auth()->user()->subscribed()) |
15 |
| - @if ($subscription) |
16 |
| - <ul class="list-disc pl-5"> |
17 |
| - <li> |
18 |
| - {{ auth()->user()->plan->title }} |
19 |
| - ({{ $subscription->amount() }}/{{ $subscription->interval() }}) - <a wire:navigate.hover href="{{ route('account.subscriptions.swap') }}">Change</a> |
20 |
| - </li> |
21 |
| -{{-- @if (auth()->user()->subscription()->cancelled())--}} |
22 |
| -{{-- <li>--}} |
23 |
| -{{-- Ends at {{ $subscription->cancelAt() }}--}} |
24 |
| -{{-- <a href="{{ route('account.subscriptions.resume') }}" class="underline">Resume--}} |
25 |
| -{{-- subscription</a>--}} |
26 |
| -{{-- </li>--}} |
27 |
| -{{-- @endif--}} |
| 6 | + <x-container> |
| 7 | + <x-h2> |
| 8 | + Subscription overview |
| 9 | + </x-h2> |
| 10 | + <p> |
| 11 | + Here's a summary of your subscription. |
| 12 | + </p> |
| 13 | + @if (auth()->user()->subscribed()) |
| 14 | + @if ($subscription) |
| 15 | + <ul class="list-disc pl-5"> |
| 16 | + <li> |
| 17 | + {{ auth()->user()->plan->title }} |
| 18 | + ({{ $subscription->amount() }}/{{ $subscription->interval() }}) - <a wire:navigate.hover href="{{ route('account.subscriptions.swap') }}">Change</a> |
| 19 | + </li> |
| 20 | + {{-- @if (auth()->user()->subscription()->cancelled())--}} |
| 21 | + {{-- <li>--}} |
| 22 | + {{-- Ends at {{ $subscription->cancelAt() }}--}} |
| 23 | + {{-- <a href="{{ route('account.subscriptions.resume') }}" class="underline">Resume--}} |
| 24 | + {{-- subscription</a>--}} |
| 25 | + {{-- </li>--}} |
| 26 | + {{-- @endif--}} |
28 | 27 |
|
29 |
| - @if ($invoice) |
30 |
| - <li>Next Payment {{ $invoice->amount() }} on {{ $invoice->nextPaymentAttempt() }}</li> |
31 |
| - @endif |
| 28 | + @if ($invoice) |
| 29 | + <li>Next Payment {{ $invoice->amount() }} on {{ $invoice->nextPaymentAttempt() }}</li> |
| 30 | + @endif |
32 | 31 |
|
33 |
| - @if ($customer) |
34 |
| - <li>Balance {{ $customer->balance() }}</li> |
35 |
| - @endif |
| 32 | + @if ($customer) |
| 33 | + <li>Balance {{ $customer->balance() }}</li> |
| 34 | + @endif |
36 | 35 |
|
37 |
| - </ul> |
38 |
| - @endif |
39 |
| - |
40 |
| - <div class="mt-5"> |
41 |
| - Use the menu above, or |
42 |
| - <a href="{{ auth()->user()->billingPortalUrl(route('account.subscriptions')) }}" class="underline"> |
43 |
| - |
44 |
| - go to the Billing Portal at Stripe |
45 |
| - |
46 |
| - </a> |
47 |
| - to handle your subscription. |
48 |
| - </div> |
49 |
| - @else |
50 |
| - <div> |
51 |
| - <p>You don't have a subscription. </p> |
52 |
| - <a href="{{ route('subscriptions.plans') }}"> |
53 |
| - <x-button> |
| 36 | + </ul> |
| 37 | + @endif |
54 | 38 |
|
55 |
| - <span>Go check out our available plans</span> |
56 |
| - <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg> |
57 |
| - </x-button> |
58 |
| - </a> |
59 |
| - </div> |
| 39 | + <div class="mt-5"> |
| 40 | + Use the menu above, or |
| 41 | + <a href="{{ auth()->user()->billingPortalUrl(route('account.subscriptions')) }}" class="underline"> |
60 | 42 |
|
61 |
| - @endif |
| 43 | + go to the Billing Portal at Stripe |
62 | 44 |
|
| 45 | + </a> |
| 46 | + to handle your subscription. |
| 47 | + </div> |
| 48 | + @else |
| 49 | + <div> |
| 50 | + <p>You don't have a subscription. </p> |
| 51 | + <a href="{{ route('subscriptions.plans') }}"> |
| 52 | + <x-button> |
63 | 53 |
|
64 |
| - </div> |
65 |
| - </div> |
| 54 | + <span>Go check out our available plans</span> |
| 55 | + <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right"> |
| 56 | + <path d="M5 12h14"/> |
| 57 | + <path d="m12 5 7 7-7 7"/> |
| 58 | + </svg> |
| 59 | + </x-button> |
| 60 | + </a> |
| 61 | + </div> |
| 62 | + @endif |
| 63 | + </x-container> |
66 | 64 | @endsection
|
0 commit comments