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

38 lines
1.1 KiB
PHP
Executable File

@if(null === $banner)
@else
<div id="motd" class="panel panel-info hidden-xs">
<a href="{{ $banner->url }}" target="_blank" rel="noopener">
<div style="height: 50px; background-image:url('{{ $banner->image }}')" class="panel-body motd">
</div>
</a>
</div>
@endif
@if(Auth::check())
@if($video->id == '30186')
@include('partials.thread_closed')
@else
@include('partials.commentform')
@endif
@endif
<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>