Files
Gw0bm/resources/views/layout5/partials/comments.blade.php
2021-04-16 20:41:48 +00:00

36 lines
990 B
PHP

@if(Auth::check())
@if($video->id == '30186')
@include('partials.thread_closed')
@else
@include('partials.commentform')
@endif
@endif
@if(Auth::check())
<div class="comments hidden-xs">
<div class="commentwrapper">
<?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 …<br />
</div>
</div>
@endif
</div>
</div>
@else
<div class="panel panel-default nocomments">
<div class="panel-body">
<i>Not logged in. Please log in to view comments!</i>
</div>
</div>
@endif