In my high school classes I like to limit trips to the bathroom. This worksheet includes 6 restroom passes. Each student gets the FULL page copy at the beginning of the semester. There is a spot for students to write in their name and time. There is also a blank space for the teacher to STAMP with a unique stamp to identify it as an approved pass.
You will need to change the teacher name to yours and you may modify the restrictions I listed.