wall.blade.php 1.1 KB
@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