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

@if (! empty($items))
    <nav aria-label="breadcrumb" class="vem-breadcrumb">
        <ol class="breadcrumb mb-0">
            @foreach ($items as $item)
                @if ($loop->last)
                    <li class="breadcrumb-item active" aria-current="page">{{ $item['label'] ?? $item }}</li>
                @else
                    <li class="breadcrumb-item">
                        @if (isset($item['url']))
                            <a href="{{ $item['url'] }}">{{ $item['label'] }}</a>
                        @else
                            {{ $item['label'] ?? $item }}
                        @endif
                    </li>
                @endif
            @endforeach
        </ol>
    </nav>
@endif
