@extends('layouts.guest-landing') @section('title', $landingPageTitle ?? 'Welcome to Mindful Giving') @section('content')
{{-- Layout 1: Classic Layout (Text Left, 2x2 Campaign Grid Right) --}} @if ($layoutChoice === 'classic')

{!! nl2br(e($landingPageTitle)) !!}

{!! nl2br(e($landingPageWelcomeMessage)) !!}

@if ($campaigns->isNotEmpty()) @else

{{ __('landing.no_campaigns_layout') }}

@endif
{{-- Enhanced carousel with touch/swipe support --}} @elseif($layoutChoice === 'carousel')

{!! nl2br(e($landingPageTitle)) !!}

{!! nl2br(e($landingPageWelcomeMessage)) !!}

@if ($campaigns->isNotEmpty())
{{-- Carousel Container --}}
{{-- Navigation Arrows (hidden on mobile) --}} {{-- Slide Indicators --}} {{-- Mobile swipe hint (shows briefly on mobile) --}}

👈 Swipe to navigate campaigns 👉

@else

{{ __('landing.no_campaigns') }}

@endif {{-- Layout 3: Featured Campaign with Dropdown --}} @elseif($layoutChoice === 'featured_dropdown')

{{ $landingPageTitle }}

{{ __('landing.select_campaign_details') }}

{{ __('landing.no_campaigns') }}

{{-- Layout 4: Grid of Cards with Images --}} @elseif($layoutChoice === 'grid_cards_images')

{!! nl2br(e($landingPageTitle)) !!}

{!! nl2br(e($landingPageWelcomeMessage)) !!}

@if ($campaigns->isNotEmpty())
@foreach ($campaigns->take(4) as $campaign)

{{ $campaign->title }}

@if ($campaign->image_path) {{ $campaign->title }} @else @endif
@if ($campaign->description)

{{ Str::limit($campaign->description, 80) }}

@endif
{{ __('landing.view_wishlist') }}
@endforeach
@else

{{ __('landing.no_campaigns') }}

@endif {{-- Layout 5: Full-Width Hero with Grid (NEW) --}} @elseif($layoutChoice === 'full_width_hero_grid')
{{-- Hero Section --}}

{!! nl2br(e($landingPageTitle)) !!}

{!! nl2br(e($landingPageWelcomeMessage)) !!}

{{-- Grid Section --}}

{{ __('landing.explore_campaigns') }}

@if ($campaigns->isNotEmpty()) @else

{{ __('landing.no_campaigns') }}

@endif
@else

{{ __('landing.layout_not_configured') }}

@endif
@endsection @push('scripts') @if ($layoutChoice === 'featured_dropdown') @endif @endpush