{{-- Avatar --}}
@if($comment->isDeletedByModerator()) Deleted comment @else {{ $comment->user->name }} @endif
{{-- Content --}}
{{-- Header --}}
@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 {{-- Badges --}} @if($comment->user->hasRole(\App\Enums\UserRole::ADMINISTRATOR)) Admin @endif @if($comment->user->hasRole(\App\Enums\UserRole::MODERATOR)) Moderator @endif @if($comment->user->hasRole(\App\Enums\UserRole::SUPPORTER)) Supporter @endif
{{-- Body --}}
@if($comment->isDeletedByModerator())

Deleted by moderation.

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

{{ $message }}

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

{{ $message }}

@enderror
@endif {{-- Replies --}} @if ($comment->children->count())
@foreach ($comment->children as $child) @endforeach
@endif