| xqd
@@ -24,7 +24,13 @@ class Organization extends BaseModel
|
|
|
}
|
|
|
public function docter()
|
|
|
{
|
|
|
- return $this->belongsToMany(Docter::class);
|
|
|
+ $ret = $this->belongsToMany(Docter::class)->where('status', 1);
|
|
|
+ $req = request()->post();
|
|
|
+ if (!empty($req['schedule_type'])) {
|
|
|
+ $ret->where('type', $req['schedule_type']);
|
|
|
+ }
|
|
|
+
|
|
|
+ return $ret;
|
|
|
}
|
|
|
|
|
|
public function vaccines()
|