@php $settings = $section->settings ?? []; $pt = $settings['padding_top'] ?? '120px'; $pb = $settings['padding_bottom'] ?? '120px'; $bg = $settings['bg_color'] ?? '#020617'; $ptStyle = "padding-top: $pt;"; $pbStyle = "padding-bottom: $pb;"; $bgStyle = "background-color: $bg;"; $plans = $plans ?? \App\Modules\CustomerSubscription\Models\CustomerPlan::where('is_active', true) ->where('show_on_pricing', true) ->orderBy('sort_order') ->orderBy('price') ->get(); @endphp
{{-- Premium Background Effects --}}
{{-- Grid Overlay --}}
Pricing Plans

{{ $section->settings['title'] ?? ($section->title ?? 'Ready to Start Selling?') }}

{{ $section->settings['subtitle'] ?? ($section->subtitle ?? 'Choose a plan that fits your business needs and start reaching thousands of customers.') }}

{{-- Refined Billing Toggle --}} @if(setting('enable_yearly_billing', true))
Monthly
Yearly {{ setting('yearly_discount_text', 'Save 30%') }}
@endif
@foreach ($plans as $plan) @php $planInterval = ($plan->duration_unit === 'year' || $plan->duration_unit === 'years') ? 'yearly' : 'monthly'; @endphp
{{-- Premium Border Glow --}} @if($plan->highlight_plan)
@endif
{{-- Badge & Header --}}

{{ $plan->name }}

@if($plan->badge) {{ $plan->badge }} @endif

{{ $plan->short_description }}

{{-- Pricing Display --}}
{{ $plan->currency === 'USD' ? '$' : $plan->currency }} {{ number_format($plan->price, 0) }} / {{ $planInterval == 'yearly' ? 'yr' : 'mo' }}
{{-- CTA Button --}} {{-- Plan Limits (The "Hidden" Options) --}}
Plan Limits
{{-- Downloads --}}
Storage & DLs @if($plan->unlimited_downloads || $plan->download_limit_type === 'unlimited') Unlimited Downloads @elseif($plan->download_limit_type === 'monthly' || $plan->limit_type === 'monthly_limit') {{ $plan->download_limit_value ?? $plan->monthly_download_limit }} Monthly @else {{ $plan->download_limit_value ?? $plan->total_download_limit }} Total @endif
{{-- Daily Cap --}} @if($plan->daily_download_limit > 0)
Daily Speed {{ $plan->daily_download_limit }} Products / Day
@endif {{-- Access --}}
Access Scope {{ $plan->access_type == 'all_products' ? 'Full Library Access' : 'Restricted Access' }}
{{-- Features List --}}
Features
    @php $planFeatures = is_array($plan->features_list) ? $plan->features_list : []; $allFeatures = array_unique(array_merge($globalFeatures ?? [], $planFeatures)); @endphp @foreach($allFeatures as $feature) @php $hasFeature = in_array($feature, $planFeatures); @endphp
  • {{ $feature }}
  • @endforeach
@endforeach