@props([
    'items' => [],
])

<nav {{ $attributes->merge(['class' => 'breadcrumbs']) }} aria-label="Breadcrumb">
    @foreach ($items as $index => $item)
        @if ($index > 0)
            <span class="breadcrumbs-sep">/</span>
        @endif
        @if (! empty($item['url']) && $index < count($items) - 1)
            <a href="{{ $item['url'] }}">{{ $item['label'] }}</a>
        @else
            <span class="breadcrumbs-current">{{ $item['label'] }}</span>
        @endif
    @endforeach
</nav>
