How to create this kind of sub-menu in new line?

I think, your question is similar to mine. I tried a similar thing earlier. Can check this StackOverflow thread started and answered by me.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)