Confused about a guy and ruined friendship

There is this guy in my year and over the past few months we began to form a friendship. He is one of the really funny loud guys but can also be very caring and considerate. He jokingly flirts with basically every girl he talks to but as I started hanging out with him more he seemed to be flirting with me more than the other girls. I never really noticed this until my friends pointed it out and started to tease me about it. Any opportunity he had to tease me about something he would take. I think at this point he might have liked me and I think I might of liked him too. ( I'm not really sure/I'm in denial)

Then one day he was sitting alone and seemed very down about something so I went and talked to him. He started talking about how he was depressed and that he was "going to hell anyway so why not speed up the process". This really scared me and I was worried that he might actually do something. After thinking about it long and hard I decided to go to the health and wellbeing head at our school and tell him my concerns.

As a result of this he had to go to therapy and his parents were obviously informed. The next time i saw him i went and told him that it was me that went and talked to the health and wellbeing head. I had to do this because I felt morally obligated. I had prepared this whole speech, hoping that he wouldn't hate me. He said that he understood what I did and didn't hate me but I couldn't tell if he was lying or not. One thing I could see was that I had a really hurt him and I felt terrible for this because for some reason I really care about him. He shut himself of from me and everyone for weeks.

Suddenly he started acted like he did before all this towards everyone except for me. He was acting very hesitant when it came to even talking to me and he definitely doesn't trust me (I don't blame him). His parents took him out of therapy but he still had moments when I would find him all alone and sad. I would always sit next to him and try to comfort him but it just isn't

the same between us anymore it's just awkward now. I don't think he has realised how much our friendship has changed, he is oblivious.

I feel like I need to be near him. At school I can't stop looking in his direction and sometimes I catch him looking at me. The problem is that I know he is a very forgiving person and I don't know if I can accept his forgiveness. This is because I don't want to hurt him again so I feel like if I don't let him forgive me then I won't get another chance to betray him. He also doesn't trust me and I think that one of the most important factors of a friendship is trust and if he can't trust me I can't trust him. I feel like I am overanalysing but I need to make sure that whatever I do about this situation is right.

Please comment and answer some of my questions.

Did I do the right thing in the first place? Should I feel bad about ruining our relationship by telling on him? Do you think that there is a chance he could still trust me? Should I just give up and try to forget about him? Do you think he might still want to be my friend or something more?should I put in more of an effort to rebuild our friendship?

Please help me with all of this I am so confused!!!