@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', ['id' => $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', ['id' => $parentAlbum->id]) }}">{{ $parentAlbum->name }}</a></li>
    @endif
@endforeach