45 lines
1.6 KiB
PHP
45 lines
1.6 KiB
PHP
@extends('layouts.public')
|
|
|
|
@section('content')
|
|
@php
|
|
$testimonials = $content->testimonials
|
|
->filter(fn ($testimonial): bool => filled(trim((string) $testimonial->quote)))
|
|
->values();
|
|
|
|
$chapters = [
|
|
['id' => 'hero-heading', 'label' => 'Capa'],
|
|
['id' => 'manifesto-heading', 'label' => 'Manifesto'],
|
|
];
|
|
|
|
if ($content->featuredServices->isNotEmpty()) {
|
|
$chapters[] = ['id' => 'services-heading', 'label' => 'Serviços'];
|
|
}
|
|
|
|
if ($content->featuredCases->isNotEmpty()) {
|
|
$chapters[] = ['id' => 'portfolio-heading', 'label' => 'Portfólio'];
|
|
}
|
|
|
|
$chapters[] = ['id' => 'method-heading', 'label' => 'Método'];
|
|
|
|
if ($testimonials->isNotEmpty()) {
|
|
$chapters[] = ['id' => 'testimonials-heading', 'label' => 'Depoimentos'];
|
|
}
|
|
|
|
$chapters[] = ['id' => 'positioning-heading', 'label' => 'A Amare'];
|
|
$chapters[] = ['id' => 'final-cta-heading', 'label' => 'Próximo passo'];
|
|
@endphp
|
|
|
|
<x-home.chapter-index :chapters="$chapters" />
|
|
|
|
<div class="home-chapters">
|
|
<x-home.hero :settings="$content->settings" />
|
|
<x-home.manifesto :settings="$content->settings" />
|
|
<x-home.services :services="$content->featuredServices" />
|
|
<x-home.portfolio :cases="$content->featuredCases" />
|
|
<x-home.method :settings="$content->settings" />
|
|
<x-home.testimonials :testimonials="$content->testimonials" />
|
|
<x-home.positioning :settings="$content->settings" />
|
|
<x-home.final-cta :settings="$content->settings" editorial />
|
|
</div>
|
|
@endsection
|