diff --git a/app/Http/Resources/Catalogue/BasketResource.php b/app/Http/Resources/Catalogue/BasketResource.php index 36dc3b0b3..699221162 100644 --- a/app/Http/Resources/Catalogue/BasketResource.php +++ b/app/Http/Resources/Catalogue/BasketResource.php @@ -23,6 +23,7 @@ public function toArray($request): array 'code' => $department->code, 'name' => $department->name, 'state' => $department->state, + 'interest' => $department->interest, 'description' => $department->description, 'created_at' => $department->created_at, 'updated_at' => $department->updated_at, diff --git a/app/Http/Resources/Catalogue/DepartmentResource.php b/app/Http/Resources/Catalogue/DepartmentResource.php index 945cf51a0..2f7957260 100644 --- a/app/Http/Resources/Catalogue/DepartmentResource.php +++ b/app/Http/Resources/Catalogue/DepartmentResource.php @@ -32,6 +32,7 @@ public function toArray($request): array 'code' => $this->code, 'name' => $this->name, 'state' => $this->state, + 'interest' => $this->interest, 'description' => $this->description, 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, diff --git a/app/Models/Catalogue/ProductCategory.php b/app/Models/Catalogue/ProductCategory.php index 280a6d8fd..bee6f35d8 100644 --- a/app/Models/Catalogue/ProductCategory.php +++ b/app/Models/Catalogue/ProductCategory.php @@ -37,6 +37,7 @@ * @property string|null $parent_type * @property string $code * @property string|null $name + * @property string|null $interest * @property string|null $description * @property ProductCategoryTypeEnum $type * @property bool $is_family diff --git a/resources/js/Pages/Organisation/Portfolios/PortfolioWebsiteShowcase.vue b/resources/js/Pages/Organisation/Portfolios/PortfolioWebsiteShowcase.vue index fe5dc42ae..c9f9a9219 100644 --- a/resources/js/Pages/Organisation/Portfolios/PortfolioWebsiteShowcase.vue +++ b/resources/js/Pages/Organisation/Portfolios/PortfolioWebsiteShowcase.vue @@ -13,7 +13,7 @@ const handleRadioChanged = async (itemId: number, itemValue: string, itemSlug: s await axios.patch( route('org.models.product-category.update', itemSlug), { - state: itemValue + interest: itemValue } ).then(data => { console.log(data) @@ -55,15 +55,15 @@ const handleRadioChanged = async (itemId: number, itemValue: string, itemSlug: s - - -