Adding logic to show details
Fixing the template
Fixing PDF template to show lab's data
Changing the remote query
Fixing the code to allow just one row