20 lines
617 B
PHP
20 lines
617 B
PHP
@props(['items' => []])
|
|
|
|
<nav class="page-breadcrumb">
|
|
<ol class="breadcrumb">
|
|
@foreach($items as $item)
|
|
@if(!empty($item['active']))
|
|
<li class="breadcrumb-item active" aria-current="page">{{ $item['label'] }}</li>
|
|
@else
|
|
<li class="breadcrumb-item">
|
|
@if(isset($item['url']))
|
|
<a href="{{ $item['url'] }}">{{ $item['label'] }}</a>
|
|
@else
|
|
{{ $item['label'] }}
|
|
@endif
|
|
</li>
|
|
@endif
|
|
@endforeach
|
|
</ol>
|
|
</nav>
|