Sample widget code which get data(1-5 record) from Wp_Admin panel and display to Homepage(WordPress Custom Theme)

As everyone commented above, you need to explain where you are having problem,

there are a lot of ways to achieve what you want to do,

Option 1 :

Advance Custom Field Plugin:

https://wordpress.org/plugins/advanced-custom-fields/

this can help you to create custom fields at the admin panel and display them at front-end,

please see the plugin manual for further instructions on how it works,

Option 2 :

Define custom Widget Area: check out WordPress manual here is the link:

https://codex.wordpress.org/Widgetizing_Themes

Thanks,