@extends('front.front_layouts') @section('content') {{-- Hero Section --}}
@if ($frontSetting->header_client_show == 1)
@foreach ($frontTestimonials->take(5) as $testimonial) {{ $testimonial->name }} @endforeach
{{ $frontSetting->header_client_text ?? __('front.trustedByCreators') }}
@endif

{{ $frontSetting->header_title ?? __('front.createStunningWebsites') }} {{ $frontSetting->header_sub_title ?? __('front.withPowerOfAI') }}

{{ $frontSetting->header_description ?? __('front.transformVision') }}

@if (isset($frontSetting->header_features) && is_array($frontSetting->header_features) && count($frontSetting->header_features) > 0)
@foreach ($frontSetting->header_features as $featurePoint) {{ $featurePoint }} @endforeach
@endif
{{ $frontSetting->app_name ?? config('app.name') }} AI Website Builder
{{-- Logo Cloud / Client Websites --}}

{{ $frontSetting->client_title ?? __('front.trustedByBusinesses') }}

@if (isset($frontClients) && count($frontClients) > 0) @for ($i = 0; $i < 3; $i++) @foreach ($frontClients as $frontClient)
{{ $frontClient->name }}
@endforeach @endfor @else {{-- Fallback static logos --}} @for ($i = 0; $i < 6; $i++)
@endfor @endif
{{-- Awesome Features Section --}} @if (isset($allHomePageFeatures) && count($allHomePageFeatures) > 0)
{{ $frontSetting->features_text ?? 'Features' }}

{{ $frontSetting->feature_title ?? __('front.experienceFullPower') }}

{{ $frontSetting->feature_description ?? __('front.featureSubtitle') }}

@foreach ($allHomePageFeatures as $index => $allHomePageFeature)
@if ($loop->odd)
{{ $allHomePageFeature->title }}
{{ str_pad($loop->iteration, 2, '0', STR_PAD_LEFT) }}

{{ $allHomePageFeature->title }}

{{ $allHomePageFeature->description }}

@else
{{ str_pad($loop->iteration, 2, '0', STR_PAD_LEFT) }}

{{ $allHomePageFeature->title }}

{{ $allHomePageFeature->description }}

{{ $allHomePageFeature->title }}
@endif
@endforeach
@endif {{-- Features Section - Header Features Grid --}} @if (isset($headerFeatures) && count($headerFeatures) > 0)
{{ $frontSetting->features_text ?? 'Features' }}

{{ $frontSetting->feature_title ?? __('front.everythingYouNeed') }}

{{ $frontSetting->feature_description ?? __('front.allToolsAndFeatures') }}

@foreach ($headerFeatures as $index => $feature)
@if ($feature->image) {{ $feature->name }} @else
@endif

{{ $feature->name }}

{{ $feature->description }}

@endforeach
@endif {{-- Reviews / Testimonials Section --}} @if (isset($frontTestimonials) && count($frontTestimonials) > 0)
{{ $frontSetting->testimonial_badge ?? __('front.testimonials') }}

{{ $frontSetting->testimonial_title ?? __('front.whatClientsSay') }}

@if ($frontSetting->testimonial_description ?? false)

{{ $frontSetting->testimonial_description }}

@endif
@php // Split testimonials into two rows for alternating marquee effect $testimonialCount = count($frontTestimonials); $midPoint = ceil($testimonialCount / 2); $row1Testimonials = $frontTestimonials->take($midPoint); $row2Testimonials = $frontTestimonials->skip($midPoint); @endphp
{{-- Set 1 --}} @foreach ($row1Testimonials as $testimonial)
@for ($star = 0; $star < 5; $star++) @endfor

{{ $testimonial->comment }}

{{ $testimonial->name }}
{{ $testimonial->name }}
@if ($testimonial->designation ?? false) {{ $testimonial->designation }} @endif
@endforeach {{-- Duplicate set for seamless loop --}} @foreach ($row1Testimonials as $testimonial)
@for ($star = 0; $star < 5; $star++) @endfor

{{ $testimonial->comment }}

{{ $testimonial->name }}
{{ $testimonial->name }}
@if ($testimonial->designation ?? false) {{ $testimonial->designation }} @endif
@endforeach
@if ($row2Testimonials->count() > 0)
{{-- Set 1 --}} @foreach ($row2Testimonials as $testimonial)
@for ($star = 0; $star < 5; $star++) @endfor

{{ $testimonial->comment }}

{{ $testimonial->name }}
{{ $testimonial->name }}
@if ($testimonial->designation ?? false) {{ $testimonial->designation }} @endif
@endforeach {{-- Duplicate set for seamless loop --}} @foreach ($row2Testimonials as $testimonial)
@for ($star = 0; $star < 5; $star++) @endfor

{{ $testimonial->comment }}

{{ $testimonial->name }}
{{ $testimonial->name }}
@if ($testimonial->designation ?? false) {{ $testimonial->designation }} @endif
@endforeach
@endif
@endif {{-- CTA Section --}} @include('front.sections.call_to_action') @endsection