@extends('panel.layout.settings', ['layout' => 'fullwidth', 'disable_tblr' => true]) @section('title', (isset($subscription) ? __('Edit') : __('Create')) . ' ' . __('Token Pack')) @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 @if (isset($subscription)) @else @endif

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

{{ 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