@php $layout = MetaBox::getMetaData($post, 'layout', true); $layout = ($layout && in_array($layout, array_keys(get_blog_single_layouts()))) ? $layout : 'blog-post-right-sidebar'; Theme::layout($layout); Theme::asset()->container('footer')->usePath(true)->add('magic-popup', 'js/plugins/magnific-popup.js'); @endphp @if (Str::endsWith($layout, ['full-width', 'right-sidebar', 'left-sidebar']))
@if ($post->first_category->name)
{{ $post->first_category->name }}
@endif

{{ $post->name }}

@if ($post->image)
{{ $post->name }}
@endif
{!! BaseHelper::clean($post->content) !!}
{!! apply_filters(BASE_FILTER_PUBLIC_COMMENT_AREA, theme_option('facebook_comment_enabled_in_post', 'yes') == 'yes' ? Theme::partial('comments') : null) !!}
@if (!$post->tags->isEmpty()) @foreach ($post->tags as $tag) @endforeach @endif
{!! Theme::partial('social-share', ['url' => $post->url, 'description' => $post->description]) !!}
@endif {{--

{{ $post->name }}

{!! BaseHelper::clean($post->content) !!}
{!! apply_filters(BASE_FILTER_PUBLIC_COMMENT_AREA, theme_option('facebook_comment_enabled_in_post', 'yes') == 'yes' ? Theme::partial('comments') : null) !!}
@if (!$post->tags->isEmpty()) @foreach ($post->tags as $tag) @endforeach @endif
@php $relatedPosts = get_related_posts($post->id, 2); @endphp @if ($relatedPosts->count())

{{ __('Related Articles') }}

@foreach ($relatedPosts as $relatedItem)
@endforeach
@endif --}}