@php use Spatie\Comments\Support\Config; @endphp
@if($showAvatar) @endif
@if($url = $comment->commentatorProperties()?->url) {{ $comment->commentatorProperties()->name }} @else {{ $comment->commentatorProperties()?->name ?? __('comments::comments.guest') }} @endif
@if($comment->isPending())
{{__('comments::comments.awaits_approval')}} @can('reject', $comment) @endcan @can('approve', $comment) @endcan
@endif @if($isEditing)
@error('editText')

{{ $message }}

@enderror {{ __('comments::comments.edit_comment') }} {{ __('comments::comments.cancel') }}
@else
{!! $comment->text !!}
@if($showReactions) @if($writable || $comment->reactions->summary()->isNotEmpty())
@foreach($comment->reactions->summary() as $summary)
$summary['commentator_reacted']]) > {{ $summary['reaction'] }} {{ $summary['count'] }}
@endforeach @if($writable)
@can('react', $comment)
@foreach(Config::allowedReactions() as $reaction) @php $commentatorReacted = ! is_bool(array_search( $reaction, array_column($comment->reactions->toArray(), 'reaction'), )); @endphp @endforeach
@endcan
@endif
@endif @endif @endif
@if($showReplies && $comment->isTopLevel())
@if($this->newestFirst) @if(auth()->check() || Config::allowAnonymousComments()) @include('comments::livewire.partials.replyTo') @endif @endif @foreach ($comment->nestedComments as $nestedComment) @continue (! \Illuminate\Support\Facades\Gate::check('see', $nestedComment)) @endforeach @if(! $this->newestFirst) @if(auth()->check() || Config::allowAnonymousComments()) @include('comments::livewire.partials.replyTo') @endif @endif
@endif