wall.blade.php
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@extends('layouts.profile')
@section('title', 'Profile Wall')
@section('profile')
@if ($isVisitorFriend || $isVisitorProfile || $user() && $user()->isModerator())
@compose('comments/commenter', 'Profile\WallCommenterComposer', $userId, $user())
@endif
<div id="comments" class="full-width">
<div class="comment-list">
<div class="all-comments">
@if (isset($theComment))
@include('comments/comment', ['comment' => $theComment])
@endif
@if (isset($comments))
@foreach ($comments as $comment)
@include('comments/comment', [
'disReply' => !($isVisitorFriend || $isVisitorProfile || ($user() && $user()->isModerator())),
'disThumbs' => true,
'disModEdit' => true,
'enRemove' => $isVisitorProfile
])
@endforeach
@endif
</div>
@if ($isVisitorProfile || ($user() && $user()->getRole() >= 20))
@include('comments/removeWizard')
@endif
@if (isset($jsonData))
<script type="text/json" id="comments-json-data">{!! $jsonData !!}</script>
@endif
</div>
<div class="load-more-comments">Load More</div>
</div>
@endsection