<?php namespace App\Backend\Widgets\{{widgetNamespace}};

use Darryldecode\Backend\Base\Registrar\WidgetInterface;

class Widget implements WidgetInterface
{
    /**
     * get the widget information
     *
     * @return array
     */
    public function getWidgetInfo()
    {
        return array(
            'name' => '{{widgetTitle}}',
            'description' => '{{widgetDescription}}'
        );
    }

    /**
     * get the widget template
     *
     * @return string
     */
    public function getWidgetTemplate()
    {
        return __DIR__.'/widget-view.blade.php';
    }

    /**
     * the widget position
     *
     * @return int
     */
    public function getWidgetPosition()
    {
        return 5;
    }

    /**
     * determine if widget is needed to be loaded or not
     *
     * @return bool
     */
    public function isWidgetActive()
    {
        return true;
    }
}

return new Widget();