Dâi (ได้) has a lot of different uses — understand them by ear here. After the verb it means “can”, as in พูดได้, “I can speak”; in front of the verb it means the thing did happen, or that you got the chance to do it. The same word also gives you “haven’t yet”, “go right ahead”, and the everyday way of asking whether something is allowed, and — as จะได้ halfway through a sentence — “so that”.