cean indicator for table filter
This commit is contained in:
1 parent
da257748ae
commit
406fd26864
1 file changed
-20
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user