{{-- AI-generated landing page. Structure follows the fixed 12-section spec: header, hero, pain point, solution, social proof, features, offer, success stories, FAQ, guarantee, final CTA, footer. --}} {{ $page->product->title }} @php $s = $page->sections; @endphp {{-- 1. Header --}}
{{ $page->product->title }}
{{-- 2. Hero --}}

{{ $s['hero']['headline'] ?? $page->product->title }}

{{ $s['hero']['subheadline'] ?? '' }}

{{-- 3. Pain point --}} @if(!empty($s['pain_point']))

{{ $s['pain_point']['title'] ?? '' }}

@endif {{-- 4. Solution --}} @if(!empty($s['solution']))

{{ $s['solution']['title'] ?? '' }}

@endif {{-- 5. Social proof (from product reviews) --}} @if($page->product->reviews->count())

What customers say

@foreach($page->product->reviews->take(3) as $review)
{{ str_repeat('★', $review->rating) }}

{{ $review->comment }}

@endforeach
@endif {{-- 6. Features --}} @if(!empty($s['features']))

{{ $s['features']['title'] ?? 'Features' }}

@foreach(($s['features']['items'] ?? []) as $item)
{{ $item['title'] ?? '' }}
{{ $item['description'] ?? '' }}
@endforeach
@endif {{-- 7. Offer --}} @if(!empty($s['offer']))

{{ $s['offer']['headline'] ?? '' }}

{{ $s['offer']['details'] ?? '' }}

@endif {{-- 9. FAQ --}} @if(!empty($s['faq']))

FAQ

@foreach($s['faq'] as $item)
{{ $item['q'] ?? '' }}
{{ $item['a'] ?? '' }}
@endforeach
@endif {{-- 10. Guarantee --}} @if(!empty($s['guarantee']))

{{ $s['guarantee']['title'] ?? '' }}

{{ $s['guarantee']['text'] ?? '' }}

@endif {{-- 11. Final CTA --}}

{{ $s['final_cta']['headline'] ?? 'Ready to order?' }}

{{-- 12. Footer --}} {{-- simple order form modal reusing the landing.order endpoint --}}
@csrf

Order {{ $page->product->title }}