@php $layout = request()->query('layout', theme_option('blog_posts_layout', 'grid')); $layout = in_array($layout, ['grid', 'list']) ? $layout : 'grid'; Theme::layout('full-width'); @endphp
@if ($posts->isNotEmpty()) @include(Theme::getThemeNamespace("views.partials.posts-$layout"), compact('posts'))
{{ $posts->links(Theme::getThemeNamespace('partials.pagination')) }}
@else

{{ __("Looks like we don't have any posts matching your search.") }}

{{ __('Back to Blog') }}
@endif
{!! dynamic_sidebar('blog_sidebar') !!}