From 406fd26864b68b0913e44c7244d7d99e51106116 Mon Sep 17 00:00:00 2001 From: salam Date: Sat, 20 Dec 2025 13:49:49 +0100 Subject: [PATCH] cean indicator for table filter --- .../Resources/Events/Tables/EventsTable.php | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/app/Filament/Resources/Events/Tables/EventsTable.php b/app/Filament/Resources/Events/Tables/EventsTable.php index 8f7857a1..6043ec23 100644 --- a/app/Filament/Resources/Events/Tables/EventsTable.php +++ b/app/Filament/Resources/Events/Tables/EventsTable.php @@ -3,7 +3,6 @@ namespace App\Filament\Resources\Events\Tables; use App\Filament\Tables\Columns\MultilineColumn; -use App\Models\CompetitionGroup; use App\Models\Country; use App\Models\Event; use Carbon\Carbon; @@ -99,25 +98,6 @@ class EventsTable }) ->live(), ]) - // ->indicateUsing(function (array $data): array { - // $indicators = []; - - // if ($data['country_id'] ?? null) { - // $indicators[] = 'Country: '.Country::where('tx_id', $data['country_id'])->pluck('name')->first(); - // } - - // if ($data['competition_group_id'] ?? null) { - // if (is_array($data['competition_group_id'])) { - // foreach ($data['competition_group_id'] as $competition_group_id) { - // $indicators[] = 'League: '.CompetitionGroup::where('tx_id', $competition_group_id)->pluck('name')->first(); - // } - // } else { - // $indicators[] = 'League: '.CompetitionGroup::where('tx_id', $data['competition_group_id'])->pluck('name')->first(); - // } - // } - - // return $indicators; - // }) ->query(function (Builder $query, array $data): Builder { return $query ->when(