@if ($posts->isNotEmpty())
@if (theme_option('blog_page_icon'))
@endif
{{ SeoHelper::getTitle() }}
@php
$partial = 'item-grid';
$className = 'pr-30';
$hasRowWrapper = true;
switch (Theme::getLayoutName()) {
case 'blog-big':
$partial = 'item-big';
$className = 'loop-big';
break;
case 'blog-wide':
$partial = 'item-wide';
$className = '';
break;
case 'blog-list':
$partial = 'item-list';
$className = 'loop-list pr-30 mb-50';
$hasRowWrapper = false;
break;
}
@endphp
@if ($hasRowWrapper)
@endif
@foreach ($posts as $post)
{!! Theme::partial('blog.posts.' . $partial, compact('post')) !!}
@endforeach
@if ($hasRowWrapper)
@endif
{!! $posts->withQueryString()->links(Theme::getThemeNamespace() . '::partials.custom-pagination') !!}
@endif