diff --git a/app/Controllers/ClientController.php b/app/Controllers/ClientController.php index 87ec5222..8ee13498 100755 --- a/app/Controllers/ClientController.php +++ b/app/Controllers/ClientController.php @@ -792,6 +792,7 @@ class ClientController extends AdminController $editData['RM'] = $this->userModel->where('is_active', 1)->findAll(); $editData['tpa'] = $this->tpaBranchModel->getTpaBranchesWithTpaNames(); + $editData['tpa_list'] = $this->tpaModel->where('is_active', 1)->findAll(); $editData['state'] = $this->stateModel->getAllStates(); $editData['police'] = $this->policesModel->findAll(); $editData['entity'] = $this->kycEntityTypeModel->findAll(); @@ -1439,7 +1440,9 @@ class ClientController extends AdminController $data['is_member_modify_allowed'] = $this->request->getPost('is_member_modify_allowed') ? 1 : 0; $data['enrolment_visibility'] = $this->request->getPost('enrolment_visibility') ? 1 : 0; $data['is_lgbtq'] = $this->request->getPost('is_lgbtq') ? 1 : 0; - + $data['wellness_plan_id'] = $this->request->getPost('wellness_plan_id'); + $data['wellness_vendor_id'] = $this->request->getPost('wellness_vendor_id'); + $data['wellness_vendor_id'] = !empty($data['wellness_vendor_id']) ? $data['wellness_vendor_id'] : null; if ($policy_type_id == 1 || $policy_type_id == 2 || $policy_type_id == 6 || $policy_type_id == 7) { @@ -1536,10 +1539,14 @@ class ClientController extends AdminController $data['cd_ac_pk'] = $this->request->getPost('cd_ac_no'); $data['gst'] = $this->request->getPost('gst'); $data['disclaimer'] = $this->request->getPost('disclaimer'); - $data['policy_start_date'] = change_date_format($this->request->getPost('policy_start_date'), 'd-m-Y', 'Y-m-d'); - $data['policy_end_date'] = change_date_format($this->request->getPost('policy_end_date'), 'd-m-Y', 'Y-m-d'); + $data['policy_start_date'] = change_date_format($this->request->getPost('policy_start_date'), 'd-m-Y', 'Y-m-d'); + $data['policy_end_date'] = change_date_format($this->request->getPost('policy_end_date'), 'd-m-Y', 'Y-m-d'); $data['is_member_modify_allowed'] = $this->request->getPost('is_member_modify_allowed') ? 1 : 0; - $data['is_lgbtq'] = $this->request->getPost('is_lgbtq') ? 1 : 0; + $data['is_lgbtq'] = $this->request->getPost('is_lgbtq') ? 1 : 0; + $data['wellness_plan_id'] = $this->request->getPost('wellness_plan_id'); + $data['wellness_vendor_id'] = $this->request->getPost('wellness_vendor_id'); + $data['wellness_vendor_id'] = !empty($data['wellness_vendor_id']) ? $data['wellness_vendor_id'] : null; + if ($data['inception_type'] == 2) { $data['open_date'] = change_date_format($this->request->getPost('open_date'), 'd-m-Y', 'Y-m-d'); $data['close_date'] = change_date_format($this->request->getPost('close_date'), 'd-m-Y', 'Y-m-d'); diff --git a/app/Models/ClientPolicyModel.php b/app/Models/ClientPolicyModel.php index 185f4a20..2d37d053 100755 --- a/app/Models/ClientPolicyModel.php +++ b/app/Models/ClientPolicyModel.php @@ -57,6 +57,8 @@ class ClientPolicyModel extends Model "placement_json", "policy_entry_from", "is_from_lead", + "wellness_plan_id", + "wellness_vendor_id", ]; // Callbacks diff --git a/app/Views/client_policy.php b/app/Views/client_policy.php index fdb0c39e..cb197be9 100755 --- a/app/Views/client_policy.php +++ b/app/Views/client_policy.php @@ -235,7 +235,7 @@ input:checked + .slider_blue::before {