app.blade.php 2.6 KB

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