19 lines
615 B
PHP
19 lines
615 B
PHP
@if (count($breadcrumbs))
|
|
<ol class="breadcrumb w-100">
|
|
@foreach ($breadcrumbs as $breadcrumb)
|
|
@if ($breadcrumb->url && !$loop->last)
|
|
<li class="breadcrumb-item d-flex">
|
|
<a href="{{ $breadcrumb->url }}">
|
|
{{ $breadcrumb->title }}
|
|
</a>
|
|
</li>
|
|
@else
|
|
<li @class([
|
|
'breadcrumb-item d-flex align-items-center',
|
|
])>
|
|
{{ $breadcrumb->title }}
|
|
</li>
|
|
@endif
|
|
@endforeach
|
|
</ol>
|
|
@endif
|