12345678910111213141516171819202122 |
- <!-- Authentication Links -->
- @if (Auth::guest())
- <li><a href="{{ url('/login') }}">Login</a></li>
- <li><a href="{{ url('/register') }}">Register</a></li>
- @else
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
- {{ Auth::user()->name }} <span class="caret"></span>
- </a>
- <ul class="dropdown-menu" role="menu">
- <li><a class="scroll" href="{{ route('logout') }}"
- onclick="event.preventDefault();
- document.getElementById('logout-form').submit();">
- <i class="fa fa-btn fa-sign-out"></i>Вихід
- </a></li>
- <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
- @csrf
- </form>
- </ul>
- </li>
- @endif
|