Created a php block at the top to create an array and foreach loop