hello.blade.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!DOCTYPE html>
  2. <html lang="de">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>@yield('title') Dumbo</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link href="{{ asset('css/bootstrap.css') }}" type="text/css" rel="stylesheet">
  8. <link href="{{ asset('css/general.css') }}" type="text/css" rel="stylesheet">
  9. @yield('styles')
  10. </head>
  11. <body><div id="wrap">
  12. <div class="navbar navbar-inverse navbar-static-top" role="navigation">
  13. <div class="container">
  14. <div class="navbar-header">
  15. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  16. <span class="icon-bar"></span>
  17. <span class="icon-bar"></span>
  18. <span class="icon-bar"></span>
  19. </button>
  20. {{ HTML::link('/', 'Dumbo', array("class" => "navbar-brand")) }}
  21. </div>
  22. <div class="navbar-collapse collapse">
  23. <ul class="nav navbar-nav">
  24. <li>{{ HTML::link('vorgeschlagen', 'Vorgeschlagen') }}</li>
  25. <li>{{ HTML::link('gesehen', 'Gesehen') }}</li>
  26. <li>{{ HTML::link('neu', 'Film vorschlagen')}}
  27. </ul>
  28. <ul class="nav navbar-nav pull-right">
  29. @if(is_null(Auth::user()))
  30. <li>{{ HTML::link('login', 'Login') }}</li>
  31. @else
  32. <li class="dropdown">
  33. <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{Auth::user()->name}} <span class="caret"></span></a>
  34. <ul class="dropdown-menu">
  35. <li>{{ HTML::link('settings', 'Passwort &amp; Email &auml;ndern')}}</li>
  36. @if(Auth::user()->admin)
  37. <li>{{ HTML::link('users', 'Benutzerverwaltung')}}</li>
  38. @endif
  39. <li class="divider"></li>
  40. <li>{{ HTML::link('logout', "Logout")}}
  41. </ul>
  42. </li>
  43. @endif
  44. </ul>
  45. </div>
  46. </div>
  47. </div>
  48. @if(isset($message))
  49. <div class="container">
  50. <div class="alert alert-success alert-dismissable">
  51. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  52. {{ $message }}
  53. </div>
  54. </div>
  55. @endif
  56. @if(Session::has('message'))
  57. <div class="container">
  58. <div class="alert alert-success alert-dismissable">
  59. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  60. {{ Session::get('message') }}
  61. </div>
  62. </div>
  63. @endif
  64. <div class="container" id="content">
  65. @yield('content')
  66. </div>
  67. <div id="push"></div>
  68. </div>
  69. <footer id="footer">
  70. <div class="container">
  71. <hr>
  72. <small>&copy; 2013 &mdash; Daniel M&uuml;llers</small>
  73. </div>
  74. </footer>
  75. <script type="text/javascript" src="{{ asset('js/jquery-2.0.3.min.js') }}"></script>
  76. <script type="text/javascript" src="{{ asset('js/bootstrap.min.js') }}"></script>
  77. @yield('script')
  78. </body>
  79. </html>