|
@@ -3,6 +3,18 @@
|
|
|
@section('content')
|
|
|
<div class="row">
|
|
|
<div class="col-md-6">
|
|
|
+ <div class="panel panel-primary">
|
|
|
+ <div class="panel-heading">Nächster Film</div>
|
|
|
+ <div class="panel-body">
|
|
|
+ <img src="{{$images["next"]}}" class="pull-left thumbnail" style="max-height: 100px; margin-right: 15px;">
|
|
|
+ <h4>{{is_object($nextfilm) ? $nextfilm->name . " <small><i>(" . $nextfilm->besitzer->name . ")</i></small>" : "Steht nicht fest"}}</h4>
|
|
|
+ @if(is_object($nextfilm)) {{ link_to_route('film', "Filmdetails", array($nextfilm->id), array('class' => 'btn btn-info btn-xs'))}}
|
|
|
+ @endif
|
|
|
+ @if(is_object($nextfilm) && !is_null(Auth::user()) && Auth::user()->admin) <a href='{{ url('mark-read/' . $nextfilm->id) }}' class='btn btn-success btn-xs'>Gesehen</a>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div class="panel panel-primary">
|
|
|
<div class="panel-heading">Meistgewünschter Film</div>
|
|
|
<div class="panel-body">
|
|
@@ -59,37 +71,40 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div class="panel-group" id="accordion">
|
|
|
- @foreach ($news as $new)
|
|
|
- <div class="panel panel-info">
|
|
|
- <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>
|
|
|
- <span class="badge">
|
|
|
- <img class="img-circle" src="{{ $new->ersteller->getAvatar() }}" width="16"> {{$new->ersteller->name}}
|
|
|
- </span> - {{\Carbon\Carbon::parse($new->updated_at)->format('d.m.Y')}}</small>
|
|
|
- </h4>
|
|
|
- </div>
|
|
|
- <div id="news{{$new->id}}" class="panel-collapse collapse {{$new === $news[0] ? "in" : ""}}">
|
|
|
- <div class="panel-body">{{nl2br(htmlentities($new->body))}}</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div class="panel panel-danger">
|
|
|
+ <div class="panel-heading">Gesehene Filme</div>
|
|
|
+ <div class="panel-body">
|
|
|
+ <?php $topfilm = $gesehen->shift(); ?>
|
|
|
+ <img src="{{$images["alt"]}}" class="pull-left thumbnail" style="max-height: 100px; margin-right: 15px;">
|
|
|
+ <h4>{{$topfilm->name}}
|
|
|
+ <small><span class="badge">
|
|
|
+ <img class="img-circle" src="{{ $topfilm->besitzer->getAvatar() }}" width="20"> {{$topfilm->besitzer->name}}
|
|
|
+ </span></small></h4>
|
|
|
+ <p>Bewertung:
|
|
|
+ @if($topfilm->getBewertung() > 0)
|
|
|
+ <span class="label label-{{$labels[round($topfilm->getBewertung())]}}">{{$topfilm->getBewertung()}}</span>
|
|
|
+ @else
|
|
|
+ —
|
|
|
+ @endif
|
|
|
+ </p>
|
|
|
+ <p>{{ link_to_route('film', "Filmdetails", array($topfilm->id), array('class' => 'btn btn-info btn-xs'))}}</p>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="list-group">
|
|
|
+ @foreach ($gesehen as $film)
|
|
|
+ <a href="{{ route('film', array($film->id)); }}" class="list-group-item">{{$film->name}} <small><span class="badge">
|
|
|
+ <img class="img-circle" src="{{ $film->besitzer->getAvatar() }}" width="16"> {{$film->besitzer->name}}
|
|
|
+ </span></small></a>
|
|
|
@endforeach
|
|
|
+ <i>{{ link_to('gesehen', 'Mehr...', array('class' => 'list-group-item')); }}</i>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
<div class="col-md-6">
|
|
|
- <div class="panel panel-primary">
|
|
|
- <div class="panel-heading">Nächster Film</div>
|
|
|
- <div class="panel-body">
|
|
|
- <img src="{{$images["next"]}}" class="pull-left thumbnail" style="max-height: 100px; margin-right: 15px;">
|
|
|
- <h4>{{is_object($nextfilm) ? $nextfilm->name . " <small><i>(" . $nextfilm->besitzer->name . ")</i></small>" : "Steht nicht fest"}}</h4>
|
|
|
- @if(is_object($nextfilm)) {{ link_to_route('film', "Filmdetails", array($nextfilm->id), array('class' => 'btn btn-info btn-xs'))}}
|
|
|
- @endif
|
|
|
- @if(is_object($nextfilm) && !is_null(Auth::user()) && Auth::user()->admin) <a href='{{ url('mark-read/' . $nextfilm->id) }}' class='btn btn-success btn-xs'>Gesehen</a>
|
|
|
- @endif
|
|
|
- </div>
|
|
|
+ <div class="jumbotron">
|
|
|
+ <h1>Dumbo</h1>
|
|
|
+ <p>Suchst du noch oder guckst du schon?</p>
|
|
|
</div>
|
|
|
|
|
|
<div class="panel panel-default">
|
|
@@ -113,35 +128,26 @@
|
|
|
@endforeach
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
- <div class="panel panel-danger">
|
|
|
- <div class="panel-heading">Gesehene Filme</div>
|
|
|
- <div class="panel-body">
|
|
|
- <?php $topfilm = $gesehen->shift(); ?>
|
|
|
- <img src="{{$images["alt"]}}" class="pull-left thumbnail" style="max-height: 100px; margin-right: 15px;">
|
|
|
- <h4>{{$topfilm->name}}
|
|
|
- <small><span class="badge">
|
|
|
- <img class="img-circle" src="{{ $topfilm->besitzer->getAvatar() }}" width="20"> {{$topfilm->besitzer->name}}
|
|
|
- </span></small></h4>
|
|
|
- <p>Bewertung:
|
|
|
- @if($topfilm->getBewertung() > 0)
|
|
|
- <span class="label label-{{$labels[round($topfilm->getBewertung())]}}">{{$topfilm->getBewertung()}}</span>
|
|
|
- @else
|
|
|
- —
|
|
|
- @endif
|
|
|
- </p>
|
|
|
- <p>{{ link_to_route('film', "Filmdetails", array($topfilm->id), array('class' => 'btn btn-info btn-xs'))}}</p>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="list-group">
|
|
|
- @foreach ($gesehen as $film)
|
|
|
- <a href="{{ route('film', array($film->id)); }}" class="list-group-item">{{$film->name}} <small><span class="badge">
|
|
|
- <img class="img-circle" src="{{ $film->besitzer->getAvatar() }}" width="16"> {{$film->besitzer->name}}
|
|
|
- </span></small></a>
|
|
|
- @endforeach
|
|
|
- <i>{{ link_to('gesehen', 'Mehr...', array('class' => 'list-group-item')); }}</i>
|
|
|
- </div>
|
|
|
+ <div class="panel-group" id="accordion">
|
|
|
+ @foreach ($news as $new)
|
|
|
+ <div class="panel panel-info">
|
|
|
+ <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>
|
|
|
+ <span class="badge">
|
|
|
+ <img class="img-circle" src="{{ $new->ersteller->getAvatar() }}" width="16"> {{$new->ersteller->name}}
|
|
|
+ </span> - {{\Carbon\Carbon::parse($new->updated_at)->format('d.m.Y')}}</small>
|
|
|
+ </h4>
|
|
|
+ </div>
|
|
|
+ <div id="news{{$new->id}}" class="panel-collapse collapse {{$new === $news[0] ? "in" : ""}}">
|
|
|
+ <div class="panel-body">{{nl2br(htmlentities($new->body))}}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ @endforeach
|
|
|
</div>
|
|
|
+
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|