@if(!empty($agency->favicon)) @endif @if(!empty($agency->og_image ?? $agency->hero_image)) @endif @php $primaryColor = $agency->primary_color ?? '#4f46e5'; $secondaryColor = $agency->secondary_color ?? '#9333ea'; $heroImg = !empty($agency->hero_image) ? asset(ltrim($agency->hero_image, '/')) : asset('assets/landing_page/herobanner_dashboard.png'); $aboutImg = !empty($agency->about_image) ? asset(ltrim($agency->about_image, '/')) : asset('assets/landing_page/features_leftside.png'); $ctaImg = !empty($agency->cta_image) ? asset(ltrim($agency->cta_image, '/')) : asset('assets/landing_page/footer_card.png'); /* Safely read property from stdClass or Eloquent model */ $agencyGet = function($key, $default = null) use ($agency) { if (is_object($agency)) { return isset($agency->$key) ? $agency->$key : $default; } return $default; }; /* KB stats — dynamically editable */ $kbStatsRaw = $agencyGet('kb_stats'); $kbStats = is_array($kbStatsRaw) ? $kbStatsRaw : (json_decode($kbStatsRaw ?? '[]', true) ?: [ ['value' => '10,000+', 'label' => 'Happy Businesses', 'icon' => 'user'], ['value' => '1M+', 'label' => 'Orders Processed', 'icon' => 'package'], ['value' => '500K+', 'label' => 'Active Customers', 'icon' => 'shield'], ['value' => '99.8%', 'label' => 'Uptime & Secure', 'icon' => 'sparkles'], ]); $kbFloatingRaw = $agencyGet('kb_floating_data'); $kbFloating = is_array($kbFloatingRaw) ? $kbFloatingRaw : (json_decode($kbFloatingRaw ?? '[]', true) ?: [ 'order_num' => '#ORD-125', 'revenue' => '₹24,50,000', 'revenue_growth' => '12.5%', 'customers' => '1,245', 'customer_growth' => '18.2%', 'customer_month' => '+192 this month', ]); $purchasedProducts = $agency->purchased_products ?? []; if (empty($purchasedProducts)) { $agencyWithProds = getAgencyFromHost(); $purchasedProducts = $agencyWithProds->purchased_products ?? []; } if (empty($purchasedProducts)) { try { $cpanelUser = env('CPANEL_USER', 'nooryak'); $dbName = env('SASS_ADMIN_DB') ?: "{$cpanelUser}_Sass_admindb"; $dbUser = env('SASS_ADMIN_DB_USER') ?: "{$cpanelUser}_sass_admindb"; $dbPass = env('SASS_ADMIN_DB_PASS') ?: env('DB_PASSWORD', 'Bahad@123'); $dbHost = env('SASS_ADMIN_DB_HOST', '127.0.0.1'); $dbPort = env('SASS_ADMIN_DB_PORT', '3306'); $candDbs = array_unique(array_filter([$dbName, strtolower($dbName), "{$cpanelUser}_sass_admindb", "{$cpanelUser}_Sass_admindb", 'sass_admin'])); foreach ($candDbs as $cdb) { try { $pdo = new \PDO("mysql:host={$dbHost};port={$dbPort};dbname={$cdb};charset=utf8mb4", $dbUser, $dbPass, [\PDO::ATTR_TIMEOUT => 3]); $stmt = $pdo->query("SELECT id, name, slug, tagline, description, icon, app_url FROM products WHERE is_active = 1"); $rawProds = $stmt->fetchAll(\PDO::FETCH_OBJ); if (!empty($rawProds)) { $scheme = (request()->secure() || str_contains(request()->fullUrl(), 'https://')) ? 'https://' : 'http://'; $hostLower = strtolower(str_replace('www.', '', request()->getHost())); $cleanHost = preg_replace('/^(launchshop|checkout|app|www|websitebuilder|website-builder|whatsappbulk|whatsapp|wa|ecombuilder|ecom-builder)\./i', '', $hostLower); foreach ($rawProds as &$p) { $sClean = strtolower(trim($p->slug)); if ($sClean === 'website-builder') $sClean = 'websitebuilder'; if ($sClean === 'launchshop' || $sClean === 'ecom-builder') $sClean = 'ecombuilder'; $p->url = "{$scheme}{$sClean}.{$cleanHost}"; } $purchasedProducts = $rawProds; break; } } catch (\Throwable $e) {} } } catch (\Throwable $e) {} } $services = []; foreach ($purchasedProducts as $p) { $pName = is_object($p) ? ($p->name ?? '') : ($p['name'] ?? ''); $pDesc = is_object($p) ? ($p->tagline ?? $p->description ?? '') : ($p['tagline'] ?? $p['description'] ?? ''); $pUrl = is_object($p) ? ($p->url ?? '#') : ($p['url'] ?? '#'); $pSlug = is_object($p) ? ($p->slug ?? '') : ($p['slug'] ?? ''); $services[] = [ 'title' => $pName, 'desc' => $pDesc, 'url' => $pUrl, 'slug' => $pSlug, ]; } $testimonialsRaw = $agencyGet('testimonials_data'); $testimonials = is_array($testimonialsRaw) ? $testimonialsRaw : (json_decode($testimonialsRaw ?? '[]', true) ?: [ ['name' => 'Rahul Sharma', 'role' => 'Restaurant Owner, Delhi', 'rating' => 5, 'comment' => "{$agency->name} helped us get 3x more online orders in just 2 months. The QR menu and reviews feature is amazing!"], ['name' => 'Priya Mehta', 'role' => 'Salon Owner, Mumbai', 'rating' => 5, 'comment' => 'Super easy to use and really effective. Our customer engagement has never been better!'], ['name' => 'Amit Verma', 'role' => 'Clinic Owner, Bengaluru', 'rating' => 5, 'comment' => 'The digital tools, CRM and reminders have saved us hours of work every week.'], ]); $featuresRaw = $agencyGet('features_data'); $features = is_array($featuresRaw) ? $featuresRaw : (json_decode($featuresRaw ?? '[]', true) ?: [ ['title' => 'Get More Customers', 'desc' => 'Build trust with reviews, smart websites and digital presence.', 'icon' => 'rocket', 'bg' => '#ede9fe', 'color' => '#7c3aed'], ['title' => 'Save Time & Effort', 'desc' => 'Automate repetitive tasks and focus on what matters most.', 'icon' => 'clock', 'bg' => '#d1fae5', 'color' => '#059669'], ['title' => 'Increase Revenue', 'desc' => 'Drive repeat business with loyalty programs & digital tools.', 'icon' => 'trending-up', 'bg' => '#ffedd5', 'color' => '#ea580c'], ['title' => 'Reliable & Secure', 'desc' => 'Your business data is safe with enterprise-grade security.', 'icon' => 'shield-check', 'bg' => '#dbeafe', 'color' => '#1d4ed8'], ]); $faqsRaw = $agencyGet('faq_data'); $faqs = is_array($faqsRaw) ? $faqsRaw : (json_decode($faqsRaw ?? '[]', true) ?: [ ['q' => 'How does the platform work?', 'a' => 'Our platform provides an all-in-one suite of growth tools to help local businesses manage orders, reviews, websites, and customer retention from one place.'], ['q' => 'Can I customize the features for my business?', 'a' => 'Yes, you can enable and configure the exact tools you need in just a few clicks from your dashboard.'], ['q' => 'Is technical knowledge required?', 'a' => 'Not at all! Our software is built for non-technical business owners with clean, easy-to-use interfaces.'], ]); $categoriesRaw = $agencyGet('categories_data'); $categories = is_array($categoriesRaw) ? $categoriesRaw : (json_decode($categoriesRaw ?? '[]', true) ?: [ ['label' => 'Restaurants', 'icon' => '🍽️'], ['label' => 'Clinics', 'icon' => '🏥'], ['label' => 'Salons & Spas', 'icon' => '💇'], ['label' => 'Retail Shops', 'icon' => '🛍️'], ['label' => 'Hotels', 'icon' => '🏨'], ['label' => 'Gyms & Fitness', 'icon' => '🏋️'], ['label' => 'Real Estate', 'icon' => '🏠'], ['label' => '& Many More', 'icon' => '✨'], ]); /* product icon map */ $pIconMap = [ 'AI Reviews + CRM' => ['icon' => 'star', 'bg' => '#ede9fe', 'clr' => '#7c3aed'], 'Website Builder' => ['icon' => 'monitor', 'bg' => '#dbeafe', 'clr' => '#1d4ed8'], 'Digital V-Card' => ['icon' => 'user', 'bg' => '#d1fae5', 'clr' => '#059669'], 'QR Menu & Ordering'=> ['icon' => 'qr-code', 'bg' => '#fce7f3', 'clr' => '#be185d'], 'Loyalty Program' => ['icon' => 'gift', 'bg' => '#fef3c7', 'clr' => '#d97706'], 'Business Analytics'=> ['icon' => 'bar-chart-3', 'bg' => '#ccfbf1', 'clr' => '#0d9488'], ]; /* Pricing plans — read from agency pricing_plans_data (stored in Sass_admin DB via getAgencyFromHost) */ $agencyObj = is_object($agency) ? $agency : null; $pricingPlansRaw = $agencyObj ? ($agencyObj->pricing_plans_data ?? null) : null; $pricingPlans = []; if (!empty($pricingPlansRaw)) { $pricingPlans = is_array($pricingPlansRaw) ? $pricingPlansRaw : (json_decode($pricingPlansRaw, true) ?: []); } if (empty($pricingPlans)) { // Auto-generate from purchasedProducts $productColorMap = [ 'launchshop' => ['color'=>'#f97316','gradient'=>'linear-gradient(135deg,#f97316,#ea580c)','icon'=>'shopping-bag','plan_badge'=>'STARTER TIER','plan_name'=>'Starter Growth','price_monthly'=>'499','price_yearly'=>'4999','trust_count'=>'10,000+ Sellers Trust Us','is_popular'=>false,'features'=>['1 Online Store','Up to 1,000 Products','Basic Analytics & Reports','Standard Email Support','Custom Subdomain Setup'],'cta_text'=>'Get Started Free'], 'website-builder' => ['color'=>'#2563eb','gradient'=>'linear-gradient(135deg,#2563eb,#1d4ed8)','icon'=>'monitor','plan_badge'=>'MOST POPULAR','plan_name'=>'Professional Pro','price_monthly'=>'1499','price_yearly'=>'14999','trust_count'=>'5,000+ Websites Live','is_popular'=>true,'features'=>['Drag & Drop Builder','Custom Domain','SEO Optimization','AI Content Generation','24/7 Priority Support'],'cta_text'=>'Start 14-Day Free Trial'], 'websitebuilder' => ['color'=>'#2563eb','gradient'=>'linear-gradient(135deg,#2563eb,#1d4ed8)','icon'=>'monitor','plan_badge'=>'MOST POPULAR','plan_name'=>'Professional Pro','price_monthly'=>'1499','price_yearly'=>'14999','trust_count'=>'5,000+ Websites Live','is_popular'=>true,'features'=>['Drag & Drop Builder','Custom Domain','SEO Optimization','AI Content Generation','24/7 Priority Support'],'cta_text'=>'Start 14-Day Free Trial'], 'whatsappbulk' => ['color'=>'#10b981','gradient'=>'linear-gradient(135deg,#10b981,#059669)','icon'=>'message-square','plan_badge'=>'AUTOMATION PRO','plan_name'=>'WhatsApp Automation','price_monthly'=>'899','price_yearly'=>'8999','trust_count'=>'15,000+ Campaigns Sent','is_popular'=>false,'features'=>['Bulk WhatsApp Messaging','Chatbot & Auto-Responder','Multi-Device Connection','Contact List Manager','Campaign Analytics & Reports'],'cta_text'=>'Start WhatsApp Free'], 'whatsapp' => ['color'=>'#10b981','gradient'=>'linear-gradient(135deg,#10b981,#059669)','icon'=>'message-square','plan_badge'=>'AUTOMATION PRO','plan_name'=>'WhatsApp Automation','price_monthly'=>'899','price_yearly'=>'8999','trust_count'=>'15,000+ Campaigns Sent','is_popular'=>false,'features'=>['Bulk WhatsApp Messaging','Chatbot & Auto-Responder','Multi-Device Connection','Contact List Manager','Campaign Analytics & Reports'],'cta_text'=>'Start WhatsApp Free'], 'ai-reviews' => ['color'=>'#7c3aed','gradient'=>'linear-gradient(135deg,#7c3aed,#6d28d9)','icon'=>'star','plan_badge'=>'GROWTH PLAN','plan_name'=>'Growth Plan','price_monthly'=>'999','price_yearly'=>'9999','trust_count'=>'8,000+ Reviews Generated','is_popular'=>false,'features'=>['AI Review Responses','Multi-Platform Reviews','Customer CRM','Reputation Reports','Smart Automations'],'cta_text'=>'Get Started Free'], 'vcard' => ['color'=>'#059669','gradient'=>'linear-gradient(135deg,#059669,#047857)','icon'=>'user','plan_badge'=>'STARTER TIER','plan_name'=>'Business Card Pro','price_monthly'=>'299','price_yearly'=>'2999','trust_count'=>'20,000+ Cards Shared','is_popular'=>false,'features'=>['Digital V-Card','QR Code Sharing','Analytics Dashboard','Custom Branding','Unlimited Shares'],'cta_text'=>'Get Started Free'], ]; foreach (array_slice($purchasedProducts instanceof \Illuminate\Support\Collection ? $purchasedProducts->all() : (array)$purchasedProducts, 0, 4) as $p) { $pSlug = strtolower(trim(is_object($p) ? ($p->slug ?? '') : ($p['slug'] ?? ''))); $pName = is_object($p) ? ($p->name ?? 'Product') : ($p['name'] ?? 'Product'); $pTagline = is_object($p) ? ($p->tagline ?? $p->description ?? 'Smart digital tool for your business.') : ($p['tagline'] ?? $p['description'] ?? 'Smart digital tool for your business.'); $pUrl = is_object($p) ? ($p->url ?? ($agencyObj->cta_url ?? '/login')) : ($p['url'] ?? ($agencyObj->cta_url ?? '/login')); $def = $productColorMap[$pSlug] ?? ['color'=>'#6366f1','gradient'=>'linear-gradient(135deg,#6366f1,#4f46e5)','icon'=>'layers','plan_badge'=>'PRO PLAN','plan_name'=>'Growth Plan','price_monthly'=>'799','price_yearly'=>'7999','trust_count'=>'5,000+ Users','is_popular'=>false,'features'=>['Full Product Access','Priority Support','Advanced Analytics','Custom Branding','Dedicated Manager'],'cta_text'=>'Get Started Free']; $pricingPlans[] = array_merge($def, ['product_name'=>$pName,'product_tagline'=>$pTagline,'product_subtitle'=>'Powerful tools to grow your business.','cta_url'=>$pUrl]); } } if (empty($pricingPlans)) { $pricingPlans = [ ['product_name'=>'ECOM BUILDER','product_tagline'=>'Online Store Builder','product_subtitle'=>'Launch your digital store in minutes.','color'=>'#f97316','gradient'=>'linear-gradient(135deg,#f97316,#ea580c)','icon'=>'shopping-bag','plan_badge'=>'STARTER TIER','plan_name'=>'Starter Growth','price_monthly'=>'499','price_yearly'=>'4999','trust_count'=>'10,000+ Sellers Trust Us','is_popular'=>false,'features'=>['1 Online Store','Up to 1,000 Products','Basic Analytics & Reports','Standard Email Support','Custom Subdomain Setup'],'cta_text'=>'Get Started Free','cta_url'=>$agencyObj->cta_url ?? '/login'], ['product_name'=>'Website Builder','product_tagline'=>'Professional Website Builder','product_subtitle'=>'Create stunning websites with AI in minutes.','color'=>'#2563eb','gradient'=>'linear-gradient(135deg,#2563eb,#1d4ed8)','icon'=>'monitor','plan_badge'=>'MOST POPULAR','plan_name'=>'Professional Pro','price_monthly'=>'1499','price_yearly'=>'14999','trust_count'=>'5,000+ Websites Live','is_popular'=>true,'features'=>['Drag & Drop Builder','Custom Domain','SEO Optimization','AI Content Generation','24/7 Priority Support'],'cta_text'=>'Start 14-Day Free Trial','cta_url'=>$agencyObj->cta_url ?? '/login'], ]; } $pricingSectionTitle = $agencyObj ? ($agencyObj->pricing_section_title ?? 'Choose Your Perfect Plan') : 'Choose Your Perfect Plan'; $pricingSectionSubtitle = $agencyObj ? ($agencyObj->pricing_section_subtitle ?? 'Scale seamlessly with zero hidden fees.') : 'Scale seamlessly with zero hidden fees.'; $pricingTrustBarRaw = $agencyObj ? ($agencyObj->pricing_trust_bar ?? '🔒 Secure & Reliable,📞 24/7 Support,❤️ Trusted by 10,000+ Businesses') : '🔒 Secure & Reliable,📞 24/7 Support,❤️ Trusted by 10,000+ Businesses'; $pricingTrustItems = array_map('trim', explode(',', $pricingTrustBarRaw)); @endphp {{-- ══ ANNOUNCEMENT BAR ══════════════════════════════════ --}}
🎉 Special Offer: Get Started with {{ $agency->name }} Today & Automate Your Business!
{{-- ══ HEADER ════════════════════════════════════════════ --}} {{-- ══ HERO SECTION — Pixel-Perfect 2nd Reference Match ══════════════════════════════════════════ --}}
{{-- Soft decorative glow blobs --}}
{{-- Left --}}
{{-- Badge --}} ⚡ All-in-One Growth Platform for Indian Businesses {{-- Headline --}}

{{ $agency->hero_title ?? 'Build. Automate.' }} Scale. All in One

{{-- Subtitle --}}

{{ $agency->hero_subtitle ?? ($agency->name . ' helps Indian businesses grow faster with powerful tools for marketing, sales, customer loyalty, and automation – all in one place.') }}

{{-- CTA Buttons --}}
Start Your Free Trial Book a Live Demo
{{-- Trust badges --}}
No Credit Card Easy Setup Cancel Anytime
{{-- Right: Dashboard image with slight perspective tilt --}}
{{-- Glow behind the image --}}
{{ $agency->name }} Dashboard {{-- Floating brand badge --}}
@if(!empty($agency->logo)) @else @endif
{{-- ══ TRUST BAR — Category Pills ════════════════════════ --}}

Trusted by 10,000+ Local Businesses Across India

@foreach($categories as $cat)
{{ $cat['icon'] }} {{ $cat['label'] }}
@endforeach
{{-- ══ WHY CHOOSE — 4 Feature Cards ═════════ --}}

Why Choose {{ $agency->name }}?

Everything you need to run, grow and scale your business — without juggling multiple tools.

@foreach($features as $feat)

{{ $feat['title'] }}

{{ $feat['desc'] }}

@endforeach
{{-- ══ BUILT FOR ENTREPRENEURS — features_leftside + KB Floating Elements (BELOW FEATURES SECTION) ══ --}}
{{-- LEFT SIDE: Man image with soft circular background & floating KB UI badges --}}
{{-- Soft purple background circle --}}
{{-- Man holding tablet image --}} Built for Entrepreneurs {{-- Floating Badge 1 (Top-Left): New Order #ORD-125 --}}
New Order {{ $kbFloating['order_num'] ?? '#ORD-125' }}
{{-- Floating Badge 2 (Top-Right): Total Revenue ₹24,50,000 +12.5% --}}
Total Revenue {{ $kbFloating['revenue'] ?? '₹24,50,000' }}
↑ {{ $kbFloating['revenue_growth'] ?? '12.5%' }} from last month
{{-- Floating Badge 3 (Middle-Left): Colorful Bar Chart Widget --}}
{{-- Floating Badge 4 (Bottom-Left): Customers 1,245 +18.2% --}}
Customers {{ $kbFloating['customers'] ?? '1,245' }}
↑ {{ $kbFloating['customer_growth'] ?? '18.2%' }} {{ $kbFloating['customer_month'] ?? '+192 this month' }}
{{-- RIGHT SIDE: Stats Row + Heading + Subtitle + CTA --}}
{{-- KB Stats row with icon boxes — dynamically from $kbStats --}}
@foreach($kbStats as $idx => $stat) @if($idx > 0)
@endif
{{-- Icon container --}}
{{ $stat['value'] }} {{ $stat['label'] }}
@endforeach
{{-- Heading & Body --}}

Built for entrepreneurs, by entrepreneurs.

{{ $agencyGet('about_content') ?? ("We understand the challenges of growing a business in India. That's why we built " . $agency->name . " — to make technology simple, affordable, and accessible for everyone.") }}

{{-- CTA Button --}} Explore All Features
{{-- ══ SMART TOOLS — Products 3×2 Grid Container Card (MATCHING 2ND REFERENCE IMAGE) ══════════════════ --}}
{{-- Left column --}}
Our Products

Smart Tools for Smarter Businesses

A complete suite of business growth tools designed for Indian entrepreneurs and local businesses.

Explore All Products
{{-- Right product grid dynamically loaded from Whitelabel Dashboard --}}
@foreach($purchasedProducts as $prod) @php $pName = is_object($prod) ? ($prod->name ?? 'Product') : ($prod['name'] ?? 'Product'); $pSlug = strtolower(trim(is_object($prod) ? ($prod->slug ?? 'product') : ($prod['slug'] ?? 'product'))); $pUrl = is_object($prod) ? ($prod->url ?? '#') : ($prod['url'] ?? '#'); $pTagline = is_object($prod) ? ($prod->tagline ?? $prod->description ?? 'Smart digital tool for business growth') : ($prod['tagline'] ?? $prod['description'] ?? 'Smart digital tool for business growth'); $bg = '#ede9fe'; $clr = '#7c3aed'; $lucideIcon = 'layers'; if ($pSlug === 'launchshop' || str_contains($pSlug, 'shop') || str_contains(strtolower($pName), 'review') || str_contains(strtolower($pName), 'crm')) { $bg = '#dbeafe'; $clr = '#2563eb'; $lucideIcon = 'shopping-bag'; } elseif (str_contains($pSlug, 'vcard') || str_contains(strtolower($pName), 'card')) { $bg = '#d1fae5'; $clr = '#059669'; $lucideIcon = 'user'; } elseif (str_contains($pSlug, 'qr') || str_contains(strtolower($pName), 'qr') || str_contains(strtolower($pName), 'menu')) { $bg = '#fef3c7'; $clr = '#d97706'; $lucideIcon = 'qr-code'; } elseif (str_contains($pSlug, 'loyalty') || str_contains(strtolower($pName), 'loyalty')) { $bg = '#fee2e2'; $clr = '#dc2626'; $lucideIcon = 'gift'; } elseif (str_contains($pSlug, 'analytics') || str_contains(strtolower($pName), 'analytics')) { $bg = '#e0e7ff'; $clr = '#4f46e5'; $lucideIcon = 'bar-chart-3'; } @endphp

{{ $pName }}

{{ $pTagline }}

@endforeach
{{-- ══ PRICING PLANS — 3rd Reference Split Layout ════════════════════════════ --}}
{{-- Section Header --}}
{{-- Badge --}} 👑 Flexible Pricing Plans {{-- Main Title --}}

Choose Your Perfect Plan

{{-- Subtitle --}}

Powerful tools to grow your business. Simple, transparent pricing.
No hidden fees. Upgrade or downgrade anytime.

{{-- Billing Cycle Toggle Tabs (Monthly / Yearly) --}}
{{-- Product Plan Cards Grid --}}
@foreach($pricingPlans as $plan) @php $planColor = $plan['color'] ?? '#ea580c'; $leftBg = $plan['left_bg'] ?? ($loop->first ? '#fff5ee' : '#f0f6ff'); $isPopular = !empty($plan['is_popular']); $planFeatures = $plan['features'] ?? []; $pSlugLower = strtolower($plan['product_slug'] ?? \Illuminate\Support\Str::slug($plan['product_name'] ?? '')); $isWa = str_contains($pSlugLower, 'whatsapp'); $isEcom = !$isWa && ($loop->first || str_contains($pSlugLower, 'launch') || str_contains($pSlugLower, 'ecom') || str_contains(strtolower($plan['product_name'] ?? ''), 'ecom')); // Image path fallbacks (ensuring images load on all agency subdomains) $rawLogo = !empty($plan['product_logo']) ? $plan['product_logo'] : ($isEcom ? 'assets/landing_page/ecom_logo.png' : 'assets/landing_page/websitebuilder_logo.png'); $rawMockup = !empty($plan['product_image']) ? $plan['product_image'] : ($isEcom ? 'assets/landing_page/ecombuilder_image.png' : 'assets/landing_page/websitebuilder_image.png'); $logoImgPath = str_starts_with($rawLogo, 'http') ? $rawLogo : asset(ltrim($rawLogo, '/')); $mockupImgPath = str_starts_with($rawMockup, 'http') ? $rawMockup : asset(ltrim($rawMockup, '/')); // Dynamic Product Landing Page Link Resolution $getProdUrl = function($slug) use ($agency) { if (isset($agency) && is_object($agency) && method_exists($agency, 'getProductSubdomainUrl')) { return $agency->getProductSubdomainUrl($slug); } $hostLower = strtolower(str_replace('www.', '', request()->getHost())); $cleanHost = preg_replace('/^(launchshop|checkout|app|www|websitebuilder|website-builder)\./i', '', $hostLower); if (empty($cleanHost)) $cleanHost = 'saasreselling.in'; $sClean = strtolower(trim($slug)); if ($sClean === 'launchshop' || str_contains($sClean, 'ecom') || str_contains($sClean, 'shop')) { return "https://ecom.{$cleanHost}"; } if ($sClean === 'website-builder' || $sClean === 'websitebuilder' || str_contains($sClean, 'website')) { return "https://websitebuilder.{$cleanHost}"; } if ($sClean === 'whatsappbulk' || $sClean === 'whatsapp' || str_contains($sClean, 'whatsapp')) { return "https://whatsappbulk.{$cleanHost}"; } return "https://{$sClean}.{$cleanHost}"; }; $defaultPlanUrl = $isEcom ? ($getProdUrl('launchshop') . '/#pricing') : (str_contains($pSlugLower, 'website') ? ($getProdUrl('websitebuilder') . '/#pricing') : ($getProdUrl($pSlugLower) . '/#pricing')); $prodLink = (!empty($plan['cta_url']) && $plan['cta_url'] !== '/login' && !str_contains($plan['cta_url'], 'dashboard')) ? $plan['cta_url'] : $defaultPlanUrl; // Vibrant CTA Button Gradient & Text Contrast Fix $btnGradient = $isWa ? 'linear-gradient(135deg, #10b981 0%, #059669 100%)' : ($isEcom ? 'linear-gradient(135deg, #f97316 0%, #ea580c 100%)' : 'linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%)'); if (!empty($plan['gradient']) && !str_contains($plan['gradient'], '#fff') && !str_contains($plan['gradient'], '#ffedd5') && !str_contains($plan['gradient'], '#f0f6ff') && !str_contains($plan['gradient'], '#e0e7ff')) { $btnGradient = $plan['gradient']; } @endphp
{{-- LEFT PANEL: Product Visual & Branding --}}
{{-- Product Logo --}}
@if(!empty($logoImgPath)) {{ $plan['product_name'] ?? 'Product' }} @else

{{ $plan['product_name'] ?? 'Product' }}

@endif
{{-- Tagline Bullets --}} @if(!empty($plan['product_tagline']))
{{ $plan['product_tagline'] }}
@endif {{-- Product Title --}}

{{ $plan['product_title'] ?? ($plan['product_name'] . ' Solution') }}

{{-- Subtitle Paragraph --}} @if(!empty($plan['product_subtitle']))

{{ $plan['product_subtitle'] }}

@endif {{-- Center Product Image Mockup (Prominent & Clear) --}} @if(!empty($mockupImgPath))
{{ $plan['product_name'] ?? '' }}
@endif
{{-- RIGHT PANEL: Plan & Pricing Details --}}
{{-- Badges Row --}}
{{ $plan['plan_badge'] ?? 'STARTER' }} @if(!empty($plan['plan_subbadge'])) {{ $plan['plan_subbadge'] }} @endif
{{-- Plan Name --}}

{{ $plan['plan_name'] ?? 'Plan Name' }}

{{-- Plan Subtitle --}} @if(!empty($plan['plan_subtitle']))

{{ $plan['plan_subtitle'] }}

@endif {{-- Price Display --}}
₹{{ $plan['price_monthly'] ?? '499' }} /month
{{-- Included Features Header --}}
INCLUDED FEATURES:
{{-- Features List --}}
    @foreach($planFeatures as $feature)
  • ✓ {{ $feature }}
  • @endforeach
{{-- CTA Button (View Details -> Product Landing Page) --}}
{!! !empty($plan['cta_text']) ? $plan['cta_text'] : ('View More Plans →') !!} @if(!empty($plan['cta_subnote']))
{{ $plan['cta_subnote'] }}
@endif
@endforeach
{{-- 3-Column Trust Bar --}}
Secure & Reliable

Your data is always safe with us

24/7 Support

We're here whenever you need help

Trusted by 10,000+ Businesses

Growing together, every day

{{-- ══ HOW IT WORKS — 3 Steps (Pixel-Perfect 3rd Reference) ══════════════════════ --}}

How It Works?

Get started in 3 simple steps and transform your business today.

{{-- Steps row --}}
{{-- Step 1 --}}
01

Sign Up

Create your account in
less than 2 minutes.

{{-- Connector 1→2 --}}
{{-- Step 2 --}}
02

Set Up Your Business

Choose the tools you need
and customize in minutes.

{{-- Connector 2→3 --}}
{{-- Step 3 --}}
03

Grow Faster

Get more customers, more
reviews and more revenue.

{{-- End dark circle --}}
{{-- ══ TESTIMONIALS — Pixel-Perfect 2nd Reference Match ════════════ --}}
{{-- Left heading + arrows --}}

Loved by
Business Owners

See what our customers say about their growth with {{ $agency->name }}.

{{-- Right: 3 review cards --}}
@foreach($testimonials as $t) @php $initials = strtoupper(substr(trim($t['name'] ?? 'U'), 0, 1)); $parts = explode(' ', trim($t['name'] ?? 'U')); $initials = strtoupper(substr($parts[0],0,1) . (isset($parts[1]) ? substr($parts[1],0,1) : '')); @endphp
{{-- Reviewer top: avatar + name/role --}}
@if(!empty($t['avatar'])) {{ $t['name'] }} @else
{{ $initials }}
@endif
{{ $t['name'] }}
{{ $t['role'] ?? $t['designation'] ?? '' }}
{{-- Stars --}}
@for($i = 0; $i < ($t['rating'] ?? 5); $i++) ★ @endfor
{{-- Quote --}}

"{{ $t['comment'] }}"

@endforeach
{{-- ══ BUILT FOR ENTREPRENEURS — features_leftside + KB Floating Elements ══ --}}
{{-- LEFT SIDE: Man image with soft circular background & floating KB UI badges --}}
{{-- Soft purple background circle --}}
{{-- Man holding tablet image --}} Built for Entrepreneurs {{-- Floating Badge 1 (Top-Left): New Order #ORD-125 --}}
New Order {{ $kbFloating['order_num'] ?? '#ORD-125' }}
{{-- Floating Badge 2 (Top-Right): Total Revenue ₹24,50,000 +12.5% --}}
Total Revenue {{ $kbFloating['revenue'] ?? '₹24,50,000' }}
↑ {{ $kbFloating['revenue_growth'] ?? '12.5%' }} from last month
{{-- Floating Badge 3 (Middle-Left): Colorful Bar Chart Widget --}}
{{-- Floating Badge 4 (Bottom-Left): Customers 1,245 +18.2% --}}
Customers {{ $kbFloating['customers'] ?? '1,245' }}
↑ {{ $kbFloating['customer_growth'] ?? '18.2%' }} {{ $kbFloating['customer_month'] ?? '+192 this month' }}
{{-- RIGHT SIDE: Stats Row + Heading + Subtitle + CTA --}}
{{-- KB Stats row with icon boxes — dynamically from $kbStats --}}
@foreach($kbStats as $idx => $stat) @if($idx > 0)
@endif
{{-- Icon container --}}
{{ $stat['value'] }} {{ $stat['label'] }}
@endforeach
{{-- Heading & Body --}}

Built for entrepreneurs, by entrepreneurs.

{{ $agencyGet('about_content') ?? ("We understand the challenges of growing a business in India. That's why we built " . $agency->name . " — to make technology simple, affordable, and accessible for everyone.") }}

{{-- CTA Button --}} Explore All Features
{{-- ══ FAQ ════════════════════════════════════════════════ --}}

Frequently Asked Questions

Have questions? We are here to help.

@foreach($faqs as $item)

{{ $item['q'] }}

{{ $item['a'] }}

@endforeach
{{-- ══ CTA BANNER — Pixel-Perfect 2nd Reference Match ══════════════════════════════════════════ --}}
{{-- Decorative circles --}}
{{-- Left: heading + sub + checkmarks --}}

Ready to Take Your Business to the Next Level?

Join thousands of growing businesses with {{ $agency->name }} today.

Quick Setup No Credit Card Required 24/7 Support
{{-- Center: woman image (cuts into section, overflows bottom) --}}
Grow with {{ $agency->name }}
{{-- Right: CTA button --}}
Get Started Free
{{-- ══ FOOTER ══════════════════════════════════════════════ --}}