From d9b2491855063d49f31b3f2fa55b67fdde6abcf1 Mon Sep 17 00:00:00 2001 From: Srinivas-Saravanan Date: Wed, 19 Mar 2025 09:10:20 +0530 Subject: [PATCH] FEAT_RFQ_NONEB_SRI --- app/Controllers/LeadsController.php | 40 +- app/Views/policyRegisterModel.php | 1160 ++++++++++++++ app/Views/view_rfq_non_eb.php | 2165 ++++++++++++++++++++++----- 3 files changed, 3008 insertions(+), 357 deletions(-) create mode 100644 app/Views/policyRegisterModel.php diff --git a/app/Controllers/LeadsController.php b/app/Controllers/LeadsController.php index f0f1cc7b..ed6c0743 100644 --- a/app/Controllers/LeadsController.php +++ b/app/Controllers/LeadsController.php @@ -532,7 +532,45 @@ class LeadsController extends BaseController // dd($data); - $this->loadLayout('view_rfq.php', $data); + if ($data['lead_id'] != 75){ + + $this->loadLayout('view_rfq.php', $data); + }else{ + + $this->viewNonEBRFQ($id); + + } + + } + + 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 new file mode 100644 index 00000000..98ab888b --- /dev/null +++ b/app/Views/policyRegisterModel.php @@ -0,0 +1,1160 @@ + + + \ 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 9f1f071e..55243f88 100644 --- a/app/Views/view_rfq_non_eb.php +++ b/app/Views/view_rfq_non_eb.php @@ -5,27 +5,28 @@ display: block; } + .btn-custom { + background-color: #007bff; + color: #fff; + margin-right: 10px; + } + table { - width: 1200px; - table-layout: fixed; + /* border-collapse: collapse; */ margin-bottom: 20px; + /* max-width: 800px; */ + /* table-layout: fixed; */ + width: 1200px; + /* Set a fixed width */ + table-layout: fixed; + /* Ensures equal column widths */ border-collapse: collapse; + /* Optional: Makes borders cleaner */ word-wrap: break-word; + } - th, - td { - font-size: smaller !important; - } - .table th.sticky, - .table td.sticky { - position: sticky; - left: 0; - background-color: #bfe0e2; - z-index: 2; - width: 10px; - } th:nth-child(1), td:nth-child(1) { @@ -39,11 +40,9 @@ /* Adjust first column width */ } - - th:nth-last-child(1), td:nth-last-child(1) { - width: 200px; + width: 230px; /* Adjust last column width */ } @@ -116,47 +115,43 @@ cursor: pointer; } + [contenteditable="true"] { + pointer-events: auto; + /* Ensure clicking works */ + } + /* Optional: Style for selected state */ .selected-option { background-color: #f8f9fa; } - .table-collapsible-bar { - background-color: #f1f1f1; - padding: 10px; - cursor: pointer; - border: 1px solid #ddd; - border-radius: 4px 4px 0 0; - font-weight: bold; - display: flex; - justify-content: space-between; - align-items: center; - margin-bottom: 0; + .modal { + display: block !important; + /* Ensures visibility */ + opacity: 0; + /* Initial state */ + visibility: hidden; + /* Prevents flickering */ } - .table-collapsible-bar .collapse-icon { - transition: transform 0.3s ease; + .modal.show { + opacity: 1; + visibility: visible; + z-index: 1050; + /* Correct z-index for Bootstrap 5 modals */ } - .table-collapsible-bar.collapsed .collapse-icon { - transform: rotate(-90deg); + .modal-backdrop { + z-index: 1040 !important; + /* Ensures backdrop is below the modal */ } - /* - .table-container { - margin-bottom: 15px; - } - - .table-content { - transition: max-height 0.3s ease-out; - overflow: hidden; - } */ - - .table-content.collapsed { - max-height: 0; - overflow: hidden; + .swal2-html-container { + overflow: hidden !important; } + +
@@ -168,15 +163,19 @@
- +
- + +
+
+
- + " />
+
@@ -184,65 +183,95 @@
\ No newline at end of file