diff --git a/app/Controllers/LeadsController.php b/app/Controllers/LeadsController.php index 65a27038..6260124c 100644 --- a/app/Controllers/LeadsController.php +++ b/app/Controllers/LeadsController.php @@ -557,9 +557,7 @@ class LeadsController extends BaseController $data['insurer'] = $this->insurerBranchModel->getInsurerBranchesWithInsurerNames(); $data['userList'] = $this->userModel->getUserListForRFQ(); $data['lead_data'] = $lead_data; - - // dd($data); - + $mail_content = "

Dear Sir,

Greetings From Nhance India!

@@ -577,46 +575,23 @@ class LeadsController extends BaseController // dd($data); - if ($lead_data['lead_form_type'] == 1){ + if ($data['lead_data']['lead_form_type'] == 1){ - return $this->loadLayout('view_rfq.php', $data); - }else{ + $this->loadLayout('view_rfq.php', $data); + + }else if ($data['lead_data']['lead_form_type'] == 2){ - return $this->loadLayout('view_rfq_non_eb', $data); + $data['policies'] = json_decode($data['question_json'], true)['policies']; + $data["child_table_data"] = json_decode($data['question_json'], true)['child_table_data']; + // $data['lead_register_data'] = json_decode($data['lead_data']['custom_fields']); + // dd($data['lead_register_data']); + $data['client_type'] = $this->clientType; + $this->loadLayout('view_rfq_non_eb', $data); } } - public function viewNonEBRFQ($id){ - - $data['insurer'] = $this->insurerBranchModel->getInsurerBranchesWithInsurerNames(); - $lead_data = $this->leadsModel - ->select(' - leads.*, - policy_type.question_json, - policy_type.policy_type, - policy_type.long_name, - user_profiles.email as created_person_email - ') - ->join('policy_type', 'leads.policy_type_id = policy_type.id') - ->join('user_profiles', 'leads.created_by = user_profiles.id', 'left') - ->where('leads.id', $id) - ->where('leads.is_active', 1) - ->first(); - $data['lead_data'] = $lead_data; - $data['client_type'] = $this->clientType; - - $data['rfq_data'] = $this->RFQModel - ->where('lead_id', $id) - // ->where('type', $type) - ->where('is_active', 1) - ->orderBy('id', 'desc') - ->first(); - - // dd($data); - $this->loadLayout('view_rfq_non_eb', $data); - } public function createRFQ() { diff --git a/app/Views/policyRegisterModel.php b/app/Views/policyRegisterModel.php index 98ab888b..06d63a47 100644 --- a/app/Views/policyRegisterModel.php +++ b/app/Views/policyRegisterModel.php @@ -32,6 +32,11 @@
+
+
+ +
+
@@ -59,7 +64,7 @@
-
- +
@@ -118,8 +123,11 @@
-
- +
+
@@ -154,7 +162,7 @@
- @@ -174,7 +182,7 @@
- @@ -259,11 +267,11 @@
\ No newline at end of file diff --git a/app/Views/view_rfq_non_eb.php b/app/Views/view_rfq_non_eb.php index f5a07df9..cc1a2d00 100644 --- a/app/Views/view_rfq_non_eb.php +++ b/app/Views/view_rfq_non_eb.php @@ -387,7 +387,9 @@