From cd4c2f2dd532c6db8dc55e3153b83f3a9cb8b844 Mon Sep 17 00:00:00 2001 From: Alexander Boman Skoug Date: Tue, 28 Apr 2020 15:41:16 +0200 Subject: [PATCH] Fix slot bug --- src/Component/Navbar/navbar.blade.php | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/Component/Navbar/navbar.blade.php b/src/Component/Navbar/navbar.blade.php index f0675be..1405da4 100644 --- a/src/Component/Navbar/navbar.blade.php +++ b/src/Component/Navbar/navbar.blade.php @@ -25,17 +25,15 @@
- @if($slot) - {!! $slot !!} - @else - @foreach ($items as $item) - -
- {{$item['label']}} -
-
- @endforeach - @endif + @foreach ($items as $item) + +
+ {{$item['label']}} +
+
+ @endforeach + + {!! $slot !!}
@if ($expanded_menu)