hello.blade.php 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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('beliebt', 'Beliebt (Wertung)') }}</li>
  25. <li>{{ HTML::link('vorgeschlagen', 'Vorgeschlagen (Datum)') }}</li>
  26. <li>{{ HTML::link('gesehen', 'Gesehen') }}</li>
  27. <li>{{ HTML::link('neu', 'Film vorschlagen')}}
  28. </ul>
  29. <ul class="nav navbar-nav pull-right">
  30. @if(is_null(Auth::user()))
  31. <li>{{ HTML::link('login', 'Login') }}</li>
  32. @else
  33. <li class="dropdown">
  34. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  35. <img src="{{ Auth::user()->getAvatar() }}" height="25" }}>
  36. {{Auth::user()->name}} <span class="caret"></span></a>
  37. <ul class="dropdown-menu">
  38. <li>{{ HTML::link('settings', 'Einstellungen')}}</li>
  39. @if(Auth::user()->admin)
  40. <li>{{ HTML::link('users', 'Benutzerverwaltung')}}</li>
  41. <li>{{ HTML::link('news', 'News erstellen')}}</li>
  42. @endif
  43. <li class="divider"></li>
  44. <li>{{ HTML::link('logout', "Logout")}}
  45. </ul>
  46. </li>
  47. @endif
  48. </ul>
  49. </div>
  50. </div>
  51. </div>
  52. @if(isset($message))
  53. <div class="container">
  54. <div class="alert alert-success alert-dismissable">
  55. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  56. {{ $message }}
  57. </div>
  58. </div>
  59. @endif
  60. @if(Session::has('message'))
  61. <div class="container">
  62. <div class="alert alert-success alert-dismissable">
  63. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  64. {{ Session::get('message') }} <?php Session::forget('message'); ?>
  65. </div>
  66. </div>
  67. @endif
  68. <div class="container" id="content">
  69. @yield('content')
  70. </div>
  71. <div id="push"></div>
  72. </div>
  73. <footer id="footer">
  74. <div class="container">
  75. <hr>
  76. <small>&copy; 2013 &mdash; Daniel M&uuml;llers</small>
  77. </div>
  78. </footer>
  79. <script type="text/javascript" src="{{ asset('js/jquery-2.0.3.min.js') }}"></script>
  80. <script type="text/javascript" src="{{ asset('js/bootstrap.min.js') }}"></script>
  81. @yield('script')
  82. </body>
  83. </html>