{{ $comment->created_by ? $comment->writer->name:'' }}
{{ $comment->created_at->format('Y-m-d H:i') }}
{!! nl2br(e($comment->content))!!}
@auth
@if (auth()->user()->can('delete-comments') or (auth()->user()->id==$comment->created_by and !$comment->childComments->count()))
삭제
@endif
@endauth
@can('create-comments')
답글
@endcan
@if (empty($comment->parent_comment_id) and $comment->childComments->count())
답글 {{ $comment->reply_count }}개 숨기기
@endif
@if ($comment->replies)
@endif