<?php
// Populate workshop content with sample data from template
// Run with: wp eval-file populate-content.php

$page = get_page_by_path('workshop-content');
if (!$page) {
    echo "Workshop content page not found!\n";
    exit(1);
}

$page_id = $page->ID;
echo "Populating content for page ID: $page_id\n";

// Hero Section
update_field('hero_badge', 'Free Live Training', $page_id);
update_field('hero_headline', 'How to Generate <span class="text-accent">100 Qualified Leads Per Day</span> on Autopilot', $page_id);
update_field('hero_subheadline', 'Discover the exact 5-step framework used by 50,000+ professionals to build predictable revenue — without paid ads or cold calling.', $page_id);
update_field('hero_date_time', 'Thursday, June 15th at 2:00 PM EST', $page_id);
update_field('hero_video_url', '', $page_id);

// Pain Section
update_field('pain_headline', 'Does This Sound Familiar?', $page_id);
update_field('pain_subheadline', "You're working harder than ever, but the results aren't matching the effort...", $page_id);
update_field('pain_cta_text', 'If any of these resonate, this workshop was made for you.', $page_id);

$pain_points = array(
    array('text' => "You're spending thousands on ads that barely break even — or worse, lose money"),
    array('text' => "Your calendar is empty while competitors seem to have endless leads"),
    array('text' => "You've tried \"proven\" strategies that worked for everyone except you"),
    array('text' => "The feast-or-famine cycle keeps you stressed and unable to plan ahead"),
    array('text' => "You're stuck trading time for money with no clear path to scale"),
);
update_field('pain_points', $pain_points, $page_id);

// Benefits Section
update_field('benefits_headline', 'What If You Could...', $page_id);

$benefits_cards = array(
    array('icon' => '🎯', 'title' => 'Generate Leads on Autopilot', 'description' => 'Wake up to qualified prospects in your inbox every single morning — without lifting a finger.'),
    array('icon' => '💰', 'title' => 'Eliminate Wasted Ad Spend', 'description' => "Stop bleeding money on campaigns that don't convert and start seeing 3-5x ROAS consistently."),
    array('icon' => '📈', 'title' => 'Scale Without Burnout', 'description' => "Build a system that works whether you're at your desk or on vacation."),
    array('icon' => '🏆', 'title' => 'Outpace Your Competition', 'description' => 'Use the same strategies that 7 and 8-figure companies use to dominate their markets.'),
    array('icon' => '⚡', 'title' => 'Get Results in 30 Days', 'description' => 'Implement immediately after the workshop — no months of preparation required.'),
    array('icon' => '🔮', 'title' => 'Predict Your Revenue', 'description' => 'Finally have a system that lets you forecast growth and plan for the future.'),
);
update_field('benefits_cards', $benefits_cards, $page_id);

// Curriculum Section
update_field('curriculum_headline', "Here's Exactly What We'll Cover", $page_id);
update_field('curriculum_subheadline', '90 minutes of actionable training you can implement immediately', $page_id);

$curriculum_modules = array(
    array(
        'title' => 'The Autopilot Lead System Framework',
        'bullets' => array(
            array('text' => 'Why 90% of lead generation strategies fail (and how to avoid the same mistakes)'),
            array('text' => 'The 3-part system that generates leads while you sleep'),
            array('text' => 'How to identify your highest-value lead sources in under 10 minutes'),
        ),
    ),
    array(
        'title' => 'The Perfect Offer Blueprint',
        'bullets' => array(
            array('text' => 'How to create an irresistible lead magnet in 60 minutes or less'),
            array('text' => 'The "Value Stack" technique that makes prospects feel stupid saying no'),
            array('text' => 'Real examples from campaigns generating 500+ leads per day'),
        ),
    ),
    array(
        'title' => 'Traffic Without the Headaches',
        'bullets' => array(
            array('text' => "The #1 traffic source most businesses ignore (hint: it's not paid ads)"),
            array('text' => 'How to get 10x the leads for the same budget'),
            array('text' => 'The retargeting sequence that converts cold traffic into buyers'),
        ),
    ),
    array(
        'title' => 'The Conversion Engine',
        'bullets' => array(
            array('text' => 'How to turn leads into customers on autopilot (the 7-email sequence)'),
            array('text' => "The follow-up framework that 3x's your close rate"),
            array('text' => 'When to call vs. when to email (backed by 50,000+ data points)'),
        ),
    ),
    array(
        'title' => 'Scale to 7 Figures',
        'bullets' => array(
            array('text' => 'The metrics that actually matter (and which ones to ignore)'),
            array('text' => 'How to scale from 10 to 100+ leads per day without breaking what works'),
            array('text' => 'Your 90-day action plan: exactly what to do after this workshop'),
        ),
    ),
);
update_field('curriculum_modules', $curriculum_modules, $page_id);

// Audience Section
update_field('audience_headline', 'This Workshop Is Perfect For You If...', $page_id);

$audience_types = array(
    array('title' => 'Business Owners', 'description' => 'Who want predictable lead flow without hiring an expensive team'),
    array('title' => 'Marketers & Agencies', 'description' => 'Looking to deliver better results for clients and scale your business'),
    array('title' => 'Sales Professionals', 'description' => 'Tired of cold calling and want a steady stream of warm prospects'),
    array('title' => 'Consultants & Coaches', 'description' => 'Ready to fill your calendar without trading all your time for clients'),
);
update_field('audience_types', $audience_types, $page_id);

// Presenter Section
update_field('presenter_name', 'John Smith', $page_id);
update_field('presenter_title', 'Founder, LeadGen Academy', $page_id);
update_field('presenter_bio', "John has helped 50,000+ businesses generate over \$500M in pipeline using the exact system he'll share in this workshop. He's been featured in Forbes, Entrepreneur, and Inc. Magazine, and has spoken at events alongside Tony Robbins, Gary Vee, and Grant Cardone.\n\nHis proprietary \"Autopilot Lead System\" has been responsible for some of the fastest-growing companies in tech, real estate, and professional services.", $page_id);

$presenter_stats = array(
    array('value' => '50K+', 'label' => 'Students'),
    array('value' => '$500M+', 'label' => 'Pipeline Generated'),
    array('value' => '15+', 'label' => 'Years Experience'),
);
update_field('presenter_stats', $presenter_stats, $page_id);

// Social Proof Section
update_field('social_headline', 'Results That Speak for Themselves', $page_id);

$social_stats = array(
    array('number' => '50,000+', 'label' => 'Students Trained'),
    array('number' => '$500M+', 'label' => 'Pipeline Generated'),
    array('number' => '4.9/5', 'label' => 'Average Rating'),
    array('number' => '127%', 'label' => 'Avg Lead Increase'),
);
update_field('social_stats', $social_stats, $page_id);

$testimonials = array(
    array(
        'quote' => 'I went from 5 leads per week to 30 leads per day within 60 days of implementing what I learned. This completely transformed my business.',
        'name' => 'Sarah Mitchell',
        'role' => 'Real Estate Agent',
        'initials' => 'SM',
    ),
    array(
        'quote' => 'We cut our cost per lead by 73% and doubled our close rate. The ROI on this workshop has been at least 50x.',
        'name' => 'James Ortega',
        'role' => 'Agency Owner',
        'initials' => 'JO',
    ),
    array(
        'quote' => "Finally a system that actually works without requiring 10 hours a day. I have my life back AND my business is growing faster than ever.",
        'name' => 'Rachel Kim',
        'role' => 'Business Coach',
        'initials' => 'RK',
    ),
);
update_field('testimonials', $testimonials, $page_id);

// Event Details Section
update_field('event_date', 'Thursday, June 15', $page_id);
update_field('event_time', '2:00 PM EST', $page_id);
update_field('event_duration', '90 Minutes', $page_id);
update_field('event_platform', 'Zoom (Live)', $page_id);
update_field('event_note', "Can't make it live? Register anyway — we'll send you the replay (for 48 hours only)", $page_id);

// Bonuses Section
update_field('bonuses_badge', '🎁 Free Bonuses', $page_id);
update_field('bonuses_headline', 'Register Now and Get These Bonuses FREE', $page_id);
update_field('bonuses_total_value', '$738', $page_id);

$bonuses_items = array(
    array('icon' => '📚', 'title' => 'The 100 Leads/Day Playbook', 'description' => 'Step-by-step PDF guide with the exact campaigns, templates, and scripts we use', 'value' => '$297 Value'),
    array('icon' => '📝', 'title' => 'Swipe File: 50 High-Converting Ads', 'description' => 'Copy-paste ad templates that have generated millions in revenue', 'value' => '$197 Value'),
    array('icon' => '📧', 'title' => '7-Email Follow-Up Sequence', 'description' => 'The exact emails that convert cold leads into paying customers', 'value' => '$147 Value'),
    array('icon' => '🎯', 'title' => 'Lead Magnet Templates', 'description' => '5 proven templates to create your irresistible offer in under an hour', 'value' => '$97 Value'),
);
update_field('bonuses_items', $bonuses_items, $page_id);

// Urgency Section
update_field('urgency_headline', '⏰ Limited Seats Available', $page_id);
update_field('urgency_subheadline', 'This is a LIVE workshop with limited capacity. Once seats are filled, registration closes.', $page_id);
update_field('urgency_seats', '🔥 Only 147 Seats Remaining', $page_id);

// Set countdown to 3 days from now
$countdown_end = date('Y-m-d H:i:s', strtotime('+3 days'));
update_field('countdown_end_date', $countdown_end, $page_id);

// Form Section
update_field('form_headline', 'Save Your Seat Now', $page_id);
update_field('form_subheadline', 'Enter your details below to register for free', $page_id);
update_field('form_button_text', 'Save My Seat →', $page_id);
update_field('form_privacy_text', '🔒 Your information is 100% secure. We never spam.', $page_id);

// FAQ Section
update_field('faq_headline', 'Frequently Asked Questions', $page_id);

$faq_items = array(
    array(
        'question' => 'Is this really free?',
        'answer' => "Yes, 100% free. No credit card required. We're offering this workshop at no cost because we know that once you see the results, you'll want to continue working with us. It's our way of demonstrating value upfront.",
    ),
    array(
        'question' => "What if I can't attend live?",
        'answer' => "We'll send you a 48-hour replay link after the event. However, attending live gives you access to the Q&A session and exclusive bonuses only available to live attendees. We highly recommend joining in real-time if possible.",
    ),
    array(
        'question' => 'Is this relevant for my industry?',
        'answer' => "The Autopilot Lead System has been successfully implemented across 50+ industries including real estate, consulting, SaaS, e-commerce, coaching, agencies, and professional services. The principles are universal — we'll show you how to adapt them to your specific situation.",
    ),
    array(
        'question' => "I've tried other methods. How is this different?",
        'answer' => "Most lead generation methods focus on one channel or tactic. Our system is a complete framework that addresses traffic, conversion, and follow-up — all working together. Plus, we've refined it over 15 years and \$500M in pipeline generated. This isn't theory; it's battle-tested methodology.",
    ),
    array(
        'question' => 'Will there be a pitch at the end?',
        'answer' => "We'll briefly mention our advanced programs for those who want to go deeper, but 90% of the workshop is pure training. You'll walk away with actionable strategies whether you decide to continue with us or not. No high-pressure tactics — ever.",
    ),
);
update_field('faq_items', $faq_items, $page_id);

// Final CTA Section
update_field('final_headline', 'Ready to Transform Your Lead Generation?', $page_id);
update_field('final_subheadline', "Join 50,000+ professionals who've already discovered how to generate leads on autopilot", $page_id);
update_field('final_button_text', "Save My Seat Now — It's FREE →", $page_id);

$final_benefits = array(
    array('text' => '100% Free'),
    array('text' => '$738 in Bonuses'),
    array('text' => '90-Min Live Training'),
    array('text' => 'Replay Available'),
);
update_field('final_benefits', $final_benefits, $page_id);

// Footer Section
$footer_links = array(
    array('text' => 'Privacy Policy', 'url' => '#'),
    array('text' => 'Terms of Service', 'url' => '#'),
    array('text' => 'Contact', 'url' => '#'),
);
update_field('footer_links', $footer_links, $page_id);
update_field('footer_copyright', '© 2026 LeadGen Academy. All rights reserved.', $page_id);
update_field('footer_disclaimer', 'EARNINGS DISCLAIMER: Results shown are not typical. Individual results will vary based on effort, experience, and market conditions. We do not guarantee income or success. This site is not part of Facebook, Google, or any other platform.', $page_id);

echo "Content populated successfully!\n";
