@if($comment->isDeletedByModerator()) Deleted comment @else {{ $comment->user->name }} @endif
@if($comment->isDeletedByModerator()) @if (Auth::check() && (Auth::user()->hasRole(\App\Enums\UserRole::ADMINISTRATOR) || Auth::user()->hasRole(\App\Enums\UserRole::MODERATOR)))

Deleted ({{ $comment->user->name }})

@else

Deleted

@endif @else

{{ $comment->user->name }}

@endif @if($comment->user->hasRole(\App\Enums\UserRole::ADMINISTRATOR)) @endif @if($comment->user->hasRole(\App\Enums\UserRole::MODERATOR)) Moderator @endif @if($comment->user->hasRole(\App\Enums\UserRole::SUPPORTER)) @endif
@if($comment->isDeletedByModerator())
Deleted by moderation.
@if (Auth::check() && (Auth::user()->hasRole(\App\Enums\UserRole::ADMINISTRATOR) || Auth::user()->hasRole(\App\Enums\UserRole::MODERATOR)))
Original comment: {!! $comment->presenter()->markdownBody() !!}
@endif @else @if ($isEditing)
@error('editState.body')

{{ $message }}

@enderror
@else
{!! $comment->presenter()->markdownBody() !!}
@endif @endif
{{ $comment->presenter()->relativeCreatedAt() }} @guest {{ $comment->likeCount() }} @endguest @auth @endauth @auth @if ($comment->depth() < 2) @endif @can ('update', $comment) @endcan @can ('destroy', $comment) @endcan @endauth
@if ($isReplying)
@error('replyState.body')

{{ $message }}

@enderror
@endif @foreach ($comment->children as $child) @endforeach