new.blade.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. @extends('hello')
  2. @section('content')
  3. <div class="page-header"><h1>Film vorschlagen</h1></div>
  4. <div class="container">
  5. {{ Form::open(array('url' => 'neu')) }}
  6. <div class="input-group">
  7. <span class="input-group-addon"><span class="glyphicon glyphicon-search"></span></span>
  8. <input type="search" name="search" class="form-control" placeholder="Filmname...">
  9. <span class="input-group-btn">
  10. <button type="submit" value="Suchen" class="btn btn-primary">
  11. Suchen
  12. </button>
  13. </span>
  14. </div>
  15. {{ Form::close() }}
  16. </div>
  17. <h2>Suchergebnisse</h2>
  18. <p></p>
  19. @if(isset($result))
  20. <section id="results">
  21. <table class="table">
  22. <tr>
  23. <th></th>
  24. <th>Titel</th>
  25. <th>Originaltitel</th>
  26. <th>Veröffentlichung</th>
  27. <th></th>
  28. </tr>
  29. @foreach($result['results'] as $r)
  30. <tr>
  31. <td>
  32. <img src="{{ $tmdb->getImageUrl($r['poster_path'], TMDb::IMAGE_POSTER, 'w92'); }}" class="img-responsive img-thumbnail">
  33. </td>
  34. <td>{{ $r['title' ]}}</td>
  35. <td>{{ $r['original_title']}}</td>
  36. <td>{{ \Carbon\Carbon::parse($r['release_date'])->format('d.m.Y') }}</td>
  37. <td>
  38. <p><a class="btn btn-primary btn-xs" href="http://themoviedb.com/movie/{{$r['id']}}">themoviedb.org</a></p>
  39. <p><a class="btn btn-default btn-xs" href="{{ url('vorschlag/' . $r['id']) }}">Film vorschlagen</a></p>
  40. </td>
  41. </tr>
  42. @endforeach
  43. </table>
  44. </section>
  45. @endif
  46. @stop
  47. @section('title')
  48. Neuer Film ~
  49. @stop