@php $latestTwoPosts = $posts->count() >= 3 ? $posts->pop(2) : collect(); @endphp
$sidebar]) @style($variableStyles) >
$sidebar, 'col-12' => ! $sidebar, ])>
@foreach($posts as $post)
{{ RvMedia::image($post->image, $post->name, 'extra-large', attributes: ['class' => 'img-hover']) }} {!! Theme::partial('blog.post.partials.action-post', compact('post')) !!}
@if ($category = $post->firstCategory) @endif
{!! Theme::partial('post-meta', ['post' => $post]) !!}
@endforeach
@if ($latestTwoPosts->isNotEmpty())
@foreach($latestTwoPosts as $post)
{{ RvMedia::image($post->image, $post->name, 'small') }} {!! Theme::partial('blog.post.partials.action-post', compact('post')) !!}
@if ($category = $post->firstCategory) @endif
@if (! $loop->last)
@endif @endforeach
@endif
@if ($sidebar)
{!! dynamic_sidebar($sidebar) !!}
@endif