Files
Gw0bm/resources/views/layout4/partials/comments.blade.php

21 lines
682 B
PHP

@if(Auth::check())
<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="card">
<div class="nocommentjs">
No comments yet! Be the first one to comment!<br />
</div>
</div>
@endif
</div>
@endif