app.blade.php 2.1 KB

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