What time can I pray salatul layl. Also do I have to sleep before praying it, or can I stay up at night to pray it ?

Best time is to pray before Fajr but for one if it is hard then can pray at mid night or before they go to bed.