1
|
<nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm">
|
2
|
<div class="container">
|
3
|
<a class="navbar-brand" href="{{ url('/') }}">
|
4
|
{{ config('app.name', 'Laravel') }}
|
5
|
</a>
|
6
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ __('Toggle navigation') }}">
|
7
|
<span class="navbar-toggler-icon"></span>
|
8
|
</button>
|
9
|
|
10
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
11
|
<!-- Left Side Of Navbar -->
|
12
|
<ul class="navbar-nav mr-auto">
|
13
|
|
14
|
</ul>
|
15
|
|
16
|
<!-- Right Side Of Navbar -->
|
17
|
<ul class="navbar-nav ml-auto">
|
18
|
<!-- Authentication Links -->
|
19
|
@guest
|
20
|
<li class="nav-item">
|
21
|
<a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a>
|
22
|
</li>
|
23
|
@if (Route::has('register'))
|
24
|
<li class="nav-item">
|
25
|
<a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a>
|
26
|
</li>
|
27
|
@endif
|
28
|
@else
|
29
|
<li class="nav-item dropdown">
|
30
|
<a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
|
31
|
{{ Auth::user()->name }} <span class="caret"></span>
|
32
|
</a>
|
33
|
|
34
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
35
|
<a class="dropdown-item" href="{{ url('/favartefacts') }}">Favorite artefacts</a>
|
36
|
|
37
|
<a class="dropdown-item" href="{{ route('logout') }}"
|
38
|
onclick="event.preventDefault();
|
39
|
document.getElementById('logout-form').submit();">
|
40
|
{{ __('Logout') }}
|
41
|
</a>
|
42
|
|
43
|
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
44
|
@csrf
|
45
|
</form>
|
46
|
</div>
|
47
|
</li>
|
48
|
@endguest
|
49
|
</ul>
|
50
|
</div>
|
51
|
</div>
|
52
|
</nav>
|