@if($showAvatar) @endif
@if($url = $comment->commentatorProperties()?->url) {{ $comment->commentatorProperties()->name }} @else {{ $comment->commentatorProperties()?->name ?? __('comments::comments.guest') }} @endif @if($writable) @can('update', $comment) @if ($isEditing) {{__('comments::comments.cancel')}} @else {{__('comments::comments.edit')}} @endif @endcan @can('delete', $comment) {{__('comments::comments.delete')}}

{{ __('comments::comments.delete_confirmation_text') }}

{{ __('comments::comments.delete') }}
@endcan @endif @include('comments::extraCommentHeaderActions')
@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 @php $text = $comment->text; $text = preg_replace('//i', ' ', $text); $text = preg_replace('/<\/?p[^>]*>/', '', $text); $text = '

' . trim($text) . '

'; @endphp
{{-- {!! $comment->text !!} --}} {!! $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