Rapport-Laravel/app/Widgets/VivaCompatitionPointsTable.php

29 lines
694 B
PHP

<?php
namespace App\Widgets;
use Arrilot\Widgets\AbstractWidget;
use App\Http\Requests\LambdaRequest;
class VivaCompatitionPointsTable 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()
{
//
$response = LambdaRequest::signedrequest('get', 'ums', 'team/list' );
//echo '<pre>'; print_r($response); exit;
return view('widgets.viva_compatition_points_table', ['title' => $this->config['title'], 'teams' => $response->data->items ]);
}
}