I've worked in an IT company as a developer for the last 8 months. During my first project in this company for first 6 months, I was given no work as my manager thought I was not capable enough. I was moved out of that project to another project.
In this project there were many design issues and my lead did not report it to the manager and used to get them fixed at my desk. Due to these issues, the project was delayed and I was seen as responsible for the delay.
I had asked my lead many a times to get the HTML fixed by the design team, but he did not listen. I was asked to stay at work late while a girl from the design team sat at my computer to fix design issues, but I refused. This created problems between me and my technical lead.
Later on when he went on leave, I reported this matter to the manager and other seniors and got it resolved. Now he has come back and has started targeting me for small issues and reporting them to higher management. His behaviour was never good with me but now it has become worse. Also I have not been completing office hours (many people in this company do not complete it) and now I fear it will become an issue.
Please suggest to me what I should do in this situation. I do not understand office politics and I do not know how to play. I think I should resign immediately.