{{--
Related Articles — internal linking from an offer page (solution, product) to the blog.
Lists the latest articles tagged with a tag linked to the page in the back-office
(Tags → "Pages liées", TagGroup::related_pages). Renders nothing when there is none.
Props:
- current (string): base route name of the page (e.g. 'solutions.dangerous-objects-management')
- title (string) : section heading (default: blog.related_articles_title)
Usage:
--}}
@props([
'current' => null,
'title' => null,
])
@php
$articles = $current ? \App\Models\Article::relatedToPage($current, app()->getLocale()) : collect();
@endphp
@if($articles->isNotEmpty())
merge(['class' => 'w-full px-4 py-20']) }}>