@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 ytEmbed($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'=>'Active Members'], ['value'=>'10+', 'label'=>'Years Experience'], ['value'=>'20+', 'label'=>'Expert Trainers'], ['value'=>'99%', 'label'=>'Satisfaction Rate'], ]; $benefits = [ ['title'=>'Expert Guidance', 'desc'=>'Certified trainers craft personalised programmes aligned to your goals — fat loss, strength, or endurance.'], ['title'=>'Flexible Schedules', 'desc'=>'Open early morning to late evening, 7 days a week. Train on your schedule with group classes and open gym slots.'], ['title'=>'Modern Equipment', 'desc'=>'State-of-the-art machines, free weights, cardio zones, and functional training areas — all well-maintained.'], ['title'=>'Supportive Community', 'desc'=>'A motivating environment where members cheer each other on. Group classes, challenges, and community events.'], ]; $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 most 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. Visit us or contact us to schedule your trial.'], ['q'=>'Do you offer personal training?', 'a'=>'Our certified personal trainers offer one-on-one sessions tailored to your fitness goals. Ask at the front desk for packages.'], ['q'=>'Is there a joining fee?', 'a'=>'Some plans include a one-time registration fee. Check the plan details above or contact us — we frequently run promotions with zero joining fee.'], ['q'=>'Can I freeze or pause my membership?', 'a'=>'Yes, members on eligible plans can request a freeze for up to 30 days per year due to medical reasons or travel.'], ['q'=>'What facilities are available?', 'a'=>'We provide a fully equipped gym floor, dedicated cardio zone, group fitness studio, locker rooms with showers, and a nutrition consultation room.'], ]; @endphp {{-- HERO --}}
{{-- Background --}} @if($hasMedia && $heroType === 'image' && $heroImage)
@elseif($hasMedia && $heroType === 'video' && $heroVideoUrl)
@else
@endif {{-- Hero content --}}

Welcome to

{{ $gym['name'] ?? 'Your Fitness' }}
Starts Here

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

View Plans Member Login
{{-- STATS --}}
@foreach($stats as $stat)

{{ $stat['value'] }}

{{ $stat['label'] }}

@endforeach
{{-- PLANS --}}

Pricing

Membership Plans

Choose the plan that fits your lifestyle and fitness goals.

@if(empty($plans))
No membership plans available at the moment. Please contact us.
@else
@foreach($plans as $plan) @php $durationMap = ['day'=>'Day','week'=>'Week','month'=>'Month','quarter'=>'3 Months','year'=>'Year']; $dur = ''; if ($plan['duration_value'] ?? null) { $v = $plan['duration_value']; $u = $plan['duration_unit'] ?? ''; $dur = 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 => '', }; } @endphp
@if($plan['is_featured'] ?? false)
Most Popular
@endif

{{ $plan['name'] }}

@if($dur)

{{ $dur }}

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

+ ₹{{ number_format($plan['registration_fee']) }} joining fee

@endif
@if($plan['description'] ?? null)

{{ $plan['description'] }}

@endif Join Now
@endforeach
@endif
{{-- BENEFITS --}}

Why Us

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

@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'] ?? '' }} @else
📷
@endif
@endforeach
@endif {{-- FAQ --}}

FAQ

Common Questions

@foreach($faqs as $i => $faq)

{{ $faq['a'] }}

@endforeach
{{-- CONTACT --}}

Get in Touch

Contact Us

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

Phone

{{ $gym['phone'] }}

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

Email

{{ $gym['email'] }}

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

Location

{{ $gym['address'] }}

@endif