app.blade.php 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. <!-- Scripts -->
  10. <!-- <script src="{{ asset('js/app.js') }}" defer></script> -->
  11. <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
  12. <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
  13. <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
  14. <!-- Fonts -->
  15. <link rel="dns-prefetch" href="//fonts.gstatic.com">
  16. <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
  17. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
  18. <!-- Styles -->
  19. <!-- <link href="{{ asset('css/app.css') }}" rel="stylesheet"> -->
  20. </head>
  21. <body>
  22. <div id="app">
  23. <nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm">
  24. <div class="container">
  25. <a class="navbar-brand" href="{{ url('/') }}">
  26. {{ config('app.name', 'Laravel') }}
  27. </a>
  28. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ __('Toggle navigation') }}">
  29. <span class="navbar-toggler-icon"></span>
  30. </button>
  31. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  32. <!-- Left Side Of Navbar -->
  33. <ul class="navbar-nav mr-auto">
  34. </ul>
  35. <!-- Right Side Of Navbar -->
  36. <ul class="navbar-nav ml-auto">
  37. <!-- Authentication Links -->
  38. @guest
  39. <li class="nav-item">
  40. <a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a>
  41. </li>
  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>