diff options
author | Mateja <mail@matejamaric.com> | 2020-10-17 19:40:30 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-10-17 19:40:30 +0200 |
commit | 21f999346f5bdf1d95da13f30261e94520d0f27c (patch) | |
tree | 8500fe90a8be495f8b2c255f00f5f65139e619a6 /resources/views/inc | |
parent | 97515e3dec78c2b785d19d4b0e5c31a037c360dd (diff) | |
download | yota-laravel-21f999346f5bdf1d95da13f30261e94520d0f27c.tar.gz yota-laravel-21f999346f5bdf1d95da13f30261e94520d0f27c.zip |
Dropdowns
Diffstat (limited to 'resources/views/inc')
-rw-r--r-- | resources/views/inc/navbar.blade.php | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/resources/views/inc/navbar.blade.php b/resources/views/inc/navbar.blade.php index 0c5f4cd..01b73f1 100644 --- a/resources/views/inc/navbar.blade.php +++ b/resources/views/inc/navbar.blade.php @@ -1,5 +1,5 @@ -<nav class="navbar navbar-expand-md navbar-light bg-light"> - <span class="navbar-brand">YOTA</span> +<nav class="navbar navbar-expand-md navbar-dark bg-dark"> + <div class="container"> <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarCollapse"> <span class="navbar-toggler-icon"></span> </button> @@ -13,10 +13,23 @@ <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> - @if (!Auth::check()) <div class="navbar-nav ml-auto"> - <a href="{{ route('login') }}" class="nav-item nav-link {{ request()->routeIs('login') ? 'active' : '' }}">Login</a> - </div> + @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="#">Posts</a> + <a class="dropdown-item" href="#">Callsigns</a> + <a class="dropdown-item" href="#">Reservations</a> + </div> + </div> + <a href="#" 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> |