diff --git a/packages/Webkul/Admin/src/Resources/views/settings/workflows/create.blade.php b/packages/Webkul/Admin/src/Resources/views/settings/workflows/create.blade.php index a07d00027..c571f7100 100644 --- a/packages/Webkul/Admin/src/Resources/views/settings/workflows/create.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/settings/workflows/create.blade.php @@ -329,11 +329,17 @@ class="control"
- + +
diff --git a/packages/Webkul/Admin/src/Resources/views/settings/workflows/edit.blade.php b/packages/Webkul/Admin/src/Resources/views/settings/workflows/edit.blade.php index 5dd701482..99ba99d97 100644 --- a/packages/Webkul/Admin/src/Resources/views/settings/workflows/edit.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/settings/workflows/edit.blade.php @@ -328,11 +328,18 @@
- + +
diff --git a/packages/Webkul/Workflow/src/Helpers/Entity/Lead.php b/packages/Webkul/Workflow/src/Helpers/Entity/Lead.php index c461a801e..f2d6b0956 100644 --- a/packages/Webkul/Workflow/src/Helpers/Entity/Lead.php +++ b/packages/Webkul/Workflow/src/Helpers/Entity/Lead.php @@ -108,6 +108,29 @@ public function getEntity($entity) return $entity; } + /** + * Returns attributes + * + * @param string $entityType + * @param array $skipAttributes + * @return array + */ + public function getAttributes($entityType, $skipAttributes = ['textarea', 'image', 'file', 'address']) + { + $attributes[] = [ + 'id' => 'lead_pipeline_stage_id', + 'type' => 'select', + 'name' => 'Stage', + 'lookup_type' => 'lead_pipeline_stages', + 'options' => collect([]), + ]; + + return array_merge( + parent::getAttributes($entityType, $skipAttributes), + $attributes + ); + } + /** * Returns workflow actions *