diff options
Diffstat (limited to 'resources/views/inc/special_navbar.blade.php')
-rw-r--r-- | resources/views/inc/special_navbar.blade.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/resources/views/inc/special_navbar.blade.php b/resources/views/inc/special_navbar.blade.php new file mode 100644 index 0000000..de551ba --- /dev/null +++ b/resources/views/inc/special_navbar.blade.php @@ -0,0 +1,31 @@ +<nav class="navbar navbar-expand-md navbar-dark bg-dark"> + <div class="container"> + <a href="{{ route('home') }}" class="navbar-brand">YOTA</a> + <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarCollapse"> + <span class="navbar-toggler-icon"></span> + </button> + + <div class="collapse navbar-collapse" id="navbarCollapse"> + <div class="navbar-nav"> + <a href="{{ route('activities') }}" class="nav-item nav-link {{ request()->routeIs('activities') ? 'active' : '' }}">Activities</a> + <a href="{{ route('reserve') }}" class="nav-item nav-link {{ request()->routeIs('reserve') ? 'active' : '' }}">Make reservation</a> + </div> + <div class="navbar-nav ml-auto"> + @if (Auth::check()) + <div class="nav-item dropdown"> + <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> + Administration + </a> + <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink"> + <a class="dropdown-item" href="#">Callsigns</a> + <a class="dropdown-item" href="#">Reservations</a> + </div> + </div> + <a href="{{ route('logout') }}" class="nav-item nav-link">Logout</a> + @else + <a href="{{ route('login') }}" class="nav-item nav-link {{ request()->routeIs('login') ? 'active' : '' }}">Login</a> + @endif + </div> + </div> + </div> +</nav> |