My beer compendium
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
3.7 KiB

3 years ago
  1. <!doctype html>
  2. <html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <!-- CSRF Token -->
  7. <meta name="csrf-token" content="{{ csrf_token() }}">
  8. <title>{{ config('app.name', 'Laravel') }}</title>
  9. <link rel="icon" type="image/png" href="{{ asset('favicon.png') }}">
  10. <!-- Scripts -->
  11. <script src="{{ asset('js/jquery.min.js') }}"></script>
  12. <script src="{{ asset('js/bootstrap.min.js') }}"></script>
  13. <script src="{{ asset('js/app.js') }}" defer></script>
  14. <!-- Fonts -->
  15. <!-- Styles -->
  16. <link href="{{ asset('css/app.css') }}" rel="stylesheet">
  17. <link href="{{ asset('css/jk.css') }}" rel="stylesheet">
  18. </head>
  19. <body>
  20. <div id="app">
  21. <nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm">
  22. <div class="container">
  23. <a class="navbar-brand" href="{{ url('/') }}">
  24. <img src="/favicon.png" style="height:30px;"/> {{ config('app.name', 'Laravel') }}
  25. </a>
  26. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ __('Toggle navigation') }}">
  27. <span class="navbar-toggler-icon"></span>
  28. </button>
  29. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  30. <!-- Left Side Of Navbar -->
  31. <ul class="navbar-nav mr-auto">
  32. </ul>
  33. <!-- Right Side Of Navbar -->
  34. <ul class="navbar-nav ml-auto">
  35. <!-- Authentication Links -->
  36. @guest
  37. @if (Route::has('login'))
  38. <li class="nav-item">
  39. <a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a>
  40. </li>
  41. @endif
  42. @if (Route::has('register'))
  43. <li class="nav-item">
  44. <a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a>
  45. </li>
  46. @endif
  47. @else
  48. <li class="nav-item dropdown">
  49. <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
  50. {{ Auth::user()->name }}
  51. </a>
  52. <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
  53. <a class="dropdown-item" href="{{ route('logout') }}"
  54. onclick="event.preventDefault();
  55. document.getElementById('logout-form').submit();">
  56. {{ __('Logout') }}
  57. </a>
  58. <form id="logout-form" action="{{ route('logout') }}" method="POST" class="d-none">
  59. @csrf
  60. </form>
  61. </div>
  62. </li>
  63. @endguest
  64. </ul>
  65. </div>
  66. </div>
  67. </nav>
  68. <main class="py-4">
  69. @yield('content')
  70. </main>
  71. </div>
  72. </body>
  73. </html>