heading = StatisticType::get($this->filters); if (! $this->filters['league_id']) { return []; } if (! $this->filters['team_id']) { // Notification::make() // ->title('Team is missing') // ->warning() // ->send(); return []; } // Log::info($this->filters); // $tmp = LoadEvents::load($this->filters); // Log::info($tmp); $data = [ 'datasets' => [ [ 'label' => 'test', 'data' => [0, 10, 5, 2, 21, 32, 45, 74, 65, 45, 77, 89], 'borderColor' => '#00c950', 'backgroundColor' => '#00c950', ], ], 'labels' => ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], ]; return $data; } protected function getType(): string { return 'line'; } }