diff --git a/app/Config/Routes.php b/app/Config/Routes.php index c601cd01..0e4c1f27 100755 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -369,6 +369,7 @@ $routes->group("/util", ["filter" => "authMVC"], function ($routes) { $routes->get('getPolicyTypeFields', 'LeadsController::getPolicyTypeFields'); $routes->get('removeMultiFile', 'LeadsController::removeMultiFile'); $routes->get('removeInstallments', 'LeadsController::removeInstallments'); + $routes->get('getLeadEmailHistory/(:any)', 'LeadsController::getLeadEmailHistory/$1'); $routes->get('viewHrAccessData', 'ClientController::viewHrAccessData'); $routes->post('saveHrAccessData', 'ClientController::saveHrAccessData'); $routes->get('removeLevelContacts', 'ClientController::removeLevelContacts'); @@ -562,6 +563,7 @@ $routes->group("employeeRest", ["filter" => "authJWT"], function ($routes) { $routes->get("ticketList", "ThzController::ticketList"); $routes->post("ticketConversationSave", "ThzController::ticketConversationSave"); $routes->get("ticketConversationList", "ThzController::ticketConversationList"); + $routes->get("ticketHistoryList", "ThzController::ticketHistoryList"); $routes->get("hrFileList", "EmployeeRestController::hrFileList"); $routes->get("hrFileUploadMasters", "EmployeeRestController::hrFileUploadMasters"); @@ -660,11 +662,11 @@ $routes->get("ticketList", "ThzController::ticketList"); $routes->post("ticketConversationSave", "ThzController::ticketConversationSave"); $routes->get("ticketConversationList", "ThzController::ticketConversationList"); $routes->post('ticketAutoFetchDetails',"ThzController::ticketAutoFetchDetails"); +$routes->match(['get','post','put'], 'ticketType', 'ThzController::ticketType'); +$routes->get("ticketHistoryList", "ThzController::ticketHistoryList"); //for testing - $routes->group('test', function($routes) { $routes->post('api/saveForm', 'TestingController::saveForm'); }); - diff --git a/app/Controllers/ClientController.php b/app/Controllers/ClientController.php index 2ad4d9f4..4a73bb1b 100755 --- a/app/Controllers/ClientController.php +++ b/app/Controllers/ClientController.php @@ -184,7 +184,7 @@ class ClientController extends AdminController public function testMailAttachments($email = 'venkateshraman786@gmail.com') { - $message = '

Request for Quotation (RFQ)

Dear {{RECIPIENT_NAME}},

We are reaching out to request a quotation for the following insurance coverage. Please review the details below and provide your quote at your earliest convenience.

RFQ Details

Client name{{CLIENT_NAME}}
Coverage Type{{POLICY_LONG_NAME}}
Policy Start Date{{POLICY_START_DATE}}
Policy Duration{{DURATION}}
Please note: Additional terms and details are included in the attachment for your reference.

Please feel free to reach out if you require any further information to prepare the quote. We look forward to receiving your proposal.

Best regards,

Nhance India Pvt Ltd

'; + $message = '

Request for Quotation (RFQ)

Dear {{RECIPIENT_NAME}},

We are reaching out to request a quotation for the following insurance coverage. Please review the details below and provide your quote at your earliest convenience.

RFQ Details

Client name{{CLIENT_NAME}}
Coverage Type{{POLICY_LONG_NAME}}
Policy Start Date{{POLICY_START_DATE}}
Policy Duration{{DURATION}}
Please note: Additional terms and details are included in the attachment for your reference.

Please feel free to reach out if you require any further information to prepare the quote. We look forward to receiving your proposal.

Best regards,

Nhance India Pvt Ltd

'; // $attachments = [ // ["filePath" => ROOTPATH."public/sample_excel/sample_addition.xls","fileName" => "sample_addition.xls"], diff --git a/app/Controllers/EmpDataServiceController.php b/app/Controllers/EmpDataServiceController.php index 506b39a1..285207f4 100755 --- a/app/Controllers/EmpDataServiceController.php +++ b/app/Controllers/EmpDataServiceController.php @@ -1862,6 +1862,7 @@ class EmpDataServiceController extends BaseController $status = $file['status']; $batch_code = $file['batch_code']; $user_id = $file['created_by']; + $policy_issue_date = $file['policy_issue_date']; $insurer_id = $this->clientPolicyModel->where('id', $client_policy_id)->first(); @@ -2086,6 +2087,7 @@ class EmpDataServiceController extends BaseController 'no_of_dependent' => count($no_of_dependent ?? []) ?? null, 'base_premium' => $base_bremium_and_gst['base_premium'] ?? null, 'gst' => $base_bremium_and_gst['gst'] ?? null, + 'policy_issue_date' => $policy_issue_date ?? null, ]]); // $this->cashDepositCalculationForInception($depositeData); @@ -2417,6 +2419,7 @@ class EmpDataServiceController extends BaseController $batch_code = $file['batch_code']; $user_id = $file['created_by']; $event_type = $file['event_type']; + $policy_issue_date = $file['policy_issue_date']; $status_val = 'success'; @@ -2519,6 +2522,7 @@ class EmpDataServiceController extends BaseController 'endorsement_no' => $endorsement_id[0] ?? null, 'emp_count' => $emp_count ?? null, 'action_type' => $file['event_type'] ?? null, + 'policy_issue_date' => $policy_issue_date ?? null, ]]); @@ -2999,6 +3003,7 @@ class EmpDataServiceController extends BaseController $status = $file['status']; $batch_code = $file['batch_code']; $user_id = $file['created_by']; + $policy_issue_date = $file['policy_issue_date']; $insurer_id = $this->clientPolicyModel->where('id', $client_policy_id)->first(); @@ -3179,6 +3184,7 @@ class EmpDataServiceController extends BaseController 'no_of_dependent' => count($no_of_dependent ?? []) ?? null, 'base_premium' => $base_bremium_and_gst['base_premium'] ?? null, 'gst' => $base_bremium_and_gst['gst'] ?? null, + 'policy_issue_date' => $policy_issue_date ?? null, ]]); } @@ -3537,6 +3543,7 @@ class EmpDataServiceController extends BaseController $status = $file['status']; $batch_code = $file['batch_code']; $user_id = $file['created_by']; + $policy_issue_date = $file['policy_issue_date']; $insurer_id = $this->clientPolicyModel->where('id', $client_policy_id)->first(); @@ -3687,6 +3694,7 @@ class EmpDataServiceController extends BaseController 'no_of_dependent' => count($no_of_dependent ?? []) ?? null, 'base_premium' => $base_bremium_and_gst['base_premium'] ?? null, 'gst' => $base_bremium_and_gst['gst'] ?? null, + 'policy_issue_date' => $policy_issue_date ?? null, ]]); } @@ -4981,7 +4989,7 @@ class EmpDataServiceController extends BaseController 'policy_no' => $policy_data['policy_no'] ?? null, 'cd_ac_no' => $policy_data['cd_ac_no'] ?? null, 'cd_ac_pk' => $policy_data['cd_ac_pk'] ?? null, - 'policy_issue_date' => $policy_data['policy_start_date'] ?? null, + 'policy_issue_date' => $policy_data['policy_issue_date'] ?? null, 'policy_start_date' => $policy_data['policy_start_date'] ?? null, 'policy_end_date' => $policy_data['policy_end_date'] ?? null, 'data_received_date' => $policy_data['data_received_date'] ?? null, @@ -4992,7 +5000,7 @@ class EmpDataServiceController extends BaseController 'co_share' => $policy_data['co_share'] ?? 0, 'pre_payable_by' => $policy_data['pre_payable_by'] ?? 1, 'renewal_date' => $policy_data['policy_end_date'] ?? null, - 'month' => date('Y-m-01', strtotime($policy_data['policy_start_date'])) ?? null, + 'month' => date('Y-m-01', strtotime($policy_data['policy_issue_date'] ?? "")) ?? null, 'ct_type' => 1, 'is_cd_reduce_from_bds' => 0, 'client_type_id' => 0, diff --git a/app/Controllers/EmployeeController.php b/app/Controllers/EmployeeController.php index 3368e41a..5a5039f6 100755 --- a/app/Controllers/EmployeeController.php +++ b/app/Controllers/EmployeeController.php @@ -523,6 +523,7 @@ class EmployeeController extends AdminController $client_branch_id = $this->request->getPost('client_branch_id'); $insurer_or_tpa = $this->request->getPost('insurer_or_tpa'); $actions = $this->request->getPost('action_type'); + $policy_issue_date = $this->request->getPost('policy_issue_date'); $client_data = $this->clientPolicyModel->getCliendDataForExcelFileName($client_policy_id); $file_name = generate_filename($client_data['short_name'], $event_type, $actions, $insurer_or_tpa, $client_data['policy_type'], $client_data['branch_code']); @@ -538,6 +539,13 @@ class EmployeeController extends AdminController 'actions' => $actions, 'file_name' => $file_name, ]; + + + $batch_data['policy_issue_date'] = (!empty($policy_issue_date) && strtotime($policy_issue_date) !== false) + ? change_date_format($policy_issue_date) + : null; + + if ($actions == 'export') { if ($event_type == 'inception' || $event_type == 'addition' || $event_type == 'dependent_addition' || $event_type == 'missed_inception' || ($event_type == 'MultipleEvents' && $insurer_or_tpa == 'tpa')) { diff --git a/app/Controllers/Home.php b/app/Controllers/Home.php index cc084f72..eb0133d1 100755 --- a/app/Controllers/Home.php +++ b/app/Controllers/Home.php @@ -307,7 +307,7 @@ public function convertToPdf($inputFile = null) { // Customize this based on your needs $html = '

' . htmlspecialchars($worksheet->getTitle()) . '

'; - $html .= ''; + $html .= '
'; foreach ($worksheet->getRowIterator() as $row) { $html .= ''; diff --git a/app/Controllers/LeadsController.php b/app/Controllers/LeadsController.php index 8d5fcb3a..2b8bc53a 100644 --- a/app/Controllers/LeadsController.php +++ b/app/Controllers/LeadsController.php @@ -31,6 +31,7 @@ use App\Models\InsurerModel; use App\Models\OccupancyMasterModel; use App\Models\LeadFilesModel; use App\Models\LeadInstallmentPaymentDetails; +use App\Models\GmailSentHistoryModel; use App\Helpers\MailHelper; use App\Helpers\ExcelMergeHelper; @@ -70,6 +71,7 @@ class LeadsController extends BaseController protected $occupancyModel; protected $leadFilesModel; protected $leadInstallmentPaymentDetails; + protected $gmailSentHistoryModel; //variables for storing array protected $issuer; @@ -102,6 +104,7 @@ class LeadsController extends BaseController $this->occupancyModel = new OccupancyMasterModel(); $this->leadFilesModel = new LeadFilesModel(); $this->leadInstallmentPaymentDetails = new LeadInstallmentPaymentDetails(); + $this->gmailSentHistoryModel = new GmailSentHistoryModel(); $this->issuer = [1 => 'JIBS', 2 => 'Nhance']; $this->clientType = [1 => 'Group', 2 => 'Individual']; @@ -2569,6 +2572,17 @@ class LeadsController extends BaseController $from_mail = "bs@nhanceindia.in"; } + $type = ""; + if (in_array($recipient_type, ['placement'])) { + $type = "placement"; + } else if (in_array($recipient_type, ['insurer'])) { + $type = "insurer"; + }else if (in_array($recipient_type, ['internal'])) { + $type = "internal"; + }else if (in_array($recipient_type, ['client'])) { + $type = "client"; + } + if ($recipient_type === 'placement') { $lead_data = $this->leadsModel->find($lead_id); @@ -2750,7 +2764,7 @@ class LeadsController extends BaseController $subject = $file_type == 'rfq' ? 'Request for Quotation from ' . $lead_data['client_name'] . ' for ' . $lead_data['policy_type'] : 'Quotation Comparison Report for ' . $lead_data['policy_type']; - $original_message = '

Request for Quotation (RFQ)

Dear {{RECIPIENT_NAME}},

We are reaching out to request a quotation for the following insurance coverage. Please review the details below and provide your quote at your earliest convenience.

RFQ Details

Client name{{CLIENT_NAME}}
Coverage Type{{POLICY_LONG_NAME}}
Policy Start Date{{POLICY_START_DATE}}
Policy Duration{{DURATION}}
Please note: Additional terms and details are included in the attachment for your reference.

Please feel free to reach out if you require any further information to prepare the quote. We look forward to receiving your proposal.

Best regards,

Nhance India Pvt Ltd

© Nhance India Pvt Ltd. All rights reserved.

'; + $original_message = '

Request for Quotation (RFQ)

Dear {{RECIPIENT_NAME}},

We are reaching out to request a quotation for the following insurance coverage. Please review the details below and provide your quote at your earliest convenience.

RFQ Details

Client name{{CLIENT_NAME}}
Coverage Type{{POLICY_LONG_NAME}}
Policy Start Date{{POLICY_START_DATE}}
Policy Duration{{DURATION}}
Please note: Additional terms and details are included in the attachment for your reference.

Please feel free to reach out if you require any further information to prepare the quote. We look forward to receiving your proposal.

Best regards,

Nhance India Pvt Ltd

© Nhance India Pvt Ltd. All rights reserved.

'; //for mail content if (!empty($mail_content)) { @@ -2763,7 +2777,7 @@ class LeadsController extends BaseController } // print_r($subject); die; - + $common = ['module' => "leads", 'pk' => $lead_id, 'mail_type' => $type]; if ($recipient_data) { foreach ($recipient_data as $recipient) { @@ -2778,7 +2792,7 @@ class LeadsController extends BaseController $string = implode(", ", $cc_mails); $bcc_string = implode(", ", $bcc_mails); - $res = MailHelper::send_email(['from_mail' => $from_mail, 'mail' => $recipient['email'], 'cc' => $string, 'subject' => $subject, 'message' => $message, 'attachments' => $attachments, 'reply_to' => $reply_to, 'bcc' => $bcc_string]); + $res = MailHelper::send_email(['from_mail' => $from_mail, 'mail' => $recipient['email'], 'cc' => $string, 'subject' => $subject, 'message' => $message, 'attachments' => $attachments, 'reply_to' => $reply_to, 'bcc' => $bcc_string, 'common' => $common]); // !dd($res); $result_data[] = ['mail' => $recipient['email'], 'status' => $res]; } @@ -3674,6 +3688,28 @@ class LeadsController extends BaseController return $this->loadLayout('leads_form_handler', $data); } + public function getLeadEmailHistory($id){ + if(!empty($id)){ + $result = $this->gmailSentHistoryModel + ->where('pk', $id) + ->where('module',"leads") + ->orderBy('created_at', 'desc') + ->findAll(); + if(!empty($result)){ + $result = !empty($result) ? $result : []; + return $this->response->setJSON((['status' => 'success', 'data' => $result]))->setStatusCode(200); + }else{ + return $this->response->setJSON((['status' => 'error', 'message' => 'No History found']))->setStatusCode(400); + } + }else{ + return $this->response->setJSON((['status' => 'error', 'message' => 'ID not found']))->setStatusCode(404); + } + + + // Select * from gmail_sent_history where pk != "" and module = "leads"; + // echo $id; + } + public function getPolicyTypeFields() { @@ -4883,7 +4919,7 @@ class LeadsController extends BaseController // Start table with clean styling $html .= "

{$category}

"; - $html .= ""; + $html .= "
"; // Table header with light background $html .= ""; diff --git a/app/Controllers/MasterController.php b/app/Controllers/MasterController.php index 61c5aedf..9838492c 100755 --- a/app/Controllers/MasterController.php +++ b/app/Controllers/MasterController.php @@ -1798,7 +1798,7 @@ class MasterController extends AdminController $email_id = CLI::getOption('to') ? CLI::getOption('to') : $email_id; // print_r($email_id);die(); // $gmailapi = \Config\Services::gmailapi(); - $message = '

Request for Quotation (RFQ)

Dear {{RECIPIENT_NAME}},

We are reaching out to request a quotation for the following insurance coverage. Please review the details below and provide your quote at your earliest convenience.

RFQ Details

Client name{{CLIENT_NAME}}
Coverage Type{{POLICY_LONG_NAME}}
Policy Start Date{{POLICY_START_DATE}}
Policy Duration{{DURATION}}
Please note: Additional terms and details are included in the attachment for your reference.

Please feel free to reach out if you require any further information to prepare the quote. We look forward to receiving your proposal.

Best regards,

Nhance India Pvt Ltd

'; + $message = '

Request for Quotation (RFQ)

Dear {{RECIPIENT_NAME}},

We are reaching out to request a quotation for the following insurance coverage. Please review the details below and provide your quote at your earliest convenience.

RFQ Details

Client name{{CLIENT_NAME}}
Coverage Type{{POLICY_LONG_NAME}}
Policy Start Date{{POLICY_START_DATE}}
Policy Duration{{DURATION}}
Please note: Additional terms and details are included in the attachment for your reference.

Please feel free to reach out if you require any further information to prepare the quote. We look forward to receiving your proposal.

Best regards,

Nhance India Pvt Ltd

'; // $attachments = [ // ["filePath" => WRITEPATH."uploads/excel/sample/correction.xls","fileName" => "correction.xls"], @@ -1821,7 +1821,7 @@ class MasterController extends AdminController public function testZeptoSMTP() { - $message = '

Request for Quotation (RFQ)

Dear {{RECIPIENT_NAME}},

We are reaching out to request a quotation for the following insurance coverage. Please review the details below and provide your quote at your earliest convenience.

RFQ Details

Client name{{CLIENT_NAME}}
Coverage Type{{POLICY_LONG_NAME}}
Policy Start Date{{POLICY_START_DATE}}
Policy Duration{{DURATION}}
Please note: Additional terms and details are included in the attachment for your reference.

Please feel free to reach out if you require any further information to prepare the quote. We look forward to receiving your proposal.

Best regards,

Nhance India Pvt Ltd

'; + $message = '

Request for Quotation (RFQ)

Dear {{RECIPIENT_NAME}},

We are reaching out to request a quotation for the following insurance coverage. Please review the details below and provide your quote at your earliest convenience.

RFQ Details

Client name{{CLIENT_NAME}}
Coverage Type{{POLICY_LONG_NAME}}
Policy Start Date{{POLICY_START_DATE}}
Policy Duration{{DURATION}}
Please note: Additional terms and details are included in the attachment for your reference.

Please feel free to reach out if you require any further information to prepare the quote. We look forward to receiving your proposal.

Best regards,

Nhance India Pvt Ltd

'; $attachments = [ ["filePath" => ROOTPATH . "public/sample_excel/sample_addition.xls", "fileName" => "sample_addition.xls"], ["filePath" => ROOTPATH . "public/sample_excel/sample_inception.xls", "fileName" => "sample_inception.xls"], @@ -1973,7 +1973,7 @@ class MasterController extends AdminController public function sendMutipleToEmails() { - $message = '

Request for Quotation (RFQ)

Dear {{RECIPIENT_NAME}},

We are reaching out to request a quotation for the following insurance coverage. Please review the details below and provide your quote at your earliest convenience.

RFQ Details

Client name{{CLIENT_NAME}}
Coverage Type{{POLICY_LONG_NAME}}
Policy Start Date{{POLICY_START_DATE}}
Policy Duration{{DURATION}}
Please note: Additional terms and details are included in the attachment for your reference.

Please feel free to reach out if you require any further information to prepare the quote. We look forward to receiving your proposal.

Best regards,

Nhance India Pvt Ltd

'; + $message = '

Request for Quotation (RFQ)

Dear {{RECIPIENT_NAME}},

We are reaching out to request a quotation for the following insurance coverage. Please review the details below and provide your quote at your earliest convenience.

RFQ Details

Client name{{CLIENT_NAME}}
Coverage Type{{POLICY_LONG_NAME}}
Policy Start Date{{POLICY_START_DATE}}
Policy Duration{{DURATION}}
Please note: Additional terms and details are included in the attachment for your reference.

Please feel free to reach out if you require any further information to prepare the quote. We look forward to receiving your proposal.

Best regards,

Nhance India Pvt Ltd

'; $attachments = [ ["filePath" => ROOTPATH . "public/sample_excel/sample_addition.xls", "fileName" => "sample_addition.xls"], ["filePath" => ROOTPATH . "public/sample_excel/sample_inception.xls", "fileName" => "sample_inception.xls"], diff --git a/app/Controllers/ThzController.php b/app/Controllers/ThzController.php index e6703a0e..ad3633e2 100644 --- a/app/Controllers/ThzController.php +++ b/app/Controllers/ThzController.php @@ -8,6 +8,8 @@ use CodeIgniter\HTTP\ResponseInterface; use App\Models\ThzMasterModel; use App\Models\ThzMasterNotesModel; +use App\Models\ThzTypeModel; +use App\Models\ThzHistoryModel; use App\ControllerCleaners\ThzControllerCleaner; use App\Models\UserModel; use App\Models\ClientPolicyModel; @@ -20,7 +22,8 @@ class ThzController extends BaseController protected $thzMasterModel; protected $thzMasterNotesModel; - + protected $thzTypeModel; + protected $thzHistoryModel; protected $thzControllerCleaner; protected $userModel; @@ -33,10 +36,12 @@ class ThzController extends BaseController { $this->thzMasterModel = new ThzMasterModel(); $this->thzMasterNotesModel = new ThzMasterNotesModel(); + $this->thzTypeModel = new thzTypeModel(); + $this->thzHistoryModel = new ThzHistoryModel(); $this->thzControllerCleaner = new ThzControllerCleaner(); $this->userModel = new UserModel(); $this->clientPolicyModel = new ClientPolicyModel(); - $this->clientModel = new ClientModel(); + $this->clientModel = new ClientModel(); $this->ticketMailTemplateModel = new TicketMailTemplateModel(); } @@ -53,6 +58,28 @@ class ThzController extends BaseController $text = "update"; $result = $this->updateTicket($data); + // here insert history Status. + $old = $this->thzMasterModel->where('thz_id', $data['thz_id'])->get()->getRowArray(); + + if ($old && isset($data['status'])) { + if ($old['status'] != $data['status']) { + $history = [ + 'thz_id' => $data['thz_id'], + 'field_name' => 'status', + 'display_name' => 'Status', + 'old_value' => $old['status'], + 'new_value' => $data['status'], + 'is_active' => 1 + ]; + + if (!empty(get_session_userid())) { + $history['created_by'] = get_session_userid(); + } + + $this->thzHistoryModel->insert($history); + } + } + $updateID = $data['thz_id']; } else { @@ -226,6 +253,65 @@ class ThzController extends BaseController } + public function ticketType() + { + $method = $this->request->getMethod(); // get, post + + if ($method === 'get') { + + $types = $this->thzTypeModel->where('is_active', 1)->findAll(); + if (empty($types)) { + return $this->response->setJSON(['status' => 'error','message' => 'No ticket types found'])->setStatusCode(404); + } + return $this->response->setJSON(['status' => 'success','data' => $types])->setStatusCode(200); + + } + + if ($method === 'post') { + + $data = $this->request->getPost(); + if (!empty($data['id'])) { + $text = "update"; + $result = $this->thzTypeModel->update($data['id'], $data); + $updateID = $data['id']; + } else { + $text = "create"; + $insertID = $this->thzTypeModel->insert($data); + $result = true; + } + + $id = isset($insertID) && !empty($insertID) ? $insertID : $updateID ; + + return $this->response->setJSON([ + 'status' => $id ? 'success' : 'error', + 'message' => $id ? "Ticket Type {$text}d successfully " : "Unable to {$text} ticket type. Please try again." , + 'id' => $id + ])->setStatusCode($id ? 200 : 400); + } + return $this->response->setJSON(['status' => 'error','message' => 'No ticket types found'])->setStatusCode(404); + } + + public function ticketHistoryList() + { + + $data = $this->request->getGet(); + $thz_id = $data['thz_id']; + // $details = $this->thzHistoryModal->whereIn('thz_id', $thz_id)->where('is_active', 1)->get()->getResultArray(); + $details = $this->thzHistoryModel->select('thz_history.*, CONCAT(user_profiles.first_name, " ", user_profiles.last_name) as created_name') + ->join('user_profiles', 'user_profiles.id = thz_history.created_by', 'left') + ->where('thz_history.thz_id', $thz_id)->where('thz_history.is_active', 1) + ->orderBy('thz_history.created_at', 'desc') + ->get()->getResultArray(); + + + + if (empty($details)) { + return $this->response->setJSON([ 'status' => 'error','message' => 'No History found'])->setStatusCode(404); + } + + + return $this->response->setJSON(['status' => 'success','data' => $details])->setStatusCode(200); + } /************************************************** PRIVATE FUNCTIONS ********************************************************/ diff --git a/app/Controllers/VidalApiController.php b/app/Controllers/VidalApiController.php index 259e9841..36dc3f01 100644 --- a/app/Controllers/VidalApiController.php +++ b/app/Controllers/VidalApiController.php @@ -123,13 +123,21 @@ class VidalApiController extends BaseController } - public function newClaim(){ - + public function newClaim() + { $postData = $this->request->getPost(); + if (empty($postData)) { + return $this->response->setJSON([ + 'status' => false, + 'message' => 'Empty Data Given.', + 'data' => $postData + ]); + } + helper('api'); - $url = ''. getenv('VIDAL_API_BASE_URL').'/submitClaim'; + $url = getenv('VIDAL_API_BASE_URL') . '/submitClaim'; $method = 'POST'; $headers = [ @@ -138,27 +146,38 @@ class VidalApiController extends BaseController ]; $body = [ - 'username:' .getenv('VIDAL_API_USERNAME').'', - 'password:' .getenv('VIDAL_API_PASSWORD').'', - 'PolicyNo:' .$postData['policyNo'] ?? '', - 'enrollmentId:' .$postData['enrollmentId'] ?? '', - 'typeOfClaim:' .$postData['typeOfClaim'] ?? '', - 'claimSubType:' .$postData['claimSubType'] ?? '', - 'requestedAmount:' .$postData['requestedAmount'] ?? '', - 'ailmentType:' .$postData['ailmentType'] ?? '', - 'admissionDate:' .$postData['admissionDate'] ?? '', - 'dischargeDate:' .$postData['dischargeDate'] ?? '', - 'hospitalName:' .$postData['hospitalName'] ?? '', - 'empanelmentNo:' .$postData['empanelmentNo'] ?? '', - 'documentType:' .$postData['documentType'] ?? '', - 'ailmentName:' .$postData['ailmentName'] ?? '', - 'hospitalAddress:' .$postData['hospitalAddress'] ?? '', - 'hospitalState:' .$postData['hospitalState'] ?? '', - 'hospitalCity:' .$postData['hospitalCity'] ?? '', - 'hospitalPinCode:' .$postData['hospitalPinCode'] ?? '', - 'hospitalPhoneNo:' .$postData['hospitalPhoneNo'] ?? '' + 'username' => getenv('VIDAL_API_USERNAME'), + 'password' => getenv('VIDAL_API_PASSWORD'), + 'policyNo' => $postData['policyNo'] ?? '', + 'enrollmentId' => $postData['enrollmentId'] ?? '', + 'typeOfClaim' => $postData['typeOfClaim'] ?? '', + 'claimSubType' => $postData['claimSubType'] ?? '', + 'requestedAmount' => $postData['requestedAmount'] ?? '', + 'ailmentType' => $postData['ailmentType'] ?? '', + 'admissionDate' => $postData['admissionDate'] ?? '', + 'dischargeDate' => $postData['dischargeDate'] ?? '', + 'hospitalName' => $postData['hospitalName'] ?? '', + 'empanelmentNo' => $postData['empanelmentNo'] ?? '', + 'documentType' => $postData['documentType'] ?? '', + 'ailmentName' => $postData['ailmentName'] ?? '', + 'hospitalAddress' => $postData['hospitalAddress'] ?? '', + 'hospitalState' => $postData['hospitalState'] ?? '', + 'hospitalCity' => $postData['hospitalCity'] ?? '', + 'hospitalPinCode' => $postData['hospitalPinCode'] ?? '', + 'hospitalPhoneNo' => $postData['hospitalPhoneNo'] ?? '', ]; + // ✅ Handle file upload + if ($file = $this->request->getFile('File')) { + if ($file->isValid() && !$file->hasMoved()) { + $filePath = $file->getTempName(); + $originalName = $file->getClientName(); + $mimeType = $file->getMimeType(); + + $body['File'] = new \CURLFile($filePath, $mimeType, $originalName); + } + } + $response = call_third_party_api($url, $method, $headers, $body); if($response['status'] != true){ @@ -170,10 +189,10 @@ class VidalApiController extends BaseController } return $this->response->setJSON($response); - } + public function enrollment(){ $postData = $this->request->getJSON(true); diff --git a/app/Helpers/ChatbotHelper.php b/app/Helpers/ChatbotHelper.php index e1f213d3..b17161c2 100644 --- a/app/Helpers/ChatbotHelper.php +++ b/app/Helpers/ChatbotHelper.php @@ -393,18 +393,18 @@ class ChatbotHelper - +
- +
- +
@@ -412,12 +412,12 @@ class ChatbotHelper
- +
- +
@@ -449,7 +449,7 @@ class ChatbotHelper
- +
@@ -457,7 +457,7 @@ class ChatbotHelper
- +
@@ -492,7 +492,7 @@ class ChatbotHelper
- +
@@ -500,7 +500,7 @@ class ChatbotHelper
- +
@@ -514,7 +514,7 @@ class ChatbotHelper
- +
diff --git a/app/Helpers/MailHelper.php b/app/Helpers/MailHelper.php index cce74a9a..89e90262 100755 --- a/app/Helpers/MailHelper.php +++ b/app/Helpers/MailHelper.php @@ -322,6 +322,7 @@ class MailHelper $from_address = isset($params['from_mail']) && !empty($params['from_mail']) ? $params['from_mail'] : getenv('email.fromEmail'); // $from_address = "claims@nhanceindia.in"; + if(isset($params['common'])){ $params['common']['from_mail'] = $from_address; } try { $curl = curl_init(); diff --git a/app/Helpers/api_helper.php b/app/Helpers/api_helper.php index de9a0b64..95096fdb 100644 --- a/app/Helpers/api_helper.php +++ b/app/Helpers/api_helper.php @@ -59,6 +59,7 @@ if (!function_exists('call_third_party_api')) { } $decoded = json_decode($response, true); + return [ 'status' => ($httpCode >= 200 && $httpCode < 300), 'data' => $decoded ?: $response, // fallback to raw response diff --git a/app/Helpers/sendMailNotification.php b/app/Helpers/sendMailNotification.php index bd66c776..f9de6b09 100755 --- a/app/Helpers/sendMailNotification.php +++ b/app/Helpers/sendMailNotification.php @@ -305,7 +305,7 @@ class sendMailNotification } $table_content .= $policy_name_for_policy_type . ''; - $table_content .= ''; + $table_content .= '
'; // Add text-align: center to the table head $table_content .= ''; @@ -442,7 +442,7 @@ class sendMailNotification } $table_content .= $policy_name_for_policy_type . ' ( Payable By Employee ) '; - $table_content .= '
'; + $table_content .= '
'; // Add text-align: center to the table head $table_content .= ''; @@ -479,7 +479,7 @@ class sendMailNotification if (count($Addon_list) > 0) { $table_content .= '
'; - $table_content .= '
'; + $table_content .= '
'; // Center align for table header and body $table_content .= ''; @@ -655,7 +655,7 @@ class sendMailNotification } $table_content .= $policy_name_for_policy_type . ''; - $table_content .= '
'; + $table_content .= '
'; // Add text-align: center to the table head $table_content .= ''; @@ -741,7 +741,7 @@ class sendMailNotification } $table_content .= $policy_name_for_policy_type . ' ( Payable By Employee ) '; - $table_content .= '
'; + $table_content .= '
'; // Add text-align: center to the table head $table_content .= ''; @@ -779,7 +779,7 @@ class sendMailNotification if (count($Addon_list) > 0) { $table_content .= '
'; - $table_content .= '
'; + $table_content .= '
'; // Center align for table header and body $table_content .= ''; @@ -956,7 +956,7 @@ class sendMailNotification } $table_content .= $policy_name_for_policy_type . ''; - $table_content .= '
'; + $table_content .= '
'; // Add text-align: center to the table head $table_content .= ''; @@ -1042,7 +1042,7 @@ class sendMailNotification } $table_content .= $policy_name_for_policy_type . ' ( Payable By Employee ) '; - $table_content .= '
'; + $table_content .= '
'; // Add text-align: center to the table head $table_content .= ''; @@ -1079,7 +1079,7 @@ class sendMailNotification if (count($Addon_list) > 0) { $table_content .= '
'; - $table_content .= '
'; + $table_content .= '
'; // Center align for table header and body $table_content .= ''; @@ -1332,7 +1332,7 @@ class sendMailNotification // Start table row $table_content .= $policy_name . ''; - $table_content .= '
'; + $table_content .= '
'; $table_content .= ''; $table_content .= ''; $table_content .= ''; @@ -1384,7 +1384,7 @@ class sendMailNotification // Generate summary table for addon if applicable if (count($Addon_list) > 0) { $table_content .= '
'; - $table_content .= '
Name
'; + $table_content .= '
'; $table_content .= ''; $table_content .= ''; @@ -1482,7 +1482,7 @@ class sendMailNotification // Start table row $table_content .= $policy_name . ''; - $table_content .= '
'; + $table_content .= '
'; $table_content .= ''; $table_content .= ''; $table_content .= ''; @@ -1534,7 +1534,7 @@ class sendMailNotification // Generate summary table for addon if applicable if (count($Addon_list) > 0) { $table_content .= '
'; - $table_content .= '
Name
'; + $table_content .= '
'; $table_content .= ''; $table_content .= ''; @@ -1630,7 +1630,7 @@ class sendMailNotification // Start table row $table_content .= $policy_name . ''; - $table_content .= '
'; + $table_content .= '
'; $table_content .= ''; $table_content .= ''; $table_content .= ''; @@ -1683,7 +1683,7 @@ class sendMailNotification if (count($Addon_list) > 0) { $table_content .= '
'; - $table_content .= '
Name
'; + $table_content .= '
'; $table_content .= ''; $table_content .= ''; diff --git a/app/Models/BatchFileModel.php b/app/Models/BatchFileModel.php index b8ebc8e9..e791553a 100755 --- a/app/Models/BatchFileModel.php +++ b/app/Models/BatchFileModel.php @@ -25,6 +25,7 @@ class BatchFileModel extends Model "status", "error_data", "client_branch_id", + "policy_issue_date", ]; // Callbacks diff --git a/app/Models/GmailSentHistoryModel.php b/app/Models/GmailSentHistoryModel.php index 9c853879..75abbbe0 100644 --- a/app/Models/GmailSentHistoryModel.php +++ b/app/Models/GmailSentHistoryModel.php @@ -7,5 +7,5 @@ use CodeIgniter\Model; class GmailSentHistoryModel extends Model{ protected $table = 'gmail_sent_history'; protected $primaryKey = 'id'; - protected $allowedFields = ["id", "mail", "bcc", "cc", "message", "attachments", "client_id", "client_branch_id", "client_policy_id", "employee_policy_id", "employee_id", "mail_type", "gmail_api_status", "gmail_api_id", "created_by", "created_at", "updated_by", "updated_at", "isactive","received_message", "common"]; + protected $allowedFields = ["id", "mail", "bcc", "cc", "message", "attachments", "client_id", "client_branch_id", "client_policy_id", "employee_policy_id", "employee_id", "mail_type", "gmail_api_status", "gmail_api_id", "module", "pk", "from_mail", "created_by", "created_at", "updated_by", "updated_at", "isactive","received_message", "common"]; } \ No newline at end of file diff --git a/app/Models/ThzHistoryModel.php b/app/Models/ThzHistoryModel.php new file mode 100644 index 00000000..f7dd22d2 --- /dev/null +++ b/app/Models/ThzHistoryModel.php @@ -0,0 +1,45 @@ +/assets/images/active_pending_actions.png" alt="Logo" height="14" class="active_pending" style="display:none;">    - Pending Actions + Pending Actions      @@ -235,7 +235,7 @@ /assets/images/active_bds.png" alt="Logo" height="14" class="active_bds " style="display:none;">    - BDS + BDS      @@ -251,7 +251,7 @@ /assets/images/active_claims.png" alt="Logo" height="14" class="active_claims " style="display:none;">    - Claims + Claims      @@ -266,7 +266,7 @@ /assets/images/active_leads_and_bds_renewal.png" alt="Logo" height="14" class="active_leads " style="display:none;">    - Leads and BDS Renewals + Leads and BDS Renewals      diff --git a/app/Views/UserList.php b/app/Views/UserList.php index 088b15d0..d9d73f2a 100755 --- a/app/Views/UserList.php +++ b/app/Views/UserList.php @@ -249,7 +249,7 @@ table.dataTable tbody td {

User List

-
+
@@ -383,7 +383,7 @@ table.dataTable tbody td {
-
Name
+
@@ -475,7 +475,7 @@ table.dataTable tbody td {
-
Team
+
diff --git a/app/Views/add_image_list.php b/app/Views/add_image_list.php index 9658053d..05aad57a 100755 --- a/app/Views/add_image_list.php +++ b/app/Views/add_image_list.php @@ -30,7 +30,7 @@ table.dataTable thead th { ADD -
Team
diff --git a/app/Views/batch_list.php b/app/Views/batch_list.php index c754ecc0..163b33cb 100755 --- a/app/Views/batch_list.php +++ b/app/Views/batch_list.php @@ -25,7 +25,7 @@
-
+
diff --git a/app/Views/bds_multi_report.php b/app/Views/bds_multi_report.php index 05b38e6c..ce37847e 100644 --- a/app/Views/bds_multi_report.php +++ b/app/Views/bds_multi_report.php @@ -33,7 +33,7 @@
-
SNO
+
-
+
diff --git a/app/Views/bds_report_Insurer_wise_Data.php b/app/Views/bds_report_Insurer_wise_Data.php index d97e6f18..79159730 100644 --- a/app/Views/bds_report_Insurer_wise_Data.php +++ b/app/Views/bds_report_Insurer_wise_Data.php @@ -30,7 +30,7 @@ table.dataTable tbody td {
- +
diff --git a/app/Views/bds_report_bap_wise_data.php b/app/Views/bds_report_bap_wise_data.php index 391e6526..c0a69a8b 100644 --- a/app/Views/bds_report_bap_wise_data.php +++ b/app/Views/bds_report_bap_wise_data.php @@ -30,7 +30,7 @@ table.dataTable tbody td {
-
Insurer
+
diff --git a/app/Views/bds_tat_wise_report.php b/app/Views/bds_tat_wise_report.php index e3c428f4..721cd07c 100644 --- a/app/Views/bds_tat_wise_report.php +++ b/app/Views/bds_tat_wise_report.php @@ -33,7 +33,7 @@
-
Insurer
+
-
+
diff --git a/app/Views/cd_master_list.php b/app/Views/cd_master_list.php index 1df5c220..3e6e0922 100755 --- a/app/Views/cd_master_list.php +++ b/app/Views/cd_master_list.php @@ -66,7 +66,7 @@ table.dataTable thead th { data-trigger="hover">ADD --> -
S.No
+
diff --git a/app/Views/claim_dump_file_list.php b/app/Views/claim_dump_file_list.php index 52918801..0c1d6906 100644 --- a/app/Views/claim_dump_file_list.php +++ b/app/Views/claim_dump_file_list.php @@ -68,7 +68,7 @@ -
S.No.
+
diff --git a/app/Views/claim_files_upload.php b/app/Views/claim_files_upload.php index 8fa2ad4c..5652432c 100644 --- a/app/Views/claim_files_upload.php +++ b/app/Views/claim_files_upload.php @@ -45,7 +45,7 @@
-
SNO
+
diff --git a/app/Views/claims_report_acc_manager_wise.php b/app/Views/claims_report_acc_manager_wise.php index 3816a419..659646b8 100644 --- a/app/Views/claims_report_acc_manager_wise.php +++ b/app/Views/claims_report_acc_manager_wise.php @@ -33,7 +33,7 @@
-
S.No
+
diff --git a/app/Views/claims_report_tpa_wise.php b/app/Views/claims_report_tpa_wise.php index d473d717..36b3412c 100644 --- a/app/Views/claims_report_tpa_wise.php +++ b/app/Views/claims_report_tpa_wise.php @@ -29,7 +29,7 @@
-
+
diff --git a/app/Views/client_api.php b/app/Views/client_api.php index 8fe995d5..e57051f4 100644 --- a/app/Views/client_api.php +++ b/app/Views/client_api.php @@ -44,7 +44,7 @@ --> -
OPEN
diff --git a/app/Views/client_info.php b/app/Views/client_info.php index 485684dc..b4c286d3 100755 --- a/app/Views/client_info.php +++ b/app/Views/client_info.php @@ -39,7 +39,7 @@
-
+
@@ -120,7 +120,7 @@
-
@@ -205,7 +205,7 @@
-
diff --git a/app/Views/client_kyc.php b/app/Views/client_kyc.php index 99bab2b1..aff9953a 100755 --- a/app/Views/client_kyc.php +++ b/app/Views/client_kyc.php @@ -9,7 +9,7 @@
-
+
@@ -70,7 +70,7 @@
-
Document Name
+
@@ -310,7 +310,7 @@ `; @@ -424,7 +424,7 @@ `; tbody.append(row); @@ -480,7 +480,7 @@ `; diff --git a/app/Views/client_list.php b/app/Views/client_list.php index 346f9f10..8275c156 100755 --- a/app/Views/client_list.php +++ b/app/Views/client_list.php @@ -65,7 +65,7 @@ table.dataTable thead th { " type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="" data-placement="top" title="Add" data-trigger="hover">Add --> -
Document Name${item.other_docs_name} ${item.file_name} - +
- +
${item.other_docs_name} ${item.file_name} - +
diff --git a/app/Views/client_policy.php b/app/Views/client_policy.php index 972c96ef..4f712bca 100755 --- a/app/Views/client_policy.php +++ b/app/Views/client_policy.php @@ -28,7 +28,7 @@
-
+
@@ -425,7 +425,7 @@ // Conditionally render the delete option based on the role if (role !== 3 && role !== 4) { policyTable += ` - Delete`; + Delete`; } policyTable += ` diff --git a/app/Views/dms_search.php b/app/Views/dms_search.php index 550acdf4..58fd2da3 100644 --- a/app/Views/dms_search.php +++ b/app/Views/dms_search.php @@ -99,7 +99,7 @@
-
Insurer
+
@@ -118,7 +118,7 @@
S.No diff --git a/app/Views/drive_file_upload.php b/app/Views/drive_file_upload.php index 158598ec..275b5c6f 100644 --- a/app/Views/drive_file_upload.php +++ b/app/Views/drive_file_upload.php @@ -45,7 +45,7 @@
- +
diff --git a/app/Views/ecard_template/default_ecard.php b/app/Views/ecard_template/default_ecard.php index 0ed04d23..f985a04f 100755 --- a/app/Views/ecard_template/default_ecard.php +++ b/app/Views/ecard_template/default_ecard.php @@ -15,7 +15,7 @@ -
S.No
+
$value) { ?> diff --git a/app/Views/ecard_template/fhpl_tpa.php b/app/Views/ecard_template/fhpl_tpa.php index 4b849f69..3bb3c0cc 100755 --- a/app/Views/ecard_template/fhpl_tpa.php +++ b/app/Views/ecard_template/fhpl_tpa.php @@ -17,7 +17,7 @@ -
+
$value) { ?> @@ -36,7 +36,7 @@
-
+
diff --git a/app/Views/ecard_template/icici_tpa.php b/app/Views/ecard_template/icici_tpa.php index a590bdf1..0206d9f5 100755 --- a/app/Views/ecard_template/icici_tpa.php +++ b/app/Views/ecard_template/icici_tpa.php @@ -8,7 +8,7 @@ - +
$value) { ?> @@ -25,7 +25,7 @@
-
+
diff --git a/app/Views/ecard_template/md_tpa.php b/app/Views/ecard_template/md_tpa.php index 8cec0a84..36eb359e 100755 --- a/app/Views/ecard_template/md_tpa.php +++ b/app/Views/ecard_template/md_tpa.php @@ -12,7 +12,7 @@ POLICY - @@ -40,7 +40,7 @@
The card is for identification purpose only
-
+
@@ -50,7 +50,7 @@
General & Claim Enquiry Helpline
- +
- + `; tableBody.appendChild(newRow); @@ -871,7 +871,7 @@ function showInvoiceStatusModal(event) - + `; }); } diff --git a/app/Views/irda_bap_insurer_report_list.php b/app/Views/irda_bap_insurer_report_list.php index 116e201d..7d9e9773 100644 --- a/app/Views/irda_bap_insurer_report_list.php +++ b/app/Views/irda_bap_insurer_report_list.php @@ -32,7 +32,7 @@ table.dataTable tbody td {
-
Toll Free : 1800-209-7777
Email : @@ -63,7 +63,7 @@
CITI MDIndia branch contact
- +
diff --git a/app/Views/employee_data_list.php b/app/Views/employee_data_list.php index 08d47835..207f9328 100755 --- a/app/Views/employee_data_list.php +++ b/app/Views/employee_data_list.php @@ -89,7 +89,7 @@

Employees

-
Center
+
@@ -670,7 +670,7 @@ let historyTable = `
-
SNO
+
diff --git a/app/Views/endorsement_dash.php b/app/Views/endorsement_dash.php index adfd445e..1994460a 100755 --- a/app/Views/endorsement_dash.php +++ b/app/Views/endorsement_dash.php @@ -374,7 +374,7 @@ function getPendingActionClientDataForDashboard(input, headerName, type) var link = ''; if (res.data.length !== 0) { - // table = `
Field
`; + // table = `
`; div = `
`; $.each(res.data, function(index, item) { diff --git a/app/Views/endorsement_list.php b/app/Views/endorsement_list.php index 6ee6ff14..14696fda 100755 --- a/app/Views/endorsement_list.php +++ b/app/Views/endorsement_list.php @@ -87,7 +87,7 @@
-
+
@@ -163,7 +163,7 @@
SNO
+
diff --git a/app/Views/enrollment_list.php b/app/Views/enrollment_list.php index 96da7591..4448f795 100755 --- a/app/Views/enrollment_list.php +++ b/app/Views/enrollment_list.php @@ -181,7 +181,7 @@
-
+
diff --git a/app/Views/errors/html/error_exception.php b/app/Views/errors/html/error_exception.php index 1c094d72..e1d18561 100755 --- a/app/Views/errors/html/error_exception.php +++ b/app/Views/errors/html/error_exception.php @@ -86,7 +86,7 @@ $errorId = uniqid('error', true); ( arguments )
-
SNO
+
$ -
+
@@ -168,7 +168,7 @@ $errorId = uniqid('error', true);

Constants

-
Key
+
@@ -197,7 +197,7 @@ $errorId = uniqid('error', true);
-
Key
+
@@ -243,7 +243,7 @@ $errorId = uniqid('error', true);

$

-
Path
+
@@ -281,7 +281,7 @@ $errorId = uniqid('error', true);

Headers

-
Key
+
@@ -307,7 +307,7 @@ $errorId = uniqid('error', true); $response->setStatusCode(http_response_code()); ?>
-
Header
+
@@ -320,7 +320,7 @@ $errorId = uniqid('error', true);

Headers

-
Response Status getStatusCode() . ' - ' . $response->getReasonPhrase()) ?>
+
@@ -354,7 +354,7 @@ $errorId = uniqid('error', true);
-
Header
+
diff --git a/app/Views/excel_errors.php b/app/Views/excel_errors.php index 7c09353c..04db844d 100755 --- a/app/Views/excel_errors.php +++ b/app/Views/excel_errors.php @@ -68,7 +68,7 @@ table.dataTable tbody td {
-
Memory Usage
+
diff --git a/app/Views/export_import_error_list.php b/app/Views/export_import_error_list.php index fcadf402..3176ce68 100755 --- a/app/Views/export_import_error_list.php +++ b/app/Views/export_import_error_list.php @@ -68,7 +68,7 @@ table.dataTable tbody td {
-
+
diff --git a/app/Views/file_list.php b/app/Views/file_list.php index cf7b4d6a..bceb3554 100755 --- a/app/Views/file_list.php +++ b/app/Views/file_list.php @@ -19,7 +19,7 @@ -
diff --git a/app/Views/finance_team_list.php b/app/Views/finance_team_list.php index 9613b9df..ffb991ea 100644 --- a/app/Views/finance_team_list.php +++ b/app/Views/finance_team_list.php @@ -179,7 +179,7 @@ table.dataTable tbody td {
-
+
diff --git a/app/Views/hr_activity_history.php b/app/Views/hr_activity_history.php index 15d53361..a6da3ad8 100644 --- a/app/Views/hr_activity_history.php +++ b/app/Views/hr_activity_history.php @@ -38,7 +38,7 @@ table.dataTable tbody td { -
S.No
+
diff --git a/app/Views/hr_file_upload.php b/app/Views/hr_file_upload.php index 7d6ed59d..936d603f 100644 --- a/app/Views/hr_file_upload.php +++ b/app/Views/hr_file_upload.php @@ -99,7 +99,7 @@ -
S. No
diff --git a/app/Views/insurer_branch.php b/app/Views/insurer_branch.php index 915114f3..6d4e0309 100755 --- a/app/Views/insurer_branch.php +++ b/app/Views/insurer_branch.php @@ -6,7 +6,7 @@
-
+
diff --git a/app/Views/insurer_export_templete.php b/app/Views/insurer_export_templete.php index 33ed64c8..77a55bee 100755 --- a/app/Views/insurer_export_templete.php +++ b/app/Views/insurer_export_templete.php @@ -74,7 +74,7 @@
-
Branch Name
+
diff --git a/app/Views/insurer_list.php b/app/Views/insurer_list.php index e7ce6e82..ff42e50b 100755 --- a/app/Views/insurer_list.php +++ b/app/Views/insurer_list.php @@ -49,7 +49,7 @@

Insurer List

-
S.NO
diff --git a/app/Views/insurer_or_tpa_data.php b/app/Views/insurer_or_tpa_data.php index 6c22b23c..dc07ab1c 100755 --- a/app/Views/insurer_or_tpa_data.php +++ b/app/Views/insurer_or_tpa_data.php @@ -90,9 +90,15 @@ +
-
 [ ] @@ -144,6 +150,16 @@ }); + $(document).ready(function() { + + var policy_issue_datePicker = flatpickr("#policy_issue_date", { + dateFormat: "d/m/Y", + allowInput: false, + }); + + $('#insurer_or_tpa, #action_type').on('change', togglePolicyIssueDate); + }); + $(document).ready(function() { has('error')) : ?> @@ -730,4 +746,19 @@ //------------------------------------------------------------------------------------------------------ + + \ No newline at end of file diff --git a/app/Views/insurer_statement_list.php b/app/Views/insurer_statement_list.php index fed5f122..6689488a 100644 --- a/app/Views/insurer_statement_list.php +++ b/app/Views/insurer_statement_list.php @@ -175,7 +175,7 @@ table.dataTable tbody td {
-
+
@@ -425,7 +425,7 @@ table.dataTable tbody td { -
+
@@ -445,7 +445,7 @@ table.dataTable tbody td { - +
pk
@@ -728,7 +728,7 @@ document.addEventListener("DOMContentLoaded", function () {
+
diff --git a/app/Views/irda_client_report_list.php b/app/Views/irda_client_report_list.php index 70ba446f..e3006e95 100644 --- a/app/Views/irda_client_report_list.php +++ b/app/Views/irda_client_report_list.php @@ -32,7 +32,7 @@ table.dataTable tbody td {
-
+
diff --git a/app/Views/kyc_docs.php b/app/Views/kyc_docs.php index 9bb1ab5a..22636a6d 100755 --- a/app/Views/kyc_docs.php +++ b/app/Views/kyc_docs.php @@ -6,7 +6,7 @@
-
S. No
+
diff --git a/app/Views/kyc_list.php b/app/Views/kyc_list.php index 8e8eefd6..ff785b59 100755 --- a/app/Views/kyc_list.php +++ b/app/Views/kyc_list.php @@ -49,7 +49,7 @@

KYC List

-
File Name
diff --git a/app/Views/layout/header.php b/app/Views/layout/header.php index b1ca7453..5783afbf 100755 --- a/app/Views/layout/header.php +++ b/app/Views/layout/header.php @@ -249,7 +249,7 @@ /* Force all text across the entire app to black */ html, body, * { - color: #000 !important; + /* color: #000 !important; */ } @@ -496,7 +496,7 @@ + + @@ -855,7 +928,7 @@ a.app-badge-secondary:focus, a.app-badge-secondary.focus { - +
  • /assets/images/ticket.png" alt="Logo" height="20"> diff --git a/app/Views/leads_list.php b/app/Views/leads_list.php index 85cd4a6c..f15c18b0 100644 --- a/app/Views/leads_list.php +++ b/app/Views/leads_list.php @@ -160,7 +160,7 @@ table.dataTable tbody td {
    -
  • +
    @@ -215,6 +215,12 @@ table.dataTable tbody td { + + Email History + @@ -266,6 +272,22 @@ table.dataTable tbody td { + + + + + \ No newline at end of file diff --git a/app/Views/log_view.php b/app/Views/log_view.php index d7791d34..ebb77fc0 100644 --- a/app/Views/log_view.php +++ b/app/Views/log_view.php @@ -20,7 +20,7 @@ table.dataTable tbody td {

    getFlashdata('error') ?>

    -
    +
    diff --git a/app/Views/notification old.php b/app/Views/notification old.php index ed5f8ee5..11cc74ed 100644 --- a/app/Views/notification old.php +++ b/app/Views/notification old.php @@ -276,7 +276,7 @@ -
    S.No.
    +
    @@ -446,7 +446,7 @@ -
    Attachments
    +
    @@ -1494,7 +1494,7 @@ template_name = ''; newRow.innerHTML = ` - + `; container.appendChild(newRow); diff --git a/app/Views/notification.php b/app/Views/notification.php index 316ebae9..7ab83ccb 100755 --- a/app/Views/notification.php +++ b/app/Views/notification.php @@ -271,7 +271,7 @@ -
    Attachments ${item.file_name}
    +
    @@ -450,7 +450,7 @@ -
    Attachments
    +
    @@ -860,7 +860,7 @@ newRow.innerHTML = ` - + `; container.appendChild(newRow); @@ -1155,7 +1155,7 @@ newRow.innerHTML = ` - + `; container.appendChild(newRow); diff --git a/app/Views/outstanding_report_list.php b/app/Views/outstanding_report_list.php index 682180a8..25f89043 100644 --- a/app/Views/outstanding_report_list.php +++ b/app/Views/outstanding_report_list.php @@ -167,7 +167,7 @@ table.dataTable tbody td {
    -
    Attachments ${item.file_name} ${item.file_name}
    +
    diff --git a/app/Views/policies.php b/app/Views/policies.php index 08e8059f..558e5772 100755 --- a/app/Views/policies.php +++ b/app/Views/policies.php @@ -6,7 +6,7 @@
    -
    S.No
    +
    diff --git a/app/Views/policy_gmc_terms.php b/app/Views/policy_gmc_terms.php index cb62f0ab..4dace342 100755 --- a/app/Views/policy_gmc_terms.php +++ b/app/Views/policy_gmc_terms.php @@ -155,7 +155,7 @@
    -
    Insurer
    +
    @@ -283,7 +283,7 @@
    -
    Self:
    +
    @@ -861,8 +861,10 @@
    - Yes + + No +
    diff --git a/app/Views/policy_gpa_terms.php b/app/Views/policy_gpa_terms.php index cf7cb962..77168662 100755 --- a/app/Views/policy_gpa_terms.php +++ b/app/Views/policy_gpa_terms.php @@ -136,7 +136,7 @@
    - +
    diff --git a/app/Views/policy_grid.php b/app/Views/policy_grid.php index 53c61966..546ff2ab 100755 --- a/app/Views/policy_grid.php +++ b/app/Views/policy_grid.php @@ -2917,7 +2917,7 @@ function createCheckboxes(obj, additional_relationship = [], unique_id = null, p
    -
    +
    `; diff --git a/app/Views/policy_grid_excel.php b/app/Views/policy_grid_excel.php index 6634f35a..10ee30b7 100755 --- a/app/Views/policy_grid_excel.php +++ b/app/Views/policy_grid_excel.php @@ -339,7 +339,7 @@ function generateTable(unique_id) { } } - var table = $('
    '); + var table = $('
    '); var uniqueRows = new Set(); var emptyCellCount = 0; diff --git a/app/Views/policy_transaction_endorsement_form.php b/app/Views/policy_transaction_endorsement_form.php index 3400d1a2..b90bfe5e 100644 --- a/app/Views/policy_transaction_endorsement_form.php +++ b/app/Views/policy_transaction_endorsement_form.php @@ -349,7 +349,7 @@
    -
    +
    @@ -1691,7 +1691,7 @@ function addInsurerColumn() { $('#insurerTable thead tr').append(` `); diff --git a/app/Views/policy_transaction_endorsement_list.php b/app/Views/policy_transaction_endorsement_list.php index 03530e65..e15ccfd8 100644 --- a/app/Views/policy_transaction_endorsement_list.php +++ b/app/Views/policy_transaction_endorsement_list.php @@ -305,7 +305,7 @@ custom-dropdown-menu {
    -
    Premium Details Insurer ${insurerCount} - ${insurerCount > 1 ? `` : ''} + ${insurerCount > 1 ? `` : ''}
    +
    diff --git a/app/Views/policy_transaction_inception_form.php b/app/Views/policy_transaction_inception_form.php index 9e095f2e..fa46e077 100644 --- a/app/Views/policy_transaction_inception_form.php +++ b/app/Views/policy_transaction_inception_form.php @@ -642,7 +642,7 @@
    -
    Sno
    +
    @@ -4047,7 +4047,7 @@ function addInsurerColumn() { $('#insurerTable thead tr').append(` `); diff --git a/app/Views/policy_transaction_inception_list.php b/app/Views/policy_transaction_inception_list.php index 03a9450b..0bbb124d 100644 --- a/app/Views/policy_transaction_inception_list.php +++ b/app/Views/policy_transaction_inception_list.php @@ -274,7 +274,7 @@ table.dataTable tbody td {
    -
    Premium Details Insurer ${insurerCount} - ${insurerCount > 1 ? `` : ''} + ${insurerCount > 1 ? `` : ''}
    +
    @@ -1073,7 +1073,7 @@ function appendFileTableBody(data) .attr('target', '_blank') // Open in a new tab .attr('style', 'font-size:18px;') .attr('data-id', item.id) - .addClass('fa fa-download') + .addClass('mdi mdi-download') // Append the tag inside the
    S.No.
    @@ -1168,14 +1168,14 @@ function appendVehicleFileTableBody(data) .attr('href', '' + item.file_name) .attr('style', 'font-size:18px;') .attr('data-id', item.id) - .addClass('fa fa-download') + .addClass('mdi mdi-download') .text(' '); // Space after the icon // Create the delete link var deleteLink = $('') .attr('style', 'font-size:18px;') .attr('data-id', item.id) - .addClass('fa fa-trash') + .addClass('mdi mdi-delete') .text(' '); // Space after the icon // Append the download and delete icons inside the same diff --git a/app/Views/policy_type_list.php b/app/Views/policy_type_list.php index c9ddf181..81a6fbad 100755 --- a/app/Views/policy_type_list.php +++ b/app/Views/policy_type_list.php @@ -78,7 +78,7 @@ " type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="" data-placement="top" title="Add" data-trigger="hover">ADD --> - diff --git a/app/Views/rack_rate_test.php b/app/Views/rack_rate_test.php index c6c22d0e..cec32c86 100755 --- a/app/Views/rack_rate_test.php +++ b/app/Views/rack_rate_test.php @@ -122,7 +122,7 @@
      -
      +
      @@ -159,7 +159,7 @@
      SNO
      + @@ -186,7 +186,7 @@ - +
      @@ -225,7 +225,7 @@
      SNO
      +
      diff --git a/app/Views/report_bds.php b/app/Views/report_bds.php index dea26ba3..5978e44f 100644 --- a/app/Views/report_bds.php +++ b/app/Views/report_bds.php @@ -40,7 +40,7 @@ table.dataTable tbody td { Total Unbilled Amount:0.00 | Total Policy Count: -
      +
      @@ -142,7 +142,7 @@ table.dataTable tbody td {
      S. No
      +
      diff --git a/app/Views/report_bds_old.php b/app/Views/report_bds_old.php index 0caa9383..06c84ba2 100644 --- a/app/Views/report_bds_old.php +++ b/app/Views/report_bds_old.php @@ -32,7 +32,7 @@ table.dataTable tbody td {
      -
      Statement No.
      +
      diff --git a/app/Views/tat_report_band_wise_list.php b/app/Views/tat_report_band_wise_list.php index a41ff23c..7bc6972c 100644 --- a/app/Views/tat_report_band_wise_list.php +++ b/app/Views/tat_report_band_wise_list.php @@ -32,7 +32,7 @@
      -
      S. No
      +
      Employees -
      +
      diff --git a/app/Views/thz_list.php b/app/Views/thz_list.php index eaead156..b38798ac 100644 --- a/app/Views/thz_list.php +++ b/app/Views/thz_list.php @@ -7,63 +7,13 @@ width: 100%; } -/* HEADER */ -thead th { - background-color: #00999E; - color: #fff !important; - border-top: 0px solid #fff !important; - border-bottom: 0px solid #fff !important; -} - -/* .table thead th { - vertical-align: bottom; - border-bottom: 2px solid #fff; -} */ - -/* Rounded header corners */ -thead th:first-child { - border-top-left-radius: 15px !important; - border-bottom-left-radius: 15px !important; -} -thead th:last-child { - border-top-right-radius: 15px !important; - border-bottom-right-radius: 15px !important; -} - -/* BODY ROWS */ -tbody td { - background: #F5FFFF; /* apply bg to td not tr */ - padding: 12px; - border-top: 1px solid #eee; - border-bottom: 1px solid #eee; -} - -/* Add shadow + spacing row "card" effect */ -tbody tr { - /* box-shadow: 0 2px 5px rgba(0,0,0,0.08); */ -} - -/* Rounded corners for first + last cell of each row */ -tbody tr td:first-child { - border-top-left-radius: 15px !important; - border-bottom-left-radius: 15px !important; -} -tbody tr td:last-child { - border-top-right-radius: 15px !important; - border-bottom-right-radius: 15px !important; -} - -/* Hover effect */ -#scroll-horizontal-datatable tbody tr:hover td { - background-color: #e0e0e0; - -} /* Search input with icon */ .dataTables_filter { position: absolute; } + .dataTables_filter input { padding-right: 30px; background: url('https://cdn.jsdelivr.net/npm/@mdi/svg/svg/magnify.svg') no-repeat right 8px center; @@ -123,10 +73,6 @@ tbody tr td:last-child { white-space: nowrap !important; } */ - -.text-custom-black{ - color: #000000 !important; -} .text-custom-grey{ font-size: 0.85em; color: #6c757d !important; @@ -212,7 +158,7 @@ table thead th { .form-control { background-color: #ECECEC !important; border: 1px solid #ccc; /* optional */ - color: #000; /* keep text readable */ + /* color: #000; keep text readable */ } .form-control:focus { @@ -229,12 +175,11 @@ table thead th { /* Text inside */ .select2-container .select2-selection__rendered { - color: #000 !important; line-height: 36px !important; } .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { - background-color: #ECECEC !important; + background-color: #00999E !important; } @@ -247,12 +192,12 @@ table thead th {
      -

      Tickets

      +

      Tickets

      -
      - +
      + @@ -265,7 +210,7 @@ table thead th { - + $row){ ?> @@ -293,15 +238,17 @@ table thead th { @@ -338,7 +285,7 @@ table thead th {
      - @@ -357,12 +304,12 @@ table thead th {
      - +
      -
      Ticket ID NameUpdated At
      format('d/m/Y') . "
      " . $cdt->format('h:i a') . ""; + $cd = date("j F Y", strtotime($row['created_at'])); + $ct = date("h:i a", strtotime($row['created_at'])); + echo $cd . "
      " . $ct . ""; endif; ?>
      format('d/m/Y') . "
      " . $udt->format('h:i a') . ""; + $ud = date("j F Y", strtotime($row['updated_at'])); + $ut = date("h:i a", strtotime($row['updated_at'])); + echo $ud . "
      " . $ut . ""; endif; ?>
      Claim Number
      Label
      Status
      Template Name
      Branch Name
      S.No
      S.No
      S.No.
      S.No.
        Download ZIP +   Download ZIP
      diff --git a/public/assets/libs/bootstrap-daterangepicker/website/index.html b/public/assets/libs/bootstrap-daterangepicker/website/index.html index 407c4bfb..48eee18a 100755 --- a/public/assets/libs/bootstrap-daterangepicker/website/index.html +++ b/public/assets/libs/bootstrap-daterangepicker/website/index.html @@ -60,7 +60,7 @@   -   Download ZIP +   Download ZIP