feat: implement FeaturedVariant and CatalogController for managing featured variants and catalog display

This commit is contained in:
2026-07-14 14:55:48 -03:00
parent 299a462283
commit c2efec8906
17 changed files with 200 additions and 61 deletions

View File

@@ -14,7 +14,8 @@ class FeaturedGroupResource extends JsonResource
'tenant_codigo' => $this->tenant_codigo,
'group_name' => $this->group_name,
'product_layout' => $this->product_layout,
'featured_products' => FeaturedProductResource::collection($this->whenLoaded('featuredProducts')),
'group_order' => $this->group_order,
'featured_variants' => FeaturedVariantResource::collection($this->whenLoaded('featuredVariants')),
];
}
}