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:
hamed
2026-08-19 23:33:34 +03:30
co-authored by Claude Opus 5
parent e4bd37b3bd
commit b33f38072d
3 changed files with 67 additions and 1 deletions
+3
View File
@@ -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(),