Repository URL to install this package:
|
Version:
1.0.0 ▾
|
<?php namespace Modules\Dashboard\Widgets;
use Modules\Core\Foundation\Widgets\BaseWidget;
class TesteWidget extends BaseWidget
{
/**
* @var CategoryRepository
*/
private $category;
public function __construct()
{
}
/**
* Get the widget name
* @return string
*/
protected function name()
{
return 'CategoriesWidget';
}
/**
* Get the widget view
* @return string
*/
protected function view()
{
return 'dashboard::admin.widgets.chart-box';
}
/**
* Get the widget data to send to the view
* @return string
*/
protected function data()
{
return ['categoryCount' => 5];
}
/**
* Get the widget type
* @return string
*/
protected function options()
{
return [
'width' => '5',
'height' => '3',
'x' => '0',
];
}
}