Skip to content

Commit 6421b2f

Browse files
Update navigation.blade.php
1 parent 96dfad3 commit 6421b2f

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

resources/views/navigation.blade.php

+14-3
Original file line numberDiff line numberDiff line change
@@ -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-
1+
@if($external)
2+
<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+
38
@if($icon)
49
{!! $icon !!}
510
@else
@@ -9,4 +14,10 @@
914
<span class="sidebar-label">
1015
{{ $name }}
1116
</span>
12-
</router-link>
17+
18+
@if(! $external)
19+
</router-link>
20+
@else
21+
</a>
22+
@endif
23+

0 commit comments

Comments
 (0)