ParseError thrown
syntax error, unexpected 'endforeach' (T_ENDFOREACH)