neuester Stand
This commit is contained in:
59
app/views/new.blade.php
Normal file
59
app/views/new.blade.php
Normal file
@@ -0,0 +1,59 @@
|
||||
@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
|
Reference in New Issue
Block a user