@if($isEditing) @include('livewire.partials.comment-form',[ 'method'=>'editComment', 'state'=>'editState', 'inputId'=> 'reply-comment', 'inputLabel'=> 'Your Reply', 'button'=>'Edit Comment' ]) @else
{!! gravatar($comment->user->name,$comment->user->avatarurl,'h-9 w-9 rounded-full bg-primary-500 text-xs font-bold flex items-center justify-center text-white') !!}
{{$comment->user->username}} @if($comment->user->account_type == 'admin') @endif
{!! $comment->presenter()->replaceUserMentions($comment->presenter()->markdownBody()) !!}
@auth @if($comment->isParent()) @endif @endauth @can('update',$comment) @endcan @can('destroy',$comment) @endcan
@if($isReplying)
@include('livewire.partials.comment-form',[ 'method'=>'postReply', 'state'=>'replyState', 'inputId'=> 'reply-comment', 'inputLabel'=> 'Your Reply', 'button'=>'Post Reply' ])
@endif @if($comment->children->count()) @endif
@endif @if($hasReplies)
@foreach($comment->children as $child) @endforeach
@endif