@extends('front.layout') @section('pagename') - {{ $pageHeading ?? __('Pricing') }} @endsection @section('meta-description', !empty($seo) ? $seo->pricing_meta_description : '') @section('meta-keywords', !empty($seo) ? $seo->pricing_meta_keywords : '') @section('styles') @include('front.partials.pricing_styles') @endsection @section('content') @php $selectedTemplate = request()->query('template'); if (\Schema::hasTable('package_features')) { $allFeatures = \App\Models\PackageFeature::whereNotIn('name', ['Disqus', 'Bank Transfer Integrations']) ->whereNotIn('keyword', ['Disqus', 'Bank Transfer Integrations']) ->orderBy('serial_number', 'asc') ->get(); } else { $allFeatures = collect(); } @endphp
{{ !empty(@$homeSec->pricing_hero_badge) ? @$homeSec->pricing_hero_badge : 'SIMPLE, TRANSPARENT PRICING' }}

{!! !empty(@$homeSec->pricing_hero_title) ? @$homeSec->pricing_hero_title : __('Choose the') . ' ' . __('perfect plan') . ' ' . __('for your business') !!}

{{ !empty(@$homeSec->pricing_hero_subtitle) ? @$homeSec->pricing_hero_subtitle : __('Launch your store in minutes and scale as your business grows.') }}

@include('front.partials.pricing_cards')

{{ __('Looking for a specific store style?') }}

{{ __('Explore Store Themes') }}
@php // Task 2: Show ALL plans – Basic (monthly) + Standard (yearly) + Premium (yearly) $comparePackages = collect(); $basicPkg = \App\Models\Package::where('status','1')->where('title','Basic')->orderBy('price','asc')->first(); if ($basicPkg) $comparePackages->push($basicPkg); $stdPkg = \App\Models\Package::where('status','1')->where('title','Standard')->where('term','yearly')->first(); if (!$stdPkg) $stdPkg = \App\Models\Package::where('status','1')->where('title','Standard')->first(); if ($stdPkg) $comparePackages->push($stdPkg); $premPkg = \App\Models\Package::where('status','1')->where('title','Premium')->where('term','yearly')->first(); if (!$premPkg) $premPkg = \App\Models\Package::where('status','1')->where('title','Premium')->first(); if ($premPkg) $comparePackages->push($premPkg); // Build comparison rows $compareRows = []; if ($allFeatures->isEmpty()) { $compareRows[] = [ 'type' => 'limit', 'label' => 'Products Limit', 'key' => 'product_limit', 'ent_val' => 'Unlimited' ]; $compareRows[] = [ 'type' => 'limit', 'label' => 'Categories Limit', 'key' => 'categories_limit', 'ent_val' => 'Unlimited' ]; $compareRows[] = [ 'type' => 'limit', 'label' => 'Orders Limit', 'key' => 'order_limit', 'ent_val' => 'Unlimited' ]; $compareRows[] = [ 'type' => 'limit', 'label' => 'Additional Languages', 'key' => 'language_limit', 'ent_val' => 'Unlimited' ]; $compareRows[] = [ 'type' => 'limit', 'label' => 'Posts Limit', 'key' => 'post_limit', 'ent_val' => 'Unlimited' ]; $compareRows[] = [ 'type' => 'limit', 'label' => 'Custom Pages Limit', 'key' => 'number_of_custom_page', 'ent_val' => 'Unlimited' ]; foreach ($allPfeatures as $f) { if ($f !== 'Posts Limit') { $compareRows[] = [ 'type' => 'flag', 'label' => $f, 'keyword' => $f, 'ent_val' => true ]; } } } else { foreach ($allFeatures as $feature) { if ($feature->type === 'limit') { $compareRows[] = [ 'type' => 'limit', 'label' => str_replace('{limit} ', '', $feature->name), 'key' => $feature->limit_key, 'ent_val' => 'Unlimited' ]; } else { $compareRows[] = [ 'type' => 'flag', 'label' => $feature->name, 'keyword' => $feature->keyword ?: $feature->name, 'ent_val' => true ]; } } } // Show first 6 rows initially, hide the rest $visibleCompareCount = 6; $visibleCompareRows = array_slice($compareRows, 0, $visibleCompareCount); $hiddenCompareRows = array_slice($compareRows, $visibleCompareCount); @endphp

Compare Plan Features

@foreach ($comparePackages as $pkg) @endforeach @foreach ($visibleCompareRows as $row) @foreach ($comparePackages as $pkg) @endforeach {{-- Enterprise column: always ✓ for flag rows, Unlimited for limit rows --}} @endforeach @if (count($hiddenCompareRows) > 0) @foreach ($hiddenCompareRows as $row) @foreach ($comparePackages as $pkg) @endforeach {{-- Enterprise column --}} @endforeach @endif
Features @if (strtolower($pkg->title) == 'standard')
Ecom {{ __($pkg->title) }}
@else Ecom {{ __($pkg->title) }} @endif
{{ strtolower($pkg->term) == 'monthly' ? 'Monthly' : 'Yearly' }}
Enterprise
{{ __($row['label']) }} @if ($row['type'] == 'limit') @php $val = $pkg->{$row['key']}; @endphp {{ $val == 999999 ? __('Unlimited') : ($val ?: '0') }} @else @php $pkgFeats = json_decode($pkg->features, true) ?: []; $hasFeat = in_array($row['keyword'], $pkgFeats); @endphp @if ($hasFeat) @else @endif @endif @if($row['type'] == 'limit') Unlimited @else @endif
{{ __($row['label']) }} @if ($row['type'] == 'limit') @php $val = $pkg->{$row['key']}; @endphp {{ $val == 999999 ? __('Unlimited') : ($val ?: '0') }} @else @php $pkgFeats = json_decode($pkg->features, true) ?: []; $hasFeat = in_array($row['keyword'], $pkgFeats); @endphp @if ($hasFeat) @else @endif @endif @if($row['type'] == 'limit') Unlimited @else @endif
@if (count($hiddenCompareRows) > 0)
@endif
@if (count($faqs) > 0)

Frequently Asked Questions

@foreach ($faqs as $index => $faq) @if ($index % 2 == 0)

{{ $faq->answer }}
@endif @endforeach
@foreach ($faqs as $index => $faq) @if ($index % 2 != 0)

{{ $faq->answer }}
@endif @endforeach
@endif
@include('front.partials.bottom_cta', ['page' => 'pricing'])
{{ !empty(@$homeSec->bottom_feat1_text) ? @$homeSec->bottom_feat1_text : __('Premium Stores') }}
{{ !empty(@$homeSec->bottom_feat2_text) ? @$homeSec->bottom_feat2_text : __('Launch Instantly') }}
{{ !empty(@$homeSec->bottom_feat3_text) ? @$homeSec->bottom_feat3_text : __('10-Days Money Back Guarantee') }}
{{ !empty(@$homeSec->bottom_feat4_text) ? @$homeSec->bottom_feat4_text : __('Get High Conversions') }}
{{ !empty(@$homeSec->bottom_feat5_text) ? @$homeSec->bottom_feat5_text : __('24/7 Expert Support') }}
@endsection @section('scripts') @endsection