@if ($title = $shortcode->title)

{!! BaseHelper::clean($title) !!}

@endif
@if ($categories->isNotEmpty())
@php $firstCategory = $categories->first(); $firstCategory->loadMissing([ 'posts' => function ($query) { $query->orderByDesc('created_at')->limit(6); }, ]); @endphp {!! Theme::partial('posts.posts', ['posts' => $firstCategory->posts]) !!}
@endif