{{-- Sort toggle --}}

Comments ({{ $this->totalCount }})

@auth
@else @endauth
{{-- Comment list --}}
@foreach ($this->comments as $comment) @endforeach
{{-- Load more button --}} @if ($this->hasMore)
@endif {{-- New comment form - only for authorized users --}} @auth @can('create', \Relaticle\Comments\Config::getCommentModel())
{{-- Mention autocomplete dropdown --}}
@error('newComment')

{{ $message }}

@enderror @if (\Relaticle\Comments\Config::areAttachmentsEnabled())
@if (!empty($attachments))
@foreach ($attachments as $index => $file)
{{ $file->getClientOriginalName() }}
@endforeach
@endif @error('attachments.*')

{{ $message }}

@enderror @endif
@endcan @endauth