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.6 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('dashboard') }}">Dashboard</a></li>
  34. @can('admin')
  35. <li><a href="{{ route('teams') }}">Teams</a></li>
  36. @endcan
  37. <li><a href="{{ route('slideshow') }}">Slideshow</a></li>
  38. <li><a href="{{ route('scoreboard') }}">Scoreboard</a></li>
  39. </ul>
  40. <!-- Right Side Of Navbar -->
  41. <ul class="nav navbar-nav navbar-right">
  42. <!-- Authentication Links -->
  43. @if (Auth::guest())
  44. <li><a href="{{ route('login') }}">Login</a></li>
  45. <li><a href="{{ route('register') }}">Register</a></li>
  46. @else
  47. <li class="dropdown">
  48. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
  49. {{ Auth::user()->name }} <span class="caret"></span>
  50. </a>
  51. <ul class="dropdown-menu" role="menu">
  52. <li>
  53. <a 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" style="display: none;">
  59. {{ csrf_field() }}
  60. </form>
  61. </li>
  62. </ul>
  63. </li>
  64. @endif
  65. </ul>
  66. </div>
  67. </div>
  68. </nav>
  69. @yield('content')
  70. </div>
  71. <!-- Scripts -->
  72. <script src="{{ asset('js/app.js') }}"></script>
  73. @stack('scripts')
  74. </body>
  75. </html>