Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
<?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',
        ];
    }
}