32 lines
898 B
PHP
32 lines
898 B
PHP
<?php
|
|
|
|
namespace App\Widgets;
|
|
|
|
use Arrilot\Widgets\AbstractWidget;
|
|
use App\Http\Requests\LambdaRequest;
|
|
|
|
class CoachingToolTracker 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()
|
|
{
|
|
// parse_str($this->config['parameters'], $params);
|
|
// $response = LambdaRequest::signedrequest('post', 'metric', 'metric_report/view', $params );
|
|
// echo '<pre>'; print_r($response); exit;
|
|
|
|
$response = LambdaRequest::signedrequest('get', 'competition', 'contest/list' );
|
|
//echo '<pre>'; print_r($response); exit;
|
|
return view('widgets.coaching_tool_tracker', ['title' => $this->config['title'], 'schedules' => $response->data->items] );
|
|
}
|
|
}
|