public function customfield($grid, $name)
    {
        if (!extension_active('customfields')) {
            return;
        }
        $category     = strtolower(last(explode('\\', get_class($grid->row))));
        $customfields = app('customfields')->get();

        foreach ($customfields as $classname => $fields) {
            if (get_class($grid->row) !== $classname) {
                continue;
            }
            foreach ($fields as $field) {
                if ($field->getName() === $name) {
                    return $this->addCustomfield($grid, $field);
                }
            }
        }

        $fieldView = \Antares\Customfields\Model\FieldView::query()->where([
                    'name'          => $name,
                    'brand_id'      => brand_id(),
                    'category_name' => $category,
                    'imported'      => 0])->first();
        if (is_null($fieldView)) {
            return;
        }
        return $this->addCustomfield($grid, $fieldView);
    }