wip
This commit is contained in:
1 parent
2734b06350
commit
fbaadcd248
9 files changed
+213
-219
No files matched your search
@@ -2,8 +2,7 @@
|
||||
|
||||
namespace App\Filament\Widgets;
|
||||
|
||||
use App\Filament\Widgets\Data\EventsLoad;
|
||||
use App\Filament\Widgets\Data\EventsLoadAspGoal;
|
||||
use App\Filament\Widgets\Data\LoadEvents;
|
||||
use Filament\Widgets\Concerns\InteractsWithPageFilters;
|
||||
use Filament\Widgets\StatsOverviewWidget;
|
||||
use Filament\Widgets\StatsOverviewWidget\Stat;
|
||||
@@ -12,15 +11,13 @@ class StatsMedianAverage extends StatsOverviewWidget
|
||||
{
|
||||
use InteractsWithPageFilters;
|
||||
|
||||
protected ?string $pollingInterval = null;
|
||||
|
||||
protected function getStats(): array
|
||||
{
|
||||
$filters = $this->filters;
|
||||
|
||||
if ($filters['similar_past_matches'] == 'none') {
|
||||
$data = EventsLoad::load($filters);
|
||||
} else {
|
||||
$data = EventsLoadAspGoal::load($filters);
|
||||
}
|
||||
$data = LoadEvents::load($filters);
|
||||
|
||||
if (! isset($data['datasets'][0])) {
|
||||
return [];
|
||||
|
||||
Reference in new issue
Block a user