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.

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