app.blade.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. <meta name="description" content="">
  8. <meta name="author" content="">
  9. <!-- FavIcon -->
  10. <link rel="icon" href="../../favicon.ico">
  11. <!-- Application Title -->
  12. <title>Laravel Application</title>
  13. <!-- Bootstrap CSS -->
  14. <link href="/css/app.css" rel="stylesheet">
  15. <link href="/css/vendor/font-awesome.css" rel="stylesheet">
  16. <!-- Web Fonts -->
  17. <link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic' rel='stylesheet' type='text/css'>
  18. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  19. <!--[if lt IE 9]>
  20. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  21. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  22. <![endif]-->
  23. </head>
  24. <body>
  25. <!-- Static navbar -->
  26. <nav class="navbar navbar-default navbar-static-top" role="navigation">
  27. <div class="container-fluid">
  28. <div class="navbar-header">
  29. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
  30. <span class="sr-only">Toggle Navigation</span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. <span class="icon-bar"></span>
  34. </button>
  35. <a class="navbar-brand" href="#">Laravel</a>
  36. </div>
  37. <div id="navbar" class="navbar-collapse collapse">
  38. <ul class="nav navbar-nav">
  39. <li><a href="/">Home</a></li>
  40. </ul>
  41. @if (Auth::check())
  42. <ul class="nav navbar-nav navbar-right">
  43. <li class="dropdown">
  44. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  45. <img src="https://www.gravatar.com/avatar/{{{ md5(strtolower(Auth::user()->email)) }}}?s=35" height="35" width="35" class="navbar-avatar">
  46. {{ Auth::user()->name }} <b class="caret"></b>
  47. </a>
  48. <ul class="dropdown-menu">
  49. <li><a href="/auth/logout"><i class="fa fa-btn fa-sign-out"></i>Logout</a></li>
  50. </ul>
  51. </li>
  52. </ul>
  53. @else
  54. <ul class="nav navbar-nav navbar-right">
  55. <li><a href="/auth/login"><i class="fa fa-btn fa-sign-in"></i>Login</a></li>
  56. <li><a href="/auth/register"><i class="fa fa-btn fa-user"></i>Register</a></li>
  57. </ul>
  58. @endif
  59. </div>
  60. </div>
  61. </nav>
  62. <div class="container-fluid">
  63. @yield('content')
  64. </div>
  65. <!-- Bootstrap JavaScript -->
  66. <script src="/js/vendor/jquery.js"></script>
  67. <script src="/js/vendor/bootstrap.js"></script>
  68. </body>
  69. </html>