forked from TFMM/silent-auction
31 lines
1.2 KiB
PHP
31 lines
1.2 KiB
PHP
@inject('navbarItemHelper', 'TakiElias\Tablar\Helpers\NavbarItemHelper')
|
|
@if ($navbarItemHelper->isSubmenu($item))
|
|
<div class="dropend">
|
|
<a class="dropdown-item dropdown-toggle" href=""
|
|
data-bs-toggle="dropdown" data-bs-auto-close="outside" role="button"
|
|
aria-expanded="false">
|
|
|
|
@if(isset($item['icon']))
|
|
<span class="nav-link-icon d-md-none d-lg-inline-block">
|
|
<!-- Download SVG icon from http://tabler-icons.io/i/package -->
|
|
<i class="{{ $item['icon'] ?? '' }} {{
|
|
isset($item['icon_color']) ? 'text-' . $item['icon_color'] : ''
|
|
}}"></i>
|
|
</span>
|
|
@endif
|
|
|
|
|
|
{{ $item['text'] }}
|
|
{{-- Label (optional) --}}
|
|
@isset($item['label'])
|
|
<span class="badge badge-sm bg-{{ $item['label_color'] ?? 'primary' }} text-uppercase ms-2">{{ $item['label'] }}</span>
|
|
@endisset
|
|
</a>
|
|
<div class="dropdown-menu">
|
|
@each('tablar::partials.navbar.dropend', $item['submenu'], 'item')
|
|
</div>
|
|
</div>
|
|
@elseif ($navbarItemHelper->isLink($item))
|
|
@include('tablar::partials.navbar.single-item')
|
|
@endif
|