@extends('panel.layout.app', ['disable_tblr' => true]) @section('title', __('Plans')) @section('titlebar_actions', '') @section('titlebar_actions_before')
@endsection @inject('paymentControls', 'App\Http\Controllers\Finance\PaymentProcessController') @inject('gatewayControls', 'App\Http\Controllers\Finance\GatewayController') @section('content')
@include('panel.user.finance.subscriptionStatus')
@if ($plans->count() > 0)

{{ __('Subscription Plans') }}:

@endif
@foreach ($plans 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) {{ number_format($plan->total_words) }} {{ __('Word Tokens') }} @else {{ __('Unlimited') }} {{ __('Word Tokens') }} @endif
  • @endif @if ($plan->display_imag_count)
  • @if ((int) $plan->total_images >= 0) {{ number_format($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 {{ __('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 @else

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

@endif
@endif
@endforeach
@if ($prepaidplans->count() > 0)

{{ __('Token Packs') }}:

@endif
@foreach ($prepaidplans as $plan)
$plan->is_featured, ])>
@if (currencyShouldDisplayOnRight(currency()->symbol)) {{ $plan->price }} {{ currency()->symbol }} @else {{ currency()->symbol }} {{ $plan->price }} @endif
{{ __('One time') }} @if ($plan->is_featured == 1)
{{ __('Popular pack') }}
@endif

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

  • {{ __('Access') }} {{ __($plan->checkOpenAiItemCount()) }} {{ __('Templates') }}
  • @foreach (explode(',', $plan->features) as $item)
  • {{ $item }}
  • @endforeach @if ($plan->display_word_count)
  • @if ((int) $plan->total_words >= 0) {{ number_format($plan->total_words) }} {{ __('Word Tokens') }} @else {{ __('Unlimited') }} {{ __('Word Tokens') }} @endif
  • @endif @if ($plan->display_imag_count)
  • @if ((int) $plan->total_images >= 0) {{ number_format($plan->total_images) }} {{ __('Image Tokens') }} @else {{ __('Unlimited') }} {{ __('Image Tokens') }} @endif
  • @endif
@if ($is_active_gateway == 1) @php($planid = $plan->id) @if ($plan->price == 0) {{ __('Choose pack') }} @else {{ __('Choose pack') }}
@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 @else

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

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