MORE LAYOUTgit add public/mobile public/nojs/ public/shoop.png resources/views/layout1/apply.blade.php resources/views/layout1/nojs.blade.php resources/views/layout1/tos.blade.php resources/views/layout4/ resources/views/layout5!
This commit is contained in:
31
resources/views/layout5/partials/comments.blade.php
Normal file
31
resources/views/layout5/partials/comments.blade.php
Normal file
@@ -0,0 +1,31 @@
|
||||
@if(Auth::check())
|
||||
@include('partials.commentform')
|
||||
@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
|
Reference in New Issue
Block a user