© 2026 Hedgehog Software, LLC
->filters([ Tables\Filters\SelectFilter::make('sport_id') ->options(function () { $sports = Sport::all(); return $sports->mapWithKeys(function ($sport) { $imageUrl = url('/storage/' . $sport->image); $optionLabel = "<span class='filter-option'> <img src='{$imageUrl}' alt='{$sport->name}' class='sport-icon'> {$sport->name} </span>"; return [$sport->id => $optionLabel]; })->toArray(); }) ->searchable() ->label('Sport'),