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.

82 lines
3.4 KiB

  1. <!DOCTYPE html>
  2. <html lang="{{ app()->getLocale() }}">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <!-- CSRF Token -->
  8. <meta name="csrf-token" content="{{ csrf_token() }}">
  9. <title>{{ config('app.name', 'Laravel') }}</title>
  10. <!-- Styles -->
  11. <link href="{{ asset('css/app.css') }}" rel="stylesheet">
  12. </head>
  13. <body>
  14. <div id="app">
  15. <nav class="navbar navbar-default navbar-static-top">
  16. <div class="container">
  17. <div class="navbar-header">
  18. <!-- Collapsed Hamburger -->
  19. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#app-navbar-collapse">
  20. <span class="sr-only">Toggle Navigation</span>
  21. <span class="icon-bar"></span>
  22. <span class="icon-bar"></span>
  23. <span class="icon-bar"></span>
  24. </button>
  25. <!-- Branding Image -->
  26. <a class="navbar-brand" href="{{ url('/') }}">
  27. {{ config('app.name', 'Laravel') }}
  28. </a>
  29. </div>
  30. <div class="collapse navbar-collapse" id="app-navbar-collapse">
  31. <!-- Left Side Of Navbar -->
  32. <ul class="nav navbar-nav">
  33. <li><a href="{{ route('teams') }}">Teams</a></li>
  34. <li><a href="{{ route('scoreboard') }}">Scoreboard</a></li>
  35. </ul>
  36. <!-- Right Side Of Navbar -->
  37. <ul class="nav navbar-nav navbar-right">
  38. <!-- Authentication Links -->
  39. @if (Auth::guest())
  40. <li><a href="{{ route('login') }}">Login</a></li>
  41. <li><a href="{{ route('register') }}">Register</a></li>
  42. @else
  43. <li class="dropdown">
  44. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
  45. {{ Auth::user()->name }} <span class="caret"></span>
  46. </a>
  47. <ul class="dropdown-menu" role="menu">
  48. <li>
  49. <a href="{{ route('logout') }}"
  50. onclick="event.preventDefault();
  51. document.getElementById('logout-form').submit();">
  52. Logout
  53. </a>
  54. <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
  55. {{ csrf_field() }}
  56. </form>
  57. </li>
  58. </ul>
  59. </li>
  60. @endif
  61. </ul>
  62. </div>
  63. </div>
  64. </nav>
  65. @yield('content')
  66. </div>
  67. <!-- Scripts -->
  68. <script src="{{ asset('js/app.js') }}"></script>
  69. @stack('scripts')
  70. </body>
  71. </html>