@extends('layouts.public') @section('content') @php $pageSections = $pageSections ?? $page->sectionMap(); $heroContent = $pageSections['hero'] ?? []; $featuresSection = $pageSections['features_section'] ?? []; $treatmentsSection = $pageSections['treatments_section'] ?? []; $stepsSection = $pageSections['steps_section'] ?? []; $reasonsSection = $pageSections['reasons_section'] ?? []; $therapistsSection = $pageSections['therapists_section'] ?? []; $testimonialsSection = $pageSections['testimonials_section'] ?? []; $defaultHeroSlides = [ ['image' => asset('images/hero-bg.jpg'), 'label' => 'Luxury Arrival'], ['image' => asset('images/about-bg.jpg'), 'label' => 'Sanctuary Mood'], ['image' => asset('images/treatment-oil.jpg'), 'label' => 'Wellness Ritual'], ]; $heroSlides = $pageSections['hero_slides'] ?? $defaultHeroSlides; $defaultFeatures = [ ['icon' => 'home', 'title' => 'At Your Doorstep', 'text' => 'Spa-quality massage delivered to your home or hotel'], ['icon' => 'shield', 'title' => 'Trusted Therapists', 'text' => 'Trained, handpicked professionals ensuring safe service'], ['icon' => 'clock', 'title' => 'Save Time', 'text' => 'No travel needed—relax where you are most comfortable'], ['icon' => 'sparkles', 'title' => 'Pure Pampering', 'text' => 'Perfect for stress relief, muscle tension, or relaxation'], ['icon' => 'calendar', 'title' => 'Flexible Booking', 'text' => 'Scheduling that fits your plans'], ['icon' => 'lock', 'title' => 'Total Privacy', 'text' => 'Complete comfort in your own space'], ]; $features = $pageSections['features_items'] ?? $defaultFeatures; $featureTherapists = ! empty($dbFeaturedTherapists ?? []) ? $dbFeaturedTherapists : ($pageSections['featured_therapist_cards'] ?? []); $treatments = ! empty($dbTreatments ?? []) ? $dbTreatments : ($pageSections['treatments_items'] ?? []); $defaultSteps = [ ['icon' => 'message-circle', 'title' => 'WhatsApp / Line Message', 'desc' => 'Send us a "Hi" on WhatsApp or Line to get started.'], ['icon' => 'user-check', 'title' => 'Connect with Our Coordinator', 'desc' => 'Our client coordinator will connect with you instantly.'], ['icon' => 'map-pin', 'title' => 'Select Treatment & Therapist', 'desc' => 'Choose from our treatments and browse our skilled therapists.'], ['icon' => 'clock', 'title' => 'Therapist Arrives On Time', 'desc' => 'Your therapist arrives at your location at the agreed time.'], ['icon' => 'credit-card', 'title' => 'Easy Payment', 'desc' => 'Pay directly to the therapist by cash. Simple and hassle-free.'], ]; $steps = $pageSections['steps_items'] ?? $defaultSteps; $defaultReasons = [ ['icon' => 'award', 'text' => 'Expert therapists selected for exceptional quality'], ['icon' => 'heart', 'text' => 'Intimate, soothing experiences you will always remember'], ['icon' => 'zap', 'text' => 'Quick, hassle-free booking with trusted service'], ['icon' => 'shield', 'text' => 'Confidential, professional care available daily'], ['icon' => 'palette', 'text' => 'Therapies personalized to suit your desires and comfort'], ]; $reasons = $pageSections['reasons_items'] ?? $defaultReasons; $therapists = ! empty($dbTherapists ?? []) ? $dbTherapists : ($pageSections['therapists_items'] ?? []); $testimonials = ! empty($dbTestimonials ?? []) ? $dbTestimonials : ($pageSections['testimonials_items'] ?? []); @endphp

{{ $heroContent['eyebrow'] ?? 'Welcome to Lunara' }}

{{ $heroContent['headline'] ?? 'Lunara Massage' }}

{{ $heroContent['subheadline'] ?? 'The Best Outcall Massage Experience In Phuket' }}

{{ $featuresSection['title'] ?? 'Our Features' }}

@foreach ($features as $feature)
@if ($feature['icon'] === 'home') @elseif ($feature['icon'] === 'shield') @elseif ($feature['icon'] === 'clock') @elseif ($feature['icon'] === 'sparkles') @elseif ($feature['icon'] === 'calendar') @else @endif

{{ $feature['title'] }}

{{ $feature['text'] }}

@endforeach

{{ $treatmentsSection['eyebrow'] ?? 'Our Services' }}

{{ $treatmentsSection['title'] ?? 'Treatments' }}

@foreach ($treatments as $treatment)
@if ($treatment['icon'] === 'leaf') @elseif ($treatment['icon'] === 'droplets') @elseif ($treatment['icon'] === 'flame') @elseif ($treatment['icon'] === 'wind') @elseif ($treatment['icon'] === 'heart') @else @endif

{{ $treatment['title'] }}

{{ $treatment['duration'] }}

{{ $treatment['price'] }}

{{ $treatment['desc'] }}

@endforeach

{{ $stepsSection['eyebrow'] ?? 'It Is Easy' }}

{{ $stepsSection['title'] ?? 'How To Book' }}

@foreach ($steps as $index => $step)
@if ($step['icon'] === 'message-circle') @elseif ($step['icon'] === 'user-check') @elseif ($step['icon'] === 'map-pin') @elseif ($step['icon'] === 'clock') @else @endif

{{ $step['title'] }}

{{ $step['desc'] }}

@endforeach

{{ $reasonsSection['title'] ?? 'Why Choose Lunara?' }}

@foreach ($reasons as $reason)
@if ($reason['icon'] === 'award') @elseif ($reason['icon'] === 'heart') @elseif ($reason['icon'] === 'zap') @elseif ($reason['icon'] === 'shield') @else @endif

{{ $reason['text'] }}

@endforeach

{{ $therapistsSection['title'] ?? 'Meet Our Therapists' }}

{{ $therapistsSection['subtitle'] ?? 'Handpicked professionals dedicated to your comfort and well-being' }}

@foreach ($therapists as $therapist)
{{ $therapist['name'] }}

{{ $therapist['name'] }}

No: {{ $therapist['id'] }}

Age: {{ $therapist['age'] }}

Book Now
@endforeach

{{ $testimonialsSection['eyebrow'] ?? 'Testimonials' }}

{{ $testimonialsSection['title'] ?? 'Our Clients Say' }}

@endsection