@foreach($crumbs as $key => $crumb)
@if (is_null($crumb))
@endif
@if ($breadcrumbCount !== 0)
@icon('chevron-right')
@endif
@if (is_string($crumb))
{{ $crumb }}
@elseif (is_array($crumb))
@icon($crumb['icon'])
{{ $crumb['text'] }}
@elseif($crumb instanceof \BookStack\Entities\Entity)
@icon($crumb->getType())
{{ $crumb->getShortName() }}
@endif
@endforeach