1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- @extends('hello')
- @section('content')
- <div class="page-header"><h1>Film vorschlagen</h1></div>
- <div class="container">
- {{ Form::open(array('url' => 'neu')) }}
- <div class="input-group">
- <span class="input-group-addon"><span class="glyphicon glyphicon-search"></span></span>
- <input type="search" name="search" class="form-control" placeholder="Filmname...">
- <span class="input-group-btn">
- <button type="submit" value="Suchen" class="btn btn-primary">
- Suchen
- </button>
- </span>
- </div>
- {{ Form::close() }}
- </div>
- <h2>Suchergebnisse</h2>
- <p></p>
- @if(isset($result))
- <section id="results">
- <table class="table">
- <tr>
- <th></th>
- <th>Titel</th>
- <th>Originaltitel</th>
- <th>Veröffentlichung</th>
- <th></th>
- </tr>
- @foreach($result['results'] as $r)
- <tr>
- <td>
- <img src="{{ $tmdb->getImageUrl($r['poster_path'], TMDb::IMAGE_POSTER, 'w92'); }}" class="img-responsive img-thumbnail">
- </td>
- <td>{{ $r['title' ]}}</td>
- <td>{{ $r['original_title']}}</td>
- <td>{{ \Carbon\Carbon::parse($r['release_date'])->format('d.m.Y') }}</td>
- <td>
- <p><a class="btn btn-primary btn-xs" href="http://themoviedb.com/movie/{{$r['id']}}">themoviedb.org</a></p>
- <p><a class="btn btn-default btn-xs" href="{{ url('vorschlag/' . $r['id']) }}">Film vorschlagen</a></p>
- </td>
- </tr>
- @endforeach
- </table>
- </section>
- <pre>{{var_dump($result)}}</pre>
- @endif
- @stop
- @section('title')
- Neuer Film ~
- @stop
|