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.

87 lines
3.9 KiB

3 years ago
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. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.1.7/css/fork-awesome.min.css" integrity="sha256-gsmEoJAws/Kd3CjuOQzLie5Q3yshhvmo7YNtBG7aaEY=" crossorigin="anonymous">
  19. </head>
  20. <body>
  21. <div id="app">
  22. <nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm">
  23. <div class="container">
  24. <a class="navbar-brand" href="{{ url('/') }}">
  25. <img src="/favicon.png" style="height:30px;"/> {{ config('app.name', 'Laravel') }}
  26. </a>
  27. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ __('Toggle navigation') }}">
  28. <span class="navbar-toggler-icon"></span>
  29. </button>
  30. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  31. <!-- Left Side Of Navbar -->
  32. <ul class="navbar-nav mr-auto">
  33. </ul>
  34. <!-- Right Side Of Navbar -->
  35. <ul class="navbar-nav ml-auto">
  36. <!-- Authentication Links -->
  37. @guest
  38. @if (Route::has('login'))
  39. <li class="nav-item">
  40. <a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a>
  41. </li>
  42. @endif
  43. @if (Route::has('register'))
  44. <li class="nav-item">
  45. <a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a>
  46. </li>
  47. @endif
  48. @else
  49. <li class="nav-item dropdown">
  50. <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
  51. {{ Auth::user()->name }}
  52. </a>
  53. <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
  54. <a class="dropdown-item" href="{{ route('logout') }}"
  55. onclick="event.preventDefault();
  56. document.getElementById('logout-form').submit();">
  57. {{ __('Logout') }}
  58. </a>
  59. <form id="logout-form" action="{{ route('logout') }}" method="POST" class="d-none">
  60. @csrf
  61. </form>
  62. </div>
  63. </li>
  64. @endguest
  65. </ul>
  66. </div>
  67. </div>
  68. </nav>
  69. <main class="py-4">
  70. @yield('content')
  71. </main>
  72. </div>
  73. </body>
  74. </html>