blue-twilight/resources/views/themes/base/partials/album_breadcrumb.blade.php

7 lines
299 B
PHP

@foreach ($album->albumParentTree() as $parentAlbum)
@if ($parentAlbum->id == $album->id)
<li class="breadcrumb-item active">{{ $album->name }}</li>
@else
<li class="breadcrumb-item"><a href="{{ $parentAlbum->url() }}">{{ $parentAlbum->name }}</a></li>
@endif
@endforeach