@if (request('success') == true and request('message'))
{{ request('message') }}
@elseif(request('message'))
{{ request('message') }}
@endif
@if ($currentPlan and $subscriber->subscribed($currentPlan['id']))
@if ($subscriber->subscription($currentPlan['id'])->onTrial())
{{ __tr('You are on trial until __trialEndsAt__', [
'__trialEndsAt__' => formatDateTime($subscriber->trialEndsAt($currentPlan['id']))
]) }}
@endif
@if ($subscriber->subscription($currentPlan['id'])->onGracePeriod())
{{ __tr('Subscription has been cancelled and you are on the grace period till __endsAt__', [
'__endsAt__' => formatDateTime($subscriber->subscription($currentPlan['id'])->ends_at)
]) }}
@endif
{{ __tr('Current Plan') }}
{{ $planDetails[$currentPlan['id']]['title'] }}
@foreach ($planStructure[$currentPlan['id']]['features'] as $featureKey => $featureValue)
@php
$featureValue = $planDetails[$currentPlan['id']]['features'][$featureKey];
@endphp
@if (isset($featureValue['limit']) and $featureValue['limit'] < 0)
{{ __tr('Unlimited') }}
@elseif(isset($featureValue['limit']))
{{ $featureValue['limit'] }}
@endif
{{ Str::title($featureValue['description']) }}
@if(isset($featureValue['limit_duration_title']))
{{ Str::title($featureValue['limit_duration_title']) }}
@endif
@endforeach
@foreach ($planDetails[$currentPlan['id']]['charges'] as $itemKey => $itemValue)
@if ($planSelectorId === $currentPlan['id'] . '___' . $itemKey)
{{ formatAmount($itemValue['charge'], true) }} /
{{ $itemKey }}
@endif
@endforeach
@if (!$subscriber->subscription($currentPlan['id'])->canceled())
{{ __tr('Cancel Subscription') }}
@endif
@else
@if ($freePlanDetails['enabled'])
{{ __tr('Current Plan') }}
{{ $freePlanDetails['title'] }}
@foreach ($freePlanStructure['features'] as $featureKey => $featureValue)
@php
$featureValue = $freePlanDetails['features'][$featureKey];
@endphp
@if (isset($featureValue['limit']) and $featureValue['limit'] < 0)
{{ __tr('Unlimited') }}
@elseif(isset($featureValue['limit']))
{{ $featureValue['limit'] }}
@endif
{{ Str::title($featureValue['description']) }}
@if(isset($featureValue['limit_duration_title']))
{{ Str::title($featureValue['limit_duration_title']) }}
@endif
@endforeach
@else
{{ __tr('There are no active plan') }}
@endif
@endif
@if(getAppSettings('enable_stripe') and $isValidStripeKeys)
{{ __tr('Go to Billing Portal') }}
@if ($currentPlan and $subscriber->subscription($currentPlan['id']) and $subscriber->subscription($currentPlan['id'])->canceled() and $subscriber->subscription($currentPlan['id'])->onGracePeriod())
{{ __tr('Resume Subscription') }}
{{ __tr('You will be able to resume subscription while on grace period') }}
@endif
@if ($currentPlan and $subscriber->hasIncompletePayment($currentPlan['id']))
@endif
@endif