The center screen should show RA7 listed on the I/O chart. Click on the Output box to make the pin an output (if not checked) and make sure Analog and WPU are not checked (click on them to uncheck them).
Change the pin name to D5_LED to make it easier to understand in the code.