45 lines
2.1 KiB
PHP
45 lines
2.1 KiB
PHP
@if (Request::is('bo/*'))
|
|
@if (count($breadcrumbs))
|
|
<ol class="breadcrumb justify-content-center @if (!Request::is('bo/*')) w-100 m-0 @else m-0 @endif">
|
|
@foreach ($breadcrumbs as $breadcrumb)
|
|
@if ($breadcrumb->url && !$loop->last)
|
|
<li class="breadcrumb-item d-flex">
|
|
<a class="text-decoration-none @if (Request::is('bo/*')) h2 ps-2 m-0 fw-bold @else text-white py-3 @endif"
|
|
href="{{ $breadcrumb->url }}">
|
|
{{ $breadcrumb->title }}
|
|
</a>
|
|
</li>
|
|
@else
|
|
<li
|
|
class="breadcrumb-item btn-games d-flex align-items-center flex-grow-1 active @if (Request::is('bo/*')) text-dark h2 m-0 fw-bold @else text-white @endif">
|
|
{{ $breadcrumb->title }}
|
|
</li>
|
|
@endif
|
|
@endforeach
|
|
</ol>
|
|
@endif
|
|
@else
|
|
@if (isset($breadcrumbs))
|
|
@unless ($breadcrumbs->isEmpty())
|
|
<div class="row d-none d-lg-block">
|
|
<nav aria-label="breadcrumb">
|
|
@if (request()->route()->getName() == 'fo.product.show' ||
|
|
request()->route()->getName() == 'fo.tips.show' ||
|
|
request()->route()->getName() == 'fo.recipes.show')
|
|
<ol class="breadcrumb">
|
|
@else
|
|
<ol class="breadcrumb justify-content-center">
|
|
@endif
|
|
@foreach ($breadcrumbs as $breadcrumb)
|
|
@if (!is_null($breadcrumb->url) && !$loop->last)
|
|
<li class="breadcrumb-item"><a href="{{ $breadcrumb->url }}" rel="nofollow">{{ $breadcrumb->title }}</a></li>
|
|
@else
|
|
<li class="breadcrumb-item active" aria-current="page">{{ $breadcrumb->title }}</li>
|
|
@endif
|
|
@endforeach
|
|
</ol>
|
|
</nav>
|
|
</div>
|
|
@endunless
|
|
@endif
|
|
@endif
|