@extends('layouts.public')
@section('title', 'Email Marketing Platform')
@section('pageId', 'home-4')
@section('content')
@php
try {
$heroDescription = (string) \App\Models\Setting::get('home_4_hero_description', 'The all-in-one email marketing platform that helps you create stunning campaigns, automate your workflows, and grow your audience — without the complexity.');
$heroScrollText = (string) \App\Models\Setting::get('home_4_hero_scroll_text', 'No credit card required · Free 14-day trial · Cancel anytime');
$heroButtonText = (string) \App\Models\Setting::get('home_4_hero_button_text', 'Start Free Trial');
$heroButtonType = (string) \App\Models\Setting::get('home_4_hero_button_type', 'link');
$heroButtonUrl = (string) \App\Models\Setting::get('home_4_hero_button_url', route('register'));
$heroImagePath = (string) \App\Models\Setting::get('home_4_hero_image', '');
$heroBadge = (string) \App\Models\Setting::get('home_4_hero_badge', 'Trusted by 10,000+ businesses worldwide');
$heroTitlePrefix = (string) \App\Models\Setting::get('home_4_hero_title_prefix', 'Send emails that');
$heroTitleHighlight = (string) \App\Models\Setting::get('home_4_hero_title_highlight', 'convert');
$heroSecondaryButtonText = (string) \App\Models\Setting::get('home_4_hero_secondary_button_text', 'Watch Demo');
$heroSecondaryButtonUrl = (string) \App\Models\Setting::get('home_4_hero_secondary_button_url', route('pricing'));
$stat1Value = (string) \App\Models\Setting::get('home_4_stat_1_value', '99.9%');
$stat1Label = (string) \App\Models\Setting::get('home_4_stat_1_label', 'Delivery Rate');
$stat2Value = (string) \App\Models\Setting::get('home_4_stat_2_value', '45%');
$stat2Label = (string) \App\Models\Setting::get('home_4_stat_2_label', 'Avg. Open Rate');
$stat3Value = (string) \App\Models\Setting::get('home_4_stat_3_value', '10M+');
$stat3Label = (string) \App\Models\Setting::get('home_4_stat_3_label', 'Emails Sent');
$stat4Value = (string) \App\Models\Setting::get('home_4_stat_4_value', '24/7');
$stat4Label = (string) \App\Models\Setting::get('home_4_stat_4_label', 'Expert Support');
$logosTitle = (string) \App\Models\Setting::get('home_4_logos_title', 'Trusted by leading companies around the world');
$benefitsTitle = (string) \App\Models\Setting::get('home_4_benefits_title', 'Why businesses choose ' . config('app.name', 'MailPurse'));
$benefitsSubtitle = (string) \App\Models\Setting::get('home_4_benefits_subtitle', 'Everything you need to run successful email campaigns, all in one powerful platform.');
$benefit1Title = (string) \App\Models\Setting::get('home_4_benefits_1_title', 'Lightning Fast Delivery');
$benefit1Description = (string) \App\Models\Setting::get('home_4_benefits_1_description', 'Send millions of emails in minutes with our high-performance infrastructure. 99.9% delivery rate guaranteed.');
$benefit2Title = (string) \App\Models\Setting::get('home_4_benefits_2_title', 'Drag & Drop Builder');
$benefit2Description = (string) \App\Models\Setting::get('home_4_benefits_2_description', 'Create stunning emails without any coding. Our intuitive editor makes designing beautiful campaigns effortless.');
$benefit3Title = (string) \App\Models\Setting::get('home_4_benefits_3_title', 'Advanced Analytics');
$benefit3Description = (string) \App\Models\Setting::get('home_4_benefits_3_description', 'Track opens, clicks, and conversions in real-time. Make data-driven decisions to optimize your campaigns.');
$aiBadge = (string) \App\Models\Setting::get('home_4_ai_badge', 'Powered by AI');
$aiTitle = (string) \App\Models\Setting::get('home_4_ai_title', 'Supercharge your emails with');
$aiTitleHighlight = (string) \App\Models\Setting::get('home_4_ai_title_highlight', 'artificial intelligence');
$aiSubtitle = (string) \App\Models\Setting::get('home_4_ai_subtitle', 'Let AI handle the heavy lifting. Generate compelling content, optimize send times, and personalize at scale.');
$ai1Title = (string) \App\Models\Setting::get('home_4_ai_1_title', 'AI Content Generation');
$ai1Description = (string) \App\Models\Setting::get('home_4_ai_1_description', 'Generate engaging subject lines, email copy, and CTAs in seconds. Our AI understands your brand voice and creates content that converts.');
$ai2Title = (string) \App\Models\Setting::get('home_4_ai_2_title', 'Smart Send Time Optimization');
$ai2Description = (string) \App\Models\Setting::get('home_4_ai_2_description', 'AI analyzes subscriber behavior to determine the perfect send time for each recipient. Maximize opens and clicks automatically.');
$ai3Title = (string) \App\Models\Setting::get('home_4_ai_3_title', 'Hyper-Personalization');
$ai3Description = (string) \App\Models\Setting::get('home_4_ai_3_description', 'Go beyond {first_name}. AI creates unique content variations for each subscriber based on their preferences and past interactions.');
$ai4Title = (string) \App\Models\Setting::get('home_4_ai_4_title', 'Predictive Analytics');
$ai4Description = (string) \App\Models\Setting::get('home_4_ai_4_description', 'Predict which subscribers are likely to convert, churn, or engage. Take proactive action with AI-powered insights.');
$aiCtaText = (string) \App\Models\Setting::get('home_4_ai_cta_text', 'Try AI Features Free');
$aiCtaUrl = (string) \App\Models\Setting::get('home_4_ai_cta_url', route('register'));
$featuresTitle = (string) \App\Models\Setting::get('home_4_features_title', 'Powerful features for modern marketers');
$featuresSubtitle = (string) \App\Models\Setting::get('home_4_features_subtitle', "From list management to automation, we've got everything covered.");
$featuresCtaText = (string) \App\Models\Setting::get('home_4_features_cta_text', 'View all features');
$featuresCtaUrl = (string) \App\Models\Setting::get('home_4_features_cta_url', route('features'));
$feature1Title = (string) \App\Models\Setting::get('home_4_features_1_title', 'Smart Segmentation');
$feature1Description = (string) \App\Models\Setting::get('home_4_features_1_description', 'Target the right audience with powerful segmentation based on behavior, demographics, and custom fields.');
$feature2Title = (string) \App\Models\Setting::get('home_4_features_2_title', 'Marketing Automation');
$feature2Description = (string) \App\Models\Setting::get('home_4_features_2_description', 'Set up automated email sequences triggered by user actions. Nurture leads on autopilot.');
$feature3Title = (string) \App\Models\Setting::get('home_4_features_3_title', 'Domain Authentication');
$feature3Description = (string) \App\Models\Setting::get('home_4_features_3_description', 'Improve deliverability with SPF, DKIM, and DMARC. Keep your emails out of spam folders.');
$feature4Title = (string) \App\Models\Setting::get('home_4_features_4_title', 'Template Library');
$feature4Description = (string) \App\Models\Setting::get('home_4_features_4_description', 'Choose from hundreds of professionally designed templates. Customize them to match your brand.');
$feature5Title = (string) \App\Models\Setting::get('home_4_features_5_title', 'Developer API');
$feature5Description = (string) \App\Models\Setting::get('home_4_features_5_description', 'Integrate with your apps using our RESTful API. Send transactional emails programmatically.');
$feature6Title = (string) \App\Models\Setting::get('home_4_features_6_title', 'Detailed Reports');
$feature6Description = (string) \App\Models\Setting::get('home_4_features_6_description', 'Get comprehensive reports on campaign performance. Export data for further analysis.');
$testimonialsTitle = (string) \App\Models\Setting::get('home_4_testimonials_title', 'Loved by marketers worldwide');
$testimonialsSubtitle = (string) \App\Models\Setting::get('home_4_testimonials_subtitle', 'See what our customers have to say about their experience.');
$testimonial1Quote = (string) \App\Models\Setting::get('home_4_testimonial_1_quote', '"' . config('app.name', 'MailPurse') . " transformed our email marketing. We've seen a 40% increase in open rates since switching. The automation features are incredible!\"");
$testimonial1Name = (string) \App\Models\Setting::get('home_4_testimonial_1_name', 'Sarah Johnson');
$testimonial1Role = (string) \App\Models\Setting::get('home_4_testimonial_1_role', 'Marketing Director, TechCorp');
$testimonial1Initial = (string) \App\Models\Setting::get('home_4_testimonial_1_initial', 'S');
$testimonial2Quote = (string) \App\Models\Setting::get('home_4_testimonial_2_quote', '"The drag-and-drop editor is so intuitive. I can create professional emails in minutes. Best investment we\'ve made for our marketing stack."');
$testimonial2Name = (string) \App\Models\Setting::get('home_4_testimonial_2_name', 'Michael Chen');
$testimonial2Role = (string) \App\Models\Setting::get('home_4_testimonial_2_role', 'Founder, StartupXYZ');
$testimonial2Initial = (string) \App\Models\Setting::get('home_4_testimonial_2_initial', 'M');
$testimonial3Quote = (string) \App\Models\Setting::get('home_4_testimonial_3_quote', '"Customer support is outstanding. They helped us migrate from our old platform seamlessly. The analytics dashboard gives us insights we never had before."');
$testimonial3Name = (string) \App\Models\Setting::get('home_4_testimonial_3_name', 'Emily Rodriguez');
$testimonial3Role = (string) \App\Models\Setting::get('home_4_testimonial_3_role', 'CMO, GlobalCo');
$testimonial3Initial = (string) \App\Models\Setting::get('home_4_testimonial_3_initial', 'E');
} catch (\Throwable $e) {
$heroDescription = 'The all-in-one email marketing platform that helps you create stunning campaigns, automate your workflows, and grow your audience — without the complexity.';
$heroScrollText = 'No credit card required · Free 14-day trial · Cancel anytime';
$heroButtonText = 'Start Free Trial';
$heroButtonType = 'link';
$heroButtonUrl = route('register');
$heroImagePath = '';
$heroBadge = 'Trusted by 10,000+ businesses worldwide';
$heroTitlePrefix = 'Send emails that';
$heroTitleHighlight = 'convert';
$heroSecondaryButtonText = 'Watch Demo';
$heroSecondaryButtonUrl = route('pricing');
$stat1Value = '99.9%';
$stat1Label = 'Delivery Rate';
$stat2Value = '45%';
$stat2Label = 'Avg. Open Rate';
$stat3Value = '10M+';
$stat3Label = 'Emails Sent';
$stat4Value = '24/7';
$stat4Label = 'Expert Support';
$logosTitle = 'Trusted by leading companies around the world';
$benefitsTitle = 'Why businesses choose ' . config('app.name', 'MailPurse');
$benefitsSubtitle = 'Everything you need to run successful email campaigns, all in one powerful platform.';
$benefit1Title = 'Lightning Fast Delivery';
$benefit1Description = 'Send millions of emails in minutes with our high-performance infrastructure. 99.9% delivery rate guaranteed.';
$benefit2Title = 'Drag & Drop Builder';
$benefit2Description = 'Create stunning emails without any coding. Our intuitive editor makes designing beautiful campaigns effortless.';
$benefit3Title = 'Advanced Analytics';
$benefit3Description = 'Track opens, clicks, and conversions in real-time. Make data-driven decisions to optimize your campaigns.';
$aiBadge = 'Powered by AI';
$aiTitle = 'Supercharge your emails with';
$aiTitleHighlight = 'artificial intelligence';
$aiSubtitle = 'Let AI handle the heavy lifting. Generate compelling content, optimize send times, and personalize at scale.';
$ai1Title = 'AI Content Generation';
$ai1Description = 'Generate engaging subject lines, email copy, and CTAs in seconds. Our AI understands your brand voice and creates content that converts.';
$ai2Title = 'Smart Send Time Optimization';
$ai2Description = 'AI analyzes subscriber behavior to determine the perfect send time for each recipient. Maximize opens and clicks automatically.';
$ai3Title = 'Hyper-Personalization';
$ai3Description = 'Go beyond {first_name}. AI creates unique content variations for each subscriber based on their preferences and past interactions.';
$ai4Title = 'Predictive Analytics';
$ai4Description = 'Predict which subscribers are likely to convert, churn, or engage. Take proactive action with AI-powered insights.';
$aiCtaText = 'Try AI Features Free';
$aiCtaUrl = route('register');
$featuresTitle = 'Powerful features for modern marketers';
$featuresSubtitle = "From list management to automation, we've got everything covered.";
$featuresCtaText = 'View all features';
$featuresCtaUrl = route('features');
$feature1Title = 'Smart Segmentation';
$feature1Description = 'Target the right audience with powerful segmentation based on behavior, demographics, and custom fields.';
$feature2Title = 'Marketing Automation';
$feature2Description = 'Set up automated email sequences triggered by user actions. Nurture leads on autopilot.';
$feature3Title = 'Domain Authentication';
$feature3Description = 'Improve deliverability with SPF, DKIM, and DMARC. Keep your emails out of spam folders.';
$feature4Title = 'Template Library';
$feature4Description = 'Choose from hundreds of professionally designed templates. Customize them to match your brand.';
$feature5Title = 'Developer API';
$feature5Description = 'Integrate with your apps using our RESTful API. Send transactional emails programmatically.';
$feature6Title = 'Detailed Reports';
$feature6Description = 'Get comprehensive reports on campaign performance. Export data for further analysis.';
$testimonialsTitle = 'Loved by marketers worldwide';
$testimonialsSubtitle = 'See what our customers have to say about their experience.';
$testimonial1Quote = '"' . config('app.name', 'MailPurse') . " transformed our email marketing. We've seen a 40% increase in open rates since switching. The automation features are incredible!\"";
$testimonial1Name = 'Sarah Johnson';
$testimonial1Role = 'Marketing Director, TechCorp';
$testimonial1Initial = 'S';
$testimonial2Quote = '"The drag-and-drop editor is so intuitive. I can create professional emails in minutes. Best investment we\'ve made for our marketing stack."';
$testimonial2Name = 'Michael Chen';
$testimonial2Role = 'Founder, StartupXYZ';
$testimonial2Initial = 'M';
$testimonial3Quote = '"Customer support is outstanding. They helped us migrate from our old platform seamlessly. The analytics dashboard gives us insights we never had before."';
$testimonial3Name = 'Emily Rodriguez';
$testimonial3Role = 'CMO, GlobalCo';
$testimonial3Initial = 'E';
}
$brandingDisk = (string) config('filesystems.branding_disk', 'public');
$heroImageUrl = (is_string($heroImagePath) && trim($heroImagePath) !== '')
? \Illuminate\Support\Facades\Storage::disk($brandingDisk)->url($heroImagePath)
: null;
$heroButtonUrl = is_string($heroButtonUrl) && trim($heroButtonUrl) !== '' ? $heroButtonUrl : route('register');
$heroButtonType = in_array($heroButtonType, ['link', 'video'], true) ? $heroButtonType : 'link';
$heroSecondaryButtonUrl = is_string($heroSecondaryButtonUrl) && trim($heroSecondaryButtonUrl) !== '' ? $heroSecondaryButtonUrl : route('pricing');
$featuresCtaUrl = is_string($featuresCtaUrl) && trim($featuresCtaUrl) !== '' ? $featuresCtaUrl : route('features');
$aiCtaUrl = is_string($aiCtaUrl) && trim($aiCtaUrl) !== '' ? $aiCtaUrl : route('register');
try {
$logoPaths = \App\Models\Setting::get('home_4_logos', []);
} catch (\Throwable $e) {
$logoPaths = [];
}
$logoPaths = is_array($logoPaths) ? $logoPaths : [];
$logoUrls = [];
foreach ($logoPaths as $p) {
if (!is_string($p) || trim($p) === '') {
continue;
}
$logoUrls[] = \Illuminate\Support\Facades\Storage::disk($brandingDisk)->url($p);
}
try {
$faqTitle = (string) \App\Models\Setting::get('home_faq_title', 'Frequently asked questions');
$faqSubtitle = (string) \App\Models\Setting::get('home_faq_subtitle', 'Quick answers to common questions.');
$faq1Question = (string) \App\Models\Setting::get('home_faq_1_question', 'What are the server requirements?');
$faq1Answer = (string) \App\Models\Setting::get('home_faq_1_answer', 'PHP 8.2+, MySQL database, and a web server (Apache/Nginx). Redis is recommended for queues. Works on shared hosting, VPS, or dedicated servers.');
$faq2Question = (string) \App\Models\Setting::get('home_faq_2_question', 'Can I run this as a SaaS for my clients?');
$faq2Answer = (string) \App\Models\Setting::get('home_faq_2_answer', 'Absolutely! MailPurse is built for multi-tenancy. Create customer accounts, define plans with limits, accept payments via Stripe/PayPal/Paystack, and let customers manage their own lists and campaigns.');
$faq3Question = (string) \App\Models\Setting::get('home_faq_3_question', 'Which email providers are supported?');
$faq3Answer = (string) \App\Models\Setting::get('home_faq_3_answer', 'Amazon SES, Mailgun, SendGrid, Postmark, SparkPost, and any standard SMTP server. You can configure multiple providers and rotate between them for better deliverability.');
$faq4Question = (string) \App\Models\Setting::get('home_faq_4_question', 'Is there a limit on subscribers or emails?');
$faq4Answer = (string) \App\Models\Setting::get('home_faq_4_answer', 'No limits from our side. You can send as many emails as your server and email provider allow. The only limits are what you define in your customer plans.');
} catch (\Throwable $e) {
$faqTitle = 'Frequently asked questions';
$faqSubtitle = 'Quick answers to common questions.';
$faq1Question = 'What are the server requirements?';
$faq1Answer = 'PHP 8.2+, MySQL database, and a web server (Apache/Nginx). Redis is recommended for queues. Works on shared hosting, VPS, or dedicated servers.';
$faq2Question = 'Can I run this as a SaaS for my clients?';
$faq2Answer = 'Absolutely! MailPurse is built for multi-tenancy. Create customer accounts, define plans with limits, accept payments via Stripe/PayPal/Paystack, and let customers manage their own lists and campaigns.';
$faq3Question = 'Which email providers are supported?';
$faq3Answer = 'Amazon SES, Mailgun, SendGrid, Postmark, SparkPost, and any standard SMTP server. You can configure multiple providers and rotate between them for better deliverability.';
$faq4Question = 'Is there a limit on subscribers or emails?';
$faq4Answer = 'No limits from our side. You can send as many emails as your server and email provider allow. The only limits are what you define in your customer plans.';
}
try {
$pricingTitle = (string) \App\Models\Setting::get('home_pricing_title', 'Simple, transparent pricing');
$pricingSubtitle = (string) \App\Models\Setting::get('home_pricing_subtitle', "Start free, upgrade when you're ready. No hidden fees.");
$pricingCompareText = (string) \App\Models\Setting::get('home_pricing_compare_text', 'Compare all plans');
$pricingPopularBadge = (string) \App\Models\Setting::get('home_pricing_popular_badge', 'MOST POPULAR');
$pricingCard1Title = (string) \App\Models\Setting::get('home_pricing_card_1_title', 'Starter');
$pricingCard1Description = (string) \App\Models\Setting::get('home_pricing_card_1_description', 'Perfect for getting started');
$pricingCard1CtaText = (string) \App\Models\Setting::get('home_pricing_card_1_cta_text', 'Get Started Free');
$pricingCard2Title = (string) \App\Models\Setting::get('home_pricing_card_2_title', 'Professional');
$pricingCard2Description = (string) \App\Models\Setting::get('home_pricing_card_2_description', 'For growing businesses');
$pricingCard2CtaText = (string) \App\Models\Setting::get('home_pricing_card_2_cta_text', 'Start Free Trial');
$pricingCard3Title = (string) \App\Models\Setting::get('home_pricing_card_3_title', 'Enterprise');
$pricingCard3Description = (string) \App\Models\Setting::get('home_pricing_card_3_description', 'For large organizations');
$pricingCard3CtaText = (string) \App\Models\Setting::get('home_pricing_card_3_cta_text', 'Contact Sales');
$ctaTitle = (string) \App\Models\Setting::get('home_cta_title', 'Ready to grow your business?');
$ctaSubtitle = (string) \App\Models\Setting::get('home_cta_subtitle', 'Join thousands of businesses already using MailPurse to connect with their audience and drive results.');
$ctaPrimaryText = (string) \App\Models\Setting::get('home_cta_primary_text', 'Start Your Free Trial');
$ctaPrimaryUrl = (string) \App\Models\Setting::get('home_cta_primary_url', route('register'));
$ctaSecondaryText = (string) \App\Models\Setting::get('home_cta_secondary_text', 'View Pricing');
$ctaSecondaryUrl = (string) \App\Models\Setting::get('home_cta_secondary_url', route('pricing'));
$ctaNote = (string) \App\Models\Setting::get('home_cta_note', 'No credit card required · Free 14-day trial · Cancel anytime');
} catch (\Throwable $e) {
$pricingTitle = 'Simple, transparent pricing';
$pricingSubtitle = "Start free, upgrade when you're ready. No hidden fees.";
$pricingCompareText = 'Compare all plans';
$pricingPopularBadge = 'MOST POPULAR';
$pricingCard1Title = 'Starter';
$pricingCard1Description = 'Perfect for getting started';
$pricingCard1CtaText = 'Get Started Free';
$pricingCard2Title = 'Professional';
$pricingCard2Description = 'For growing businesses';
$pricingCard2CtaText = 'Start Free Trial';
$pricingCard3Title = 'Enterprise';
$pricingCard3Description = 'For large organizations';
$pricingCard3CtaText = 'Contact Sales';
$ctaTitle = 'Ready to grow your business?';
$ctaSubtitle = 'Join thousands of businesses already using MailPurse to connect with their audience and drive results.';
$ctaPrimaryText = 'Start Your Free Trial';
$ctaPrimaryUrl = route('register');
$ctaSecondaryText = 'View Pricing';
$ctaSecondaryUrl = route('pricing');
$ctaNote = 'No credit card required · Free 14-day trial · Cancel anytime';
}
$ctaPrimaryUrl = is_string($ctaPrimaryUrl) && trim($ctaPrimaryUrl) !== '' ? $ctaPrimaryUrl : route('register');
$ctaSecondaryUrl = is_string($ctaSecondaryUrl) && trim($ctaSecondaryUrl) !== '' ? $ctaSecondaryUrl : route('pricing');
$pricingPlans = \App\Models\Plan::query()
->where('is_active', true)
->orderBy('price')
->limit(3)
->get();
try {
$pricingSectionTitle = (string) \App\Models\Setting::get('pricing_section_title', $pricingTitle);
$pricingSectionSubtitle = (string) \App\Models\Setting::get('pricing_section_subtitle', $pricingSubtitle);
$pricingSectionPopularBadge = (string) \App\Models\Setting::get('pricing_section_popular_badge', $pricingPopularBadge);
} catch (\Throwable $e) {
$pricingSectionTitle = $pricingTitle;
$pricingSectionSubtitle = $pricingSubtitle;
$pricingSectionPopularBadge = $pricingPopularBadge;
}
@endphp