{{ $item['title'] ?? '' }}
{{ $item['desc'] ?? '' }}
@if($index === 0)@extends('frontend.layout') @php $siteName = \App\Helpers\BrandingHelper::name(); $hero = array_merge([ 'badge' => __('Talk to our AI assistant'), 'title_line1' => __('Meet your AI guide for'), 'title_highlight' => $siteName, 'title_line2' => '', 'subtitle' => __('Ask any question, get instant answers, and let our AI agent route you to the right product, plan, or person — live, right now.'), 'cta_text' => __('Get Started Free'), 'cta_url' => '/register', 'cta2_text' => __('See Features'), 'cta2_url' => '#features', ], is_array($hero ?? null) ? $hero : []); $featureItems = $features['items'] ?? []; if (! is_array($featureItems) || count($featureItems) === 0) { $featureItems = [ ['title' => __('Always-on AI Agent'), 'desc' => __('Answers visitor questions 24/7 using your business context and the configured model.')], ['title' => __('Live Lead Capture'), 'desc' => __('Every chat becomes a structured lead with name, email, company, and use case.')], ['title' => __('Unified Inbox'), 'desc' => __('Email, WhatsApp, SMS, Slack, and Telegram in one inbox.')], ['title' => __('CRM & Deals'), 'desc' => __('Track contacts, pipelines, and lead activity from first message to closed deal.')], ['title' => __('Workflow Automation'), 'desc' => __('No-code triggers, routing, and follow-up automation.')], ['title' => __('Analytics Dashboard'), 'desc' => __('Measure conversations, conversions, AI cost, and team performance.')], ]; } $testimonialItems = $testimonials['items'] ?? []; if (! is_array($testimonialItems) || count($testimonialItems) === 0) { $testimonialItems = [ ['quote' => __('The AI agent on our homepage qualifies leads while we sleep — and the answers actually match our pricing.'), 'name' => 'Marcus Rivera', 'role' => __('CEO'), 'company' => 'GrowthStack'], ['quote' => __('Visitors leave with a clear next step every time. Our demo bookings tripled in three weeks.'), 'name' => 'Emily Watson', 'role' => __('Marketing Director'), 'company' => 'Vertex Labs'], ['quote' => __('We replaced two contact forms and a chatbot with one agent — and the inbox finally feels manageable.'), 'name' => 'Raj Patel', 'role' => __('Lead Engineer'), 'company' => 'CloudNine'], ]; } $faqItems = $faq['items'] ?? []; if (! is_array($faqItems) || count($faqItems) === 0) { $faqItems = [ ['question' => __('How does the AI agent know about my business?'), 'answer' => __('You add a short business context paragraph under Admin → Frontend Settings → Agent Configuration. The agent uses it to answer accurately and qualify leads.')], ['question' => __('Which AI providers are supported?'), 'answer' => __('OpenAI, Anthropic, Google Gemini, and Mistral. Pick the provider, paste your API key under Admin → AI Providers, and the homepage agent uses it immediately.')], ['question' => __('Where do captured leads go?'), 'answer' => __('Every chat becomes a row under Admin → Homepage Leads with the full transcript, contact details, status workflow, and CSV export.')], ['question' => __('Can I edit the greeting and agent name?'), 'answer' => __('Yes — both live under Admin → Frontend Settings → Agent Configuration. Changes apply on the next page load.')], ['question' => __('What happens if the AI is not configured?'), 'answer' => __("The homepage still renders the full marketing page with all sections — only the chat panel is replaced with a friendly placeholder until an API key is saved.")], ]; } $cta = array_merge([ 'badge' => __('Ready to automate'), 'title' => __('Ready to put an AI agent on your homepage?'), 'subtitle' => __('Activate it in two minutes, capture leads from the first visitor.'), 'cta_text' => __('Get Started Free'), 'cta_url' => '/register', ], is_array($cta ?? null) ? $cta : []); // Pricing is driven by the `plans` table — active plans only, sorted by sort_order. $plans = \App\Models\Plan::where('is_active', true) ->orderBy('sort_order') ->orderBy('monthly_price') ->get() ->map(function ($plan) { $monthly = (float) $plan->monthly_price; $yearly = (float) ($plan->yearly_price ?? round($monthly * 12 * 0.8, 0)); return [ 'name' => $plan->name, 'monthly' => $monthly, 'yearly' => $yearly, 'monthly_display' => \App\Helpers\CurrencyHelper::display($monthly), 'yearly_display' => \App\Helpers\CurrencyHelper::display($yearly), 'desc' => (string) ($plan->description ?? ''), 'popular' => (bool) $plan->is_popular, 'cta' => $monthly <= 0 ? __('Start Free') : ((stripos($plan->name, 'enterprise') !== false) ? __('Contact Sales') : __('Get Started')), 'features' => is_array($plan->features) ? $plan->features : [], ]; }) ->all(); @endphp @push('styles') @endpush @section('content')
{{ $hero['subtitle'] }}
{{-- Trust pills --}}{{ __('Online · AI Assistant') }}
{{ __('Start the conversation') }}
{{ __("We're activating the AI agent right now. In the meantime, jump straight in — sign up takes less than a minute.") }}
{{ __('Admin tip: paste a provider API key under') }} {{ __('Admin → AI Providers') }} {{ __('to activate this chat.') }}
@endif @endauth{{ __('The AI greets visitors, answers in your voice, qualifies them, and routes the lead straight to your CRM.') }}
{{ $step[1] }}
{{ $features['subtitle'] ?? __('A complete CRM + AI agent stack in one self-hosted workspace.') }}
{{ $item['desc'] ?? '' }}
@if($index === 0){{ $testimonials['subtitle'] ?? __('See what customers say about :brand.', ['brand' => $siteName]) }}
@endforeach@for($i = 0; $i < 5; $i++) @endfor"{{ $item['quote'] ?? $item['body'] ?? '' }}"
{{ __("Start free, upgrade when you're ready. No hidden fees.") }}
{{ $plan['desc'] }}
{{ $faq['subtitle'] }}
@endif{{ $item['answer'] ?? '' }}
{{ $cta['subtitle'] }}