@if (is_plugin_active('blog')) @php $limit = (int) Arr::get($config, 'limit'); $type = Arr::get($config, 'type'); $posts = match ($type) { 'recent' => get_recent_posts($limit), default => get_popular_posts($limit), }; @endphp @if ($posts->count())

{{ Arr::get($config, 'name') }}

@foreach($posts as $post)
{{ $post->name }}
{!! BaseHelper::clean($post->name) !!}
{{ $post->created_at->translatedFormat('M d, Y') }}
@endforeach
@endif @endif