fix(clinic): send each contracted insurer's logo to the public page
The clinic payload carried only uuid/id/name for list_bime, so the public page fell back to the same placeholder for every insurer and the section read as broken. The logo has been on the insurance record all along. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -229,8 +229,11 @@ class Clinic
|
||||
'clinic_logo' => $this->clinicLogo,
|
||||
'phone_number' => $phone,
|
||||
'caption' => $this->info,
|
||||
// لوگو هم میآید: صفحهٔ عمومی کلینیک بیمهها را با لوگو نشان میدهد و بدون
|
||||
// این فیلد همه به یک تصویر پیشفرض یکسان میافتادند.
|
||||
'list_bime' => array_map(fn(Insurance $i) => [
|
||||
'uuid' => $i->getUuid(), 'id' => (string) $i->getId(), 'name' => $i->getName(),
|
||||
'logo_url' => $i->getLogoUrl(),
|
||||
], $this->insurances->toArray()),
|
||||
'specialties' => array_map(fn(Specialty $s) => [
|
||||
'uuid' => $s->getUuid(), 'id' => (string) $s->getId(), 'name' => $s->getName(),
|
||||
|
||||
Reference in New Issue
Block a user