laravel-6 support
This commit is contained in:
@@ -1,22 +1,30 @@
|
||||
@if ($breadcrumbs)
|
||||
<ul class="breadcrumb">
|
||||
@foreach ($breadcrumbs as $breadcrumb)
|
||||
@if ($breadcrumb->last)
|
||||
<li class="active">
|
||||
{{ $breadcrumb->title }}
|
||||
</li>
|
||||
@elseif ($breadcrumb->url)
|
||||
<li>
|
||||
<a href="{{ $breadcrumb->url }}">{{ $breadcrumb->title }}</a>
|
||||
<span class="divider">/</span>
|
||||
</li>
|
||||
@else
|
||||
{{-- Using .active to give it the right colour (grey by default) --}}
|
||||
<li class="active">
|
||||
{{ $breadcrumb->title }}
|
||||
<span class="divider">/</span>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
@if (count($breadcrumbs))
|
||||
|
||||
<ul class="breadcrumb">
|
||||
@foreach ($breadcrumbs as $breadcrumb)
|
||||
@if ($loop->last)
|
||||
|
||||
<li class="active">
|
||||
{{ $breadcrumb->title }}
|
||||
</li>
|
||||
|
||||
@elseif ($breadcrumb->url)
|
||||
|
||||
<li>
|
||||
<a href="{{ $breadcrumb->url }}">{{ $breadcrumb->title }}</a>
|
||||
<span class="divider">/</span>
|
||||
</li>
|
||||
|
||||
@else
|
||||
|
||||
{{-- Using .active to give it the right colour (grey by default) --}}
|
||||
<li class="active">
|
||||
{{ $breadcrumb->title }}
|
||||
<span class="divider">/</span>
|
||||
</li>
|
||||
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
@endif
|
||||
|
Reference in New Issue
Block a user