fix bugs in BreadcrumbService and Person page

This commit is contained in:
F4ilji
2025-04-04 15:11:34 +05:00
parent 13c45b80d2
commit b6fb523aaa
5 changed files with 15 additions and 13 deletions
@@ -18,11 +18,11 @@ class ClientPersonDepartmentPreviewResource extends JsonResource
'id' => $this->id,
'name' => $this->name,
'slug' => $this->slug,
'academicTitle' => $this->userDetail->academicTitle,
'academicTitle' => $this->userDetail->academicTitle ?? null,
'contactPhone' => $this->pivot->service_phone,
'contactEmail' => $this->pivot->service_email,
'cabinet' => $this->pivot->cabinet,
'photo' => $this->userDetail->photo,
'photo' => $this->userDetail->photo ?? null,
'position' => $this->pivot->position,
];
}