I have 2 layout first one takes input and based on query show give output as shown in pic2. However I am not able to introduce these layouts dynamically.
Each dynamic layout must have a unique id so that when "BOOK" is clicked specific ticket is booked.