<div class="catalog-breadcrumbs">
    <div class="{{ isset($breadcrumbClass) ? $breadcrumbClass : '' }}">
        <ol>
            <li><a href="{{ route('homepage') }}">{{ __('Catalog::theme.general.home') }}</a></li>
            <li><span>/</span></li>
            <li><a href="{{ route('catalog.index') }}">{{ __('Catalog::theme.general.catalog') }}</a></li>
            @if (session()->has('catalog') && !isset($noCatalog))
                <li><span>/</span></li>
                <li><a href="{{ route('catalog.show', session('catalog.code')) }}">{{ session('catalog.name') }}</a></li>
            @endif
            @if (! empty($crumbs))
                @foreach ($crumbs as $crumb)
                    <li><span>/</span></li>
                    @if (empty($crumb['url']))
                        <li class="current">{{ $crumb['title'] }}</li>
                    @else
                        <li><a href="{{ $crumb['url'] }}">{{ $crumb['title'] }}</a></li>
                    @endif
                @endforeach
            @endif
        </ol>
    </div>
    @if (isset($items))
        <p class="catalog-breadcrumbs__results">
            <span class="hidden-xs">@if ($items->total() < $items->count()){{ $items->firstItem() }} to {{ $items->lastItem() }} of @endif</span>
            {{ $items->total() }} {{ str_plural('result', $items->total()) }}
            <span class="hidden-xs">@if (request()->get('keyword', '')) for &lsquo;{{ request()->get('keyword') }}&rsquo;@endif</span>
            <span class="hidden-xs">@if (session()->has('category'))in {{ session('category.name') }}@endif</span>
        </p>
    @endif
</div>
