@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', '') @section('titlebar_actions_before')
@endsection @section('titlebar_after') @endsection @inject('paymentControls', 'App\Http\Controllers\Finance\PaymentProcessController') @inject('gatewayControls', 'App\Http\Controllers\Finance\GatewayController') @section('content')

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

@if (getSubscriptionStatus()) {{ __('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 ($plan->trial_days != 0)
  • {{ number_format($plan->trial_days) . ' ' . __('Days of free trial.') }}
  • @endif
  • {{ __('Access') }} {{ __($plan->checkOpenAiItemCount()) }} {{ __('Templates') }}
  • @foreach (explode(',', $plan->features) as $item)
  • {{ $item }}
  • @endforeach @if ($plan->is_team_plan)
  • {{ number_format($plan->plan_allow_seat) }} {{ __('Team allow seats') }}
  • @endif @if ($plan->display_word_count)
  • @if ((int) $plan->total_words >= 0) @formatNumber($plan->total_words) {{ __('Word Tokens') }} @else {{ __('Unlimited') }} {{ __('Word Tokens') }} @endif
  • @endif @if ($plan->display_imag_count)
  • @if ((int) $plan->total_images >= 0) @formatNumber($plan->total_images) {{ __('Image Tokens') }} @else {{ __('Unlimited') }} {{ __('Image Tokens') }} @endif
  • @endif
@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') }} @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 ($plan->trial_days != 0)
  • {{ number_format($plan->trial_days) . ' ' . __('Days of free trial.') }}
  • @endif
  • {{ __('Access') }} {{ __($plan->checkOpenAiItemCount()) }} {{ __('Templates') }}
  • @foreach (explode(',', $plan->features) as $item)
  • {{ $item }}
  • @endforeach @if ($plan->is_team_plan)
  • {{ number_format($plan->plan_allow_seat) }} {{ __('Team allow seats') }}
  • @endif @if ($plan->display_word_count)
  • @if ((int) $plan->total_words >= 0) @formatNumber($plan->total_words) {{ __('Word Tokens') }} @else {{ __('Unlimited') }} {{ __('Word Tokens') }} @endif
  • @endif @if ($plan->display_imag_count)
  • @if ((int) $plan->total_images >= 0) @formatNumber($plan->total_images) {{ __('Image Tokens') }} @else {{ __('Unlimited') }} {{ __('Image Tokens') }} @endif
  • @endif
@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') }} @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 ($plan->trial_days != 0)
  • {{ number_format($plan->trial_days) . ' ' . __('Days of free trial.') }}
  • @endif
  • {{ __('Access') }} {{ __($plan->checkOpenAiItemCount()) }} {{ __('Templates') }}
  • @foreach (explode(',', $plan->features) as $item)
  • {{ $item }}
  • @endforeach @if ($plan->is_team_plan)
  • {{ number_format($plan->plan_allow_seat) }} {{ __('Team allow seats') }}
  • @endif @if ($plan->display_word_count)
  • @if ((int) $plan->total_words >= 0) @formatNumber($plan->total_words) {{ __('Word Tokens') }} @else {{ __('Unlimited') }} {{ __('Word Tokens') }} @endif
  • @endif @if ($plan->display_imag_count)
  • @if ((int) $plan->total_images >= 0) @formatNumber($plan->total_images) {{ __('Image Tokens') }} @else {{ __('Unlimited') }} {{ __('Image Tokens') }} @endif
  • @endif
@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') }} @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