@if ($comment->trashed())
@elseif ($comment->commenter?->getCommentAvatarUrl())
 }})
@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)
@else
{!! $comment->renderBodyWithMentions() !!}
{{-- Attachments --}}
@if ($comment->attachments->isNotEmpty())
@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)
@endif
{{-- Nested replies --}}
@if ($comment->replies->isNotEmpty())
@foreach ($comment->replies as $reply)
@endforeach
@endif