Skip to content

Commit 8ba1e94

Browse files
author
ahmadhuss
committed
feat: Added routes for User & Dashboard
1 parent 5b5e9e0 commit 8ba1e94

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

resources/views/welcome.blade.php

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</head>
2323
<body class="antialiased">
2424
<div class="relative flex items-top justify-center min-h-screen bg-gray-100 dark:bg-gray-900 sm:items-center py-4 sm:pt-0">
25-
@if (Route::has('login'))
25+
2626
<div class="hidden fixed top-0 right-0 px-6 py-4 sm:block">
2727
@auth
2828
<a href="{{ url('/home') }}" class="text-sm text-gray-700 underline">Home</a>
@@ -32,20 +32,14 @@
3232
@if (Route::has('register'))
3333
<a href="{{ route('register') }}" class="ml-4 text-sm text-gray-700 underline">Register</a>
3434
@endif
35+
@endauth
3536

36-
37-
@if (Auth::guard('admin')->check() && Route::has('dashboard'))
37+
@if ( auth()->guard('admin')->check() && Route::has('dashboard'))
3838
<a href="{{ route('dashboard') }}" class="ml-4 text-sm text-gray-700 underline">Dashboard</a>
39-
@else
40-
@if (Route::has('admin.login'))
41-
<a href="{{ route('admin.login') }}" class="ml-4 text-sm text-gray-700 underline">Admin Login</a>
42-
@endif
43-
@endif
44-
45-
46-
@endauth
39+
@else
40+
<a href="{{ route('admin.login') }}" class="ml-4 text-sm text-gray-700 underline">Admin Login</a>
41+
@endif
4742
</div>
48-
@endif
4943

5044
<div class="max-w-6xl mx-auto sm:px-6 lg:px-8">
5145
<div class="flex justify-center pt-8 sm:justify-start sm:pt-0">

0 commit comments

Comments
 (0)