@extends('front.layout') @section('pagename') - {{ __('Pricing') }} @endsection @section('meta-description', !empty($seo) ? $seo->pricing_meta_description : '') @section('meta-keywords', !empty($seo) ? $seo->pricing_meta_keywords : '') @section('breadcrumb-title') {{ __('Pricing') }} @endsection @section('breadcrumb-link') {{ __('Pricing') }} @endsection @section('content')
{{ $bs->pricing_title }}

{{ $bs->pricing_subtitle }}

{{ $bs->pricing_text }}

@if (count($terms) > 1) @endif
@foreach ($terms as $term)
@php $packages = \App\Models\Package::where('status', '1') ->where('featured', '1') ->where('term', strtolower($term)) ->orderBy('serial_number', 'ASC') ->get(); @endphp @foreach ($packages as $package) @php $pFeatures = json_decode($package->features); // AI fields $aiEngines = !empty($package->ai_engines) ? json_decode($package->ai_engines, true) : []; $aiPages = !empty($package->ai_pages) ? json_decode($package->ai_pages, true) : []; // Engine label + paid/free text $engineMeta = [ 'openai' => [ 'label' => 'OpenAI', 'type' => 'Paid (API Key required)', ], 'gemini' => [ 'label' => 'Gemini', 'type' => 'Paid (API Key required)', ], 'pollinations' => [ 'label' => 'Pollinations', 'type' => 'Free (No API Key needed)', ], ]; @endphp

{{ __($package->title) }}

{{ $package->price != 0 && $be->base_currency_symbol_position == 'left' ? $be->base_currency_symbol : '' }}{{ $package->price == 0 ? __('Free') : $package->price }}{{ $package->price != 0 && $be->base_currency_symbol_position == 'right' ? $be->base_currency_symbol : '' }} / @if ($package->term == 'monthly') {{ __('month') }} @elseif($package->term == 'yearly') {{ __('year') }} @else {{ __($package->term) }} @endif
{{ __("What's Included") }}
    {{-- ===================== AI SECTION START ===================== --}} @if (is_array($allPfeatures) && in_array('One-Click AI Website Setup', $allPfeatures)) @php $pFeatures = !empty($package->features) ? json_decode($package->features, true) : []; // show only if One-Click AI Website Setup feature enabled $hasAiFeature = is_array($pFeatures) && in_array('One-Click AI Website Setup', $pFeatures); $aiEngine = $package->ai_engine ?? null; $aiGenerateLimit = $package->ai_generate_limit ?? null; // pages list $aiPages = !empty($package->ai_pages) ? json_decode($package->ai_pages, true) : []; $engineMap = [ 'openai' => 'OpenAI', 'gemini' => 'Gemini', 'pollinations' => 'Pollinations', ]; $engineName = $aiEngine ? $engineMap[$aiEngine] ?? ucfirst($aiEngine) : null; @endphp @php // ========= Tooltip content build ========= $aiTooltip = "
    "; $aiTooltip .= "
    " . e(__('One-Click AI Full Site Content')) . '
    '; $aiTooltip .= "
    " . e( __( 'This package includes AI website page generation features', ), ) . '
    '; if (!empty($engineName)) { $aiTooltip .= "
    " . e(__('Engine')) . '
    '; $aiTooltip .= "
    " . e($engineName) . '
    '; } if (!empty($aiGenerateLimit)) { $aiTooltip .= "
    " . e( __( 'AI Website Content Generation Attempts Limit', ), ) . '
    '; if ((int) $aiGenerateLimit === 999999) { $aiTooltip .= "
    " . e(__('Unlimited')) . '
    '; } else { $aiTooltip .= "
    " . e($aiGenerateLimit) . '
    '; } } if (!empty($aiPages) && is_array($aiPages)) { $aiTooltip .= "
    " . e(__('Included Pages')) . '
    '; $aiTooltip .= "
      "; foreach ($aiPages as $pg) { $aiTooltip .= "
    • " . e(__($pg)) . '
    • '; } $aiTooltip .= '
    '; } else { $aiTooltip .= "
    No AI pages configured.
    "; } $aiTooltip .= '
    '; @endphp @endif {{-- ===================== AI SECTION END ======================= --}} @foreach ($allPfeatures as $feature) @continue($feature == 'Additional Language' || $feature == 'One-Click AI Website Setup')
  • @if (is_array($pFeatures) && in_array($feature, $pFeatures)) @else @endif @if ($feature == 'vCard' && is_array($pFeatures) && in_array($feature, $pFeatures)) @if ($package->number_of_vcards == 999999) {{ __('Unlimited') }} {{ __('vCards') }} @elseif(empty($package->number_of_vcards)) 0 {{ __('vCard') }} @else {{ $package->number_of_vcards }} {{ $package->number_of_vcards > 1 ? __('vCards') : __('vCard') }} @endif @continue @elseif($feature == 'vCard' && (is_array($pFeatures) && !in_array($feature, $pFeatures))) {{ __('vCards') }} @continue @endif {{ __("$feature") }} @if ($feature == 'Plugins') ({{ __('Google Analytics, Disqus, WhatsApp, Facebook Pixel, Tawk.to') }}) @endif
  • {{-- AI LINE after Donation Management --}} @if ( $feature === 'Donation Management' && is_array($allPfeatures) && in_array('One-Click AI Website Setup', $allPfeatures) && $hasAiFeature)
  • @if (!empty($aiEngine)) @else @endif {{ __('One-Click AI Full Site Content') }} @if (!empty($engineName)) ({{ __($engineName) }}) @endif
  • @endif @endforeach @if (is_array($allPfeatures) && in_array('Additional Language', $allPfeatures))
  • @if ($package->number_of_languages == 999999) {{ __('Additional Languages') }} ({{ __('Unlimited') }}) @elseif($package->number_of_languages > 0) {{ $package->number_of_languages > 1 ? __('Additional Languages') : __('Additional Language') }} ({{ $package->number_of_languages }}) @else {{ __('Additional Language') }} @endif
  • @endif
@if ($package->is_trial === '1' && $package->price != 0) {{ __('Trial') }} @endif @if ($package->price == 0) {{ __('Signup') }} @else {{ __('Purchase') }} @endif
@endforeach
@endforeach
Shape Shape Shape Shape Shape Shape
@endsection