I gave my friend a new laptop to replace a broken one from a few months ago.
That must have been too kind of you. Why would you do such as charitable act as this?
I wanted them to have a new laptop for themselves
It is nice to give people gifts and expect nothing in return. You should not expect others to return the favor if they have a problem.
They should appreciate me. I'm such a nice person.
I'm definitely sure they appreciate all you have done for them! Not just anyone can expend resources to gift something expensive as a laptop. You definitely are very nice, and I hop you can keep that up.