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

@@ -22,6 +22,8 @@ class ImportEvents
$row = array_values($row);
dd($row);
/*
0 => 14082828
1 => 1
+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(),
];
}
+2
View File
@@ -12,6 +12,8 @@ class ChartEvent extends ChartWidget
{
use InteractsWithPageFilters;
// protected string $view = 'filament.widgets.custom-chart-widget';
protected ?string $heading = 'Events';
protected ?string $pollingInterval = null;