hello.blade.php 2.9 KB

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