@php $mainPost = $topRecentPosts->first(); $recentPosts = $topRecentPosts->slice(1); @endphp @include('components.ldjson.blog.index')

Elevated Living by {!! config('company.name') !!}

{{-- Heading --}}
@if (!empty($allCategories)) {{-- Desktop Navigation (horizontal list) --}} {{-- Mobile Navigation (select dropdown) --}}
@endif
@if ($mainPost)

{!! $mainPost->getExcerptWithLimit(200) !!} @endif

@foreach ($recentPosts as $post)

{!! $post->getExcerptWithLimit(90) !!}

@endforeach
{{-- Secciones por Categoría --}} @foreach ($categoriesWithPosts as $categoryData) @if ($categoryData['posts']->count() > 0)
@php $mainPost = $categoryData['posts']->shift(); @endphp

{!! $mainPost->getExcerptWithLimit(200) !!}

@foreach ($categoryData['posts'] as $index => $post)

{!! $post->getExcerptWithLimit(90) !!}

@endforeach
@endif @endforeach