@if (is_plugin_active('blog')) @php $numberDisplay =(int) $config['number_display']; switch ($config['type']) { case 'recent': $posts = get_recent_posts($numberDisplay); break; default: $posts = get_popular_posts($numberDisplay); break; } @endphp @if ($posts->count())