statistico players wip
This commit is contained in:
1 parent
314ab7885b
commit
5010e7ac02
12 files changed
+75
-54
No files matched your search
@@ -3,11 +3,11 @@
|
||||
namespace App\Filament\Pages;
|
||||
|
||||
use App\Actions\LoadStatisticFixturesLeaguesOptions;
|
||||
use App\Filament\Widgets\MedianAverage;
|
||||
use App\Filament\Widgets\MovingAverageChart;
|
||||
use App\Filament\Widgets\ChartMovingAverageEvent;
|
||||
use App\Filament\Widgets\ChartPunctualEvent;
|
||||
use App\Filament\Widgets\MovingAverageChartPlayer;
|
||||
use App\Filament\Widgets\PunctualChart;
|
||||
use App\Filament\Widgets\PunctualChartPlayer;
|
||||
use App\Filament\Widgets\StatsMedianAverage;
|
||||
use App\Models\Element;
|
||||
use App\Models\StatisticFixtures;
|
||||
use App\Models\StatistikoDetail;
|
||||
@@ -32,6 +32,11 @@ class Statistic extends BaseDashboard
|
||||
|
||||
protected static ?string $title = 'Statistic';
|
||||
|
||||
protected int|string|array $columnSpan = [
|
||||
'md' => 2,
|
||||
'xl' => 3,
|
||||
];
|
||||
|
||||
public function getHeading(): string|Htmlable|null
|
||||
{
|
||||
return '';
|
||||
@@ -41,7 +46,12 @@ class Statistic extends BaseDashboard
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
Grid::make()
|
||||
Grid::make([
|
||||
'default' => 2,
|
||||
'sm' => 2,
|
||||
'md' => 3,
|
||||
'lg' => 4,
|
||||
])
|
||||
->schema([
|
||||
Select::make('league_id')
|
||||
->prefixIcon('phosphor-trophy')
|
||||
@@ -106,7 +116,12 @@ class Statistic extends BaseDashboard
|
||||
),
|
||||
])->columns(5)
|
||||
->columnSpanFull(),
|
||||
Grid::make()
|
||||
Grid::make([
|
||||
'default' => 2,
|
||||
'sm' => 2,
|
||||
'md' => 3,
|
||||
'lg' => 4,
|
||||
])
|
||||
->schema([
|
||||
Select::make('tm_player_id')
|
||||
->label('Player')
|
||||
@@ -186,14 +201,24 @@ class Statistic extends BaseDashboard
|
||||
]);
|
||||
}
|
||||
|
||||
public function getFooterWidgetsColumns(): int|array
|
||||
{
|
||||
return [
|
||||
'default' => 1,
|
||||
'sm' => 2,
|
||||
'lg' => 3,
|
||||
'xl' => 4,
|
||||
];
|
||||
}
|
||||
|
||||
protected function getFooterWidgets(): array
|
||||
{
|
||||
return [
|
||||
MedianAverage::make(),
|
||||
PunctualChart::make(),
|
||||
MovingAverageChart::make(),
|
||||
StatsMedianAverage::make(),
|
||||
ChartPunctualEvent::make(),
|
||||
ChartMovingAverageEvent::make(),
|
||||
PunctualChartPlayer::make(),
|
||||
// MovingAverageChartPlayer::make(),
|
||||
MovingAverageChartPlayer::make(),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user