@extends('layouts.app') @section('content') @include('components.slider')
@if(isset($homeSections['features']) && $homeSections['features']->isNotEmpty()) @php // ✅ Take ONLY the first feature section (lowest sort_order) $featureSection = $homeSections['features']->first(); // ✅ Take only first 3 icons from that section $featureItems = collect($featureSection->content['items'] ?? []) ->take(3); @endphp
@foreach($featureItems as $item)
{{ $item['title'] }}
{!! nl2br(e($item['subtitle'] ?? '')) !!}
@endforeach
@endif
@if(isset($homeSections['content'])) @php $section = $homeSections['content']->first(); @endphp

{{ $section->content['heading'] }}

{!! $section->content['text'] !!}
{{ $section->content['cta_button_text'] }}
BlindsMarket Image
@endif

Shop By Room

@if(isset($homeSections['cta'])) @php $section = $homeSections['cta']->first(); @endphp
{!! $section->content['description'] ?? '' !!}
@endif

Happy Customers

@if(isset($homeSections['features']) && $homeSections['features']->isNotEmpty()) @php // ✅ Take ONLY the first feature section (lowest sort_order) $featureSection = $homeSections['features']->last(); // ✅ Take only 4 feature items from that section $featureItems = collect($featureSection->content['items'] ?? []) ->take(4); @endphp
@foreach($featureItems as $item)
{{ $item['title'] }}

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

@endforeach
@endif
@endsection