@extends('layouts.app') @section('title', ($cms['hero']['title'] ?? "Rukay's") . " — Rukay's Hairdo & Beauty") @section('content') @php $order = $cms['order'] ?? []; @endphp @foreach($order as $secKey) @php $sec = $cms[$secKey] ?? []; $enabled = $sec['enabled'] ?? true; if(!$enabled) continue; @endphp {{-- HERO --}} @if($secKey === 'hero')
@if($sec['tag_text'] ?? '')
✦ {{ $sec['tag_text'] }}
@endif

{!! nl2br(e($sec['title'] ?? 'Your Beauty, Beautifully Done.')) !!}

{{ $sec['subtitle'] ?? '' }}

{{-- STATS --}} @elseif($secKey === 'stats')
@foreach([1,2,3,4,5] as $i) @php $num = $sec['s'.$i.'_num'] ?? ''; $lbl = $sec['s'.$i.'_label'] ?? ''; if($i === 3 && $num === '') $num = $services->count().'+'; if($i === 4 && $num === '') $num = $staff->count(); if(!$lbl) continue; @endphp
{{ $num }}
{{ $lbl }}
@endforeach
{{-- SERVICES --}} @elseif($secKey === 'services' && $services->count())

{{ $sec['heading'] ?? 'Our Signature Services' }}

{{ $sec['subtitle'] ?? '' }}

@foreach($services->take(6) as $service)
@if($service->image_url){{ $service->name }} @else
{{ ['Hair'=>'✂','Nails'=>'💅','Skin'=>'🌿','Makeup'=>'💄'][$service->category] ?? '✨' }}
@endif
{{ $service->category }}
{{ $service->name }}
{{ Str::limit($service->description ?? 'A premium treatment tailored to your unique beauty needs.', 85) }}
@endforeach
View All Services
{{-- WHY US --}} @elseif($secKey === 'why_us')
Inside Rukay's salon @if($sec['badge_num'] ?? '')
{{ $sec['badge_num'] }} {{ $sec['badge_label'] ?? '' }}
@endif

{{ $sec['heading'] ?? '' }}

{{ $sec['body'] ?? '' }}

@foreach([1,2,3,4] as $i) @if($sec['f'.$i.'_title'] ?? '')
{{ $sec['f'.$i.'_icon'] ?? '✨' }}

{{ $sec['f'.$i.'_title'] }}

{{ $sec['f'.$i.'_text'] ?? '' }}

@endif @endforeach
{{-- TEAM --}} @elseif($secKey === 'team' && $staff->count())

{{ $sec['heading'] ?? 'Meet Our Team' }}

{{ $sec['subtitle'] ?? '' }}

@foreach($staff as $member)
@if($member->avatar_url){{ $member->name }} @else
{{ substr($member->name,0,1) }}
@endif
{{ $member->name }}
{{ $member->role }}
{{ str_repeat('★', intval($member->rating ?? 5)) }}{{ str_repeat('☆', 5-intval($member->rating ?? 5)) }}
@if($member->bio)

{{ Str::limit($member->bio, 95) }}

@endif
@endforeach
{{-- TESTIMONIALS --}} @elseif($secKey === 'testimonials' && $testimonials->count())

{{ $sec['heading'] ?? 'What Our Clients Say' }}

{{ $sec['subtitle'] ?? '' }}

@foreach($testimonials as $t)
{{ str_repeat('★',$t->rating) }}{{ str_repeat('☆',5-$t->rating) }}

"{{ $t->content }}"

{{ substr($t->author_name,0,1) }}
{{ $t->author_name }}
@if($t->service_name)
{{ $t->service_name }}
@endif
@endforeach
Read More Reviews
{{-- GALLERY --}} @elseif($secKey === 'gallery' && $gallery->count())

{{ $sec['heading'] ?? 'Fresh from the Studio' }}

{{ $sec['subtitle'] ?? '' }}

See Full Gallery
{{-- CTA --}} @elseif($secKey === 'cta')

{{ $sec['heading'] ?? "Ready for Your Glow-Up?" }}

{{ $sec['subtitle'] ?? '' }}

@endif @endforeach @endsection