This commit is contained in:
salam committed 2026-05-30 17:04:31 +02:00
1 parent 4ddf38cd62
commit 2e9a98a4e4
5 files changed
+122 -30

No files matched your search

+15 -14
View File
@@ -50,6 +50,19 @@ class Statistic extends BaseDashboard
return '';
}
protected function getHeaderActions(): array
{
return [
Action::make('collapseAll')
->label('Collapse All Charts')
->icon('heroicon-m-chevron-up')
->color('gray')
->action(function ($record, $livewire) {
$livewire->dispatch('collapse-all-charts');
}),
];
}
public function filtersForm(Schema $schema): Schema
{
return $schema
@@ -238,18 +251,6 @@ class Statistic extends BaseDashboard
];
}
protected function getHeaderWidgets(): array
{
return [
// Events
// ChartEvent::make(),
// ChartEventMoAv::make(),
// Players
// ChartPlayer::make(),
// ChartPlayerMoAv::make(),
];
}
protected function getFooterWidgets(): array
{
return [
@@ -263,8 +264,8 @@ class Statistic extends BaseDashboard
// Players
ChartPlayer::make(),
ChartPlayerMoAv::make(),
// ChartPlayerPerf::make(),
// ChartPlayerPerfMoAv::make(),
ChartPlayerPerf::make(),
ChartPlayerPerfMoAv::make(),
];
}