@php //$posts = data_get($categorySection, 'category.post', collect([])); $topPosts = $posts->take(2); $bottomPosts = $posts->skip(2)->take(6); @endphp

@if(data_get($categorySection, 'label') == 'videos') {{__('videos')}} @else {{ \Illuminate\Support\Str::upper(data_get($categorySection, 'label')) }} @endif

@foreach($topPosts as $firstPost)
@include('site.partials.home.category.first_post')

{!! \Illuminate\Support\Str::limit($firstPost->title, 50) !!}

{!! strip_tags(\Illuminate\Support\Str::limit($firstPost->content, 120)) !!}

@endforeach @foreach($bottomPosts->chunk(3) as $postGroup)
@foreach($postGroup as $post)
@include('site.partials.home.category.post_block')

{!! \Illuminate\Support\Str::limit($post->title, 25) !!}

@endforeach
@endforeach