@extends('layouts.app') @section('title', 'Edit Sales Page') @section('content')

Edit Sales Page

👁 Preview Page
@if(session('success'))
{{ session('success') }}
@endif
@csrf @method('PUT')

Basic Information

Helps improve search engine visibility

/p/{{ $salesPage->user->getUrlSlug() }}/
@if($salesPage->logo_path)
Logo
@endif

Uncheck to hide logo from public page (you can add it in your HTML content instead)

Browser tab icon (recommended: 32x32px or 64x64px)

@if($salesPage->favicon_path)
Favicon
@endif

Upload custom favicon (leave empty to use logo)

Page Content (HTML)

Add your sales page content with images, headings, and descriptions

Thumbnail Image URL

Enter the URL of your thumbnail image from your CDN (e.g., for YouTube video thumbnails or social media sharing)

Paste the full URL from your CDN or image hosting service. Recommended: 9:16 aspect ratio for vertical videos

@if($salesPage->thumbnail_path)
Thumbnail Preview
@endif

Legal / Marketing / Permission (HTML)

This section appears above the footer for legal notices, marketing consent, tracking permission, etc.

FAQ Section

Add frequently asked questions with accordion-style answers (supports HTML)

@php $existingFaqs = old('faq_items', $salesPage->faq_items ?? []); @endphp @if(!empty($existingFaqs) && count($existingFaqs) > 0) @foreach($existingFaqs as $index => $faq)

FAQ #{{ $index + 1 }}

@endforeach @endif

Order Bump / Upsell Offer

Show a special offer when customer selects a product

{{ old('order_bump_text', $salesPage->order_bump_text) ?: 'Add RM80 get 3 Booster Serum - Special Offer!' }}

Products to Sell

Select which products will be available on this sales page

@if($products->count() > 0)
@foreach($products as $product) @endforeach
@else

No products available. Create products first.

@endif

Tracking & Analytics Pixels

Track conversions and visitor behavior with tracking pixels

Track Facebook ad conversions

Track visitor behavior and traffic sources

Track TikTok ad performance

Page Statistics

{{ number_format($salesPage->total_views) }}
Views
{{ number_format($salesPage->total_orders) }}
Orders
{{ $salesPage->getConversionRate() }}%
Conversion
@endsection