@props(['items' => []])
{{--
Breadcrumb (PRD 4.21) — used on Portfolio detail, Blog detail, Contact and
the legal pages.
$items is an ordered array of ['label' => string, 'url' => ?string]. Home is
prepended automatically so no caller has to remember it, and the final item
is rendered as plain text with aria-current="page" rather than a link,
because linking to the page you are already on is a WCAG annoyance
(PRD 14.18).
BreadcrumbList JSON-LD is emitted alongside the visual list so the two can
never disagree about the trail (PRD 14.13).
--}}
@php
$trail = array_merge([['label' => 'Home', 'url' => route('home')]], $items);
$lastIndex = count($trail) - 1;
@endphp
@push('structured-data')
@endpush