Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 04bd232

Browse files
Merge branch 'develop'
2 parents b0b2e74 + a53fcc6 commit 04bd232

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/Component/Navbar/navbar.blade.php

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,17 @@
2525
</div>
2626

2727
<div class="{{$baseClass}}__list">
28-
@foreach ($items as $item)
29-
<a href="{{$item['href']}}" aria-label="{{$item['label']}}">
30-
<div class="{{$baseClass}}__item" item-active="{{isset($item['active']) ? "true" : "false"}}">
31-
<span>{{$item['label']}}</span>
32-
</div>
33-
</a>
34-
@endforeach
28+
@if($slot)
29+
{!! $slot !!}
30+
@else
31+
@foreach ($items as $item)
32+
<a href="{{$item['href']}}" aria-label="{{$item['label']}}">
33+
<div class="{{$baseClass}}__item" item-active="{{isset($item['active']) ? "true" : "false"}}">
34+
<span>{{$item['label']}}</span>
35+
</div>
36+
</a>
37+
@endforeach
38+
@endif
3539
</div>
3640

3741
@if ($expanded_menu)

0 commit comments

Comments
 (0)