Added getBookingDetails function to de duplicate when rendering view and getting detail for email template