This commit is contained in:
f4ilji
2024-11-25 19:12:44 +05:00
parent b6bb795f47
commit 5f8e38b8ab
@@ -18,11 +18,11 @@ class ClientPersonDepartmentTeachPreviewResource extends JsonResource
'id' => $this->id, 'id' => $this->id,
'name' => $this->name, 'name' => $this->name,
'slug' => $this->slug, 'slug' => $this->slug,
'academicTitle' => $this->userDetail->academicTitle, 'academicTitle' => $this->userDetail->academicTitle ?? null,
'contactPhone' => $this->pivot->service_phone, 'contactPhone' => $this->pivot->service_phone,
'contactEmail' => $this->pivot->service_email, 'contactEmail' => $this->pivot->service_email,
'cabinet' => $this->pivot->cabinet, 'cabinet' => $this->pivot->cabinet,
'photo' => $this->userDetail->photo, 'photo' => $this->userDetail->photo ?? null,
'position' => $this->pivot->teaching_position, 'position' => $this->pivot->teaching_position,
]; ];
} }