| xqd
@@ -439,7 +439,7 @@ class OrderController extends AuthController
|
|
|
]);
|
|
|
$user = $this->user;
|
|
|
|
|
|
- $builder = Order::with(['docter.office', 'docter.qualification', 'orderPatient', 'orderPack', 'orderNurse', 'orderVaccine'])->where('user_id', $user['id']);
|
|
|
+ $builder = Order::with(['docter.office', 'docter.qualification', 'orderPatient', 'orderPack', 'orderNurse', 'orderVaccine', 'organization.docter'])->where('user_id', $user['id']);
|
|
|
if (!empty($req['product_type'])) {
|
|
|
$builder->where('product_type', $req['product_type']);
|
|
|
}
|
| xqd
@@ -476,7 +476,7 @@ class OrderController extends AuthController
|
|
|
]);
|
|
|
$user = $this->user;
|
|
|
|
|
|
- $data = Order::with(['docter.office', 'docter.qualification', 'orderPatient', 'orderPack', 'orderNurse', 'orderVaccine'])->where('id', $req['order_id'])->where('user_id', $user['id'])->first();
|
|
|
+ $data = Order::with(['docter.office', 'docter.qualification', 'orderPatient', 'orderPack', 'orderNurse', 'orderVaccine', 'organization.docter'])->where('id', $req['order_id'])->where('user_id', $user['id'])->first();
|
|
|
|
|
|
return out($data);
|
|
|
}
|