{{-- Related Products — internal linking block between product & solution pages. Items come from the navigation config (menu_data(), config/menu.php): same labels, thumbnails and descriptions as the mega-menu. The current page is excluded. Props: - groups (array) : menu group keys to list, in order (default: products then solutions) - current (string): base route name of the current page (e.g. 'products.wasoria-box') - title (string) : section heading (default: common.related_title) - description (string): optional intro text under the heading Usage: --}} @props([ 'groups' => ['products', 'solutions'], 'current' => null, 'title' => null, 'description' => null, ]) @php $menu = collect(menu_data())->keyBy('key'); $items = collect($groups) ->flatMap(fn ($group) => $menu->get($group)['items'] ?? []) ->reject(fn ($item) => ($item['route'] ?? null) === $current) ->values(); @endphp @if($items->isNotEmpty())
merge(['class' => 'w-full px-4 py-20']) }}>
@endif