The dashboard is a very important part of the back-end of the CMS. It's the first thing your client will see when he logs into the backend. In asgard, your modules can define a set of widgets that will be displayed on the dashboard. These widgets can be simple counts, tables, or pretty much whatever you want.
Widgets location are saved on a per user basis. Each logged in user with the correct permissions can re-arrange the widgets however he or she prefers.
Creating widgets is very easy and straightforward. A widget is composed of the following parts:
A widget class
A widget view
First you'll have to create a widget class that extends an abstract class: BaseWidget. This BaseWidget class will enforce you to implement the following methods:
name (string): The name of the module. This needs to be on word. You can either choose to use camelCase, snake_case, or whatever you prefer as long as this is one word.
options (array): This is an array of options that your widget can have.
Possible options are:
view (string): Define which view needs to be used for you widget
data (array): Choose what data to send to your view. The array keys will be available in the view, just like a regular view::make.