@php $channel = core()->getCurrentChannel(); @endphp @push ('meta') @endPush @push('scripts') @if(! empty($categories)) @endif @endpush {{ $channel->home_seo['meta_title'] ?? '' }} @foreach ($sections as $section) @php ($data = $section->options) @endphp {{-- Only the types this page renders; the layout marks the ones it draws. --}} @php ($marks = ($preview ?? false) && in_array($section->type, [ $section::IMAGE_CAROUSEL, $section::STATIC_CONTENT, $section::CATEGORY_CAROUSEL, $section::PRODUCT_CAROUSEL, ])) @if ($marks)
@endif @switch ($section->type) @case ($section::IMAGE_CAROUSEL) @break @case ($section::STATIC_CONTENT) @if (! empty($data['css'])) @push ('styles') @endpush @endif @if (! empty($data['html'])) {!! $data['html'] !!} @endif @break @case ($section::CATEGORY_CAROUSEL) @break @case ($section::PRODUCT_CAROUSEL) @break @endswitch @if ($marks)
@endif @endforeach @if ($preview ?? false) @include('shop::home.preview-bridge') @endif