@php $primary = $settings['primary_color'] ?? '#f97316'; $heroType = $settings['hero_type'] ?? 'none'; $heroImage = $settings['hero_image'] ?? null; $heroVideoUrl = $settings['hero_video_url'] ?? null; $hasMedia = $heroType !== 'none' && ($heroImage || $heroVideoUrl); function ytEmbedM($url) { preg_match('/(?:youtube\.com\/watch\?v=|youtu\.be\/)([A-Za-z0-9_-]{11})/', $url ?? '', $m); if ($m) { $id = $m[1]; return "https://www.youtube.com/embed/{$id}?autoplay=1&mute=1&loop=1&playlist={$id}&controls=0&showinfo=0&rel=0&playsinline=1"; } return $url; } $stats = [ ['value'=>'500+','label'=>'Members'], ['value'=>'10+', 'label'=>'Years'], ['value'=>'20+', 'label'=>'Trainers'], ['value'=>'99%', 'label'=>'Satisfaction'], ]; $benefits = [ ['title'=>'Expert Guidance', 'desc'=>'Certified trainers craft personalised programmes aligned to your goals.'], ['title'=>'Flexible Schedules', 'desc'=>'Open 7 days a week from early morning to late evening.'], ['title'=>'Modern Equipment', 'desc'=>'State-of-the-art machines, free weights, and cardio zones.'], ['title'=>'Real Community', 'desc'=>'Join a motivating environment where members push each other forward.'], ]; $faqs = [ ['q'=>'What are your gym timings?', 'a'=>'We are open 7 days a week from 5:00 AM to 10:00 PM, including weekends and public holidays.'], ['q'=>'Can I try before I buy a membership?', 'a'=>'Yes! We offer a complimentary one-day trial pass for first-time visitors.'], ['q'=>'Do you offer personal training?', 'a'=>'Our certified personal trainers offer one-on-one sessions. Ask at the front desk.'], ['q'=>'Is there a joining fee?', 'a'=>'Some plans include a registration fee. We frequently run promotions with zero joining fee.'], ['q'=>'Can I freeze or pause my membership?', 'a'=>'Yes, members can request a freeze for up to 30 days per year.'], ['q'=>'What facilities are available?', 'a'=>'Fully equipped gym floor, cardio zone, group fitness studio, locker rooms with showers.'], ]; @endphp {{-- HERO — Modern: split layout --}}
{{-- Left text panel --}}
Fitness Redefined

{{ $gym['name'] ?? 'Your Gym' }}
Community

{{ $gym['tagline'] ?? 'Transform your body, elevate your mind. Join our community of dedicated fitness enthusiasts today.' }}

Explore Plans Member Login
{{-- Stats row --}}
@foreach($stats as $stat)

{{ $stat['value'] }}

{{ $stat['label'] }}

@endforeach
{{-- Right image/video panel --}}
@if($hasMedia && $heroType === 'image' && $heroImage) {{ $gym['name'] }}
@elseif($hasMedia && $heroType === 'video' && $heroVideoUrl)
@else
@endif {{-- Accent corner --}}

💪

{{-- PLANS --}}

Pricing

Membership Plans

Choose the plan that fits your lifestyle and goals.

@if(empty($plans))
No plans available. Contact us for more info.
@else
@foreach($plans as $plan) @php $v = $plan['duration_value'] ?? null; $u = $plan['duration_unit'] ?? ''; $dur = $v ? match($u) { 'day' => "$v Day" . ($v>1?'s':''), 'week' => "$v Week" . ($v>1?'s':''), 'month' => "$v Month" . ($v>1?'s':''), 'quarter' => ($v*3)." Months", 'year' => "$v Year" . ($v>1?'s':''), default => '', } : ''; $isFeatured = $plan['is_featured'] ?? false; @endphp
@if($isFeatured)
Popular
@endif

{{ $plan['name'] }}

@if($dur)

{{ $dur }}

@endif
₹{{ number_format($plan['price'] ?? 0) }} @if($dur)/ {{ $dur }}@endif
@if($plan['description'] ?? null)

{{ $plan['description'] }}

@endif Get Started
@endforeach
@endif
{{-- BENEFITS --}}

Why {{ $gym['name'] ?? 'Us' }}?

More than a gym.
A community.

We're dedicated to helping you achieve your fitness goals with the best facilities, expert coaches, and a supportive community.

Explore Plans
@foreach($benefits as $b)

{{ $b['title'] }}

{{ $b['desc'] }}

@endforeach
{{-- GALLERY --}} @if(!empty($gallery))

Gallery

Our Gym

@foreach($gallery as $img)
@if(($img['type'] ?? '') === 'image' && ($img['url'] ?? null)) {{ $img['caption'] ?? '' }} @endif
@endforeach
@endif {{-- FAQ --}}

FAQ

Got Questions?

@foreach($faqs as $faq)

{{ $faq['a'] }}

@endforeach
{{-- CONTACT --}}

Contact

Let's Talk

@if($gym['phone'] ?? null)
📞

Phone

{{ $gym['phone'] }}

@endif @if($gym['email'] ?? null)
✉️

Email

{{ $gym['email'] }}

@endif @if($gym['address'] ?? null)
📍

Location

{{ $gym['address'] }}

@endif