2024-03-25 13:09:13 +00:00
|
|
|
<div>
|
2024-06-07 09:01:10 +00:00
|
|
|
<x-slot:title>
|
2026-02-16 01:54:19 +00:00
|
|
|
Subscribe | MapleDeploy
|
2024-06-07 09:01:10 +00:00
|
|
|
</x-slot>
|
2024-12-11 11:04:58 +00:00
|
|
|
@if (auth()->user()->isAdminFromSession())
|
2025-04-14 08:31:13 +00:00
|
|
|
<div class="flex gap-2">
|
|
|
|
|
<h1>Subscriptions</h1>
|
|
|
|
|
</div>
|
|
|
|
|
@if ($loading)
|
2026-02-26 17:22:03 +00:00
|
|
|
<div class="flex items-center justify-center min-h-[60vh]" wire:init="getStripeStatus">
|
|
|
|
|
<x-loading text="Loading your subscription status..." />
|
2025-04-14 08:31:13 +00:00
|
|
|
</div>
|
|
|
|
|
@else
|
|
|
|
|
@if ($isUnpaid)
|
2026-02-16 01:54:19 +00:00
|
|
|
{{-- MapleDeploy branding --}}
|
2026-02-26 17:22:03 +00:00
|
|
|
<x-banner :closable="false">
|
|
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
|
<svg class="w-5 h-5 text-red-500 shrink-0" fill="currentColor" viewBox="0 0 20 20">
|
|
|
|
|
<path fill-rule="evenodd"
|
|
|
|
|
d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z"
|
|
|
|
|
clip-rule="evenodd" />
|
|
|
|
|
</svg>
|
2026-02-16 01:54:19 +00:00
|
|
|
<span><span class="font-bold text-red-500">Payment Failed.</span> Your last payment for MapleDeploy has failed.</span>
|
2026-02-26 17:22:03 +00:00
|
|
|
</div>
|
|
|
|
|
</x-banner>
|
2025-04-14 08:31:13 +00:00
|
|
|
<div>
|
|
|
|
|
<p class="mb-2">Open the following link, navigate to the button and pay your unpaid/past due
|
|
|
|
|
subscription.
|
|
|
|
|
</p>
|
|
|
|
|
<x-forms.button wire:click='stripeCustomerPortal'>Billing Portal</x-forms.button>
|
|
|
|
|
</div>
|
|
|
|
|
@else
|
|
|
|
|
@if (config('subscription.provider') === 'stripe')
|
2026-02-16 01:54:19 +00:00
|
|
|
{{-- MapleDeploy branding --}}
|
2026-02-26 17:22:03 +00:00
|
|
|
@if ($isCancelled)
|
|
|
|
|
<x-banner :closable="false">
|
|
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
|
<svg class="w-5 h-5 text-red-500 shrink-0" fill="currentColor" viewBox="0 0 20 20">
|
|
|
|
|
<path fill-rule="evenodd"
|
|
|
|
|
d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z"
|
|
|
|
|
clip-rule="evenodd" />
|
|
|
|
|
</svg>
|
2026-02-16 01:54:19 +00:00
|
|
|
<span><span class="font-bold text-red-500">No Active Subscription.</span> Please subscribe again to continue using MapleDeploy.</span>
|
2025-04-14 08:31:13 +00:00
|
|
|
</div>
|
2026-02-26 17:22:03 +00:00
|
|
|
</x-banner>
|
|
|
|
|
@endif
|
|
|
|
|
<div @class(['pt-4 pb-4' => $isCancelled, 'pb-10' => !$isCancelled])></div>
|
2025-04-14 08:31:13 +00:00
|
|
|
<livewire:subscription.pricing-plans />
|
|
|
|
|
@endif
|
2024-12-11 11:04:58 +00:00
|
|
|
@endif
|
2025-04-14 08:31:13 +00:00
|
|
|
@endif
|
2024-03-25 13:09:13 +00:00
|
|
|
@else
|
2024-12-11 11:04:58 +00:00
|
|
|
<div class="flex flex-col justify-center mx-10">
|
|
|
|
|
<div class="flex gap-2">
|
|
|
|
|
<h1>Subscription</h1>
|
|
|
|
|
</div>
|
2025-09-25 09:14:56 +00:00
|
|
|
<x-callout type="warning" title="Permission Required">
|
2026-02-17 05:39:11 +00:00
|
|
|
You are not an admin so you cannot manage your team's subscription. Please contact your team admin.
|
2025-09-25 09:14:56 +00:00
|
|
|
</x-callout>
|
2024-12-11 11:04:58 +00:00
|
|
|
</div>
|
2023-10-11 07:55:05 +00:00
|
|
|
@endif
|
2024-03-25 13:09:13 +00:00
|
|
|
</div>
|