foregates