@php $depth = $depth ?? 0; $authorName = $comment->user?->name ?? $comment->guest_name ?? '익명'; $canEditComment = auth('web')->check() ? (auth('web')->id() === $comment->user_id || $board->canEditComments(auth('web')->user())) : ! $comment->user_id; $canDeleteComment = auth('web')->check() ? (auth('web')->id() === $comment->user_id || $board->canDeleteComments(auth('web')->user())) : ! $comment->user_id; @endphp