This commit is contained in:
f4ilji
2024-11-19 00:18:20 +05:00
parent 4b103325f7
commit dc1c175518
8 changed files with 28 additions and 24 deletions
@@ -19,8 +19,9 @@ class ClientPersonDepartmentPreviewResource extends JsonResource
'name' => $this->name, 'name' => $this->name,
'slug' => $this->slug, 'slug' => $this->slug,
'academicTitle' => $this->userDetail->academicTitle, 'academicTitle' => $this->userDetail->academicTitle,
'contactPhone' => $this->userDetail->contactPhone, 'contactPhone' => $this->pivot->service_phone,
'contactEmail' => $this->userDetail->contactEmail, 'contactEmail' => $this->pivot->service_email,
'cabinet' => $this->pivot->cabinet,
'photo' => $this->userDetail->photo, 'photo' => $this->userDetail->photo,
'position' => $this->pivot->position, 'position' => $this->pivot->position,
]; ];
@@ -19,8 +19,9 @@ class ClientPersonDepartmentTeachPreviewResource extends JsonResource
'name' => $this->name, 'name' => $this->name,
'slug' => $this->slug, 'slug' => $this->slug,
'academicTitle' => $this->userDetail->academicTitle, 'academicTitle' => $this->userDetail->academicTitle,
'contactPhone' => $this->userDetail->contactPhone, 'contactPhone' => $this->pivot->service_phone,
'contactEmail' => $this->userDetail->contactEmail, 'contactEmail' => $this->pivot->service_email,
'cabinet' => $this->pivot->cabinet,
'photo' => $this->userDetail->photo, 'photo' => $this->userDetail->photo,
'position' => $this->pivot->teaching_position, 'position' => $this->pivot->teaching_position,
]; ];
@@ -19,8 +19,9 @@ class ClientPersonDivisionPreviewResource extends JsonResource
'name' => $this->name, 'name' => $this->name,
'slug' => $this->slug, 'slug' => $this->slug,
'academicTitle' => $this->userDetail->academicTitle, 'academicTitle' => $this->userDetail->academicTitle,
'contactPhone' => $this->userDetail->contactPhone, 'contactPhone' => $this->pivot->service_phone,
'contactEmail' => $this->userDetail->contactEmail, 'contactEmail' => $this->pivot->service_email,
'cabinet' => $this->pivot->cabinet,
'photo' => $this->userDetail->photo, 'photo' => $this->userDetail->photo,
'administrativePosition' => $this->pivot->administrativePosition, 'administrativePosition' => $this->pivot->administrativePosition,
'sort' => $this->pivot->sort, 'sort' => $this->pivot->sort,
@@ -19,8 +19,9 @@ class ClientPersonFacultyPreviewResource extends JsonResource
'name' => $this->name, 'name' => $this->name,
'slug' => $this->slug, 'slug' => $this->slug,
'academicTitle' => $this->userDetail->academicTitle, 'academicTitle' => $this->userDetail->academicTitle,
'contactPhone' => $this->userDetail->contactPhone, 'contactPhone' => $this->pivot->service_phone,
'contactEmail' => $this->userDetail->contactEmail, 'contactEmail' => $this->pivot->service_email,
'cabinet' => $this->pivot->cabinet,
'photo' => $this->userDetail->photo, 'photo' => $this->userDetail->photo,
'position' => $this->pivot->position, 'position' => $this->pivot->position,
]; ];
@@ -10,14 +10,14 @@
<p v-if="teacher.academicTitle !== null" class="text-xs text-gray-500 mt-2"> <p v-if="teacher.academicTitle !== null" class="text-xs text-gray-500 mt-2">
Ученая степень: {{ teacher.academicTitle }} Ученая степень: {{ teacher.academicTitle }}
</p> </p>
<p class="text-xs text-gray-500 mt-2"> <p v-if="teacher.contactPhone" class="text-xs text-gray-500 mt-2">
Контактный телефон: {{ teacher.contactPhone }} Контактный телефон: {{ teacher.contactPhone }}
</p> </p>
<p class="text-xs text-gray-500 mt-2"> <p v-if="teacher.contactEmail" class="text-xs text-gray-500 mt-2">
Электронная почта: {{ teacher.contactEmail }} Электронная почта: {{ teacher.contactEmail }}
</p> </p>
<p class="text-xs text-gray-500 mt-2"> <p v-if="teacher.cabinet" class="text-xs text-gray-500 mt-2">
Кабинет: 207В Кабинет: {{ teacher.cabinet }}
</p> </p>
</div> </div>
</div> </div>
@@ -10,14 +10,14 @@
<p v-if="worker.academicTitle !== null" class="text-xs text-gray-500 mt-2"> <p v-if="worker.academicTitle !== null" class="text-xs text-gray-500 mt-2">
Ученая степень: {{ worker.academicTitle }} Ученая степень: {{ worker.academicTitle }}
</p> </p>
<p class="text-xs text-gray-500 mt-2"> <p v-if="worker.contactPhone" class="text-xs text-gray-500 mt-2">
Контактный телефон: {{ worker.contactPhone }} Контактный телефон: {{ worker.contactPhone }}
</p> </p>
<p class="text-xs text-gray-500 mt-2"> <p v-if="worker.contactEmail" class="text-xs text-gray-500 mt-2">
Электронная почта: {{ worker.contactEmail }} Электронная почта: {{ worker.contactEmail }}
</p> </p>
<p class="text-xs text-gray-500 mt-2"> <p v-if="worker.cabinet" class="text-xs text-gray-500 mt-2">
Кабинет: 207В Кабинет: {{ worker.cabinet }}
</p> </p>
</div> </div>
</div> </div>
@@ -10,14 +10,14 @@
<p v-if="worker.academicTitle !== null" class="text-xs text-gray-500 mt-2"> <p v-if="worker.academicTitle !== null" class="text-xs text-gray-500 mt-2">
Ученая степень: {{ worker.academicTitle }} Ученая степень: {{ worker.academicTitle }}
</p> </p>
<p class="text-xs text-gray-500 mt-2"> <p v-if="worker.contactPhone" class="text-xs text-gray-500 mt-2">
Контактный телефон: {{ worker.contactPhone }} Контактный телефон: {{ worker.contactPhone }}
</p> </p>
<p class="text-xs text-gray-500 mt-2"> <p v-if="worker.contactEmail" class="text-xs text-gray-500 mt-2">
Электронная почта: {{ worker.contactEmail }} Электронная почта: {{ worker.contactEmail }}
</p> </p>
<p class="text-xs text-gray-500 mt-2"> <p v-if="worker.cabinet" class="text-xs text-gray-500 mt-2">
Кабинет: 207В Кабинет: {{ worker.cabinet }}
</p> </p>
</div> </div>
</div> </div>
@@ -10,14 +10,14 @@
<p v-if="worker.academicTitle !== null" class="text-xs text-gray-500 mt-2"> <p v-if="worker.academicTitle !== null" class="text-xs text-gray-500 mt-2">
Ученая степень: {{ worker.academicTitle }} Ученая степень: {{ worker.academicTitle }}
</p> </p>
<p class="text-xs text-gray-500 mt-2"> <p v-if="worker.contactPhone" class="text-xs text-gray-500 mt-2">
Контактный телефон: {{ worker.contactPhone }} Контактный телефон: {{ worker.contactPhone }}
</p> </p>
<p class="text-xs text-gray-500 mt-2"> <p v-if="worker.contactEmail" class="text-xs text-gray-500 mt-2">
Электронная почта: {{ worker.contactEmail }} Электронная почта: {{ worker.contactEmail }}
</p> </p>
<p class="text-xs text-gray-500 mt-2"> <p v-if="worker.cabinet" class="text-xs text-gray-500 mt-2">
Кабинет: 207В Кабинет: {{ worker.cabinet }}
</p> </p>
</div> </div>
</div> </div>