@extends('panel.layout.settings', ['layout' => 'fullwidth']) @section('title', (isset($subscription) ? __('Edit') : __('Create')) . ' ' . __('Subscription')) @section('titlebar_actions', '') @section('settings')
@if ($isActiveGateway == 0)

{{ __('Please enable at least one gateway!') }}

@endif @if ( \App\Models\Gateways::query()->where('code', 'coingate')->count() || \App\Models\Gateways::query()->where('code', 'yokassa')->count() || \App\Models\Gateways::query()->where('code', 'razorpay')->count())

{{ __('Congate, Razorpay or Yookassa subscriptions require you to set up cron jobs on your server. You can find detailed instructions in ') }} {{ __('the documentation.') }} @if (\App\Models\Gateways::query()->where('code', 'razorpay')->count())

{{ __('If you use razorpay, don\'t forget to add a webhook. ' . \App\Helpers\Classes\Helper::setting('site_url') . '/webhooks/razorpay') }}

@endif

@endif @php($selectedValue = isset($subscription) ? (isset($subscription->trial_days) ? $subscription->trial_days : '0') : '0') @for ($i = 2; $i <= 28; $i++) @endfor @if (isset($subscription)) @else @endif @if (isset($subscription)) @else @endif

{{ __('Enter -1 for unlimited usage.') }}

@if (isset($subscription)) @else @endif @if (isset($subscription)) @else @endif

{{ __('Please note GPT-4 is not working with every api_key. You have to have an api key which can work with GPT-4.') }}

{{ __('Also please note that Chat models works with ChatGPT and GPT-4 models. So if you choose below it will automatically use ChatGPT.') }}

@if (isset($subscription)) @else @endif {{ isset($subscription) ? $subscription->features : null }} @if ($isActiveGateway == 0)
{{ __('Please enable at least one gateway!') }}
@else {{ __('Save') }} @endif

{{ __('Choose Available Templates') }}

@lang('Select All')
@foreach ($openAiList->groupBy('filters') as $key => $items)
@foreach ($items as $keyItem => $item) @endforeach
@endforeach
@if (isset($subscription))

{{ __('What happens when you save?') }}

{{ __('This process will take time. So, please be patient and wait until success message appears.') }}

@else

{{ __('What happens when you save?') }}

{{ __('This process will take time. So, please be patient and wait until success message appears.') }}

@endif @if (isset($generatedData))

{{ __('These values are generated for you') }}

{{ __('Gateway') }} {{ __('Product ID') }} {{ __('Plan / Price ID') }} @foreach ($generatedData as $data) {{ $data->gateway_title }} {{ $data->product_id }} {{ $data->price_id }} @endforeach
@endif
@endsection @push('script') @endpush