@php $plans = \App\Models\Plan::where('status', 'active')->orderBy('price', 'asc')->get(); $pricingTitle = \App\Models\SystemSetting::get('pricing_section_title', __('landing.pricing.default_title')); $pricingDescription = \App\Models\SystemSetting::get('pricing_section_description', __('landing.pricing.default_description')); $popularBadgeText = \App\Models\SystemSetting::get('pricing_popular_badge_text', __('landing.pricing.default_popular_badge')); $freePriceText = \App\Models\SystemSetting::get('pricing_free_text', __('landing.pricing.default_free_text')); $noPlansMessage = \App\Models\SystemSetting::get('pricing_no_plans_message', __('landing.pricing.default_no_plans')); @endphp

{{ $pricingTitle }}

{{ $pricingDescription }}

@if($plans->count() > 0)
@foreach($plans as $plan) @php $isFreePlan = $plan->price == 0; $isProPlan = strtolower($plan->name) === 'pro'; $isEnterprisePlan = strtolower($plan->name) === 'enterprise'; $isPopular = $isProPlan; // Pro plan gets the popular badge @endphp
@if($isPopular)
{{ $popularBadgeText }}
@endif

{{ $plan->name }}

@if(isset($plan->description) && $plan->description)

{{ $plan->description }}

@endif
@if($plan->price > 0) {{ \App\Helpers\CurrencyHelper::format($plan->price) }} @else {{ $freePriceText }} @endif @if($plan->price > 0) /{{ $plan->interval_unit ?? 'month' }} @endif
    @php $features = $plan->all_features; @endphp @foreach($features as $feature) @php $included = is_array($feature) ? ($feature['included'] ?? true) : true; $featureName = is_array($feature) ? $feature['name'] : $feature; @endphp
  • @if($included) @else @endif {{ $featureName }}
  • @endforeach
@php // Custom CTA text per plan type if ($isFreePlan) { $buttonText = __('landing.pricing.start_free'); } elseif ($isProPlan) { $buttonText = __('landing.pricing.go_pro'); } else { $buttonText = __('landing.pricing.get_enterprise'); } @endphp {{ $buttonText }}
@endforeach
@else

{{ $noPlansMessage }}

@endif