@php /** * Blog Modern — RIGHT sidebar. * * Renders, in order: a "Featured story" card (only when a featured post exists), * a pure-CSS promo/CTA block, and a newsletter signup widget. No Swiper, no * carousel — static markup only. Reads ONLY its passed vars, like blog-sidebar.php. * * @var array|null $featured most-viewed post row, or null (see DATA CONTRACT) * @var string $activeCat selected category slug (optional, currently unused) */ $featured = $featured ?? null; $activeCat = $activeCat ?? ''; $searchTerm = $searchTerm ?? ''; // Unique suffix so the newsletter field id never collides with the left sidebar. $uid = $uid ?? substr(md5('blog-modern-right'), 0, 6); @endphp

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

@if ($featured)

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

{{ t_raw('common.featured_badge') }} @if (!empty($featured['category_name'])) {{ $featured['category_name'] }} @endif {{ $featured['title'] }} @if (!empty($featured['published_at'])) @endif
@endif

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

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

{{ t_raw('header.order_now') }}
@if (setting('newsletter_provider_blog', 'local') !== 'off')

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

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

@csrf
@endif