@php
    $current = $current ?? '';
    $items = $items ?? [];
@endphp
<nav aria-label="Breadcrumb" class="flex items-center text-sm">
    <ol class="flex items-center gap-1.5 flex-wrap">
        <li>
            <a href="{{ route('dashboard') }}" class="flex items-center gap-1.5 text-slate-500 hover:text-primary-600 transition">
                <i data-lucide="home" class="w-3.5 h-3.5"></i>
                <span class="hidden sm:inline">Home</span>
            </a>
        </li>
        @foreach($items as $label => $url)
            <li class="flex items-center gap-1.5">
                <i data-lucide="chevron-right" class="w-3.5 h-3.5 text-slate-300 dark:text-slate-600"></i>
                @if($url)
                    <a href="{{ $url }}" class="text-slate-500 hover:text-primary-600 transition">{{ $label }}</a>
                @else
                    <span class="font-semibold text-slate-900 dark:text-white">{{ $label }}</span>
                @endif
            </li>
        @endforeach
    </ol>
</nav>
