- @include('comments/comment-reply', ['pageId' => $pageId])
-</div>
\ No newline at end of file
+
+ <div refs="page-comments@commentContainer" class="comment-container">
+ @foreach($page->comments as $comment)
+ @include('comments.comment', ['comment' => $comment])
+ @endforeach
+ </div>
+
+ @if(userCan('comment-create-all'))
+ @include('comments.create')
+
+ @if (count($page->comments) > 0)
+ <div refs="page-comments@addButtonContainer" class="text-right">
+ <button type="button" action="addComment"
+ class="button outline">{{ trans('entities.comment_add') }}</button>
+ </div>
+ @endif
+ @endif
+
+</section>
\ No newline at end of file