feat(clinic): implement doctor detachment functionality with API endpoint and confirmation dialog

This commit is contained in:
hamed
2026-06-19 01:10:06 +03:30
parent b3883a6e90
commit dd1ca98cb4
4 changed files with 106 additions and 0 deletions
+10
View File
@@ -147,6 +147,16 @@ class Clinic
public function getCreatedAt(): int { return $this->createdAt; }
public function getUpdatedAt(): int { return $this->updatedAt; }
public function getDoctors(): Collection { return $this->doctors; }
public function hasDoctor(Doctor $doctor): bool { return $this->doctors->contains($doctor); }
public function removeDoctor(Doctor $doctor): self
{
$this->doctors->removeElement($doctor);
$this->touch();
return $this;
}
public function getSpecialties(): Collection { return $this->specialties; }
public function getServices(): Collection { return $this->services; }
public function getInsurances(): Collection { return $this->insurances; }