{{-- Avatar --}}
@if ($comment->trashed())
@elseif ($comment->commenter?->getCommentAvatarUrl()) {{ $comment->commenter->getCommentDisplayName() }} @else
{{ str($comment->commenter?->getCommentDisplayName() ?? '?')->substr(0, 1)->upper() }}
@endif
{{-- Deleted placeholder --}} @if ($comment->trashed())

This comment has been deleted

@else {{-- Header: name + timestamp --}}
{{ $comment->commenter?->getCommentDisplayName() ?? 'Unknown' }} {{ $comment->created_at->diffForHumans() }} @if ($comment->isEdited()) (edited) @endif
{{-- Body or edit form --}} @if ($isEditing)
{{ $this->editForm }}
@else
{!! $comment->renderBodyWithMentions() !!}
{{-- Attachments --}} @if ($comment->attachments->isNotEmpty())
@foreach ($comment->attachments as $attachment) @if ($attachment->isImage()) {{ $attachment->original_name }} @else {{ $attachment->original_name }} ({{ $attachment->formattedSize() }}) @endif @endforeach
@endif {{-- Reactions --}} @endif {{-- Actions: Reply, Edit, Delete --}}
@auth @if ($comment->canReply()) @can('reply', $comment) @endcan @endif @can('update', $comment) @endcan @can('delete', $comment) @endcan @endauth
@endif {{-- Reply form --}} @if ($isReplying)
{{ $this->replyForm }} @if (!empty($replyAttachments))
@foreach ($replyAttachments as $index => $file)
{{ $file->getClientOriginalName() }}
@endforeach
@error('replyAttachments.*')

{{ $message }}

@enderror

@endif
@if (\Relaticle\Comments\CommentsConfig::areAttachmentsEnabled()) @endif
@endif {{-- Nested replies --}} @if ($comment->relationLoaded('replies') && $comment->replies->isNotEmpty())
@foreach ($comment->replies as $reply) @endforeach
@endif