-</div>
-@include('comments/add', ['pageId' => $pageId])
\ No newline at end of file
+
+ <div refs="page-comments@commentContainer" class="comment-container">
+ @foreach($commentTree->get() as $branch)
+ @include('comments.comment-branch', ['branch' => $branch, 'readOnly' => false])
+ @endforeach
+ </div>
+
+ @if(userCan('comment-create-all'))
+ @include('comments.create')
+ @if (!$commentTree->empty())
+ <div refs="page-comments@addButtonContainer" class="text-right">
+ <button type="button"
+ refs="page-comments@add-comment-button"
+ class="button outline">{{ trans('entities.comment_add') }}</button>
+ </div>
+ @endif
+ @endif
+
+ @if(userCan('comment-create-all') || $commentTree->canUpdateAny())
+ @push('body-end')
+ <script src="{{ versioned_asset('libs/tinymce/tinymce.min.js') }}" nonce="{{ $cspNonce }}" defer></script>
+ @include('form.editor-translations')
+ @include('entities.selector-popup')
+ @endpush
+ @endif
+
+</section>
\ No newline at end of file