{{--Show top level item--}}
@if (count($crumbs) > 0 && $crumbs[0] instanceof \BookStack\Entities\Book)
@icon('books')
{{ trans('entities.books') }}
@endif
@foreach($crumbs as $key => $crumb)
@if (is_null($crumb))
@endif
@if ($breadcrumbCount !== 0 && !$isEntity)
@icon('chevron-right')
@endif
@if (is_string($crumb))
{{ $crumb }}
@elseif (is_array($crumb))
@icon($crumb['icon'])
{{ $crumb['text'] }}
@elseif($isEntity && userCan('view', $crumb))
@if($breadcrumbCount > 0)
@include('partials.breadcrumb-listing', ['entity' => $crumb])
@endif
@icon($crumb->getType())
{{ $crumb->getShortName() }}
@endif
@endforeach