We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96dfad3 commit 6421b2fCopy full SHA for 6421b2f
resources/views/navigation.blade.php
@@ -1,5 +1,10 @@
1
-<router-link tag="h3" :to="{ path: '{{ $to }}' }" class="cursor-pointer flex items-center font-normal dim text-white mb-6 text-base no-underline">
2
-
+@if($external)
+ <a href="{{$to}}" target="{{$target}}" class="cursor-pointer flex items-center font-normal dim text-white mb-6 text-base no-underline">
3
+@else
4
+ <router-link tag="h3" :to="{ path: '{{ $to }}' }" class="cursor-pointer flex items-center font-normal dim text-white mb-6 text-base no-underline">
5
+
6
+@endif
7
8
@if($icon)
9
{!! $icon !!}
10
@else
@@ -9,4 +14,10 @@
14
<span class="sidebar-label">
15
{{ $name }}
11
16
</span>
12
-</router-link>
17
18
+@if(! $external)
19
+ </router-link>
20
21
+ </a>
22
23
0 commit comments