return $table ->columns([ Tables\Columns\TextColumn::make('last_name') ->label(__('labels.name')) ->getStateUsing(fn(Volunteer $record) => $record->person->fullName()) ->sortable() ->searchable(['people.first_name', 'people.middle_name', 'people.last_name']), Tables\Columns\TextColumn::make('person.email') ->label(__('labels.email')) ->sortable() ->searchable(), Tables\Columns\TextColumn::make('function') ->label(__('labels.function')) ->sortable() ->searchable(), ]) ->modifyQueryUsing(fn(Builder $query) => $query->with('person'))