@php $team = Auth::user()->getAttribute('team'); $teamManager = Auth::user()->getAttribute('teamManager'); $titlebar_links = []; $filters = []; if ($plansSubscriptionMonthly->count() > 0) { $titlebar_links[] = [ 'label' => 'Monthly', 'link' => '#monthly', ]; $filters[] = 'Monthly'; } if ($plansSubscriptionAnnual->count() > 0) { $titlebar_links[] = [ 'label' => 'Yearly', 'link' => '#yearly', ]; $filters[] = 'Yearly'; } if ($prepaidplans->count() > 0) { $titlebar_links[] = [ 'label' => 'Pre-Paid', 'link' => '#pre-paid', ]; $filters[] = 'Pre-Paid'; } if ($plansSubscriptionLifetime->count() > 0) { $titlebar_links[] = [ 'label' => 'Lifetime', 'link' => '#lifetime', ]; $filters[] = 'Lifetime'; } @endphp @extends('panel.layout.app', ['disable_tblr' => true]) @section('title', __('Plans and Pricing')) @section('titlebar_actions', '') @inject('paymentControls', 'App\Http\Controllers\Finance\PaymentProcessController') @inject('gatewayControls', 'App\Http\Controllers\Finance\GatewayController') @section('content')

@lang('Here is your plan summary:')

@if ($getCurrentActiveSubscription = \App\Helpers\Classes\Helper::getCurrentActiveSubscription()) {{ __('Cancel My Plan') }} @endif {{ __('Upgrade Your plan') }}

@lang('Active Plan') @if (Auth::user()->activePlan() != null) {{ getSubscriptionName() }} @else @lang('None') @endif

{{-- blade-formatter-disable --}} {{-- blade-formatter-enable --}}

@lang('Renewal Date') @if (Auth::user()->activePlan() != null) {{ getSubscriptionDaysLeft() }} @lang('Days') @else @lang('None') @endif

{{-- blade-formatter-disable --}} {{-- blade-formatter-enable --}}

@lang('Team Plan') @if ($team) @lang('Active') @else @lang('Not Active') @endif

{{-- blade-formatter-disable --}} {{-- blade-formatter-enable --}}

{{ __('Select a Plan') }}:

@lang('Please select a subscription plan or a token pack to upgrade your current plan.')

    @foreach ($filters as $filter)
  • @endforeach
@if ($plansSubscriptionMonthly->count() > 0)
@foreach ($plansSubscriptionMonthly as $plan)
$plan->is_featured, ])>
@if (currencyShouldDisplayOnRight($currency->symbol)) {{ $plan->price }} {{ $currency->symbol }} @else {{ $currency->symbol }} {{ $plan->price }} @endif
{{ __(formatCamelCase($plan->frequency)) }} @if ($plan->is_featured == 1)
{{ __('Popular plan') }}
@endif

{{ __($plan->name) }}

@if ($activesubid == $plan->id)
{{ __('Already Subscribed') }} {{ __('Cancel Subscription') }}
@elseif($activesubid != null)
{{ __('You have an active subscription.') }}
@else
@if ($is_active_gateway == 1) @php($planid = $plan->id) @if ($plan->price == 0) {{ __('Choose plan') }} @elseif($lastPrivateDate) {{ __('Expired') }} @elseif($maxSubscribe) {{ __('Limit reached') }} @else @if (count($activeGateways) == 1 || setting('single_page_checkout', 0)) @php($gateway = $activeGateways->first()) @php($data = $gatewayControls->gatewayData($gateway->code)) {{ __('Choose plan') }} @else {{ __('Choose plan') }}
@foreach ($activeGateways as $gateway) @if ($gateway->code == 'revenuecat') @continue @endif @php($data = $gatewayControls->gatewayData($gateway->code))
@if ($data['whiteLogo'] == 1) {{ $data['title'] }} @else {{ $data['title'] }} @endif {{ $data['title'] }}
@endforeach
@endif @endif @else

{{ __('Please enable a payment gateway') }}

@endif
@endif
@endforeach
@endif @if ($prepaidplans->count() > 0) @endif @if ($plansSubscriptionLifetime->count() > 0)
@foreach ($plansSubscriptionLifetime as $plan)
$plan->is_featured, ])>
@if (currencyShouldDisplayOnRight($currency->symbol)) {{ $plan->price }} {{ $currency->symbol }} @else {{ $currency->symbol }} {{ $plan->price }} @endif
{{ __(formatCamelCase($plan->frequency)) }} @if ($plan->is_featured == 1)
{{ __('Popular plan') }}
@endif

{{ __($plan->name) }}

@if ($activesubid == $plan->id)
{{ __('Already Subscribed') }} {{ __('Cancel Subscription') }}
@elseif($activesubid != null)
{{ __('You have an active subscription.') }}
@else
@if ($is_active_gateway == 1) @php($planid = $plan->id) @if ($plan->price == 0) {{ __('Choose plan') }} @elseif($lastPrivateDate) {{ __('Expired') }} @elseif($maxSubscribe) {{ __('Limit reached') }} @else @if (count($activeGateways) == 1 || setting('single_page_checkout', 0)) @php($gateway = $activeGateways->first()) @php($data = $gatewayControls->gatewayData($gateway->code)) {{ __('Choose plan') }} @else {{ __('Choose plan') }}
@foreach ($activeGateways as $gateway) @if ($gateway->code == 'revenuecat') @continue @endif @php($data = $gatewayControls->gatewayData($gateway->code))
@if ($data['whiteLogo'] == 1) {{ $data['title'] }} @else {{ $data['title'] }} @endif {{ $data['title'] }}
@endforeach
@endif @endif @else

{{ __('Please enable a payment gateway') }}

@endif
@endif
@endforeach
@endif @if ($plansSubscriptionAnnual->count() > 0)
@foreach ($plansSubscriptionAnnual as $plan)
$plan->is_featured, ])>
@if (currencyShouldDisplayOnRight($currency->symbol)) {{ $plan->price }} {{ $currency->symbol }} @else {{ $currency->symbol }} {{ $plan->price }} @endif
{{ __(formatCamelCase($plan->frequency)) }} @if ($plan->is_featured == 1)
{{ __('Popular plan') }}
@endif

{{ __($plan->name) }}

@if ($activesubid == $plan->id)
{{ __('Already Subscribed') }} {{ __('Cancel Subscription') }}
@elseif($activesubid != null)
{{ __('You have an active subscription.') }}
@else
@if ($is_active_gateway == 1) @php($planid = $plan->id) @if ($plan->price == 0) {{ __('Choose plan') }} @elseif($lastPrivateDate) {{ __('Expired') }} @elseif($maxSubscribe) {{ __('Limit reached') }} @else @if (count($activeGateways) == 1 || setting('single_page_checkout', 0)) @php($gateway = $activeGateways->first()) @php($data = $gatewayControls->gatewayData($gateway->code)) {{ __('Choose plan') }} @else {{ __('Choose plan') }}
@foreach ($activeGateways as $gateway) @if ($gateway->code == 'revenuecat') @continue @endif @php($data = $gatewayControls->gatewayData($gateway->code))
@if ($data['whiteLogo'] == 1) {{ $data['title'] }} @else {{ $data['title'] }} @endif {{ $data['title'] }}
@endforeach
@endif @endif @else

{{ __('Please enable a payment gateway') }}

@endif
@endif
@endforeach
@endif
@endsection @push('script') @endpush