@extends('admin.layout') @php use App\Models\Language; $selLang = Language::where('code', request()->input('language'))->first(); @endphp @if (!empty($selLang->language) && $selLang->language->rtl == 1) @section('styles') @endsection @endif @section('content')
{{ __('Edit Package') }}
{{ __('Back') }}
@csrf
@if ($errors->has('icon'))

{{ $errors->first('icon') }}

@endif
{{ __('NB: click on the dropdown sign to select an icon.') }}

{{ __('If price is 0 , than it will appear as free') }}

@php $permissions = $package->features; if (!empty($package->features)) { $permissions = json_decode($permissions, true); } @endphp @php if (\Schema::hasTable('package_features')) { $allFeatures = \App\Models\PackageFeature::whereIn('type', ['standard', 'custom']) ->whereNotIn('name', ['Disqus', 'Bank Transfer Integrations']) ->whereNotIn('keyword', ['Disqus', 'Bank Transfer Integrations']) ->orderBy('serial_number', 'asc') ->get(); } else { $allFeatures = collect(); } @endphp
@if($allFeatures->isEmpty()) @php $fallbackFeatures = [ 'Custom Domain' => 'Custom Domain', 'Subdomain' => 'Subdomain', 'QR Builder' => 'QR Builder', 'Blog' => 'Blog', 'Custom Page' => 'Custom Page', 'Google Login' => 'Google Login', 'Google Analytics' => 'Google Analytics', 'Google Recaptcha' => 'Google Recaptcha', 'WhatsApp Chat Button' => 'WhatsApp Chat Button', 'Tawk to' => 'Tawk to', 'AI Content & Image Generator' => 'AI Content & Image Generator' ]; @endphp @foreach($fallbackFeatures as $k => $name) @if($k === 'AI Content & Image Generator') @continue @endif @endforeach @else @foreach($allFeatures as $feature) @if($feature->keyword === 'AI Content & Image Generator' || $feature->name === 'AI Content & Image Generator') @continue @endif @php $val = $feature->keyword ?: $feature->name; @endphp @endforeach @endif
@php $d_none = 'none'; $d_block = 'block'; @endphp

{{ __('999999 count as Unlimited') }}

{{ __('999999 count as Unlimited') }}

{{ __('999999 count as Unlimited') }}

{{ __('999999 count as Unlimited') }}

{{ __('999999 count as Unlimited') }}

{{ __('Enter 999999 , then it will appear as unlimited') }}

{{ __('999999 count as Unlimited') }}

{{'*' . __('Select the AI engine that will power content and image generation for this package') . '.' }}

{{ __('999999 count as Unlimited') }}

{{'*' . __('Defines the total AI token usage allowed for this package for generating content') . '.' }}

{{ '*' . __('Minimum 20,000 tokens may be required for content generation') . '. ' . __('English content is usually cheaper, while other languages may consume more tokens and cost higher') . '. ' . __('For reference, 1K token approximately equal to USD 0.0015') . '.' }}

{{ __('999999 count as Unlimited') }}

{{'*' . __('This defines how many AI-generated images a tenant user can create under this package') . '.' }}

{{'*' . __('Each AI image generation approximately costs USD 0.04 per image') . '.' }}

@if ($package->is_trial == 1)

{{ __('999999 count as Unlimited') }}

@else

{{ __('999999 count as Unlimited') }}

@endif
@endsection @section('scripts') @endsection