feat(website-type): add login_header_footer_color field and update related tests

This commit is contained in:
2026-07-31 12:06:13 -03:00
parent ec1d80dff2
commit 893bea1492
9 changed files with 11 additions and 15 deletions

View File

@@ -32,18 +32,6 @@ class TenantResource extends JsonResource
'header_bg_color' => $this->header_bg_color,
'footer_bg_color' => $this->footer_bg_color,
'website_type_code' => $this->website_type_code,
'website_type' => $this->whenLoaded(
'websiteType',
fn () => $this->websiteType ? [
'codigo' => $this->websiteType->codigo,
'nombre' => $this->websiteType->nombre,
'primary_color' => $this->websiteType->primary_color,
'secondary_color' => $this->websiteType->secondary_color,
'danger_color' => $this->websiteType->danger_color,
'success_color' => $this->websiteType->success_color,
'site_logo' => $this->websiteType->siteLogo?->getTemporaryUrl(1440),
] : null
),
'extras' => $this->whenLoaded(
'websiteExtras',
fn () => $this->websiteExtras