Rapport-Laravel/app/Widgets/MilestoneTeamLeaderboard.php

28 lines
582 B
PHP

<?php
namespace App\Widgets;
use Arrilot\Widgets\AbstractWidget;
class MilestoneTeamLeaderboard extends AbstractWidget
{
/**
* The configuration array.
*
* @var array
*/
protected $config = [];
/**
* Treat this method as a controller action.
* Return view() or other content to display.
*/
public function run()
{
return view('widgets.milestone_team_leaderboard', [
'title' => $this->config['title'] ?? 'Leaderboard',
'widgetId' => $this->config['id'] ?? uniqid('mlb_'),
]);
}
}