This commit is contained in:
salam committed 2026-09-08 18:48:39 +02:00
1 parent abd9c58554
commit c42c6d5a8b
3 files changed
+24 -15

No files matched your search

+9 -7
View File
@@ -15,6 +15,7 @@ use Filament\Tables\Concerns\InteractsWithTable;
use Filament\Tables\Contracts\HasTable;
use Filament\Tables\Enums\FiltersLayout;
use Filament\Tables\Filters\SelectFilter;
use Filament\Forms\Components\Select;
use Filament\Tables\Table;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\HtmlString;
@@ -61,7 +62,7 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
}
}
Log::debug('boxes', $this->boxes);
// Log::debug('boxes', $this->beschriftung);
}
public function getHeadingTable(): HtmlString
@@ -117,13 +118,14 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
->filters([
SelectFilter::make('player_position')
->columnSpanFull()
->native(false)
->options([
'attack' => 'Attack',
'midfield' => 'Midfield',
'defence' => 'Defence',
'goalkeeper' => 'Goalkeeper',
])
->query(function ($query, array $data) {
'attack' => '<span class="text-amber-500">Attack</span>',
'midfield' => '<span class="text-blue-500">Midfield</span>',
'defence' => '<span class="text-green-Defence">Alpine</span>',
'goalkeeper' => '<span class="text-gray-500">Goalkeeper</span>',
])->modifyFormFieldUsing(fn(Select $component) => $component->allowHtml())
->query(function ($query) {
return $query;
}),
], layout: FiltersLayout::AboveContent)