suggest.blade.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @extends('hello')
  2. @section('content')
  3. <div class="page-header"><h1>Vorschläge</h1></div>
  4. {{ $filme->links() }}
  5. <table class="table">
  6. <tr>
  7. <th>Titel</th>
  8. <th colspan="2">Stimmen</th>
  9. <th>Vorgeschlagen am</th>
  10. <th>Vorgeschlagen von</th>
  11. </tr>
  12. @foreach($filme as $film)
  13. <tr>
  14. <td>{{ HTML::link('film/' . $film->id, $film->name) }}</td>
  15. <td>
  16. <?php
  17. $vp = $film->upvotes;
  18. $np = $film->downvotes;
  19. ?>
  20. <span class="glyphicon glyphicon-thumbs-up"></span>&nbsp;{{ $vp }},
  21. <span class="glyphicon glyphicon-thumbs-down"></span>&nbsp;{{ $np }}
  22. </td>
  23. <td>
  24. <span class='label label-{{ ($vp - $np) > 0 ? "success'>+" . ($vp - $np) : "danger'>".($vp - $np) }}</span>
  25. </td>
  26. <td>{{ \Carbon\Carbon::parse($film->vorgeschlagen)->format('d.m.Y')}}</td>
  27. <td>{{ Film::find($film->id)->besitzer->name }}</td>
  28. </tr>
  29. @endforeach
  30. </table>
  31. {{ $filme->links() }}
  32. @stop
  33. @section('title')
  34. Vorschläge ~
  35. @stop
  36. @section('script')
  37. <script type="text/javascript">
  38. $(function() {
  39. $('.tooltip-enable').tooltip({ html: true, placement: "bottom" });
  40. });
  41. </script>
  42. @stop