app.blade.php 2.5 KB

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