@if (auth()->user()->can('create', \Parallax\FilamentComments\Models\FilamentComment::class))
{{ $this->form }} {{ __('filament-comments::filament-comments.comments.add') }}
@endif @if (count($comments)) @foreach ($comments as $comment)
@if (config('filament-comments.display_avatars')) @endif
{{ $comment->user[config('filament-comments.user_name_attribute')] }}
{{ $comment->created_at->diffForHumans() }}
@if (auth()->user()->can('delete', $comment))
@endif
@if(config('filament-comments.editor') === 'markdown') {{ Str::of($comment->comment)->markdown()->toHtmlString() }} @else {{ Str::of($comment->comment)->toHtmlString() }} @endif
@endforeach
@else
{{ __('filament-comments::filament-comments.comments.empty') }}
@endif