@props(['items' => []])
{{--
$items: array of ['label' => string, 'href' => string|null]
Home is always prepended here, so pages pass only their own trail.
Last item is the current page — no link, no href needed.
Example:
Also pushes matching BreadcrumbList JSON-LD to the layout's `seo` stack.
--}}
@php
// Untranslated collection names can arrive empty; skip them rather than
// render an empty crumb.
$items = array_values(array_filter([
['label' => __('storefront.nav.home'), 'href' => route('home')],
...$items,
], fn ($item) => filled($item['label'] ?? null)));
@endphp
@push('seo')
@endpush