34 lines
1.4 KiB
PHP
34 lines
1.4 KiB
PHP
@props([
|
|
'items' => [],
|
|
])
|
|
|
|
@if(count($items) > 0)
|
|
<nav aria-label="Breadcrumb" class="py-4">
|
|
<ol class="flex items-center gap-2 text-sm text-zinc-600 dark:text-zinc-400">
|
|
<li>
|
|
<a href="/" class="hover:text-[var(--color-primary)] transition-colors">
|
|
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path>
|
|
</svg>
|
|
</a>
|
|
</li>
|
|
|
|
@foreach($items as $index => $item)
|
|
<li class="flex items-center gap-2">
|
|
<svg class="w-4 h-4 text-zinc-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
|
|
</svg>
|
|
|
|
@if($index === count($items) - 1)
|
|
<span class="text-zinc-900 dark:text-zinc-100 font-medium">{{ $item['label'] }}</span>
|
|
@else
|
|
<a href="{{ $item['url'] }}" class="hover:text-[var(--color-primary)] transition-colors">
|
|
{{ $item['label'] }}
|
|
</a>
|
|
@endif
|
|
</li>
|
|
@endforeach
|
|
</ol>
|
|
</nav>
|
|
@endif
|
|
|