@php /** * Blog Modern — dense LEFT sidebar partial. * * Renders four colorful widgets in order, each wrapped in *
with an h2.qm-blogm-widget-title: * 1) Popular posts 2) Tags 3) Categories 4) Featured restaurants * * Reads ONLY its passed vars (each with a safe default), matching the * self-contained style of partials/blog-sidebar.php. * * @var array $popularPosts post rows + 'tags' => {label,url}[] (4 items) * @var array $tagCloud array of {label,url} (deduped) * @var array $categories array of {name, slug, post_count} * @var array $featuredRestaurants array of {id, name, slug, cover_image, logo, rating_cache, rating_count} * @var string $activeCat selected category slug (optional) */ $popularPosts = $popularPosts ?? []; $tagCloud = $tagCloud ?? []; $categories = $categories ?? []; $featuredRestaurants = $featuredRestaurants ?? []; $activeCat = $activeCat ?? ''; // Crisp 100x100 niche thumbnail — single source of truth shared with the controller. $thumb = static fn (array $row): string => \App\Http\Controllers\Public\BlogController::thumbFor($row); @endphp

{{ t_raw('blog.popular_posts') }}

{{ t_raw('side_panel.tags_aria') }}

@if ($tagCloud)
@foreach ($tagCloud as $t) {{ $t['label'] }} @endforeach
@else

{{ t_raw('blog.no_tags_yet') }}

@endif

{{ t_raw('nav.categories') }}

{{ t_raw('home.featured') }}

@if ($featuredRestaurants) @else

{{ t_raw('common.no_restaurants_yet') }}

@endif