|
@@ -3,13 +3,16 @@
|
|
|
@section('content')
|
|
|
<div class="row">
|
|
|
<div class="col-md-6">
|
|
|
- <div class="panel panel-default">
|
|
|
+ <div class="panel panel-info">
|
|
|
<div class="panel-heading">Meistgewünschter Film</div>
|
|
|
<div class="panel-body">
|
|
|
<img src="{{$image}}" class="pull-left thumbnail" style="max-height: 100px; margin-right: 15px;">
|
|
|
<h4>{{$topfilm->name}}</h4>
|
|
|
<p><span class="glyphicon glyphicon-thumbs-up"></span> {{$topfilm->upvotes}}
|
|
|
<span class="glyphicon glyphicon-thumbs-down"></span> {{$topfilm->downvotes}}</p>
|
|
|
+ @if(!is_null(Auth::user()) && Auth::user()->admin)
|
|
|
+ <a href='{{ url('view-next/' . $topfilm->id) }}' class='btn btn-success btn-xs'>Als nächstes sehen</a>
|
|
|
+ @endif
|
|
|
</div>
|
|
|
|
|
|
<div class="list-group">
|
|
@@ -19,30 +22,31 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="col-md-6">
|
|
|
- <div class="panel-group" id="accordion">
|
|
|
- @foreach ($news as $new)
|
|
|
- <div class="panel panel-warning">
|
|
|
- <div class="panel-heading">
|
|
|
- <h4 class="panel-title">
|
|
|
- <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#news{{$new->id}}">{{$new->headline}}</a>
|
|
|
- <small>{{$new->ersteller->name}} - {{\Carbon\Carbon::parse($new->updated_at)->format('d.m.Y')}}</small>
|
|
|
- </h5>
|
|
|
- </div>
|
|
|
- <div id="news{{$new->id}}" class="panel-collapse collapse">
|
|
|
- <div class="panel-body">{{nl2br(htmlentities($new->body))}}</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- @endforeach
|
|
|
+ <div class="panel panel-primary">
|
|
|
+ <div class="panel-heading">Nächster Film</div>
|
|
|
+ <div class="panel-body">
|
|
|
+ <img src="{{$nimage}}" class="pull-left thumbnail" style="max-height: 100px; margin-right: 15px;">
|
|
|
+ <h4>{{is_object($nextfilm) ? $nextfilm->name : "Steht nicht fest"}}</h4>
|
|
|
+ @if(is_object($nextfilm)) <a href='{{ url('mark-read/' . $nextfilm->id) }}' class='btn btn-success btn-xs'>Gesehen</a>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+
|
|
|
+ @if(is_object($nextfilm))
|
|
|
+ <div class="list-group">
|
|
|
+ {{ link_to_route('film', "Filmdetails", array($nextfilm->id), array('class' => 'list-group-item'))}}
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
<div class="col-md-6">
|
|
|
<div class="panel panel-success">
|
|
|
<div class="panel-heading">Neue Vorschläge</div>
|
|
|
- <div class="panel-body"><p>Die neuesten Vorschläge für den nächsten Filmabend. Klicke einen der Vorschläge an, um Filmdetails zu sehen und darüber abzustimmen.</p></div>
|
|
|
-
|
|
|
+
|
|
|
<div class="list-group">
|
|
|
@foreach ($vorgeschlagen as $film)
|
|
|
{{ link_to_route('film', $film->name, array($film->id), array('class' => 'list-group-item'))}}
|
|
@@ -51,10 +55,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-md-6">
|
|
|
- <div class="panel panel-primary">
|
|
|
+ <div class="panel panel-danger">
|
|
|
<div class="panel-heading">Gesehene Filme</div>
|
|
|
- <div class="panel-body"><p>Die Filme, die wir kürzlich gesehen haben. Klicke einen der Titel an, um Kommentare und Filmdetails sowie ein etwaiges Abstimmungsergebnis zu sehen.</p></div>
|
|
|
-
|
|
|
+
|
|
|
<div class="list-group">
|
|
|
@foreach ($gesehen as $film)
|
|
|
{{ link_to_route('film', $film->name, array($film->id), array('class' => 'list-group-item'))}}
|
|
@@ -63,4 +66,42 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+<div class="row">
|
|
|
+ <div class="col-md-6">
|
|
|
+ <div class="panel-group" id="accordion">
|
|
|
+ @foreach ($news as $new)
|
|
|
+ <div class="panel panel-warning">
|
|
|
+ <div class="panel-heading">
|
|
|
+ <h4 class="panel-title">
|
|
|
+ <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#news{{$new->id}}">{{$new->headline}}</a>
|
|
|
+ <small>{{$new->ersteller->name}} - {{\Carbon\Carbon::parse($new->updated_at)->format('d.m.Y')}}</small>
|
|
|
+ </h5>
|
|
|
+ </div>
|
|
|
+ <div id="news{{$new->id}}" class="panel-collapse collapse">
|
|
|
+ <div class="panel-body">{{nl2br(htmlentities($new->body))}}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ @endforeach
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-md-6">
|
|
|
+ <div class="panel panel-default">
|
|
|
+ <div class="panel-heading">Letzte Kommentare</div>
|
|
|
+
|
|
|
+ <div class="list-group">
|
|
|
+ @foreach ($kommentare as $kommentar)
|
|
|
+ <a href="{{ url("film/" . $kommentar->film) }}" class="list-group-item">
|
|
|
+ <h6 class='list-group-item-heading'>{{$kommentar->autor->name}}
|
|
|
+ <small>in {{ $kommentar->objekt->name }}</small>
|
|
|
+ </h6>
|
|
|
+ <p class='list-group-item-text'>
|
|
|
+ {{ substr($kommentar->text, 0, 55)}}<?php if(strlen($kommentar->text) > 55) echo "..." ?>
|
|
|
+ </p>
|
|
|
+ </a>
|
|
|
+ @endforeach
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+
|
|
|
@stop
|