Regarding asking for the salary for the days worked in a company before resignation.

I started working at a new company as a fresher on December 6, 2023. It was my first job. During the interview process, they stated that I would be on a 3-month probationary period and, based on my performance, they would consider hiring me for a longer period. Upon joining, I didn't receive a written offer or appointment letter. All communication was verbal. After a month, I decided to resign due to some personal issues. They paid me for the month of December. However, they told me that I couldn't resign because I had agreed to the contract. I hadn't signed any agreements, and they hadn't mentioned their policies during the interview, such as a notice period. They only spoke about commitments. When I informed them of my resignation on January 15th, they asked me to work remotely on weekends (Friday and Saturday) so that they could find a new candidate. I agreed to this. However, after three days of remote work, I couldn't continue due to some issues. I informed them that I would be resigning completely on February 1st. They informed me that they would pay me for the working hours. On February 10th, they called and asked for the social media information of the company, since I worked as a social media marketer there. They mentioned that they had hired a new worker and would pay me for the working days. When I inquired about my salary, they asked me to wait, and I waited for two months. Upon asking again in March, they told me that they couldn't give me my salary because I had violated their policies by talking about their notice period, which they hadn't mentioned to me. They also hadn't informed me about any policies, and I hadn't signed any documents about them when I joined. They are now claiming that I agreed to work for them for a year, which is not true. I am unsure what to do and whether I can receive payment for the 18 days that I worked in January. Who is legally correct in this situation? Please advise.