I am actually in a very bad situation, I will try to explain as clearly as possible.
I started my internship at this startup company and then following up as a permanent staff last year. I am actually working as a programmer but towards to front end of web design only.
The startup company where am I working has no proper system like having how many annual leave, sick leave or even salary pay slips.
Throughout the whole year as in 2016 until today, I realised I learn only into web responsive. For everyone, its like a simple task, but for me some of the requirements in the web layout they want don't seems to be logical. I try asking my colleague but they can't understand what I mean because I really don't talk normally like other people do.
Each day, my projects were about that until 4 months ago I was suddenly ignored and not even called to meetings or any company trips to discuss proposals and no training.
So one day my first director was in a bad mood and I got a good scolding for not being able to complete it on time. He knew that I was slacking on my job where I kept on my phone and scroll videos and yes I did that simply because I couldn't find anymore references to read and I just don't know what to do or react or even to whom to turn.
Then, my second director came to me and spoke in front of everyone. I felt ashamed because they joke around about me until they crossed the line.
To me it was enough. Yes, if I said that, you could judge, there's no privacy or such stuff except certain project clients only. The root of my problem was myself, I simply couldn't find anymore motivation or rather an imburse to continue my job because I couldn't solve anything, I couldn't focus on things easily.
Is this the time where I should leave the company? I did research on this forum, lots of similar situations but not as mine.
ADDITIONAL NOTE : My close friend who is now working with me has a better position in the company than me simply because he has better performance than me .It not something of a jealousy but rather their treatment towards him was a bit better than mine.For instance ,a casual talk,they(directors) always refer him or joke with him but treatment to me its like a transparent glass.
How it happen is when the directors hired a new colleague few months ago who somehow show her skills better than me and asked me to mentor her, my reaction was like (is this a joke or something) i ask for assistance because my friend do not want to do front-end job because hes more capable at the backend programming. I still got a lot to learn but this new colleague somehow turn to my directors instead and change to another job scope which is designing,i dont know whats going on but things doesnt seem right for now.i know maybe its my slacking problem too or what.
In terms of co-workers ,they didn't do really treat me bad ,all of them was like family ,we simply roast each other with harsh joke that we could take it,i refer they (directors) instead.
UPDATE: thanks for the advices and also certain situation quite helping me .It comes to the end that we had an argument between me and my 1st director.Obviously it was me who is in the fault ,nonetheless i have decide to look for a new job and resign after finding it .