w0bm.com v1.5z FULL.RETARD.BUILD.BUT.STILL.WORKS
This commit is contained in:
27
resources/views/layout2/partials/comments.blade.php
Normal file
27
resources/views/layout2/partials/comments.blade.php
Normal file
@@ -0,0 +1,27 @@
|
||||
@if(Auth::check())
|
||||
<div class="commentOpener">
|
||||
<a class="commentOpenButton" data-toggle="collapse" href="#collapseComments" role="button" aria-expanded="false" aria-controls="collapseComments">
|
||||
See {{ $video->comments()->count() }} comments
|
||||
</a>
|
||||
</div>
|
||||
<div class="collapse" id="collapseComments">
|
||||
<div class=" commentwrapper comments">
|
||||
<?php
|
||||
if($mod = (Auth::check() && Auth::user()->can('delete_comment'))) $comments = $video->comments()->withTrashed()->get();
|
||||
else $comments = $video->comments;
|
||||
?>
|
||||
@if(count($comments) > 0)
|
||||
@foreach($comments as $comment)
|
||||
@include('partials.comment', ['comment' => $comment, 'mod' => $mod])
|
||||
@endforeach
|
||||
@else
|
||||
<div class="panel panel-default nocomments">
|
||||
<div class="panel-body">
|
||||
No comments yet! Be the first one to comment!<br />
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@include('partials.commentform')
|
||||
</div>
|
||||
@endif
|
Reference in New Issue
Block a user