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.

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