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

11 lines
564 B
PHP

@foreach ($album->albumParentTree() as $parentAlbum)
@if ($parentAlbum->id == $album->id)
@if (!empty($show_current_link) && $show_current_link)
<li class="breadcrumb-item active"><a href="{{ route('albums.show', ['album' => $album->id]) }}">{{ $album->name }}</a></li>
@else
<li class="breadcrumb-item active">{{ $album->name }}</li>
@endif
@else
<li class="breadcrumb-item"><a href="{{ route('albums.show', ['album' => $parentAlbum->id]) }}">{{ $parentAlbum->name }}</a></li>
@endif
@endforeach