Bez popisu

app.blade.php 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  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. <title>Laravel</title>
  8. <link href="{{ asset('/css/app.css') }}" rel="stylesheet">
  9. <!-- Fonts -->
  10. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  11. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  12. <!--[if lt IE 9]>
  13. <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  14. <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  15. <![endif]-->
  16. </head>
  17. <body>
  18. <nav class="navbar navbar-default">
  19. <div class="container-fluid">
  20. <div class="navbar-header">
  21. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  22. <span class="sr-only">Toggle Navigation</span>
  23. <span class="icon-bar"></span>
  24. <span class="icon-bar"></span>
  25. <span class="icon-bar"></span>
  26. </button>
  27. <a class="navbar-brand" href="#">Laravel</a>
  28. </div>
  29. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  30. <ul class="nav navbar-nav">
  31. <li><a href="{{ url('/') }}">Home</a></li>
  32. </ul>
  33. <ul class="nav navbar-nav navbar-right">
  34. @if (Auth::guest())
  35. <li><a href="{{ url('/auth/login') }}">Login</a></li>
  36. <li><a href="{{ url('/auth/register') }}">Register</a></li>
  37. @else
  38. <li class="dropdown">
  39. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">{{ Auth::user()->name }} <span class="caret"></span></a>
  40. <ul class="dropdown-menu" role="menu">
  41. <li><a href="{{ url('/auth/logout') }}">Logout</a></li>
  42. </ul>
  43. </li>
  44. @endif
  45. </ul>
  46. </div>
  47. </div>
  48. </nav>
  49. @yield('content')
  50. <!-- Scripts -->
  51. <script src="http://cdn.bootcss.com/jquery/2.1.3/jquery.min.js"></script>
  52. <script src="http://cdn.bootcss.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
  53. </body>
  54. </html>