Skip to content

Commit b711ea7

Browse files
authored
[Bug] use auth helper to correctly set the url (alexjustesen#955)
1 parent 0256564 commit b711ea7

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

resources/views/get-started.blade.php

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,27 @@
4242
</div>
4343
4444
<h2 class="min-w-0 text-sm font-semibold leading-6 text-white">
45-
<a href="{{ url('/admin') }}" class="flex gap-x-2">
46-
<span class="truncate">Sign In</span>
47-
<span class="text-amber-400">/</span>
48-
<span class="whitespace-nowrap">Admin Panel</span>
49-
<span class="absolute inset-0"></span>
50-
</a>
45+
@auth
46+
<a href="{{ url('/admin') }}" class="flex gap-x-2">
47+
<span class="truncate">Dashboard</span>
48+
<span class="text-amber-400">/</span>
49+
<span class="whitespace-nowrap">Admin Panel</span>
50+
<span class="absolute inset-0"></span>
51+
</a>
52+
@else
53+
<a href="{{ url('/admin/login') }}" class="flex gap-x-2">
54+
<span class="truncate">Sign In</span>
55+
<span class="text-amber-400">/</span>
56+
<span class="whitespace-nowrap">Admin Panel</span>
57+
<span class="absolute inset-0"></span>
58+
</a>
59+
@endauth
5160
</h2>
5261
</div>
5362
5463
<div class="mt-3 flex items-center gap-x-2.5 text-sm leading-5 dark:text-gray-400 text-gray-950">
5564
<p class="truncate">
56-
Sign in to the admin panel to run your first speedtest or to setup scheduled tests.
65+
Access the admin panel to run your first speedtest or to setup scheduled tests.
5766
</p>
5867
</div>
5968
</div>

0 commit comments

Comments
 (0)