aboutsummaryrefslogblamecommitdiff
path: root/resources/views/inc/special_navbar.blade.php
blob: 763a470a8ccb70def7d935cc107ab8f57cbb6fb3 (plain) (tree)


















                                                                                                                                                                     

                                                                                          









                                                                                                                              
<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="{{ route('addSign') }}">Callsigns</a>
              <a class="dropdown-item" href="{{ route('reservations') }}">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>