creating a widget that can be repeated based on a template [closed]

I want to create a widget in my plugin that can repeat the list of users along with some of their information based on the template that I create, just like that template. What I want is just like the listing in jet engine. Please teach me if you know how to define the listing template and call it inside foreach in the widget.