diff options
Diffstat (limited to 'resources/views/layouts/app.blade.php')
-rw-r--r-- | resources/views/layouts/app.blade.php | 52 |
1 files changed, 30 insertions, 22 deletions
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index f6e81e3..d64fe27 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -1,5 +1,6 @@ <!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> + <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> @@ -20,6 +21,7 @@ <!-- Styles --> <link href="{{ asset('css/app.css') }}" rel="stylesheet"> </head> + <body> <div id="app"> <nav class="navbar navbar-expand-md navbar-light navbar-laravel"> @@ -27,7 +29,8 @@ <a class="navbar-brand" href="{{ url('/') }}"> {{ config('app.name', 'Laravel') }} </a> - <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ __('Toggle navigation') }}"> + <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" + aria-expanded="false" aria-label="{{ __('Toggle navigation') }}"> <span class="navbar-toggler-icon"></span> </button> @@ -41,30 +44,34 @@ <ul class="navbar-nav ml-auto"> <!-- Authentication Links --> @guest - <li class="nav-item"> - <a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a> - </li> - <li class="nav-item"> - <a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a> - </li> + <li class="nav-item"> + <a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a> + </li> @else - <li class="nav-item dropdown"> - <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre> - {{ Auth::user()->name }} <span class="caret"></span> - </a> + <li class="nav-item dropdown"> + <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" + aria-expanded="false" v-pre> + {{ Auth::user()->name }} + <span class="caret"></span> + </a> - <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown"> - <a class="dropdown-item" href="{{ route('logout') }}" - onclick="event.preventDefault(); + <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown"> + <a class="dropdown-item" href="/profile"> + User Profile + </a> + <a class="dropdown-item" href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();"> - {{ __('Logout') }} - </a> + {{ __('Logout') }} + </a> - <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;"> - @csrf - </form> - </div> - </li> + <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;"> + @csrf + </form> + </div> + </li> @endguest </ul> </div> @@ -76,4 +83,5 @@ </main> </div> </body> -</html> + +</html>
\ No newline at end of file |