@extends('layouts.app', ['locale' => $locale, 'localeSettings' => $localeSettings, 'page' => $page]) @section('content')
@foreach ($translation->sections ?? [] as $section) @if (($section['key'] ?? null) === 'home.hero') @can('update', $page) @else @include('components.sections.hero', ['section' => $section]) @endcan @elseif (($section['key'] ?? null) === 'home.intro') @can('update', $page) @else @include('components.sections.home-intro', ['section' => $section, 'locale' => $locale]) @endcan @elseif (($section['key'] ?? null) === 'home.category-preview') @can('update', $page) @else @include('components.sections.home-category-preview', ['section' => $section, 'categories' => $categories, 'locale' => $locale, 'categoryPresentation' => $categoryPresentation]) @endcan @elseif (($section['key'] ?? null) === 'home.partner-cta') @can('update', $page) @else @include('components.sections.home-partner-cta', ['section' => $section, 'locale' => $locale]) @endcan @endif @endforeach
@endsection