@props([ 'brand' ]) @php $navigation = [ [ 'label' => 'Home', 'href' => $brand->getUrl(), 'is_active' => request()->is(ltrim($brand->getUrl(), '/')) ] ]; foreach ($brand->navItems() as $nav_item) { $navigation[] = [ 'label' => $nav_item->getRawOriginal('title'), // Bypass the mutator to always get the real title of the Podcast 'href' => $nav_item->getUrl(), 'is_active' => request()->is(ltrim($nav_item->getUrl(), '/'). '*') ]; } @endphp @if ($brand->navItems()->count() > 0) @endif