This can be translated in active form. Alternate translation: "Everyone will hate you" or "All people will hate you" (See: [[rc://en/ta/man/jit/figs-activepassive]])
Here "name" refers to the entire person. Alternate translation: "because of me" or "because you trust in me" (See: [[rc://en/ta/man/jit/figs-metonymy]])
It is not clear whether the "end" means when a person dies, when the persecution ends, or the end of the age when God shows himself to be king. The main point is that they endure as long as necessary.