This commit is contained in:
salam committed 2026-05-25 17:13:07 +02:00
1 parent a4f7447fa7
commit c99ba7219f
2 files changed
+9 -4

No files matched your search

+8 -3
View File
@@ -19,7 +19,7 @@ use Filament\Forms\Components\Select;
use Filament\Forms\Components\Slider;
use Filament\Pages\Dashboard as BaseDashboard;
use Filament\Pages\Dashboard\Concerns\HasFiltersForm;
use Filament\Schemas\Components\Grid;
use Filament\Schemas\Components\Fieldset;
use Filament\Schemas\Components\Utilities\Get;
use Filament\Schemas\Components\Utilities\Set;
use Filament\Schemas\Schema;
@@ -50,7 +50,9 @@ class Statistic extends BaseDashboard
{
return $schema
->components([
Grid::make([
Fieldset::make('Events')
->dense()
->columns([
'default' => 2,
'sm' => 2,
'md' => 3,
@@ -153,7 +155,10 @@ class Statistic extends BaseDashboard
// ->native(false),
])->columns(6)
->columnSpanFull(),
Grid::make([
Fieldset::make('Player')
->dense()
->hidden(fn (Get $get) => $get('similar_past_matches') == 'none')
->columns([
'default' => 2,
'sm' => 2,
'md' => 3,
+1 -1
View File
@@ -44,7 +44,7 @@ class LoadEvents
if (! $league_id) {
return [];
}
if (! $team_id) {
if (! $team_id && $similar_past_matches != 'none') {
return [];
}