refactor: rename phone field to telephone in ClinicsPage and update related types

- Updated the form schema in ClinicsPage to change the field name from 'phone' to 'telephone'.
- Adjusted the input registration to reflect the new field name.
- Added a new interface ClinicDetail to define detailed clinic information including phone and other attributes.
- Modified the ClinicController to use null-safe access for province ID retrieval.
This commit is contained in:
hamed
2026-06-10 21:49:16 +03:30
parent c41d03b5c5
commit 9ef94043c8
4 changed files with 799 additions and 160 deletions
+1 -1
View File
@@ -491,7 +491,7 @@ class ClinicController extends BaseController
'uuid' => $city->getUuid(),
'id' => (string) $city->getId(),
'name' => $city->getName(),
'parent' => $city->getProvinceId() !== null ? (string) $city->getProvinceId() : null,
'parent' => $city->getProvince()?->getId() !== null ? (string) $city->getProvince()->getId() : null,
];
}
}