MERGE_CODE_MERGE : RV

This commit is contained in:
VENKATESHWARAN 2025-08-29 21:32:42 +05:30
commit 565905c874
109 changed files with 1108 additions and 414 deletions

View File

@ -369,6 +369,7 @@ $routes->group("/util", ["filter" => "authMVC"], function ($routes) {
$routes->get('getPolicyTypeFields', 'LeadsController::getPolicyTypeFields'); $routes->get('getPolicyTypeFields', 'LeadsController::getPolicyTypeFields');
$routes->get('removeMultiFile', 'LeadsController::removeMultiFile'); $routes->get('removeMultiFile', 'LeadsController::removeMultiFile');
$routes->get('removeInstallments', 'LeadsController::removeInstallments'); $routes->get('removeInstallments', 'LeadsController::removeInstallments');
$routes->get('getLeadEmailHistory/(:any)', 'LeadsController::getLeadEmailHistory/$1');
$routes->get('viewHrAccessData', 'ClientController::viewHrAccessData'); $routes->get('viewHrAccessData', 'ClientController::viewHrAccessData');
$routes->post('saveHrAccessData', 'ClientController::saveHrAccessData'); $routes->post('saveHrAccessData', 'ClientController::saveHrAccessData');
$routes->get('removeLevelContacts', 'ClientController::removeLevelContacts'); $routes->get('removeLevelContacts', 'ClientController::removeLevelContacts');
@ -562,6 +563,7 @@ $routes->group("employeeRest", ["filter" => "authJWT"], function ($routes) {
$routes->get("ticketList", "ThzController::ticketList"); $routes->get("ticketList", "ThzController::ticketList");
$routes->post("ticketConversationSave", "ThzController::ticketConversationSave"); $routes->post("ticketConversationSave", "ThzController::ticketConversationSave");
$routes->get("ticketConversationList", "ThzController::ticketConversationList"); $routes->get("ticketConversationList", "ThzController::ticketConversationList");
$routes->get("ticketHistoryList", "ThzController::ticketHistoryList");
$routes->get("hrFileList", "EmployeeRestController::hrFileList"); $routes->get("hrFileList", "EmployeeRestController::hrFileList");
$routes->get("hrFileUploadMasters", "EmployeeRestController::hrFileUploadMasters"); $routes->get("hrFileUploadMasters", "EmployeeRestController::hrFileUploadMasters");
@ -660,11 +662,11 @@ $routes->get("ticketList", "ThzController::ticketList");
$routes->post("ticketConversationSave", "ThzController::ticketConversationSave"); $routes->post("ticketConversationSave", "ThzController::ticketConversationSave");
$routes->get("ticketConversationList", "ThzController::ticketConversationList"); $routes->get("ticketConversationList", "ThzController::ticketConversationList");
$routes->post('ticketAutoFetchDetails',"ThzController::ticketAutoFetchDetails"); $routes->post('ticketAutoFetchDetails',"ThzController::ticketAutoFetchDetails");
$routes->match(['get','post','put'], 'ticketType', 'ThzController::ticketType');
$routes->get("ticketHistoryList", "ThzController::ticketHistoryList");
//for testing //for testing
$routes->group('test', function($routes) { $routes->group('test', function($routes) {
$routes->post('api/saveForm', 'TestingController::saveForm'); $routes->post('api/saveForm', 'TestingController::saveForm');
}); });

View File

@ -184,7 +184,7 @@ class ClientController extends AdminController
public function testMailAttachments($email = 'venkateshraman786@gmail.com') public function testMailAttachments($email = 'venkateshraman786@gmail.com')
{ {
$message = '<style>body{font-family:Arial,sans-serif;color:#333;line-height:1.6;margin:0;padding:0}.email-container{width:100%;max-width:600px;margin:0 auto;padding:20px;border:1px solid #e0e0e0;background-color:#f9f9f9}.header{background-color:#4a90e2;color:#fff;padding:15px;text-align:center}.header h1{margin:0;font-size:24px}.content{padding:20px;background-color:#fff}.content h2{color:#4a90e2;font-size:20px;margin-top:0}.content p{margin:10px 0}.details-table{width:100%;border-collapse:collapse;margin-top:20px}.details-table td,.details-table th{border:1px solid #ddd;padding:10px;text-align:left}.details-table th{background-color:#f2f2f2}.footer{margin-top:20px;font-size:12px;color:#777;text-align:center}.attachment-note{margin-top:20px;padding:10px;background-color:#f7f7f7;border-left:4px solid #4a90e2;font-style:italic}</style><div class=email-container><div class=header><h1>Request for Quotation (RFQ)</h1></div><div class=content><h2>Dear {{RECIPIENT_NAME}},</h2><p>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.<h2>RFQ Details</h2><table class=details-table><tr><th>Client name<td>{{CLIENT_NAME}}<tr><th>Coverage Type<td>{{POLICY_LONG_NAME}}<tr><th>Policy Start Date<td>{{POLICY_START_DATE}}<tr><th>Policy Duration<td>{{DURATION}}</table><div class=attachment-note>Please note: Additional terms and details are included in the attachment for your reference.</div><p>Please feel free to reach out if you require any further information to prepare the quote. We look forward to receiving your proposal.<p>Best regards,<p><strong>Nhance India Pvt Ltd</strong><br></div><div class=footer><p>© Nhance India Pvt Ltd. All rights reserved.</div></div>'; $message = '<style>body{font-family:Arial,sans-serif;color:#333;line-height:1.6;margin:0;padding:0}.email-container{width:100%;max-width:600px;margin:0 auto;padding:20px;border:1px solid #e0e0e0;background-color:#f9f9f9}.header{background-color:#4a90e2;color:#fff;padding:15px;text-align:center}.header h1{margin:0;font-size:24px}.content{padding:20px;background-color:#fff}.content h2{color:#4a90e2;font-size:20px;margin-top:0}.content p{margin:10px 0}.details-table{width:100%;border-collapse:collapse;margin-top:20px}.details-table td,.details-table th{border:1px solid #ddd;padding:10px;text-align:left}.details-table th{background-color:#f2f2f2}.footer{margin-top:20px;font-size:12px;color:#777;text-align:center}.attachment-note{margin-top:20px;padding:10px;background-color:#f7f7f7;border-left:4px solid #4a90e2;font-style:italic}</style><div class=email-container><div class=header><h1>Request for Quotation (RFQ)</h1></div><div class=content><h2>Dear {{RECIPIENT_NAME}},</h2><p>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.<h2>RFQ Details</h2><table data-custom-table-css="table" class=details-table><tr><th>Client name<td>{{CLIENT_NAME}}<tr><th>Coverage Type<td>{{POLICY_LONG_NAME}}<tr><th>Policy Start Date<td>{{POLICY_START_DATE}}<tr><th>Policy Duration<td>{{DURATION}}</table><div class=attachment-note>Please note: Additional terms and details are included in the attachment for your reference.</div><p>Please feel free to reach out if you require any further information to prepare the quote. We look forward to receiving your proposal.<p>Best regards,<p><strong>Nhance India Pvt Ltd</strong><br></div><div class=footer><p>© Nhance India Pvt Ltd. All rights reserved.</div></div>';
// $attachments = [ // $attachments = [
// ["filePath" => ROOTPATH."public/sample_excel/sample_addition.xls","fileName" => "sample_addition.xls"], // ["filePath" => ROOTPATH."public/sample_excel/sample_addition.xls","fileName" => "sample_addition.xls"],

View File

@ -1862,6 +1862,7 @@ class EmpDataServiceController extends BaseController
$status = $file['status']; $status = $file['status'];
$batch_code = $file['batch_code']; $batch_code = $file['batch_code'];
$user_id = $file['created_by']; $user_id = $file['created_by'];
$policy_issue_date = $file['policy_issue_date'];
$insurer_id = $this->clientPolicyModel->where('id', $client_policy_id)->first(); $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, 'no_of_dependent' => count($no_of_dependent ?? []) ?? null,
'base_premium' => $base_bremium_and_gst['base_premium'] ?? null, 'base_premium' => $base_bremium_and_gst['base_premium'] ?? null,
'gst' => $base_bremium_and_gst['gst'] ?? null, 'gst' => $base_bremium_and_gst['gst'] ?? null,
'policy_issue_date' => $policy_issue_date ?? null,
]]); ]]);
// $this->cashDepositCalculationForInception($depositeData); // $this->cashDepositCalculationForInception($depositeData);
@ -2417,6 +2419,7 @@ class EmpDataServiceController extends BaseController
$batch_code = $file['batch_code']; $batch_code = $file['batch_code'];
$user_id = $file['created_by']; $user_id = $file['created_by'];
$event_type = $file['event_type']; $event_type = $file['event_type'];
$policy_issue_date = $file['policy_issue_date'];
$status_val = 'success'; $status_val = 'success';
@ -2519,6 +2522,7 @@ class EmpDataServiceController extends BaseController
'endorsement_no' => $endorsement_id[0] ?? null, 'endorsement_no' => $endorsement_id[0] ?? null,
'emp_count' => $emp_count ?? null, 'emp_count' => $emp_count ?? null,
'action_type' => $file['event_type'] ?? 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']; $status = $file['status'];
$batch_code = $file['batch_code']; $batch_code = $file['batch_code'];
$user_id = $file['created_by']; $user_id = $file['created_by'];
$policy_issue_date = $file['policy_issue_date'];
$insurer_id = $this->clientPolicyModel->where('id', $client_policy_id)->first(); $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, 'no_of_dependent' => count($no_of_dependent ?? []) ?? null,
'base_premium' => $base_bremium_and_gst['base_premium'] ?? null, 'base_premium' => $base_bremium_and_gst['base_premium'] ?? null,
'gst' => $base_bremium_and_gst['gst'] ?? 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']; $status = $file['status'];
$batch_code = $file['batch_code']; $batch_code = $file['batch_code'];
$user_id = $file['created_by']; $user_id = $file['created_by'];
$policy_issue_date = $file['policy_issue_date'];
$insurer_id = $this->clientPolicyModel->where('id', $client_policy_id)->first(); $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, 'no_of_dependent' => count($no_of_dependent ?? []) ?? null,
'base_premium' => $base_bremium_and_gst['base_premium'] ?? null, 'base_premium' => $base_bremium_and_gst['base_premium'] ?? null,
'gst' => $base_bremium_and_gst['gst'] ?? 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, 'policy_no' => $policy_data['policy_no'] ?? null,
'cd_ac_no' => $policy_data['cd_ac_no'] ?? null, 'cd_ac_no' => $policy_data['cd_ac_no'] ?? null,
'cd_ac_pk' => $policy_data['cd_ac_pk'] ?? 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_start_date' => $policy_data['policy_start_date'] ?? null,
'policy_end_date' => $policy_data['policy_end_date'] ?? null, 'policy_end_date' => $policy_data['policy_end_date'] ?? null,
'data_received_date' => $policy_data['data_received_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, 'co_share' => $policy_data['co_share'] ?? 0,
'pre_payable_by' => $policy_data['pre_payable_by'] ?? 1, 'pre_payable_by' => $policy_data['pre_payable_by'] ?? 1,
'renewal_date' => $policy_data['policy_end_date'] ?? null, '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, 'ct_type' => 1,
'is_cd_reduce_from_bds' => 0, 'is_cd_reduce_from_bds' => 0,
'client_type_id' => 0, 'client_type_id' => 0,

View File

@ -523,6 +523,7 @@ class EmployeeController extends AdminController
$client_branch_id = $this->request->getPost('client_branch_id'); $client_branch_id = $this->request->getPost('client_branch_id');
$insurer_or_tpa = $this->request->getPost('insurer_or_tpa'); $insurer_or_tpa = $this->request->getPost('insurer_or_tpa');
$actions = $this->request->getPost('action_type'); $actions = $this->request->getPost('action_type');
$policy_issue_date = $this->request->getPost('policy_issue_date');
$client_data = $this->clientPolicyModel->getCliendDataForExcelFileName($client_policy_id); $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']); $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, 'actions' => $actions,
'file_name' => $file_name, '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 ($actions == 'export') {
if ($event_type == 'inception' || $event_type == 'addition' || $event_type == 'dependent_addition' || $event_type == 'missed_inception' || ($event_type == 'MultipleEvents' && $insurer_or_tpa == 'tpa')) { if ($event_type == 'inception' || $event_type == 'addition' || $event_type == 'dependent_addition' || $event_type == 'missed_inception' || ($event_type == 'MultipleEvents' && $insurer_or_tpa == 'tpa')) {

View File

@ -307,7 +307,7 @@ public function convertToPdf($inputFile = null)
{ {
// Customize this based on your needs // Customize this based on your needs
$html = '<h2>' . htmlspecialchars($worksheet->getTitle()) . '</h2>'; $html = '<h2>' . htmlspecialchars($worksheet->getTitle()) . '</h2>';
$html .= '<table border="1" cellpadding="5">'; $html .= '<table data-custom-table-css="table" border="1" cellpadding="5">';
foreach ($worksheet->getRowIterator() as $row) { foreach ($worksheet->getRowIterator() as $row) {
$html .= '<tr>'; $html .= '<tr>';

View File

@ -31,6 +31,7 @@ use App\Models\InsurerModel;
use App\Models\OccupancyMasterModel; use App\Models\OccupancyMasterModel;
use App\Models\LeadFilesModel; use App\Models\LeadFilesModel;
use App\Models\LeadInstallmentPaymentDetails; use App\Models\LeadInstallmentPaymentDetails;
use App\Models\GmailSentHistoryModel;
use App\Helpers\MailHelper; use App\Helpers\MailHelper;
use App\Helpers\ExcelMergeHelper; use App\Helpers\ExcelMergeHelper;
@ -70,6 +71,7 @@ class LeadsController extends BaseController
protected $occupancyModel; protected $occupancyModel;
protected $leadFilesModel; protected $leadFilesModel;
protected $leadInstallmentPaymentDetails; protected $leadInstallmentPaymentDetails;
protected $gmailSentHistoryModel;
//variables for storing array //variables for storing array
protected $issuer; protected $issuer;
@ -102,6 +104,7 @@ class LeadsController extends BaseController
$this->occupancyModel = new OccupancyMasterModel(); $this->occupancyModel = new OccupancyMasterModel();
$this->leadFilesModel = new LeadFilesModel(); $this->leadFilesModel = new LeadFilesModel();
$this->leadInstallmentPaymentDetails = new LeadInstallmentPaymentDetails(); $this->leadInstallmentPaymentDetails = new LeadInstallmentPaymentDetails();
$this->gmailSentHistoryModel = new GmailSentHistoryModel();
$this->issuer = [1 => 'JIBS', 2 => 'Nhance']; $this->issuer = [1 => 'JIBS', 2 => 'Nhance'];
$this->clientType = [1 => 'Group', 2 => 'Individual']; $this->clientType = [1 => 'Group', 2 => 'Individual'];
@ -2569,6 +2572,17 @@ class LeadsController extends BaseController
$from_mail = "bs@nhanceindia.in"; $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') { if ($recipient_type === 'placement') {
$lead_data = $this->leadsModel->find($lead_id); $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']; $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 = '<div style="width:100%;max-width:600px;margin:0 auto;padding:20px;border:1px solid #e0e0e0;background-color:#f9f9f9;font-family:Arial,sans-serif;color:#333;line-height:1.6"><div style=background-color:#4a90e2;color:#fff;padding:15px;text-align:center><h1 style=margin:0;font-size:24px>Request for Quotation (RFQ)</h1></div><div style=padding:20px;background-color:#fff><h2 style=color:#4a90e2;font-size:20px;margin-top:0>Dear {{RECIPIENT_NAME}},</h2><p>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.<h2 style=color:#4a90e2;font-size:20px;margin-top:20px>RFQ Details</h2><table style=width:100%;border-collapse:collapse;margin-top:20px><tr><th style="border:1px solid #ddd;padding:10px;text-align:left;background-color:#f2f2f2">Client name<td style="border:1px solid #ddd;padding:10px;text-align:left">{{CLIENT_NAME}}<tr><th style="border:1px solid #ddd;padding:10px;text-align:left;background-color:#f2f2f2">Coverage Type<td style="border:1px solid #ddd;padding:10px;text-align:left">{{POLICY_LONG_NAME}}<tr><th style="border:1px solid #ddd;padding:10px;text-align:left;background-color:#f2f2f2">Policy Start Date<td style="border:1px solid #ddd;padding:10px;text-align:left">{{POLICY_START_DATE}}<tr><th style="border:1px solid #ddd;padding:10px;text-align:left;background-color:#f2f2f2">Policy Duration<td style="border:1px solid #ddd;padding:10px;text-align:left">{{DURATION}}</table><div style="margin-top:20px;padding:10px;background-color:#f7f7f7;border-left:4px solid #4a90e2;font-style:italic">Please note: Additional terms and details are included in the attachment for your reference.</div><p>Please feel free to reach out if you require any further information to prepare the quote. We look forward to receiving your proposal.<p>Best regards,<p><strong>Nhance India Pvt Ltd</strong><br></div><div style=margin-top:20px;font-size:12px;color:#777;text-align:center><p>© Nhance India Pvt Ltd. All rights reserved.</div></div>'; $original_message = '<div style="width:100%;max-width:600px;margin:0 auto;padding:20px;border:1px solid #e0e0e0;background-color:#f9f9f9;font-family:Arial,sans-serif;color:#333;line-height:1.6"><div style=background-color:#4a90e2;color:#fff;padding:15px;text-align:center><h1 style=margin:0;font-size:24px>Request for Quotation (RFQ)</h1></div><div style=padding:20px;background-color:#fff><h2 style=color:#4a90e2;font-size:20px;margin-top:0>Dear {{RECIPIENT_NAME}},</h2><p>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.<h2 style=color:#4a90e2;font-size:20px;margin-top:20px>RFQ Details</h2><table data-custom-table-css="table" style=width:100%;border-collapse:collapse;margin-top:20px><tr><th style="border:1px solid #ddd;padding:10px;text-align:left;background-color:#f2f2f2">Client name<td style="border:1px solid #ddd;padding:10px;text-align:left">{{CLIENT_NAME}}<tr><th style="border:1px solid #ddd;padding:10px;text-align:left;background-color:#f2f2f2">Coverage Type<td style="border:1px solid #ddd;padding:10px;text-align:left">{{POLICY_LONG_NAME}}<tr><th style="border:1px solid #ddd;padding:10px;text-align:left;background-color:#f2f2f2">Policy Start Date<td style="border:1px solid #ddd;padding:10px;text-align:left">{{POLICY_START_DATE}}<tr><th style="border:1px solid #ddd;padding:10px;text-align:left;background-color:#f2f2f2">Policy Duration<td style="border:1px solid #ddd;padding:10px;text-align:left">{{DURATION}}</table><div style="margin-top:20px;padding:10px;background-color:#f7f7f7;border-left:4px solid #4a90e2;font-style:italic">Please note: Additional terms and details are included in the attachment for your reference.</div><p>Please feel free to reach out if you require any further information to prepare the quote. We look forward to receiving your proposal.<p>Best regards,<p><strong>Nhance India Pvt Ltd</strong><br></div><div style=margin-top:20px;font-size:12px;color:#777;text-align:center><p>© Nhance India Pvt Ltd. All rights reserved.</div></div>';
//for mail content //for mail content
if (!empty($mail_content)) { if (!empty($mail_content)) {
@ -2763,7 +2777,7 @@ class LeadsController extends BaseController
} }
// print_r($subject); die; // print_r($subject); die;
$common = ['module' => "leads", 'pk' => $lead_id, 'mail_type' => $type];
if ($recipient_data) { if ($recipient_data) {
foreach ($recipient_data as $recipient) { foreach ($recipient_data as $recipient) {
@ -2778,7 +2792,7 @@ class LeadsController extends BaseController
$string = implode(", ", $cc_mails); $string = implode(", ", $cc_mails);
$bcc_string = implode(", ", $bcc_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); // !dd($res);
$result_data[] = ['mail' => $recipient['email'], 'status' => $res]; $result_data[] = ['mail' => $recipient['email'], 'status' => $res];
} }
@ -3674,6 +3688,28 @@ class LeadsController extends BaseController
return $this->loadLayout('leads_form_handler', $data); 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() public function getPolicyTypeFields()
{ {
@ -4883,7 +4919,7 @@ class LeadsController extends BaseController
// Start table with clean styling // Start table with clean styling
$html .= "<h3 style='color: #333; font-weight: 500; margin-bottom: 15px;'>{$category}</h3>"; $html .= "<h3 style='color: #333; font-weight: 500; margin-bottom: 15px;'>{$category}</h3>";
$html .= "<table style='width: 100%; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px;'>"; $html .= "<table data-custom-table-css="table" style='width: 100%; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px;'>";
// Table header with light background // Table header with light background
$html .= "<tr>"; $html .= "<tr>";

View File

@ -1798,7 +1798,7 @@ class MasterController extends AdminController
$email_id = CLI::getOption('to') ? CLI::getOption('to') : $email_id; $email_id = CLI::getOption('to') ? CLI::getOption('to') : $email_id;
// print_r($email_id);die(); // print_r($email_id);die();
// $gmailapi = \Config\Services::gmailapi(); // $gmailapi = \Config\Services::gmailapi();
$message = '<style>body{font-family:Arial,sans-serif;color:#333;line-height:1.6;margin:0;padding:0}.email-container{width:100%;max-width:600px;margin:0 auto;padding:20px;border:1px solid #e0e0e0;background-color:#f9f9f9}.header{background-color:#4a90e2;color:#fff;padding:15px;text-align:center}.header h1{margin:0;font-size:24px}.content{padding:20px;background-color:#fff}.content h2{color:#4a90e2;font-size:20px;margin-top:0}.content p{margin:10px 0}.details-table{width:100%;border-collapse:collapse;margin-top:20px}.details-table td,.details-table th{border:1px solid #ddd;padding:10px;text-align:left}.details-table th{background-color:#f2f2f2}.footer{margin-top:20px;font-size:12px;color:#777;text-align:center}.attachment-note{margin-top:20px;padding:10px;background-color:#f7f7f7;border-left:4px solid #4a90e2;font-style:italic}</style><div class=email-container><div class=header><h1>Request for Quotation (RFQ)</h1></div><div class=content><h2>Dear {{RECIPIENT_NAME}},</h2><p>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.<h2>RFQ Details</h2><table class=details-table><tr><th>Client name<td>{{CLIENT_NAME}}<tr><th>Coverage Type<td>{{POLICY_LONG_NAME}}<tr><th>Policy Start Date<td>{{POLICY_START_DATE}}<tr><th>Policy Duration<td>{{DURATION}}</table><div class=attachment-note>Please note: Additional terms and details are included in the attachment for your reference.</div><p>Please feel free to reach out if you require any further information to prepare the quote. We look forward to receiving your proposal.<p>Best regards,<p><strong>Nhance India Pvt Ltd</strong><br></div><div class=footer><p>© Nhance India Pvt Ltd. All rights reserved.</div></div>'; $message = '<style>body{font-family:Arial,sans-serif;color:#333;line-height:1.6;margin:0;padding:0}.email-container{width:100%;max-width:600px;margin:0 auto;padding:20px;border:1px solid #e0e0e0;background-color:#f9f9f9}.header{background-color:#4a90e2;color:#fff;padding:15px;text-align:center}.header h1{margin:0;font-size:24px}.content{padding:20px;background-color:#fff}.content h2{color:#4a90e2;font-size:20px;margin-top:0}.content p{margin:10px 0}.details-table{width:100%;border-collapse:collapse;margin-top:20px}.details-table td,.details-table th{border:1px solid #ddd;padding:10px;text-align:left}.details-table th{background-color:#f2f2f2}.footer{margin-top:20px;font-size:12px;color:#777;text-align:center}.attachment-note{margin-top:20px;padding:10px;background-color:#f7f7f7;border-left:4px solid #4a90e2;font-style:italic}</style><div class=email-container><div class=header><h1>Request for Quotation (RFQ)</h1></div><div class=content><h2>Dear {{RECIPIENT_NAME}},</h2><p>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.<h2>RFQ Details</h2><table data-custom-table-css="table" class=details-table><tr><th>Client name<td>{{CLIENT_NAME}}<tr><th>Coverage Type<td>{{POLICY_LONG_NAME}}<tr><th>Policy Start Date<td>{{POLICY_START_DATE}}<tr><th>Policy Duration<td>{{DURATION}}</table><div class=attachment-note>Please note: Additional terms and details are included in the attachment for your reference.</div><p>Please feel free to reach out if you require any further information to prepare the quote. We look forward to receiving your proposal.<p>Best regards,<p><strong>Nhance India Pvt Ltd</strong><br></div><div class=footer><p>© Nhance India Pvt Ltd. All rights reserved.</div></div>';
// $attachments = [ // $attachments = [
// ["filePath" => WRITEPATH."uploads/excel/sample/correction.xls","fileName" => "correction.xls"], // ["filePath" => WRITEPATH."uploads/excel/sample/correction.xls","fileName" => "correction.xls"],
@ -1821,7 +1821,7 @@ class MasterController extends AdminController
public function testZeptoSMTP() public function testZeptoSMTP()
{ {
$message = '<style>body{font-family:Arial,sans-serif;color:#333;line-height:1.6;margin:0;padding:0}.email-container{width:100%;max-width:600px;margin:0 auto;padding:20px;border:1px solid #e0e0e0;background-color:#f9f9f9}.header{background-color:#4a90e2;color:#fff;padding:15px;text-align:center}.header h1{margin:0;font-size:24px}.content{padding:20px;background-color:#fff}.content h2{color:#4a90e2;font-size:20px;margin-top:0}.content p{margin:10px 0}.details-table{width:100%;border-collapse:collapse;margin-top:20px}.details-table td,.details-table th{border:1px solid #ddd;padding:10px;text-align:left}.details-table th{background-color:#f2f2f2}.footer{margin-top:20px;font-size:12px;color:#777;text-align:center}.attachment-note{margin-top:20px;padding:10px;background-color:#f7f7f7;border-left:4px solid #4a90e2;font-style:italic}</style><div class=email-container><div class=header><h1>Request for Quotation (RFQ)</h1></div><div class=content><h2>Dear {{RECIPIENT_NAME}},</h2><p>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.<h2>RFQ Details</h2><table class=details-table><tr><th>Client name<td>{{CLIENT_NAME}}<tr><th>Coverage Type<td>{{POLICY_LONG_NAME}}<tr><th>Policy Start Date<td>{{POLICY_START_DATE}}<tr><th>Policy Duration<td>{{DURATION}}</table><div class=attachment-note>Please note: Additional terms and details are included in the attachment for your reference.</div><p>Please feel free to reach out if you require any further information to prepare the quote. We look forward to receiving your proposal.<p>Best regards,<p><strong>Nhance India Pvt Ltd</strong><br></div><div class=footer><p>© Nhance India Pvt Ltd. All rights reserved.</div></div>'; $message = '<style>body{font-family:Arial,sans-serif;color:#333;line-height:1.6;margin:0;padding:0}.email-container{width:100%;max-width:600px;margin:0 auto;padding:20px;border:1px solid #e0e0e0;background-color:#f9f9f9}.header{background-color:#4a90e2;color:#fff;padding:15px;text-align:center}.header h1{margin:0;font-size:24px}.content{padding:20px;background-color:#fff}.content h2{color:#4a90e2;font-size:20px;margin-top:0}.content p{margin:10px 0}.details-table{width:100%;border-collapse:collapse;margin-top:20px}.details-table td,.details-table th{border:1px solid #ddd;padding:10px;text-align:left}.details-table th{background-color:#f2f2f2}.footer{margin-top:20px;font-size:12px;color:#777;text-align:center}.attachment-note{margin-top:20px;padding:10px;background-color:#f7f7f7;border-left:4px solid #4a90e2;font-style:italic}</style><div class=email-container><div class=header><h1>Request for Quotation (RFQ)</h1></div><div class=content><h2>Dear {{RECIPIENT_NAME}},</h2><p>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.<h2>RFQ Details</h2><table data-custom-table-css="table" class=details-table><tr><th>Client name<td>{{CLIENT_NAME}}<tr><th>Coverage Type<td>{{POLICY_LONG_NAME}}<tr><th>Policy Start Date<td>{{POLICY_START_DATE}}<tr><th>Policy Duration<td>{{DURATION}}</table><div class=attachment-note>Please note: Additional terms and details are included in the attachment for your reference.</div><p>Please feel free to reach out if you require any further information to prepare the quote. We look forward to receiving your proposal.<p>Best regards,<p><strong>Nhance India Pvt Ltd</strong><br></div><div class=footer><p>© Nhance India Pvt Ltd. All rights reserved.</div></div>';
$attachments = [ $attachments = [
["filePath" => ROOTPATH . "public/sample_excel/sample_addition.xls", "fileName" => "sample_addition.xls"], ["filePath" => ROOTPATH . "public/sample_excel/sample_addition.xls", "fileName" => "sample_addition.xls"],
["filePath" => ROOTPATH . "public/sample_excel/sample_inception.xls", "fileName" => "sample_inception.xls"], ["filePath" => ROOTPATH . "public/sample_excel/sample_inception.xls", "fileName" => "sample_inception.xls"],
@ -1973,7 +1973,7 @@ class MasterController extends AdminController
public function sendMutipleToEmails() public function sendMutipleToEmails()
{ {
$message = '<style>body{font-family:Arial,sans-serif;color:#333;line-height:1.6;margin:0;padding:0}.email-container{width:100%;max-width:600px;margin:0 auto;padding:20px;border:1px solid #e0e0e0;background-color:#f9f9f9}.header{background-color:#4a90e2;color:#fff;padding:15px;text-align:center}.header h1{margin:0;font-size:24px}.content{padding:20px;background-color:#fff}.content h2{color:#4a90e2;font-size:20px;margin-top:0}.content p{margin:10px 0}.details-table{width:100%;border-collapse:collapse;margin-top:20px}.details-table td,.details-table th{border:1px solid #ddd;padding:10px;text-align:left}.details-table th{background-color:#f2f2f2}.footer{margin-top:20px;font-size:12px;color:#777;text-align:center}.attachment-note{margin-top:20px;padding:10px;background-color:#f7f7f7;border-left:4px solid #4a90e2;font-style:italic}</style><div class=email-container><div class=header><h1>Request for Quotation (RFQ)</h1></div><div class=content><h2>Dear {{RECIPIENT_NAME}},</h2><p>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.<h2>RFQ Details</h2><table class=details-table><tr><th>Client name<td>{{CLIENT_NAME}}<tr><th>Coverage Type<td>{{POLICY_LONG_NAME}}<tr><th>Policy Start Date<td>{{POLICY_START_DATE}}<tr><th>Policy Duration<td>{{DURATION}}</table><div class=attachment-note>Please note: Additional terms and details are included in the attachment for your reference.</div><p>Please feel free to reach out if you require any further information to prepare the quote. We look forward to receiving your proposal.<p>Best regards,<p><strong>Nhance India Pvt Ltd</strong><br></div><div class=footer><p>© Nhance India Pvt Ltd. All rights reserved.</div></div>'; $message = '<style>body{font-family:Arial,sans-serif;color:#333;line-height:1.6;margin:0;padding:0}.email-container{width:100%;max-width:600px;margin:0 auto;padding:20px;border:1px solid #e0e0e0;background-color:#f9f9f9}.header{background-color:#4a90e2;color:#fff;padding:15px;text-align:center}.header h1{margin:0;font-size:24px}.content{padding:20px;background-color:#fff}.content h2{color:#4a90e2;font-size:20px;margin-top:0}.content p{margin:10px 0}.details-table{width:100%;border-collapse:collapse;margin-top:20px}.details-table td,.details-table th{border:1px solid #ddd;padding:10px;text-align:left}.details-table th{background-color:#f2f2f2}.footer{margin-top:20px;font-size:12px;color:#777;text-align:center}.attachment-note{margin-top:20px;padding:10px;background-color:#f7f7f7;border-left:4px solid #4a90e2;font-style:italic}</style><div class=email-container><div class=header><h1>Request for Quotation (RFQ)</h1></div><div class=content><h2>Dear {{RECIPIENT_NAME}},</h2><p>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.<h2>RFQ Details</h2><table data-custom-table-css="table" class=details-table><tr><th>Client name<td>{{CLIENT_NAME}}<tr><th>Coverage Type<td>{{POLICY_LONG_NAME}}<tr><th>Policy Start Date<td>{{POLICY_START_DATE}}<tr><th>Policy Duration<td>{{DURATION}}</table><div class=attachment-note>Please note: Additional terms and details are included in the attachment for your reference.</div><p>Please feel free to reach out if you require any further information to prepare the quote. We look forward to receiving your proposal.<p>Best regards,<p><strong>Nhance India Pvt Ltd</strong><br></div><div class=footer><p>© Nhance India Pvt Ltd. All rights reserved.</div></div>';
$attachments = [ $attachments = [
["filePath" => ROOTPATH . "public/sample_excel/sample_addition.xls", "fileName" => "sample_addition.xls"], ["filePath" => ROOTPATH . "public/sample_excel/sample_addition.xls", "fileName" => "sample_addition.xls"],
["filePath" => ROOTPATH . "public/sample_excel/sample_inception.xls", "fileName" => "sample_inception.xls"], ["filePath" => ROOTPATH . "public/sample_excel/sample_inception.xls", "fileName" => "sample_inception.xls"],

View File

@ -8,6 +8,8 @@ use CodeIgniter\HTTP\ResponseInterface;
use App\Models\ThzMasterModel; use App\Models\ThzMasterModel;
use App\Models\ThzMasterNotesModel; use App\Models\ThzMasterNotesModel;
use App\Models\ThzTypeModel;
use App\Models\ThzHistoryModel;
use App\ControllerCleaners\ThzControllerCleaner; use App\ControllerCleaners\ThzControllerCleaner;
use App\Models\UserModel; use App\Models\UserModel;
use App\Models\ClientPolicyModel; use App\Models\ClientPolicyModel;
@ -20,7 +22,8 @@ class ThzController extends BaseController
protected $thzMasterModel; protected $thzMasterModel;
protected $thzMasterNotesModel; protected $thzMasterNotesModel;
protected $thzTypeModel;
protected $thzHistoryModel;
protected $thzControllerCleaner; protected $thzControllerCleaner;
protected $userModel; protected $userModel;
@ -33,6 +36,8 @@ class ThzController extends BaseController
{ {
$this->thzMasterModel = new ThzMasterModel(); $this->thzMasterModel = new ThzMasterModel();
$this->thzMasterNotesModel = new ThzMasterNotesModel(); $this->thzMasterNotesModel = new ThzMasterNotesModel();
$this->thzTypeModel = new thzTypeModel();
$this->thzHistoryModel = new ThzHistoryModel();
$this->thzControllerCleaner = new ThzControllerCleaner(); $this->thzControllerCleaner = new ThzControllerCleaner();
$this->userModel = new UserModel(); $this->userModel = new UserModel();
$this->clientPolicyModel = new ClientPolicyModel(); $this->clientPolicyModel = new ClientPolicyModel();
@ -53,6 +58,28 @@ class ThzController extends BaseController
$text = "update"; $text = "update";
$result = $this->updateTicket($data); $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']; $updateID = $data['thz_id'];
} else { } 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 ********************************************************/ /************************************************** PRIVATE FUNCTIONS ********************************************************/

View File

@ -123,13 +123,21 @@ class VidalApiController extends BaseController
} }
public function newClaim(){ public function newClaim()
{
$postData = $this->request->getPost(); $postData = $this->request->getPost();
if (empty($postData)) {
return $this->response->setJSON([
'status' => false,
'message' => 'Empty Data Given.',
'data' => $postData
]);
}
helper('api'); helper('api');
$url = ''. getenv('VIDAL_API_BASE_URL').'/submitClaim'; $url = getenv('VIDAL_API_BASE_URL') . '/submitClaim';
$method = 'POST'; $method = 'POST';
$headers = [ $headers = [
@ -138,27 +146,38 @@ class VidalApiController extends BaseController
]; ];
$body = [ $body = [
'username:' .getenv('VIDAL_API_USERNAME').'', 'username' => getenv('VIDAL_API_USERNAME'),
'password:' .getenv('VIDAL_API_PASSWORD').'', 'password' => getenv('VIDAL_API_PASSWORD'),
'PolicyNo:' .$postData['policyNo'] ?? '', 'policyNo' => $postData['policyNo'] ?? '',
'enrollmentId:' .$postData['enrollmentId'] ?? '', 'enrollmentId' => $postData['enrollmentId'] ?? '',
'typeOfClaim:' .$postData['typeOfClaim'] ?? '', 'typeOfClaim' => $postData['typeOfClaim'] ?? '',
'claimSubType:' .$postData['claimSubType'] ?? '', 'claimSubType' => $postData['claimSubType'] ?? '',
'requestedAmount:' .$postData['requestedAmount'] ?? '', 'requestedAmount' => $postData['requestedAmount'] ?? '',
'ailmentType:' .$postData['ailmentType'] ?? '', 'ailmentType' => $postData['ailmentType'] ?? '',
'admissionDate:' .$postData['admissionDate'] ?? '', 'admissionDate' => $postData['admissionDate'] ?? '',
'dischargeDate:' .$postData['dischargeDate'] ?? '', 'dischargeDate' => $postData['dischargeDate'] ?? '',
'hospitalName:' .$postData['hospitalName'] ?? '', 'hospitalName' => $postData['hospitalName'] ?? '',
'empanelmentNo:' .$postData['empanelmentNo'] ?? '', 'empanelmentNo' => $postData['empanelmentNo'] ?? '',
'documentType:' .$postData['documentType'] ?? '', 'documentType' => $postData['documentType'] ?? '',
'ailmentName:' .$postData['ailmentName'] ?? '', 'ailmentName' => $postData['ailmentName'] ?? '',
'hospitalAddress:' .$postData['hospitalAddress'] ?? '', 'hospitalAddress' => $postData['hospitalAddress'] ?? '',
'hospitalState:' .$postData['hospitalState'] ?? '', 'hospitalState' => $postData['hospitalState'] ?? '',
'hospitalCity:' .$postData['hospitalCity'] ?? '', 'hospitalCity' => $postData['hospitalCity'] ?? '',
'hospitalPinCode:' .$postData['hospitalPinCode'] ?? '', 'hospitalPinCode' => $postData['hospitalPinCode'] ?? '',
'hospitalPhoneNo:' .$postData['hospitalPhoneNo'] ?? '' '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); $response = call_third_party_api($url, $method, $headers, $body);
if($response['status'] != true){ if($response['status'] != true){
@ -170,10 +189,10 @@ class VidalApiController extends BaseController
} }
return $this->response->setJSON($response); return $this->response->setJSON($response);
} }
public function enrollment(){ public function enrollment(){
$postData = $this->request->getJSON(true); $postData = $this->request->getJSON(true);

View File

@ -393,18 +393,18 @@ class ChatbotHelper
<body class="clean-body u_body" style="margin: 0;padding: 0;-webkit-text-size-adjust: 100%;background-color: #F9F9F9;color: #000000"> <body class="clean-body u_body" style="margin: 0;padding: 0;-webkit-text-size-adjust: 100%;background-color: #F9F9F9;color: #000000">
<!--[if IE]><div class="ie-container"><![endif]--> <!--[if IE]><div class="ie-container"><![endif]-->
<!--[if mso]><div class="mso-container"><![endif]--> <!--[if mso]><div class="mso-container"><![endif]-->
<table style="border-collapse: collapse;table-layout: fixed;border-spacing: 0;mso-table-lspace: 0pt;mso-table-rspace: 0pt;vertical-align: top;min-width: 320px;Margin: 0 auto;background-color: #F9F9F9;width:100%" cellpadding="0" cellspacing="0"> <table data-custom-table-css="table" style="border-collapse: collapse;table-layout: fixed;border-spacing: 0;mso-table-lspace: 0pt;mso-table-rspace: 0pt;vertical-align: top;min-width: 320px;Margin: 0 auto;background-color: #F9F9F9;width:100%" cellpadding="0" cellspacing="0">
<tbody> <tbody>
<tr style="vertical-align: top"> <tr style="vertical-align: top">
<td style="word-break: break-word;border-collapse: collapse !important;vertical-align: top"> <td style="word-break: break-word;border-collapse: collapse !important;vertical-align: top">
<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="center" style="background-color: #F9F9F9;"><![endif]--> <!--[if (mso)|(IE)]><table data-custom-table-css="table" width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="center" style="background-color: #F9F9F9;"><![endif]-->
<div class="u-row-container" style="padding: 0px;background-color: transparent"> <div class="u-row-container" style="padding: 0px;background-color: transparent">
<div class="u-row" style="margin: 0 auto;min-width: 320px;max-width: 620px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;"> <div class="u-row" style="margin: 0 auto;min-width: 320px;max-width: 620px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;">
<div style="border-collapse: collapse;display: table;width: 100%;height: 100%;background-color: transparent;"> <div style="border-collapse: collapse;display: table;width: 100%;height: 100%;background-color: transparent;">
<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: transparent;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:620px;"><tr style="background-color: transparent;"><![endif]--> <!--[if (mso)|(IE)]><table data-custom-table-css="table" width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: transparent;" align="center"><table data-custom-table-css="table" cellpadding="0" cellspacing="0" border="0" style="width:620px;"><tr style="background-color: transparent;"><![endif]-->
<!--[if (mso)|(IE)]><td align="center" width="620" style="width: 620px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;" valign="top"><![endif]--> <!--[if (mso)|(IE)]><td align="center" width="620" style="width: 620px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;" valign="top"><![endif]-->
<div class="u-col u-col-100" style="max-width: 320px;min-width: 620px;display: table-cell;vertical-align: top;"> <div class="u-col u-col-100" style="max-width: 320px;min-width: 620px;display: table-cell;vertical-align: top;">
@ -412,12 +412,12 @@ class ChatbotHelper
<!--[if (!mso)&(!IE)]><!--> <!--[if (!mso)&(!IE)]><!-->
<div style="box-sizing: border-box; height: 100%; padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;"><!--<![endif]--> <div style="box-sizing: border-box; height: 100%; padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;"><!--<![endif]-->
<table style="font-family:times new roman,times;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0"> <table data-custom-table-css="table" style="font-family:times new roman,times;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
<tbody> <tbody>
<tr> <tr>
<td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:times new roman,times;" align="left"> <td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:times new roman,times;" align="left">
<table width="100%" cellpadding="0" cellspacing="0" border="0"> <table data-custom-table-css="table" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr> <tr>
<td style="padding-right: 0px;padding-left: 0px;" align="center"> <td style="padding-right: 0px;padding-left: 0px;" align="center">
@ -449,7 +449,7 @@ class ChatbotHelper
<div class="u-row-container" style="padding: 0px;background-color: transparent"> <div class="u-row-container" style="padding: 0px;background-color: transparent">
<div class="u-row" style="margin: 0 auto;min-width: 320px;max-width: 620px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;"> <div class="u-row" style="margin: 0 auto;min-width: 320px;max-width: 620px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;">
<div style="border-collapse: collapse;display: table;width: 100%;height: 100%;background-color: transparent;"> <div style="border-collapse: collapse;display: table;width: 100%;height: 100%;background-color: transparent;">
<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: transparent;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:620px;"><tr style="background-color: transparent;"><![endif]--> <!--[if (mso)|(IE)]><table data-custom-table-css="table" width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: transparent;" align="center"><table data-custom-table-css="table" cellpadding="0" cellspacing="0" border="0" style="width:620px;"><tr style="background-color: transparent;"><![endif]-->
<!--[if (mso)|(IE)]><td align="center" width="620" style="width: 620px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;" valign="top"><![endif]--> <!--[if (mso)|(IE)]><td align="center" width="620" style="width: 620px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;" valign="top"><![endif]-->
<div class="u-col u-col-100" style="max-width: 320px;min-width: 620px;display: table-cell;vertical-align: top;"> <div class="u-col u-col-100" style="max-width: 320px;min-width: 620px;display: table-cell;vertical-align: top;">
@ -457,7 +457,7 @@ class ChatbotHelper
<!--[if (!mso)&(!IE)]><!--> <!--[if (!mso)&(!IE)]><!-->
<div style="box-sizing: border-box; height: 100%; padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;"><!--<![endif]--> <div style="box-sizing: border-box; height: 100%; padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;"><!--<![endif]-->
<table style="font-family:times new roman,times;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0"> <table data-custom-table-css="table" style="font-family:times new roman,times;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
<tbody> <tbody>
<tr> <tr>
<td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:times new roman,times;" align="left"> <td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:times new roman,times;" align="left">
@ -492,7 +492,7 @@ class ChatbotHelper
<div class="u-row-container" style="padding: 0px;background-color: transparent"> <div class="u-row-container" style="padding: 0px;background-color: transparent">
<div class="u-row" style="margin: 0 auto;min-width: 320px;max-width: 620px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;"> <div class="u-row" style="margin: 0 auto;min-width: 320px;max-width: 620px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;">
<div style="border-collapse: collapse;display: table;width: 100%;height: 100%;background-color: transparent;"> <div style="border-collapse: collapse;display: table;width: 100%;height: 100%;background-color: transparent;">
<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: transparent;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:620px;"><tr style="background-color: transparent;"><![endif]--> <!--[if (mso)|(IE)]><table data-custom-table-css="table" width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: transparent;" align="center"><table data-custom-table-css="table" cellpadding="0" cellspacing="0" border="0" style="width:620px;"><tr style="background-color: transparent;"><![endif]-->
<!--[if (mso)|(IE)]><td align="center" width="620" style="width: 620px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;" valign="top"><![endif]--> <!--[if (mso)|(IE)]><td align="center" width="620" style="width: 620px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;" valign="top"><![endif]-->
<div class="u-col u-col-100" style="max-width: 320px;min-width: 620px;display: table-cell;vertical-align: top;"> <div class="u-col u-col-100" style="max-width: 320px;min-width: 620px;display: table-cell;vertical-align: top;">
@ -500,7 +500,7 @@ class ChatbotHelper
<!--[if (!mso)&(!IE)]><!--> <!--[if (!mso)&(!IE)]><!-->
<div style="box-sizing: border-box; height: 100%; padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;"><!--<![endif]--> <div style="box-sizing: border-box; height: 100%; padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;"><!--<![endif]-->
<table style="font-family:times new roman,times;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0"> <table data-custom-table-css="table" style="font-family:times new roman,times;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
<tbody> <tbody>
<tr> <tr>
<td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:times new roman,times;" align="left"> <td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:times new roman,times;" align="left">
@ -514,7 +514,7 @@ class ChatbotHelper
</tbody> </tbody>
</table> </table>
<table style="font-family:times new roman,times;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0"> <table data-custom-table-css="table" style="font-family:times new roman,times;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
<tbody> <tbody>
<tr> <tr>
<td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:times new roman,times;" align="left"> <td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:times new roman,times;" align="left">

View File

@ -322,6 +322,7 @@ class MailHelper
$from_address = isset($params['from_mail']) && !empty($params['from_mail']) ? $params['from_mail'] : getenv('email.fromEmail'); $from_address = isset($params['from_mail']) && !empty($params['from_mail']) ? $params['from_mail'] : getenv('email.fromEmail');
// $from_address = "claims@nhanceindia.in"; // $from_address = "claims@nhanceindia.in";
if(isset($params['common'])){ $params['common']['from_mail'] = $from_address; }
try { try {
$curl = curl_init(); $curl = curl_init();

View File

@ -59,6 +59,7 @@ if (!function_exists('call_third_party_api')) {
} }
$decoded = json_decode($response, true); $decoded = json_decode($response, true);
return [ return [
'status' => ($httpCode >= 200 && $httpCode < 300), 'status' => ($httpCode >= 200 && $httpCode < 300),
'data' => $decoded ?: $response, // fallback to raw response 'data' => $decoded ?: $response, // fallback to raw response

View File

@ -305,7 +305,7 @@ class sendMailNotification
} }
$table_content .= $policy_name_for_policy_type . '</h4></div>'; $table_content .= $policy_name_for_policy_type . '</h4></div>';
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">'; $table_content .= '<table data-custom-table-css="table" border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
// Add text-align: center to the table head // Add text-align: center to the table head
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">'; $table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
@ -442,7 +442,7 @@ class sendMailNotification
} }
$table_content .= $policy_name_for_policy_type . ' ( Payable By Employee ) </h4></div>'; $table_content .= $policy_name_for_policy_type . ' ( Payable By Employee ) </h4></div>';
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">'; $table_content .= '<table data-custom-table-css="table" border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
// Add text-align: center to the table head // Add text-align: center to the table head
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">'; $table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
@ -479,7 +479,7 @@ class sendMailNotification
if (count($Addon_list) > 0) { if (count($Addon_list) > 0) {
$table_content .= '<br><div style="text-align: left; font-size: 12px;"><div style="text-align:left;">'; $table_content .= '<br><div style="text-align: left; font-size: 12px;"><div style="text-align:left;">';
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">'; $table_content .= '<table data-custom-table-css="table" border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
// Center align for table header and body // Center align for table header and body
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">'; $table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
@ -655,7 +655,7 @@ class sendMailNotification
} }
$table_content .= $policy_name_for_policy_type . '</h4></div>'; $table_content .= $policy_name_for_policy_type . '</h4></div>';
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">'; $table_content .= '<table data-custom-table-css="table" border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
// Add text-align: center to the table head // Add text-align: center to the table head
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">'; $table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
@ -741,7 +741,7 @@ class sendMailNotification
} }
$table_content .= $policy_name_for_policy_type . ' ( Payable By Employee ) </h4></div>'; $table_content .= $policy_name_for_policy_type . ' ( Payable By Employee ) </h4></div>';
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">'; $table_content .= '<table data-custom-table-css="table" border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
// Add text-align: center to the table head // Add text-align: center to the table head
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">'; $table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
@ -779,7 +779,7 @@ class sendMailNotification
if (count($Addon_list) > 0) { if (count($Addon_list) > 0) {
$table_content .= '<br><div style="text-align: left; font-size: 12px;"><div style="text-align:left;">'; $table_content .= '<br><div style="text-align: left; font-size: 12px;"><div style="text-align:left;">';
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">'; $table_content .= '<table data-custom-table-css="table" border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
// Center align for table header and body // Center align for table header and body
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">'; $table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
@ -956,7 +956,7 @@ class sendMailNotification
} }
$table_content .= $policy_name_for_policy_type . '</h4></div>'; $table_content .= $policy_name_for_policy_type . '</h4></div>';
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">'; $table_content .= '<table data-custom-table-css="table" border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
// Add text-align: center to the table head // Add text-align: center to the table head
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">'; $table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
@ -1042,7 +1042,7 @@ class sendMailNotification
} }
$table_content .= $policy_name_for_policy_type . ' ( Payable By Employee ) </h4></div>'; $table_content .= $policy_name_for_policy_type . ' ( Payable By Employee ) </h4></div>';
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">'; $table_content .= '<table data-custom-table-css="table" border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
// Add text-align: center to the table head // Add text-align: center to the table head
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">'; $table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
@ -1079,7 +1079,7 @@ class sendMailNotification
if (count($Addon_list) > 0) { if (count($Addon_list) > 0) {
$table_content .= '<br><div style="text-align: left; font-size: 12px;"><div style="text-align:left;">'; $table_content .= '<br><div style="text-align: left; font-size: 12px;"><div style="text-align:left;">';
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">'; $table_content .= '<table data-custom-table-css="table" border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
// Center align for table header and body // Center align for table header and body
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">'; $table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
@ -1332,7 +1332,7 @@ class sendMailNotification
// Start table row // Start table row
$table_content .= $policy_name . '</h4></div>'; $table_content .= $policy_name . '</h4></div>';
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">'; $table_content .= '<table data-custom-table-css="table" border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">'; $table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
$table_content .= '<tr>'; $table_content .= '<tr>';
$table_content .= '<th>Name</th>'; $table_content .= '<th>Name</th>';
@ -1384,7 +1384,7 @@ class sendMailNotification
// Generate summary table for addon if applicable // Generate summary table for addon if applicable
if (count($Addon_list) > 0) { if (count($Addon_list) > 0) {
$table_content .= '<br><div style="text-align: left; font-size: 12px;"><div style="text-align:left;">'; $table_content .= '<br><div style="text-align: left; font-size: 12px;"><div style="text-align:left;">';
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">'; $table_content .= '<table data-custom-table-css="table" border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">'; $table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
$table_content .= '<tr>'; $table_content .= '<tr>';
@ -1482,7 +1482,7 @@ class sendMailNotification
// Start table row // Start table row
$table_content .= $policy_name . '</h4></div>'; $table_content .= $policy_name . '</h4></div>';
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">'; $table_content .= '<table data-custom-table-css="table" border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">'; $table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
$table_content .= '<tr>'; $table_content .= '<tr>';
$table_content .= '<th>Name</th>'; $table_content .= '<th>Name</th>';
@ -1534,7 +1534,7 @@ class sendMailNotification
// Generate summary table for addon if applicable // Generate summary table for addon if applicable
if (count($Addon_list) > 0) { if (count($Addon_list) > 0) {
$table_content .= '<br><div style="text-align: left; font-size: 12px;"><div style="text-align:left;">'; $table_content .= '<br><div style="text-align: left; font-size: 12px;"><div style="text-align:left;">';
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">'; $table_content .= '<table data-custom-table-css="table" border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">'; $table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
$table_content .= '<tr>'; $table_content .= '<tr>';
@ -1630,7 +1630,7 @@ class sendMailNotification
// Start table row // Start table row
$table_content .= $policy_name . '</h4></div>'; $table_content .= $policy_name . '</h4></div>';
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">'; $table_content .= '<table data-custom-table-css="table" border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">'; $table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
$table_content .= '<tr>'; $table_content .= '<tr>';
$table_content .= '<th>Name</th>'; $table_content .= '<th>Name</th>';
@ -1683,7 +1683,7 @@ class sendMailNotification
if (count($Addon_list) > 0) { if (count($Addon_list) > 0) {
$table_content .= '<br><div style="text-align: left; font-size: 12px;"><div style="text-align:left;">'; $table_content .= '<br><div style="text-align: left; font-size: 12px;"><div style="text-align:left;">';
$table_content .= '<table border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">'; $table_content .= '<table data-custom-table-css="table" border="1" cellpadding="5" cellspacing="0" style="width:100%; border-collapse: collapse; font-size: 12px;">';
$table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">'; $table_content .= '<thead style="background-color: #02a8b5; color: #ffffff; text-align: center;">';
$table_content .= '<tr>'; $table_content .= '<tr>';

View File

@ -25,6 +25,7 @@ class BatchFileModel extends Model
"status", "status",
"error_data", "error_data",
"client_branch_id", "client_branch_id",
"policy_issue_date",
]; ];
// Callbacks // Callbacks

View File

@ -7,5 +7,5 @@ use CodeIgniter\Model;
class GmailSentHistoryModel extends Model{ class GmailSentHistoryModel extends Model{
protected $table = 'gmail_sent_history'; protected $table = 'gmail_sent_history';
protected $primaryKey = 'id'; 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"];
} }

View File

@ -0,0 +1,45 @@
<?php
namespace App\Models;
use CodeIgniter\Model;
class ThzHistoryModel extends Model
{
protected $table = 'thz_history';
protected $primaryKey = 'id';
protected $useAutoIncrement = true;
protected $returnType = 'array';
protected $useSoftDeletes = false;
protected $protectFields = true;
protected $allowedFields = ['thz_id','field_name','display_name','old_value','new_value','created_by','created_at','is_active'];
protected bool $allowEmptyInserts = false;
// Dates
protected $useTimestamps = false;
protected $dateFormat = 'datetime';
protected $createdField = 'created_at';
protected $updatedField = 'updated_at';
protected $deletedField = 'deleted_at';
// Validation
protected $validationRules = [];
protected $validationMessages = [];
protected $skipValidation = false;
protected $cleanValidationRules = true;
// Callbacks
protected $allowCallbacks = true;
protected $beforeInsert = [];
protected $afterInsert = [];
protected $beforeUpdate = [];
protected $afterUpdate = [];
protected $beforeFind = [];
protected $afterFind = [];
protected $beforeDelete = [];
protected $afterDelete = [];
}

View File

@ -0,0 +1,44 @@
<?php
namespace App\Models;
use CodeIgniter\Model;
class ThzTypeModel extends Model
{
protected $table = 'thz_type';
protected $primaryKey = 'id';
protected $useAutoIncrement = true;
protected $returnType = 'array';
protected $useSoftDeletes = false;
protected $protectFields = true;
protected $allowedFields = ['name','created_at','updated_at','created_by','updated_by' ,'is_active'];
protected bool $allowEmptyInserts = false;
// Dates
protected $useTimestamps = false;
protected $dateFormat = 'datetime';
protected $createdField = 'created_at';
protected $updatedField = 'updated_at';
protected $deletedField = 'deleted_at';
// Validation
protected $validationRules = [];
protected $validationMessages = [];
protected $skipValidation = false;
protected $cleanValidationRules = true;
// Callbacks
protected $allowCallbacks = true;
protected $beforeInsert = [];
protected $afterInsert = [];
protected $beforeUpdate = [];
protected $afterUpdate = [];
protected $beforeFind = [];
protected $afterFind = [];
protected $beforeDelete = [];
protected $afterDelete = [];
}

View File

@ -221,7 +221,7 @@
<img src="<?= base_url() . "public"; ?>/assets/images/active_pending_actions.png" alt="Logo" height="14" <img src="<?= base_url() . "public"; ?>/assets/images/active_pending_actions.png" alt="Logo" height="14"
class="active_pending" style="display:none;"> class="active_pending" style="display:none;">
&nbsp;&nbsp; &nbsp;&nbsp;
<span class="d-none d-sm-inline-block dash-tab">Pending Actions</span> <span class="d-none d-sm-inline-block dash-tab dash-tab-font">Pending Actions</span>
</a> </a>
</li> </li>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
@ -235,7 +235,7 @@
<img src="<?= base_url() . "public"; ?>/assets/images/active_bds.png" alt="Logo" height="14" <img src="<?= base_url() . "public"; ?>/assets/images/active_bds.png" alt="Logo" height="14"
class="active_bds " style="display:none;"> class="active_bds " style="display:none;">
&nbsp;&nbsp; &nbsp;&nbsp;
<span class="d-none d-sm-inline-block dash-tab">BDS</span> <span class="d-none d-sm-inline-block dash-tab dash-tab-font">BDS</span>
</a> </a>
</li> </li>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
@ -251,7 +251,7 @@
<img src="<?= base_url() . "public"; ?>/assets/images/active_claims.png" alt="Logo" height="14" <img src="<?= base_url() . "public"; ?>/assets/images/active_claims.png" alt="Logo" height="14"
class="active_claims " style="display:none;"> class="active_claims " style="display:none;">
&nbsp;&nbsp; &nbsp;&nbsp;
<span class="d-none d-sm-inline-block dash-tab">Claims</span> <span class="d-none d-sm-inline-block dash-tab dash-tab-font">Claims</span>
</a> </a>
</li> </li>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
@ -266,7 +266,7 @@
<img src="<?= base_url() . "public"; ?>/assets/images/active_leads_and_bds_renewal.png" alt="Logo" height="14" <img src="<?= base_url() . "public"; ?>/assets/images/active_leads_and_bds_renewal.png" alt="Logo" height="14"
class="active_leads " style="display:none;"> class="active_leads " style="display:none;">
&nbsp;&nbsp; &nbsp;&nbsp;
<span class="d-none d-sm-inline-block dash-tab">Leads and BDS Renewals</span> <span class="d-none d-sm-inline-block dash-tab dash-tab-font">Leads and BDS Renewals</span>
</a> </a>
</li> </li>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;

View File

@ -249,7 +249,7 @@ table.dataTable tbody td {
<h4 style="position: relative;">User List</h4> <h4 style="position: relative;">User List</h4>
</div> </div>
</div> </div>
<table class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0" id="tickets-table"> <table data-custom-table-css="table" class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0" id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th class="font-weight-medium">Name</th> <th class="font-weight-medium">Name</th>
@ -383,7 +383,7 @@ table.dataTable tbody td {
<!-- Tooltip container separate from trigger --> <!-- Tooltip container separate from trigger -->
<div class="tooltip-container" id="tooltipContainer"> <div class="tooltip-container" id="tooltipContainer">
<div class="tooltip" id="accessMatrixTooltip"> <div class="tooltip" id="accessMatrixTooltip">
<table class="tooltip-table" style="color: black;"> <table data-custom-table-css="table" class="tooltip-table" style="color: black;">
<thead> <thead>
<tr> <tr>
<th>Team</th> <th>Team</th>
@ -475,7 +475,7 @@ table.dataTable tbody td {
<div class="tooltip-container" id="roleTooltipContainer"> <div class="tooltip-container" id="roleTooltipContainer">
<div class="tooltip" id="roleAccessMatrixTooltip"> <div class="tooltip" id="roleAccessMatrixTooltip">
<table class="tooltip-table" style="color: black;"> <table data-custom-table-css="table" class="tooltip-table" style="color: black;">
<thead> <thead>
<tr> <tr>
<th>Team</th> <th>Team</th>

View File

@ -30,7 +30,7 @@ table.dataTable thead th {
<a data-toggle="modal" data-target="#bike_make_login-modal" href="#" type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="" data-placement="top" title="Add" data-trigger="hover">ADD</a> <a data-toggle="modal" data-target="#bike_make_login-modal" href="#" type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="" data-placement="top" title="Add" data-trigger="hover">ADD</a>
</div> </div>
</div> </div>
<table class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0" <table data-custom-table-css="table" class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0"
id="tickets-table"> id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>

View File

@ -25,7 +25,7 @@
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<table id="datatable-buttons" class="table table-hover m-0 table-centered dt-responsive w-100"> <table data-custom-table-css="table" id="datatable-buttons" class="table table-hover m-0 table-centered dt-responsive w-100">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th class="font-weight-medium">SNO</th> <th class="font-weight-medium">SNO</th>

View File

@ -33,7 +33,7 @@
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead> <thead>
<tr> <tr>
<?php <?php

View File

@ -20,7 +20,7 @@ table.dataTable tbody td {
</div> </div>
<div> <div>
<div class="table-responsive"> <div class="table-responsive">
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th> <th>

View File

@ -30,7 +30,7 @@ table.dataTable tbody td {
</div> </div>
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th>Insurer</th> <th>Insurer</th>

View File

@ -30,7 +30,7 @@ table.dataTable tbody td {
</div> </div>
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th>Insurer</th> <th>Insurer</th>

View File

@ -33,7 +33,7 @@
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead> <thead>
<tr> <tr>
<?php <?php

View File

@ -179,7 +179,7 @@ table.dataTable tbody td {
</div> </div>
<div class="table-responsive" style="overflow-x: auto;"> <div class="table-responsive" style="overflow-x: auto;">
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th>S.No</th> <th>S.No</th>

View File

@ -66,7 +66,7 @@ table.dataTable thead th {
data-trigger="hover">ADD</button> --> data-trigger="hover">ADD</button> -->
</div> </div>
</div> </div>
<table id="scroll-horizontal-datatable" class="table w-100 nowrap" > <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap" >
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th class="font-weight-medium">S.No.</th> <th class="font-weight-medium">S.No.</th>

View File

@ -68,7 +68,7 @@
</div> </div>
</div> </div>
<table class="table table-hover m-0 table-centered dt-responsive w-100" cellspacing="0" id="tickets-table"> <table data-custom-table-css="table" class="table table-hover m-0 table-centered dt-responsive w-100" cellspacing="0" id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th class="font-weight-medium">SNO</th> <th class="font-weight-medium">SNO</th>

View File

@ -45,7 +45,7 @@
</div> </div>
<div class="table-responsive" style="overflow-x: auto;"> <div class="table-responsive" style="overflow-x: auto;">
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th>S.No</th> <th>S.No</th>

View File

@ -33,7 +33,7 @@
</div> </div>
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead class="bg-light"> <thead class="bg-light">
<?php if ($policy_type != 1) {?> <?php if ($policy_type != 1) {?>
<tr> <tr>

View File

@ -29,7 +29,7 @@
</div> </div>
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th style="text-align: center;" colspan="8">OPEN</th> <th style="text-align: center;" colspan="8">OPEN</th>

View File

@ -44,7 +44,7 @@
</div> --> </div> -->
</div> </div>
<!-- <div class="table-responsive"> <!-- <div class="table-responsive">
<table class="table table-bordered table-striped"> <table data-custom-table-css="table" class="table table-bordered table-striped">
<tr> <tr>
<td>Get Individual Employee Data</td> <td>Get Individual Employee Data</td>
<td><?= base_url("getEmpData") ?></td> <td><?= base_url("getEmpData") ?></td>

View File

@ -54,7 +54,7 @@
<div class="table-responsive" id="branch_table"> <div class="table-responsive" id="branch_table">
<table class="table table-borderless table-nowrap mb-0"> <table data-custom-table-css="table" class="table table-borderless table-nowrap mb-0">
<thead class="thead-light"> <thead class="thead-light">
<tr> <tr>
<th>Branch Name</th> <th>Branch Name</th>

View File

@ -16,7 +16,7 @@
<a href="<?= base_url("client/client_deposit"); ?>" type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="" data-placement="top" title="Add" data-trigger="hover">ADD</a> <a href="<?= base_url("client/client_deposit"); ?>" type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="" data-placement="top" title="Add" data-trigger="hover">ADD</a>
</div> --> </div> -->
</div> </div>
<table class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0" <table data-custom-table-css="table" class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0"
id="tickets-table"> id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>

View File

@ -39,7 +39,7 @@
<!-- <!--
<div class="col-6"> <div class="col-6">
<table> <table data-custom-table-css="table">
<tr> <tr>
<td style="font-size: 18px;"></td> <td style="font-size: 18px;"></td>
</tr> </tr>
@ -48,7 +48,7 @@
<div class="col-6"> <div class="col-6">
<table> <table data-custom-table-css="table">
<tr> <tr>
<td style="font-size: 18px;"> <strong> Relationship Manager </strong></td> <td style="font-size: 18px;"> <strong> Relationship Manager </strong></td>
</tr> </tr>
@ -63,7 +63,7 @@
<div class="row"> <div class="row">
<!-- <div class="col-6"> <!-- <div class="col-6">
<table> <table data-custom-table-css="table">
<tr> <tr>
<td style="padding: 3px;"></td> <td style="padding: 3px;"></td>
</tr> </tr>
@ -74,7 +74,7 @@
</div> --> </div> -->
<div class="col-6"> <div class="col-6">
<table> <table data-custom-table-css="table">
<tr> <tr>
<td style="padding: 3px;"><label> Account Manager : <td style="padding: 3px;"><label> Account Manager :
</label> <?= implode(', ', $account_managers) ?></td> </label> <?= implode(', ', $account_managers) ?></td>
@ -120,7 +120,7 @@
<div id="collapseTwo" class="collapse show" aria-labelledby="headingOne" data-parent="#accordion"> <div id="collapseTwo" class="collapse show" aria-labelledby="headingOne" data-parent="#accordion">
<div class="card-body" style="position: relative;bottom: 25px;"> <div class="card-body" style="position: relative;bottom: 25px;">
<div class="row"> <div class="row">
<table class="table table-hover m-0 table-centered dt-responsive nowrap w-100" <table data-custom-table-css="table" class="table table-hover m-0 table-centered dt-responsive nowrap w-100"
cellspacing="0"> cellspacing="0">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
@ -205,7 +205,7 @@
<div id="collapseThree" class="collapse show" aria-labelledby="headingOne" data-parent="#accordion"> <div id="collapseThree" class="collapse show" aria-labelledby="headingOne" data-parent="#accordion">
<div class="card-body" style="position: relative;bottom: 25px;"> <div class="card-body" style="position: relative;bottom: 25px;">
<div class="row"> <div class="row">
<table id="tb1" class="table table-hover m-0 table-centered dt-responsive nowrap w-100" <table data-custom-table-css="table" id="tb1" class="table table-hover m-0 table-centered dt-responsive nowrap w-100"
cellspacing="0"> cellspacing="0">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>

View File

@ -9,7 +9,7 @@
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<div class="table-responsive"> <div class="table-responsive">
<table id="kyc_table" class="table table-sm mb-0"> <table data-custom-table-css="table" id="kyc_table" class="table table-sm mb-0">
<thead> <thead>
<tr> <tr>
<th>Document Name</th> <th>Document Name</th>
@ -70,7 +70,7 @@
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<div class="table-responsive"> <div class="table-responsive">
<table id="kyc_table" class="table table-sm mb-0"> <table data-custom-table-css="table" id="kyc_table" class="table table-sm mb-0">
<thead> <thead>
<tr> <tr>
<th>Document Name</th> <th>Document Name</th>
@ -310,7 +310,7 @@
<td>${item.other_docs_name}</td> <td>${item.other_docs_name}</td>
<td>${item.file_name}</td> <td>${item.file_name}</td>
<td> <td>
<a href = "${url}" data-id="${item.id}" class="fa fa-download" style="font-size:18px;" download></a> <a href = "${url}" data-id="${item.id}" class="mdi mdi-download" style="font-size:18px;" download></a>
</td> </td>
</tr> </tr>
`; `;
@ -424,7 +424,7 @@
</td> </td>
<td id="name_${item.id}" style="display:none;"></td> <td id="name_${item.id}" style="display:none;"></td>
<td> <td>
<a id="download_${item.id}" data-id="${item.id}" class="fa fa-download" style="font-size:18px; display: none" download></a> <a id="download_${item.id}" data-id="${item.id}" class="mdi mdi-download" style="font-size:18px; display: none" download></a>
</td> </td>
</tr>`; </tr>`;
tbody.append(row); tbody.append(row);
@ -480,7 +480,7 @@
<td>${item.other_docs_name}</td> <td>${item.other_docs_name}</td>
<td>${item.file_name}</td> <td>${item.file_name}</td>
<td> <td>
<a href = "${url}" data-id="${item.id}" class="fa fa-download" style="font-size:18px;" target="_blank"></a> <a href = "${url}" data-id="${item.id}" class="mdi mdi-download" style="font-size:18px;" target="_blank"></a>
</td> </td>
</tr> </tr>
`; `;

View File

@ -65,7 +65,7 @@ table.dataTable thead th {
<a href="<?= base_url("client/create"); ?>" type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="" data-placement="top" title="Add" data-trigger="hover">Add</a> <a href="<?= base_url("client/create"); ?>" type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="" data-placement="top" title="Add" data-trigger="hover">Add</a>
</div> --> </div> -->
</div> </div>
<table class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0" <table data-custom-table-css="table" class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0"
id="tickets-table"> id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>

View File

@ -28,7 +28,7 @@
</div> </div>
<div class="table-responsive" id="table_list"> <div class="table-responsive" id="table_list">
<table class="table table-borderless table mb-0" id="table-client-policy"> <table data-custom-table-css="table" class="table table-borderless table mb-0" id="table-client-policy">
<thead class="thead-light"> <thead class="thead-light">
<tr> <tr>
<th>Insurer</th> <th>Insurer</th>
@ -425,7 +425,7 @@
// Conditionally render the delete option based on the role // Conditionally render the delete option based on the role
if (role !== 3 && role !== 4) { if (role !== 3 && role !== 4) {
policyTable += ` policyTable += `
<a href="#" data-id="${item.id}" id="${search_term}" data-typeid="${item.policy_type_id}" class="dropdown-item" onclick="removepolicy(this)"><i class="fa fa-trash mr-2 text-muted font-18 vertical-middle"></i>Delete</a>`; <a href="#" data-id="${item.id}" id="${search_term}" data-typeid="${item.policy_type_id}" class="dropdown-item" onclick="removepolicy(this)"><i class="mdi mdi-delete mr-2 text-muted font-18 vertical-middle"></i>Delete</a>`;
} }
policyTable += ` policyTable += `

View File

@ -99,7 +99,7 @@
</div> </div>
<div class="table-responsive" style="overflow-x: auto;"> <div class="table-responsive" style="overflow-x: auto;">
<table id="scroll-horizontal-datatable" class="table w-100"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th>S.No</th> <th>S.No</th>
@ -118,7 +118,7 @@
<td> <td>
<a id="download_1" <a id="download_1"
data-id="1" data-id="1"
class="fa fa-download" class="mdi mdi-download"
style="font-size: 18px;" style="font-size: 18px;"
target="_blank" target="_blank"
href="<?= base_url("/downloadGdriveFile?client_id=" . $row['client_id'] . "&file_type=" . $row['file_type'] . "&file_name=" . $row['file_name']."&client_policy_id=".$row['client_policy_id']); ?>"> href="<?= base_url("/downloadGdriveFile?client_id=" . $row['client_id'] . "&file_type=" . $row['file_type'] . "&file_name=" . $row['file_name']."&client_policy_id=".$row['client_policy_id']); ?>">

View File

@ -45,7 +45,7 @@
</div> </div>
<div class="table-responsive" style="overflow-x: auto;"> <div class="table-responsive" style="overflow-x: auto;">
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th>S.No</th> <th>S.No</th>

View File

@ -15,7 +15,7 @@
<body> <body>
<table> <table data-custom-table-css="table">
<?php if(isset($data)) { ?> <?php if(isset($data)) { ?>
<?php foreach ($data as $key => $value) { ?> <?php foreach ($data as $key => $value) { ?>
<tr> <tr>

View File

@ -17,7 +17,7 @@
<body> <body>
<table style="width: 100%;"> <table data-custom-table-css="table" style="width: 100%;">
<?php if(isset($data)) { ?> <?php if(isset($data)) { ?>
<?php foreach ($data as $key => $value) { ?> <?php foreach ($data as $key => $value) { ?>
@ -36,7 +36,7 @@
<div style="display: flex;gap: 20px;"> <div style="display: flex;gap: 20px;">
<table> <table data-custom-table-css="table">
<tr> <tr>
<td> <td>

View File

@ -8,7 +8,7 @@
</head> </head>
<body> <body>
<table style="width: 100%;"> <table data-custom-table-css="table" style="width: 100%;">
<?php if(isset($data)) { ?> <?php if(isset($data)) { ?>
<?php foreach ($data as $key => $value) { ?> <?php foreach ($data as $key => $value) { ?>
@ -25,7 +25,7 @@
<div style="display: flex;gap: 20px; padding-top: 10px;"> <div style="display: flex;gap: 20px; padding-top: 10px;">
<table> <table data-custom-table-css="table">
<tr> <tr>
<td> <td>

View File

@ -12,7 +12,7 @@
POLICY</span></div> POLICY</span></div>
</div> </div>
<table <table data-custom-table-css="table"
style="font-family: sans-serif;font-size: 14px;width: 100%;margin-top: 20px;margin-left: 20px;line-height: 20px;"> style="font-family: sans-serif;font-size: 14px;width: 100%;margin-top: 20px;margin-left: 20px;line-height: 20px;">
<tbody> <tbody>
<tr> <tr>
@ -40,7 +40,7 @@
<div style="border: 1px solid black;width: 400px;max-height: 300px;padding: 5px;"> <div style="border: 1px solid black;width: 400px;max-height: 300px;padding: 5px;">
<div style="font-size: 11px;text-align: center;">The card is for identification purpose only</div> <div style="font-size: 11px;text-align: center;">The card is for identification purpose only</div>
<table style="width: 100%;text-align: center;font-size: 11px;"> <table data-custom-table-css="table" style="width: 100%;text-align: center;font-size: 11px;">
<tbody> <tbody>
<tr> <tr>
<td>General & Claim Enquiry Helpline</td> <td>General & Claim Enquiry Helpline</td>
@ -50,7 +50,7 @@
</table> </table>
<table style="font-size: 11px;width: 100%;text-align: center;"> <table data-custom-table-css="table" style="font-size: 11px;width: 100%;text-align: center;">
<tbody> <tbody>
<tr> <tr>
<td style="border: 1px solid black;">Toll Free : 1800-209-7777 <br>Email : <td style="border: 1px solid black;">Toll Free : 1800-209-7777 <br>Email :
@ -63,7 +63,7 @@
<div style="font-size: 14px;text-align: center;">CITI MDIndia branch contact</div> <div style="font-size: 14px;text-align: center;">CITI MDIndia branch contact</div>
<div> <div>
<table style="text-align: center;width: 100%;font-size: 12px;"> <table data-custom-table-css="table" style="text-align: center;width: 100%;font-size: 12px;">
<thead> <thead>
<tr> <tr>
<th style="border: 1px solid black;">Center</th> <th style="border: 1px solid black;">Center</th>

View File

@ -89,7 +89,7 @@
<h4 style="position: relative;">Employees</h4> <h4 style="position: relative;">Employees</h4>
</div> </div>
</div> </div>
<table class="table table-striped mb-0 nowrap" cellspacing="0" id="tickets-table"> <table data-custom-table-css="table" class="table table-striped mb-0 nowrap" cellspacing="0" id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th class="font-weight-medium">SNO</th> <th class="font-weight-medium">SNO</th>
@ -670,7 +670,7 @@
let historyTable = ` let historyTable = `
<div class="card-body"> <div class="card-body">
<div class="table-responsive"> <div class="table-responsive">
<table class="table w-100"> <table data-custom-table-css="table" class="table w-100">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th>Field</th> <th>Field</th>

View File

@ -374,7 +374,7 @@ function getPendingActionClientDataForDashboard(input, headerName, type)
var link = '<?=base_url()?>'; var link = '<?=base_url()?>';
if (res.data.length !== 0) { if (res.data.length !== 0) {
// table = `<table class="table table-striped table-sm table-centered mb-0"><tbody>`; // table = `<table data-custom-table-css="table" class="table table-striped table-sm table-centered mb-0"><tbody>`;
div = `<div class="row">`; div = `<div class="row">`;
$.each(res.data, function(index, item) { $.each(res.data, function(index, item) {

View File

@ -87,7 +87,7 @@
</div> </div>
</div> </div>
<table class="table table-hover m-0 table-centered dt-responsive w-100" cellspacing="0" id="tickets-table"> <table data-custom-table-css="table" class="table table-hover m-0 table-centered dt-responsive w-100" cellspacing="0" id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th class="font-weight-medium">SNO</th> <th class="font-weight-medium">SNO</th>
@ -163,7 +163,7 @@
</div> </div>
<div class="modal-body" id="modal_body"> <div class="modal-body" id="modal_body">
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-hover mb-0"> <table data-custom-table-css="table" class="table table-hover mb-0">
<thead id="table_head_data"> <thead id="table_head_data">
</thead> </thead>

View File

@ -181,7 +181,7 @@
<div class="col-12"> <div class="col-12">
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<table class="table table-hover m-0 table-centered dt-responsive w-100" cellspacing="0" id="tickets-table"> <table data-custom-table-css="table" class="table table-hover m-0 table-centered dt-responsive w-100" cellspacing="0" id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th class="font-weight-medium">SNO</th> <th class="font-weight-medium">SNO</th>

View File

@ -86,7 +86,7 @@ $errorId = uniqid('error', true);
<?php $argsId = $errorId . 'args' . $index ?> <?php $argsId = $errorId . 'args' . $index ?>
( <a href="#" onclick="return toggle('<?= esc($argsId, 'attr') ?>');">arguments</a> ) ( <a href="#" onclick="return toggle('<?= esc($argsId, 'attr') ?>');">arguments</a> )
<div class="args" id="<?= esc($argsId, 'attr') ?>"> <div class="args" id="<?= esc($argsId, 'attr') ?>">
<table cellspacing="0"> <table data-custom-table-css="table" cellspacing="0">
<?php <?php
$params = null; $params = null;
@ -138,7 +138,7 @@ $errorId = uniqid('error', true);
<h3>$<?= esc($var) ?></h3> <h3>$<?= esc($var) ?></h3>
<table> <table data-custom-table-css="table">
<thead> <thead>
<tr> <tr>
<th>Key</th> <th>Key</th>
@ -168,7 +168,7 @@ $errorId = uniqid('error', true);
<?php if (! empty($constants['user'])) : ?> <?php if (! empty($constants['user'])) : ?>
<h3>Constants</h3> <h3>Constants</h3>
<table> <table data-custom-table-css="table">
<thead> <thead>
<tr> <tr>
<th>Key</th> <th>Key</th>
@ -197,7 +197,7 @@ $errorId = uniqid('error', true);
<div class="content" id="request"> <div class="content" id="request">
<?php $request = Services::request(); ?> <?php $request = Services::request(); ?>
<table> <table data-custom-table-css="table">
<tbody> <tbody>
<tr> <tr>
<td style="width: 10em">Path</td> <td style="width: 10em">Path</td>
@ -243,7 +243,7 @@ $errorId = uniqid('error', true);
<h3>$<?= esc($var) ?></h3> <h3>$<?= esc($var) ?></h3>
<table style="width: 100%"> <table data-custom-table-css="table" style="width: 100%">
<thead> <thead>
<tr> <tr>
<th>Key</th> <th>Key</th>
@ -281,7 +281,7 @@ $errorId = uniqid('error', true);
<h3>Headers</h3> <h3>Headers</h3>
<table> <table data-custom-table-css="table">
<thead> <thead>
<tr> <tr>
<th>Header</th> <th>Header</th>
@ -307,7 +307,7 @@ $errorId = uniqid('error', true);
$response->setStatusCode(http_response_code()); $response->setStatusCode(http_response_code());
?> ?>
<div class="content" id="response"> <div class="content" id="response">
<table> <table data-custom-table-css="table">
<tr> <tr>
<td style="width: 15em">Response Status</td> <td style="width: 15em">Response Status</td>
<td><?= esc($response->getStatusCode() . ' - ' . $response->getReasonPhrase()) ?></td> <td><?= esc($response->getStatusCode() . ' - ' . $response->getReasonPhrase()) ?></td>
@ -320,7 +320,7 @@ $errorId = uniqid('error', true);
<h3>Headers</h3> <h3>Headers</h3>
<table> <table data-custom-table-css="table">
<thead> <thead>
<tr> <tr>
<th>Header</th> <th>Header</th>
@ -354,7 +354,7 @@ $errorId = uniqid('error', true);
<!-- Memory --> <!-- Memory -->
<div class="content" id="memory"> <div class="content" id="memory">
<table> <table data-custom-table-css="table">
<tbody> <tbody>
<tr> <tr>
<td>Memory Usage</td> <td>Memory Usage</td>

View File

@ -68,7 +68,7 @@ table.dataTable tbody td {
<!-- <button><a href="">download full file</a></button> --> <!-- <button><a href="">download full file</a></button> -->
<div class="container"> <div class="container">
<table class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0" id="tickets-table"> <table data-custom-table-css="table" class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0" id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<?php foreach ($excel_header as $header): ?> <?php foreach ($excel_header as $header): ?>

View File

@ -68,7 +68,7 @@ table.dataTable tbody td {
<!-- <button><a href="">download full file</a></button> --> <!-- <button><a href="">download full file</a></button> -->
<div class="container"> <div class="container">
<table class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0" id="tickets-table"> <table data-custom-table-css="table" class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0" id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<?php foreach ($excel_header as $header): ?> <?php foreach ($excel_header as $header): ?>

View File

@ -19,7 +19,7 @@
</div> </div>
</div> </div>
<table class="table table-hover m-0 table-centered dt-responsive w-100" cellspacing="0" <table data-custom-table-css="table" class="table table-hover m-0 table-centered dt-responsive w-100" cellspacing="0"
id="tickets-table"> id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>

View File

@ -179,7 +179,7 @@ table.dataTable tbody td {
</div> </div>
<div class="table-responsive" style="overflow-x: auto;"> <div class="table-responsive" style="overflow-x: auto;">
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th>S.No</th> <th>S.No</th>

View File

@ -38,7 +38,7 @@ table.dataTable tbody td {
</div> </div>
</div> </div>
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th>S. No</th> <th>S. No</th>

View File

@ -99,7 +99,7 @@
</div> </div>
</div> </div>
<table class="table table-hover m-0 table-centered dt-responsive w-100" cellspacing="0" <table data-custom-table-css="table" class="table table-hover m-0 table-centered dt-responsive w-100" cellspacing="0"
id="hr_tickets_table"> id="hr_tickets_table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>

View File

@ -6,7 +6,7 @@
<div class="table-responsive" id="branch_table" > <div class="table-responsive" id="branch_table" >
<table class="table table-borderless table-nowrap mb-0"> <table data-custom-table-css="table" class="table table-borderless table-nowrap mb-0">
<thead class="thead-light"> <thead class="thead-light">
<tr> <tr>
<th>Branch Name</th> <th>Branch Name</th>

View File

@ -74,7 +74,7 @@
<div class="table-responsive" id="branch_table" > <div class="table-responsive" id="branch_table" >
<table class="table table-borderless table-nowrap mb-0"> <table data-custom-table-css="table" class="table table-borderless table-nowrap mb-0">
<thead class="thead-light"> <thead class="thead-light">
<tr> <tr>
<th>S.NO</th> <th>S.NO</th>

View File

@ -49,7 +49,7 @@
<h4 style="position: relative;">Insurer List</h4> <h4 style="position: relative;">Insurer List</h4>
</div> </div>
</div> </div>
<table class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0" <table data-custom-table-css="table" class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0"
id="tickets-table"> id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>

View File

@ -90,9 +90,15 @@
</select> </select>
</div> </div>
</div> </div>
<div class="form-row policy_issue_date_row" style="display:none;">
<div class="form-group col-md-4">
<label id="policy_issue_date_label">Policy Issue Date</label> <br />
<input type="text" class="form-control" id="policy_issue_date" name="policy_issue_date"
placeholder="Enter Policy Issue Date">
</div>
</div>
<br> <br>
<div class="form-row" id="import_excel_btn"> <div class="form-row" id="import_excel_btn">
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label>Upload file</label>&nbsp;[ <a id="import_excel_download" data-toggle="tooltip" data-placement="top" title="Download Import Sample Excel" style="display: none;">Sample Excel</a> ] <label>Upload file</label>&nbsp;[ <a id="import_excel_download" data-toggle="tooltip" data-placement="top" title="Download Import Sample Excel" style="display: none;">Sample Excel</a> ]
@ -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() { $(document).ready(function() {
<?php if (session()->has('error')) : ?> <?php if (session()->has('error')) : ?>
@ -731,3 +747,18 @@
//------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------
</script> </script>
<script>
function togglePolicyIssueDate() {
let insurer = $('#insurer_or_tpa').val();
let action = $('#action_type').val();
if (insurer === 'insurer' && action === 'import') {
$('.policy_issue_date_row').show();
$('#policy_issue_date').attr('required', true);
$('#policy_issue_date_label').html('Policy Issue Date <span class="text-danger">*</span>');
} else {
$('.policy_issue_date_row').hide();
$('#policy_issue_date').removeAttr('required').val('');
$('#policy_issue_date_label').text('Policy Issue Date');
}
}
</script>

View File

@ -175,7 +175,7 @@ table.dataTable tbody td {
</div><div class="dataTables_length d-flex align-items-center"> </div><div class="dataTables_length d-flex align-items-center">
</div> </div>
<div> <div>
<table class="table table-striped mb-0 nowrap" cellspacing="0" id="tickets-table"> <table data-custom-table-css="table" class="table table-striped mb-0 nowrap" cellspacing="0" id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th></th> <th></th>
@ -425,7 +425,7 @@ table.dataTable tbody td {
<button type="button" id="add_row_btn" class="btn btn-secondary float-right"><i class="fa fa-plus"></i></button> <button type="button" id="add_row_btn" class="btn btn-secondary float-right"><i class="fa fa-plus"></i></button>
<table class="table table-bordered" id="payment_table_modal"> <table data-custom-table-css="table" class="table table-bordered" id="payment_table_modal">
<thead> <thead>
<tr> <tr>
<th style="display: none;">pk</th> <th style="display: none;">pk</th>
@ -445,7 +445,7 @@ table.dataTable tbody td {
<td><input type="number" class="form-control" name="tds[]" placeholder="Enter TDS" onchange="checkInvAmont(event)" required></td> <td><input type="number" class="form-control" name="tds[]" placeholder="Enter TDS" onchange="checkInvAmont(event)" required></td>
<td><input type="text" class="form-control" name="utr_no[]" placeholder="Enter UTR No" required></td> <td><input type="text" class="form-control" name="utr_no[]" placeholder="Enter UTR No" required></td>
<td><input type="text" class="form-control payment_date" name="payment_date[]" value="<?php echo date('d/m/Y'); ?>" placeholder="dd/mm/yyyy" required readonly></td> <td><input type="text" class="form-control payment_date" name="payment_date[]" value="<?php echo date('d/m/Y'); ?>" placeholder="dd/mm/yyyy" required readonly></td>
<td><i class="fa fa-trash mr-2 font-18 vertical-middle text-danger remove-row" style="text-align: center;"></i></td> <td><i class="mdi mdi-delete mr-2 font-18 vertical-middle text-danger remove-row" style="text-align: center;"></i></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -728,7 +728,7 @@ document.addEventListener("DOMContentLoaded", function () {
<td><input type="number" class="form-control" name="tds[]" placeholder="Enter TDS" onchange="checkInvAmont(event)" required></td> <td><input type="number" class="form-control" name="tds[]" placeholder="Enter TDS" onchange="checkInvAmont(event)" required></td>
<td><input type="text" class="form-control" name="utr_no[]" placeholder="Enter UTR No" required></td> <td><input type="text" class="form-control" name="utr_no[]" placeholder="Enter UTR No" required></td>
<td><input type="text" class="form-control payment_date" value="<?php echo date('d/m/Y'); ?>" name="payment_date[]" placeholder="dd/mm/yyyy" required readonly></td> <td><input type="text" class="form-control payment_date" value="<?php echo date('d/m/Y'); ?>" name="payment_date[]" placeholder="dd/mm/yyyy" required readonly></td>
<td><i class="fa fa-trash mr-2 font-18 vertical-middle text-danger remove-row" style="text-align: center;"></i></td> <td><i class="mdi mdi-delete mr-2 font-18 vertical-middle text-danger remove-row" style="text-align: center;"></i></td>
`; `;
tableBody.appendChild(newRow); tableBody.appendChild(newRow);
@ -871,7 +871,7 @@ function showInvoiceStatusModal(event)
<td><input type="number" class="form-control" name="tds[]" placeholder="Enter Amount" value="${payment.tds}" onchange="checkInvAmont(event)" required></td> <td><input type="number" class="form-control" name="tds[]" placeholder="Enter Amount" value="${payment.tds}" onchange="checkInvAmont(event)" required></td>
<td><input type="text" class="form-control" name="utr_no[]" placeholder="Enter UTR No" value="${payment.utr_no}" required></td> <td><input type="text" class="form-control" name="utr_no[]" placeholder="Enter UTR No" value="${payment.utr_no}" required></td>
<td><input type="text" class="form-control payment_date" name="payment_date[]" value="${formatDateToDMY(payment.received_date)}" required readonly></td> <td><input type="text" class="form-control payment_date" name="payment_date[]" value="${formatDateToDMY(payment.received_date)}" required readonly></td>
<td><i class="fa fa-trash mr-2 font-18 vertical-middle text-danger remove-row" style="text-align: center;"></i></td> <td><i class="mdi mdi-delete mr-2 font-18 vertical-middle text-danger remove-row" style="text-align: center;"></i></td>
`; `;
}); });
} }

View File

@ -32,7 +32,7 @@ table.dataTable tbody td {
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th></th> <th></th>

View File

@ -32,7 +32,7 @@ table.dataTable tbody td {
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th>S. No</th> <th>S. No</th>

View File

@ -6,7 +6,7 @@
<div class="table-responsive" id="branch_table" > <div class="table-responsive" id="branch_table" >
<table class="table table-borderless table-nowrap mb-0" id="table-kyc-docs"> <table data-custom-table-css="table" class="table table-borderless table-nowrap mb-0" id="table-kyc-docs">
<thead class="thead-light"> <thead class="thead-light">
<tr> <tr>
<th>File Name</th> <th>File Name</th>

View File

@ -49,7 +49,7 @@
<h4 style="position: relative;">KYC List</h4> <h4 style="position: relative;">KYC List</h4>
</div> </div>
</div> </div>
<table class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0" <table data-custom-table-css="table" class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0"
id="tickets-table"> id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>

View File

@ -249,7 +249,7 @@
/* Force all text across the entire app to black */ /* Force all text across the entire app to black */
html, body, * { html, body, * {
color: #000 !important; /* color: #000 !important; */
} }
@ -496,7 +496,7 @@
<style> <style>
*{ *{
font-family: Inter, sans-serif !important; font-family: 'Poppins' !important;
} }
.content{ .content{
min-height: 70vh; min-height: 70vh;
@ -546,6 +546,7 @@ rgba(0, 153, 158, 0.5) (transparent)
font-size: 30px; font-size: 30px;
line-height: 1; line-height: 1;
letter-spacing: 0; letter-spacing: 0;
color:black;
} }
.sub-title-text { .sub-title-text {
font-weight: 500; font-weight: 500;
@ -553,6 +554,11 @@ rgba(0, 153, 158, 0.5) (transparent)
font-size: 18px; font-size: 18px;
line-height: 1; line-height: 1;
letter-spacing: 0; letter-spacing: 0;
color:black;
}
.font-color-black{
color:black;
} }
.app-text-left { .app-text-left {
@ -583,7 +589,7 @@ rgba(0, 153, 158, 0.5) (transparent)
a.app-text-primary:hover, a.app-text-primary:focus { a.app-text-primary:hover, a.app-text-primary:focus {
color: rgba(0, 153, 158, 0.5); !important; } color: rgba(0, 153, 158, 0.5) !important; }
a.app-text-secondary:hover, a.app-text-secondary:focus { a.app-text-secondary:hover, a.app-text-secondary:focus {
color: rgba(226, 103, 40, 0.5) !important; } color: rgba(226, 103, 40, 0.5) !important; }
@ -665,10 +671,77 @@ a.app-badge-secondary:focus, a.app-badge-secondary.focus {
outline: 0; outline: 0;
box-shadow: 0 0 0 0.15rem rgba(226, 103, 40, 0.5); } box-shadow: 0 0 0 0.15rem rgba(226, 103, 40, 0.5); }
thead th {
background-color: #00999E;
color: #fff !important;
border-top: 0px solid #fff !important;
border-bottom: 0px solid #fff !important;
}
tbody td {
background: #F5FFFF;
padding: 12px;
border-top: 0px solid #fff !important;
border-bottom: 2px solid #C3EDEE !important;
}
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;
}
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;
}
tbody tr:hover td {
background-color: #e0e0e0;
}
table[data-custom-table-css="table"] {
border-collapse: separate !important;
border-spacing: 0 8px !important;
width: 100%;
}
</style> </style>
<style>
label{
font-weight: 500 !important;
font-size:0.875rem !important;
}
.dataTables_info , .text , #client_logo{
font-weight: 500 !important;
color:#000 !important;
}
.right-bar{
right : -300px;
}
.dash-tab-font{
font-weight: 500 !important;
font-size:0.875rem !important;
}
.jodit-wysiwyg{
color:black;
}
</style>
@ -855,7 +928,7 @@ a.app-badge-secondary:focus, a.app-badge-secondary.focus {
</li> </li>
<?php } ?> <?php } ?>
<!-- Tickets --> <!-- Tickets -->
<?php if (in_array(get_role_id(), [1,2,3,5]) || in_array(CLAIMS_TEAM_ID, user_team())) { ?> <?php if (in_array(get_role_id(), [1,2,3,4,5]) || in_array(CLAIMS_TEAM_ID, user_team())) { ?>
<li> <li>
<a id="tickets" href="<?= base_url('/ticketList?return_type=web') ?>" class="waves-effect img-inactive-not-working"> <a id="tickets" href="<?= base_url('/ticketList?return_type=web') ?>" class="waves-effect img-inactive-not-working">
<img src="<?= base_url() . "public"; ?>/assets/images/ticket.png" alt="Logo" height="20"> <img src="<?= base_url() . "public"; ?>/assets/images/ticket.png" alt="Logo" height="20">

View File

@ -160,7 +160,7 @@ table.dataTable tbody td {
</div> </div>
<div> <div>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped mb-0 nowrap" cellspacing="0" id="tickets-table"> <table data-custom-table-css="table" class="table table-striped mb-0 nowrap" cellspacing="0" id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
@ -215,6 +215,12 @@ table.dataTable tbody td {
</a> </a>
<?php } ?> <?php } ?>
<?php } ?> <?php } ?>
<a href="javascript:void(0);"
class="dropdown-item btnHistory app-text-black"
data-id="<?= $row['id']; ?>"
title="Click to view Mail History">
<i class="mdi mdi-history mr-2 text-muted font-18 vertical-middle"></i>Email History
</a>
</div> </div>
</div> </div>
</td> </td>
@ -266,6 +272,22 @@ table.dataTable tbody td {
</div> </div>
</div> </div>
<div class="modal fade app-font-family" id="EmailModal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-xl" style="max-width: 1140px !important;">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Email History</h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<div class="modal-body history-container" style="padding:11px !important;">
</div>
</div>
</div>
</div>
<script> <script>
document.addEventListener("DOMContentLoaded", function () { document.addEventListener("DOMContentLoaded", function () {
@ -442,6 +464,146 @@ document.addEventListener("DOMContentLoaded", function () {
} }
</script> </script>
<script>
document.addEventListener("click", function(e) {
if (e.target.closest(".btnHistory")) {
let lead_id = e.target.closest(".btnHistory").dataset.id;
console.log("*********" + lead_id);
let url = '<?= base_url('/util/getLeadEmailHistory/') ?>' + lead_id;
console.log("*********" + url);
fetch('<?= base_url('/util/getLeadEmailHistory/') ?>' + lead_id, {
method: "GET",
headers: {
"Accept": "application/json"
}
})
.then(response => response.json())
.then(response => {
let container = document.querySelector(".history-container");
container.innerHTML = ""; // clear old content
if (response.status === "success" && response.data.length > 0) {
console.log("******** 1" + response.status);
let table = `
<div class="table-responsive">
<table data-custom-table-css="table" id="historytable" class="table table-striped mb-0 nowrap" cellspacing="0" id="tickets-table">
<thead class="bg-light">
<tr>
<th><div class="column-header">S.No.</div></th>
<th><div class="column-header">From Mail</div></th>
<th><div class="column-header">To Mail</div></th>
<th><div class="column-header">BCC</div></th>
<th><div class="column-header">CC</div></th>
<th><div class="column-header">Type</div></th>
<th><div class="column-header">Status</div></th>
<th><div class="column-header">Date/Time</div></th>
</tr>
</thead>
<tbody>
`;
response.data.forEach((row, index) => {
let formattedDate = "-";
let statusValue = "-";
if (row.received_message) {
if (row.received_message.toLowerCase().includes("error")) {
statusValue = "Failed";
} else {
statusValue = "Success";
}
}
if (row.created_at) {
let dt = new Date(row.created_at);
let dateStr = dt.toLocaleDateString("en-GB", {
day: "2-digit",
month: "long",
year: "numeric"
});
let timeStr = dt.toLocaleTimeString("en-US", {
hour: "2-digit",
minute: "2-digit",
hour12: true
}).toLowerCase();
formattedDate = `${dateStr} ${timeStr}`;
}
let fromMails = "-";
if (row.from_mail) {
fromMails = row.from_mail
.split(",") // split by comma
.map(m => m.trim().replace(/^"|"$/g, "")) // trim + remove quotes at start/end
.filter(m => m !== "") // remo
.join("<br>"); // join with line break
}
let toMails = "-";
if (row.mail) {
toMails = row.mail
.split(",")
.map(m => m.trim().replace(/^"|"$/g, ""))
.filter(m => m !== "")
.join("<br>");
}
let ccMails = "-";
if (row.cc && row.cc.trim() !== "") {
ccMails = row.cc
.split(",")
.map(m => m.trim().replace(/^"|"$/g, ""))
.filter(m => m !== "")
.join("<br>");
}
let bccMails = "-";
if (row.bcc && row.bcc.trim() !== "") {
bccMails = row.bcc
.split(",")
.map(m => m.trim().replace(/^"|"$/g, ""))
.filter(m => m !== "")
.join("<br>");
}
table += `
<tr>
<td style="white-space: nowrap !important;">${index + 1}</td>
<td style="white-space: nowrap !important;">${fromMails}</td>
<td style="white-space: nowrap !important;">${toMails}</td>
<td style="white-space: nowrap !important;">${bccMails ? bccMails : '-'}</td>
<td style="white-space: nowrap !important;">${ccMails ? ccMails : '-'}</td>
<td style="white-space: nowrap !important;">${row.mail_type ? row.mail_type.toUpperCase() : '-'}</td>
<td style="white-space: nowrap !important;">${statusValue ? statusValue.toUpperCase() : '-'}</td>
<td style="white-space: nowrap !important;">${formattedDate}</td>
</tr>
`;
});
table += `</tbody></table>`;
container.innerHTML = table;
} else {
console.log("******** 2" + response.status);
container.innerHTML = `
<div class="d-flex justify-content-center align-items-center" style="height: 50vh; width:100%;">
<p class="text-center"><i>${response.message ?? 'No history found'}</i></p>
</div>
`;
}
// show modal (if using Bootstrap 5)
let EmailModal = new bootstrap.Modal(document.getElementById("EmailModal"));
EmailModal.show();
})
.catch(error => {
console.log("******** 3" + error);
document.querySelector(".history-container").innerHTML = `
<div class="d-flex justify-content-center align-items-center" style="height: 50vh; width:100%;">
<p class="text-center"><i>No Data Found</i></p>
</div>
`;
let EmailModal = new bootstrap.Modal(document.getElementById("EmailModal"));
EmailModal.show();
console.error(error);
});
}
});
</script>
<script> <script>
function selectOption(element, radioId) { function selectOption(element, radioId) {
// Remove selected class from all options // Remove selected class from all options

View File

@ -20,7 +20,7 @@ table.dataTable tbody td {
<p style="color: red;"><?= session()->getFlashdata('error') ?></p> <p style="color: red;"><?= session()->getFlashdata('error') ?></p>
<?php endif; ?> <?php endif; ?>
<table class="table table-striped mb-0 nowrap" cellspacing="0" id="tickets-table"> <table data-custom-table-css="table" class="table table-striped mb-0 nowrap" cellspacing="0" id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th>S.No.</th> <th>S.No.</th>

View File

@ -276,7 +276,7 @@
<input type="file" id="Question_title_fileInput" style="display: none;"> <input type="file" id="Question_title_fileInput" style="display: none;">
<table id="attachment_table" class="table table-sm mb-0" style="margin-top: 30px;"> <table data-custom-table-css="table" id="attachment_table" class="table table-sm mb-0" style="margin-top: 30px;">
<thead> <thead>
<tr> <tr>
<th>Attachments</th> <th>Attachments</th>
@ -446,7 +446,7 @@
<input type="file" id="Question_title_fileInput" style="display: none;"> <input type="file" id="Question_title_fileInput" style="display: none;">
<table id="attachment_table_ecard" class="table table-sm mb-0" style="margin-top: 30px;"> <table data-custom-table-css="table" id="attachment_table_ecard" class="table table-sm mb-0" style="margin-top: 30px;">
<thead> <thead>
<tr> <tr>
<th>Attachments</th> <th>Attachments</th>
@ -1494,7 +1494,7 @@ template_name = '';
newRow.innerHTML = ` newRow.innerHTML = `
<td> ${item.file_name} </td> <td> ${item.file_name} </td>
<td> <a class="fa fa-trash" data-id="${item.id}" onclick="removeAttachment('${item.id}')"></a></td> <td> <a class="mdi mdi-delete" data-id="${item.id}" onclick="removeAttachment('${item.id}')"></a></td>
`; `;
container.appendChild(newRow); container.appendChild(newRow);

View File

@ -271,7 +271,7 @@
<input type="file" id="Question_title_fileInput" style="display: none;"> <input type="file" id="Question_title_fileInput" style="display: none;">
<table id="attachment_table" class="table table-sm mb-0" style="margin-top: 30px;"> <table data-custom-table-css="table" id="attachment_table" class="table table-sm mb-0" style="margin-top: 30px;">
<thead> <thead>
<tr> <tr>
<th>Attachments</th> <th>Attachments</th>
@ -450,7 +450,7 @@
<input type="file" id="Question_title_fileInput" style="display: none;"> <input type="file" id="Question_title_fileInput" style="display: none;">
<table id="attachment_table_ecard" class="table table-sm mb-0" style="margin-top: 30px;"> <table data-custom-table-css="table" id="attachment_table_ecard" class="table table-sm mb-0" style="margin-top: 30px;">
<thead> <thead>
<tr> <tr>
<th>Attachments</th> <th>Attachments</th>
@ -860,7 +860,7 @@
newRow.innerHTML = ` newRow.innerHTML = `
<td> ${item.file_name} </td> <td> ${item.file_name} </td>
<td> <a class="fa fa-trash" data-id="${item.id}" onclick="removeAttachment('${item.id}')"></a></td> <td> <a class="mdi mdi-delete" data-id="${item.id}" onclick="removeAttachment('${item.id}')"></a></td>
`; `;
container.appendChild(newRow); container.appendChild(newRow);
@ -1155,7 +1155,7 @@
newRow.innerHTML = ` newRow.innerHTML = `
<td> ${item.file_name} </td> <td> ${item.file_name} </td>
<td> <a class="fa fa-trash" data-id="${item.id}" onclick="removeAttachment('${item.id}')"></a></td> <td> <a class="mdi mdi-delete" data-id="${item.id}" onclick="removeAttachment('${item.id}')"></a></td>
`; `;
container.appendChild(newRow); container.appendChild(newRow);

View File

@ -167,7 +167,7 @@ table.dataTable tbody td {
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th>S.No</th> <th>S.No</th>

View File

@ -6,7 +6,7 @@
<div class="table-responsive" id="branch_table" > <div class="table-responsive" id="branch_table" >
<table class="table table-borderless table-nowrap mb-0" id="table-policies"> <table data-custom-table-css="table" class="table table-borderless table-nowrap mb-0" id="table-policies">
<thead class="thead-light"> <thead class="thead-light">
<tr> <tr>
<th>Insurer</th> <th>Insurer</th>

View File

@ -155,7 +155,7 @@
<div class="col-md-8" style="margin-bottom:10px"> <div class="col-md-8" style="margin-bottom:10px">
<table> <table data-custom-table-css="table">
<tbody> <tbody>
<tr> <tr>
<td style="width: 11%;"><span style="margin-right:20px;color:black;">Self:</span></td> <td style="width: 11%;"><span style="margin-right:20px;color:black;">Self:</span></td>
@ -283,7 +283,7 @@
</div> </div>
<div style="margin-top:10px"> <div style="margin-top:10px">
<table> <table data-custom-table-css="table">
<tbody> <tbody>
<tr> <tr>
<td style="width: 22%;"> <td style="width: 22%;">
@ -861,8 +861,10 @@
<label for="totalSumInsured">Sum Insured enhancement</label> <label for="totalSumInsured">Sum Insured enhancement</label>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<input type="radio" name="suminsuredenhancement" class="suminsuredenhancement" value="1"> Yes <input type="radio" name="suminsuredenhancement" class="suminsuredenhancement" value="1">
<label for="">Yes</label>
<input type="radio" name="suminsuredenhancement" class="suminsuredenhancement" value="0" style="margin-left:10px"> No <input type="radio" name="suminsuredenhancement" class="suminsuredenhancement" value="0" style="margin-left:10px"> No
<label for="">No</label>
</div> </div>
</div> </div>

View File

@ -136,7 +136,7 @@
<label for=""></label> <label for=""></label>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<table> <table data-custom-table-css="table">
<tbody> <tbody>
<tr> <tr>
<td></td> <td></td>

View File

@ -2917,7 +2917,7 @@ function createCheckboxes(obj, additional_relationship = [], unique_id = null, p
<div class="form-group col-md-12"> <div class="form-group col-md-12">
<label>Choose applicable family members</label> <label>Choose applicable family members</label>
<table style="border-collapse: collapse;"> <table data-custom-table-css="table" style="border-collapse: collapse;">
<tbody>`; <tbody>`;

View File

@ -339,7 +339,7 @@ function generateTable(unique_id) {
} }
} }
var table = $('<table class="table table-striped compact-table" />'); var table = $('<table data-custom-table-css="table" class="table table-striped compact-table" />');
var uniqueRows = new Set(); var uniqueRows = new Set();
var emptyCellCount = 0; var emptyCellCount = 0;

View File

@ -349,7 +349,7 @@
</div> </div>
<div id="insurerTableContainer" style="overflow: auto;"> <div id="insurerTableContainer" style="overflow: auto;">
<table class="table table-bordered co_share_table" id="insurerTable"> <table data-custom-table-css="table" class="table table-bordered co_share_table" id="insurerTable">
<thead> <thead>
<tr> <tr>
<th>Premium Details</th> <th>Premium Details</th>
@ -1691,7 +1691,7 @@ function addInsurerColumn() {
$('#insurerTable thead tr').append(` $('#insurerTable thead tr').append(`
<th> <th>
Insurer ${insurerCount} Insurer ${insurerCount}
${insurerCount > 1 ? `<a class="text-danger fa fa-trash delete-insurer" data-count="${insurerCount}" style="margin-left: 135px;"></a>` : ''} ${insurerCount > 1 ? `<a class="text-danger mdi mdi-delete delete-insurer" data-count="${insurerCount}" style="margin-left: 135px;"></a>` : ''}
</th> </th>
`); `);

View File

@ -305,7 +305,7 @@ custom-dropdown-menu {
</div> </div>
</div> </div>
<div> <div>
<table class="table table-striped mb-0 nowrap" cellspacing="0" id="tickets-table"> <table data-custom-table-css="table" class="table table-striped mb-0 nowrap" cellspacing="0" id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th>Sno</th> <th>Sno</th>

View File

@ -642,7 +642,7 @@
</div> </div>
<div id="insurerTableContainer" style="overflow: auto;"> <div id="insurerTableContainer" style="overflow: auto;">
<table class="table table-bordered co_share_table" id="insurerTable"> <table data-custom-table-css="table" class="table table-bordered co_share_table" id="insurerTable">
<thead> <thead>
<tr> <tr>
<th>Premium Details</th> <th>Premium Details</th>
@ -4047,7 +4047,7 @@ function addInsurerColumn() {
$('#insurerTable thead tr').append(` $('#insurerTable thead tr').append(`
<th> <th>
Insurer ${insurerCount} Insurer ${insurerCount}
${insurerCount > 1 ? `<a data-count="${insurerCount}" class="text-danger fa fa-trash delete-insurer" style="margin-left: 135px;"></a>` : ''} ${insurerCount > 1 ? `<a data-count="${insurerCount}" class="text-danger mdi mdi-delete delete-insurer" style="margin-left: 135px;"></a>` : ''}
</th> </th>
`); `);

View File

@ -274,7 +274,7 @@ table.dataTable tbody td {
</div> </div>
</div> </div>
<div> <div>
<table class="table table-striped mb-0 nowrap" cellspacing="0" id="tickets-table"> <table data-custom-table-css="table" class="table table-striped mb-0 nowrap" cellspacing="0" id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th><div class="column-header">S.No.</div></th> <th><div class="column-header">S.No.</div></th>
@ -1073,7 +1073,7 @@ function appendFileTableBody(data)
.attr('target', '_blank') // Open in a new tab .attr('target', '_blank') // Open in a new tab
.attr('style', 'font-size:18px;') .attr('style', 'font-size:18px;')
.attr('data-id', item.id) .attr('data-id', item.id)
.addClass('fa fa-download') .addClass('mdi mdi-download')
// Append the <a> tag inside the <td> // Append the <a> tag inside the <td>
@ -1168,14 +1168,14 @@ function appendVehicleFileTableBody(data)
.attr('href', '<?= base_url('download-kyc-docs/') ?>' + item.file_name) .attr('href', '<?= base_url('download-kyc-docs/') ?>' + item.file_name)
.attr('style', 'font-size:18px;') .attr('style', 'font-size:18px;')
.attr('data-id', item.id) .attr('data-id', item.id)
.addClass('fa fa-download') .addClass('mdi mdi-download')
.text(' '); // Space after the icon .text(' '); // Space after the icon
// Create the delete link // Create the delete link
var deleteLink = $('<a>') var deleteLink = $('<a>')
.attr('style', 'font-size:18px;') .attr('style', 'font-size:18px;')
.attr('data-id', item.id) .attr('data-id', item.id)
.addClass('fa fa-trash') .addClass('mdi mdi-delete')
.text(' '); // Space after the icon .text(' '); // Space after the icon
// Append the download and delete icons inside the same <td> // Append the download and delete icons inside the same <td>

View File

@ -78,7 +78,7 @@
<a href="<?= base_url("master/policy/create"); ?>" type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="" data-placement="top" title="Add" data-trigger="hover">ADD</a> <a href="<?= base_url("master/policy/create"); ?>" type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="" data-placement="top" title="Add" data-trigger="hover">ADD</a>
</div> </div>
</div> --> </div> -->
<table class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0" <table data-custom-table-css="table" class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0"
id="tickets-table"> id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>

View File

@ -122,7 +122,7 @@
<ul id="suggestions"></ul> <ul id="suggestions"></ul>
</div> </div>
</div> </div>
<table class="table table-hover m-0 table-centered dt-responsive w-100" cellspacing="0" id="emptable"> <table data-custom-table-css="table" class="table table-hover m-0 table-centered dt-responsive w-100" cellspacing="0" id="emptable">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th class="small-width">SNO</th> <th class="small-width">SNO</th>
@ -159,7 +159,7 @@
</div> </div>
<div class="modal-body"> <div class="modal-body">
<table class="table table-hover m-0 table-centered dt-responsive w-100" cellspacing="0" id="oldrestable" style="display: none;"> <table data-custom-table-css="table" class="table table-hover m-0 table-centered dt-responsive w-100" cellspacing="0" id="oldrestable" style="display: none;">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th class="small-width">SNO</th> <th class="small-width">SNO</th>
@ -186,7 +186,7 @@
</table> </table>
<table class="table table-hover m-0 table-centered dt-responsive w-100" cellspacing="0" id="restable"> <table data-custom-table-css="table" class="table table-hover m-0 table-centered dt-responsive w-100" cellspacing="0" id="restable">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th class="small-width">SNO</th> <th class="small-width">SNO</th>
@ -225,7 +225,7 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<table class="table table-hover m-0 table-centered dt-responsive w-100" cellspacing="0" id="restable"> <table data-custom-table-css="table" class="table table-hover m-0 table-centered dt-responsive w-100" cellspacing="0" id="restable">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>

View File

@ -40,7 +40,7 @@ table.dataTable tbody td {
<strong>Total Unbilled Amount:</strong> <span id="total_unbilled">0.00</span> | <strong>Total Unbilled Amount:</strong> <span id="total_unbilled">0.00</span> |
<strong>Total Policy Count:</strong> <span id="total_policy_count"><?= $policy_count ?></span> <strong>Total Policy Count:</strong> <span id="total_policy_count"><?= $policy_count ?></span>
</div> </div>
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th>S. No</th> <th>S. No</th>
@ -142,7 +142,7 @@ table.dataTable tbody td {
</div> </div>
<div class="modal-body" id="modal_body"> <div class="modal-body" id="modal_body">
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-hover mb-0"> <table data-custom-table-css="table" class="table table-hover mb-0">
<thead class="bg-light" id="table_head_data"> <thead class="bg-light" id="table_head_data">
<tr> <tr>
<th>Statement No.</th> <th>Statement No.</th>

View File

@ -32,7 +32,7 @@ table.dataTable tbody td {
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th>S. No</th> <th>S. No</th>

View File

@ -32,7 +32,7 @@
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead> <thead>
<tr> <tr>
<?php <?php

View File

@ -122,7 +122,7 @@ th:first-child, td:first-child {
<h4 style="position: relative;">Employees</h4> <h4 style="position: relative;">Employees</h4>
</div> </div>
</div> </div>
<table class="table table-striped mb-0 nowrap" cellspacing="0" id="tickets-table"> <table data-custom-table-css="table" class="table table-striped mb-0 nowrap" cellspacing="0" id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th><input type="checkbox" id="selectAll" onclick="toggleAll(this)"></th> <th><input type="checkbox" id="selectAll" onclick="toggleAll(this)"></th>

View File

@ -7,63 +7,13 @@
width: 100%; 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 */ /* Search input with icon */
.dataTables_filter { .dataTables_filter {
position: absolute; position: absolute;
} }
.dataTables_filter input { .dataTables_filter input {
padding-right: 30px; padding-right: 30px;
background: url('https://cdn.jsdelivr.net/npm/@mdi/svg/svg/magnify.svg') no-repeat right 8px center; 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; white-space: nowrap !important;
} */ } */
.text-custom-black{
color: #000000 !important;
}
.text-custom-grey{ .text-custom-grey{
font-size: 0.85em; font-size: 0.85em;
color: #6c757d !important; color: #6c757d !important;
@ -212,7 +158,7 @@ table thead th {
.form-control { .form-control {
background-color: #ECECEC !important; background-color: #ECECEC !important;
border: 1px solid #ccc; /* optional */ border: 1px solid #ccc; /* optional */
color: #000; /* keep text readable */ /* color: #000; keep text readable */
} }
.form-control:focus { .form-control:focus {
@ -229,12 +175,11 @@ table thead th {
/* Text inside */ /* Text inside */
.select2-container .select2-selection__rendered { .select2-container .select2-selection__rendered {
color: #000 !important;
line-height: 36px !important; line-height: 36px !important;
} }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { .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 {
<div class="card-body maincard"> <div class="card-body maincard">
<div class="row"> <div class="row">
<div class="col-6" style="align-self: center;"> <div class="col-6" style="align-self: center;">
<p class="title-text app-font-family" style="position: relative;">Tickets </p> <p class="title-text app-font-family font-color-black" style="position: relative;">Tickets </p>
</div> </div>
</div> </div>
<div> <div>
<table id="scroll-horizontal-datatable" class="table w-100 nowrap text-custom-black text-custom app-font-family"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap text-custom-black text-custom app-font-family app-datatable">
<thead> <thead class="app-table-head">
<tr> <tr>
<th>Ticket ID</th> <th>Ticket ID</th>
<th class="app-text-left">Name</th> <th class="app-text-left">Name</th>
@ -265,7 +210,7 @@ table thead th {
<th>Updated At</th> <th>Updated At</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody class="app-table-body">
<?php if (isset($ticket_data)) { ?> <?php if (isset($ticket_data)) { ?>
<?php foreach($ticket_data as $index => $row){ ?> <?php foreach($ticket_data as $index => $row){ ?>
@ -293,15 +238,17 @@ table thead th {
<td class="app-text-left"><?php echo $row['assignee_name'] ? $row['assignee_name'] : '-'; ?></td> <td class="app-text-left"><?php echo $row['assignee_name'] ? $row['assignee_name'] : '-'; ?></td>
<td class="app-text-left"> <td class="app-text-left">
<?php if (!empty($row['created_at'])): <?php if (!empty($row['created_at'])):
$cdt = new DateTime($row['created_at']); $cd = date("j F Y", strtotime($row['created_at']));
echo $cdt->format('d/m/Y') . "<br><span class='time'> " . $cdt->format('h:i a') . "</span>"; $ct = date("h:i a", strtotime($row['created_at']));
echo $cd . "<br><span class='time'> " . $ct . "</span>";
endif; endif;
?> ?>
</td> </td>
<td class="app-text-left"> <td class="app-text-left">
<?php if (!empty($row['updated_at'])): <?php if (!empty($row['updated_at'])):
$udt = new DateTime($row['updated_at']); $ud = date("j F Y", strtotime($row['updated_at']));
echo $udt->format('d/m/Y') . "<br><span class='time'> " . $udt->format('h:i a') . "</span>"; $ut = date("h:i a", strtotime($row['updated_at']));
echo $ud . "<br><span class='time'> " . $ut . "</span>";
endif; endif;
?> ?>
</td> </td>
@ -338,7 +285,7 @@ table thead th {
<div class="form-row mt-3 w-100"> <div class="form-row mt-3 w-100">
<div class="form-group col-md-6 app-font-family"> <div class="form-group col-md-6 app-font-family">
<label for="client_id">Client</label> <label for="client_id">Client</label>
<select class="form-control app-field-grey" id="client_id" name="client_id"> <select class="form-control app-field-grey font-color-black" id="client_id" name="client_id">
<option value="">Select Client</option> <option value="">Select Client</option>
<?php if(isset($client_list)) { ?> <?php if(isset($client_list)) { ?>
<?php foreach ($client_list as $c) { ?> <?php foreach ($client_list as $c) { ?>
@ -357,12 +304,12 @@ table thead th {
</div> </div>
<div class="form-group col-md-1" style="padding:32.5px 0 0 18px;"> <div class="form-group col-md-1" style="padding:32.5px 0 0 18px;">
<button type="button" class="btn-custom app-btn-primary app-font-family" style="padding: 0 10px !important; border-radius:13px;" onclick="getAutoFetchDetails()"><i class="mdi mdi-cached app-text-white" style="font-size:24px;"></i></button> <button type="button" class="btn-custom app-btn-primary app-font-family" style="padding: 0 10px !important; border-radius:13px;" onclick="getAutoFetchDetails()"><i class="mdi mdi-cached " style="font-size:24px;"></i></button>
</div> </div>
</div> </div>
</div> </div>
<div class="modal-body" style="padding: 15px !important;"> <div class="modal-body" style="padding: 12px 15px 0px 15px !important;">
<div class="form-row"> <div class="form-row">
<input type="hidden" id="thz_id" name="thz_id"> <input type="hidden" id="thz_id" name="thz_id">
<input type="hidden" id="return_type" name="return_type"> <input type="hidden" id="return_type" name="return_type">
@ -396,6 +343,15 @@ table thead th {
<option value="">Select Ticket Type</option> <option value="">Select Ticket Type</option>
<option value="Sales" selected >Sales</option> <option value="Sales" selected >Sales</option>
<option value="Service">Service</option> <option value="Service">Service</option>
<!-- <option value="0">+ Add New</option>
<?php if (!empty($ticket_type)): ?>
<?php foreach ($ticket_type as $t): ?>
<option value="<?= esc($t['name']) ?>"
<?= ($t['name'] === "Sales") ? 'selected' : '' ?>>
<?= esc($t['name']) ?>
</option>
<?php endforeach; ?>
<?php endif; ?> -->
</select> </select>
</div> </div>
@ -420,37 +376,49 @@ table thead th {
<!-- // enga 5-"head" and 1-"admin" assign pannvaga dropdown-data la varakudhathu. but dropdown display aganum <!-- // enga 5-"head" and 1-"admin" assign pannvaga dropdown-data la varakudhathu. but dropdown display aganum
// 2,3,4 dropdown data'va varannum but dropdown hide pannanum --> // 2,3,4 dropdown data'va varannum but dropdown hide pannanum -->
<?php if(in_array(get_role_id(), [1,5]) ) { ?> <?php if (in_array(get_role_id(), [1,5])): ?>
<div class="form-group col-md-4"> <div class="form-group col-md-4">
<label for="assign_to">Assign To</label> <label for="assign_to">Assign To</label>
<select class="form-control" id="assign_to" name="assign_to"> <select class="form-control" id="assign_to" name="assign_to">
<option value="">Select Assign To</option> <option value="">Select Assign To</option>
<?php if(isset($assignee)) { ?> <?php if (!empty($assignee)): ?>
<?php foreach ($assignee as $a) { ?> <?php foreach ($assignee as $a): ?>
<option value="<?= $a['id']?>"><?= $a['emp_code'] ?> - <?= $a['first_name'] ?> <?= $a['last_name'] ?></option> <option value="<?= esc($a['id']) ?>">
<?php } ?> <?= esc($a['emp_code']) ?> - <?= esc($a['first_name']) ?> <?= esc($a['last_name']) ?>
<?php } ?> </option>
<?php endforeach; ?>
<?php endif; ?>
</select> </select>
</div> </div>
<?php } ?> <?php else: ?>
<input type="hidden" id="hide_assign_to" name="assign_to" value="<?= esc(get_session_userid()); ?>">
<?php endif; ?>
<div class="form-group col-md-12 app-font-family"> <!-- <div class="form-group col-md-12 app-font-family">
<label for="subject">Subject<span class="text-danger">*</span></label> <label for="subject">Subject<span class="text-danger">*</span></label>
<input type="text" class="form-control" id="subject" name="subject" placeholder="Enter Subject" required maxlength="150">
<small id="subjectCounter" class="form-text text-muted app-text-right">0/150</small> <small id="subjectCounter" class="form-text text-muted app-text-right">0/150</small>
</div> -->
<div class="form-group col-md-12 app-font-family">
<div class="d-flex justify-content-between">
<label for="subject" class="mb-1">Subject <span class="text-danger">*</span></label>
<small id="subjectCounter" class="form-text text-muted">0/150</small>
</div>
<input type="text" class="form-control" id="subject" name="subject" placeholder="Enter Subject" required maxlength="150">
</div> </div>
<div class="form-group col-md-12 app-font-family"> <div class="form-group col-md-12 app-font-family">
<div class="d-flex justify-content-between">
<label for="message">Message<span class="text-danger">*</span></label> <label for="message">Message<span class="text-danger">*</span></label>
<!-- <input type="text" class="form-control" id="message" name="message" placeholder="Enter Message"> -->
<textarea class="form-control" id="message" name="message" placeholder="Enter Message" rows="4" required maxlength="1500"></textarea>
<small id="messageCounter" class="form-text text-muted text-end app-text-right">0/1500</small> <small id="messageCounter" class="form-text text-muted text-end app-text-right">0/1500</small>
</div> </div>
<!-- <input type="text" class="form-control" id="message" name="message" placeholder="Enter Message"> -->
<textarea class="form-control" id="message" name="message" placeholder="Enter Message" rows="3" required maxlength="1500"></textarea>
</div>
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn app-btn-primary app-btn-border-radius mr-2 app-text-white" onclick="resetTicket()">Reset</button> <button type="button" class="btn app-btn-primary app-btn-border-radius mr-2 " onclick="resetTicket()">Reset</button>
<button type="button" class="btn app-btn-secondary app-btn-border-radius" onclick="submitTicket()">Save</button> <button type="button" class="btn app-btn-secondary app-btn-border-radius" onclick="submitTicket()">Save</button>
</div> </div>
</form> </form>
@ -495,6 +463,8 @@ table thead th {
function openTicket(){ function openTicket(){
var form = document.getElementById('ticketForm'); var form = document.getElementById('ticketForm');
form.reset(); form.reset();
$("#client_id").select2();
$("#ticket_type").select2();
document.getElementById('thz_id').value = ''; document.getElementById('thz_id').value = '';
document.getElementById('modalLabel').innerText = "New Ticket"; document.getElementById('modalLabel').innerText = "New Ticket";
document.getElementById('return_type').innerText = "Web"; document.getElementById('return_type').innerText = "Web";
@ -505,6 +475,8 @@ table thead th {
function resetTicket(){ function resetTicket(){
var form = document.getElementById('ticketForm'); var form = document.getElementById('ticketForm');
form.reset(); form.reset();
$("#client_id").select2();
$("#ticket_type").select2();
} }
function submitTicket() { function submitTicket() {
@ -666,18 +638,66 @@ table thead th {
document.getElementById('policy_id').value = policyId || ""; document.getElementById('policy_id').value = policyId || "";
} }
function hideandshowpolicy() { // function hideandshowpolicy() {
var select = document.getElementById('ticket_type').value; // var select = document.getElementById('ticket_type').value;
// var policyContainer = document.getElementById('policy_container');
// if (select === 'Service') {
// policyContainer.style.display = "block"; // show
// } else {
// policyContainer.style.display = "none"; // hide
// document.getElementById('policy_no').value = "";
// document.getElementById('policy_id').value = "";
// }
// }
function hideandshowpolicy() {
var select = document.getElementById('ticket_type');
var value = select.value;
var policyContainer = document.getElementById('policy_container'); var policyContainer = document.getElementById('policy_container');
if (select === 'Service') { if (value === "0") {
policyContainer.style.display = "block"; // show let newType = prompt("Enter new ticket type:");
if (newType && newType.trim() !== "") {
var formData = new FormData(form);
$.ajax({
url: "<?= base_url('ticketType') ?>",
type: "POST",
data: formData,
processData: false,
contentType: false,
dataType: 'json',
success: function(response) {
if (response.status === "success") {
let option = new Option(newType, newType);
let addNewOption = select.querySelector('option[value="0"]');
select.insertBefore(option, addNewOption);
select.value = newType;
value = newType;
console.log(response.message);
} else { console.log(response.message); value = ""; }
},
error: function(xhr) { console.log("Error: " + xhr.statusText); value = ""; }
});
} else { } else {
policyContainer.style.display = "none"; // hide select.value = "";
value = "";
}
}
if (value === 'Service') {
policyContainer.style.display = "block";
} else {
policyContainer.style.display = "none";
document.getElementById('policy_no').value = ""; document.getElementById('policy_no').value = "";
document.getElementById('policy_id').value = ""; document.getElementById('policy_id').value = "";
} }
}
}
</script> </script>
<script> <script>
@ -716,31 +736,31 @@ $(document).ready(function() {
"<'row'<'col-sm-5'i><'col-sm-7'p>>", "<'row'<'col-sm-5'i><'col-sm-7'p>>",
buttons: [ buttons: [
{ {
text: '<i class="mdi mdi-plus app-text-white" ></i><span class="app-text-white app-font-family btn-custom"> Create New Ticket </span>', text: '<i class="mdi mdi-plus" ></i><span class="app-font-family btn-custom"> Create New Ticket </span>',
className: 'btn app-btn-primary app-btn-border-radius app-text-white mr-2', className: 'btn app-btn-primary app-btn-border-radius mr-2',
action: function(e, dt, node, config) { action: function(e, dt, node, config) {
openTicket(); openTicket();
} }
}, },
{ {
extend: 'collection', extend: 'collection',
text: '<span class="app-text-white app-font-family btn-custom"> Export </span><i class="mdi mdi-menu-down app-text-white"></i>', text: '<span class="app-font-family btn-custom"> Export </span><i class="mdi mdi-menu-down"></i>',
className: 'btn app-btn-secondary app-btn-border-radius app-text-white', className: 'btn app-btn-secondary app-btn-border-radius',
buttons: [ buttons: [
{ {
extend: 'csv', extend: 'csv',
text: '<i class="mdi mdi-file-delimited app-text-white" ></i><span class="app-text-white app-font-family btn-custom"> CSV </span>', text: '<i class="mdi mdi-file-delimited " ></i><span class=" app-font-family btn-custom"> CSV </span>',
title: 'Tickets', title: 'Tickets',
className: 'app-btn-primary app-text-white', className: 'app-btn-primary ',
}, },
{ {
extend: 'excel', extend: 'excel',
text: '<i class="mdi mdi-file-excel app-text-white" ></i><span class="app-text-white app-font-family btn-custom"> EXCEL </span>', text: '<i class="mdi mdi-file-excel " ></i><span class=" app-font-family btn-custom"> EXCEL </span>',
title: 'Tickets', title: 'Tickets',
exportOptions: { exportOptions: {
orthogonal: 'sort' orthogonal: 'sort'
}, },
className: 'app-btn-primary app-text-white', className: 'app-btn-primary ',
} }
] ]
} }

View File

@ -41,7 +41,7 @@
} }
.conversation-card{ .conversation-card{
border-radius: 15px !important; border-radius: 25px !important;
box-shadow: 0 2px 4px 0 #00000040; box-shadow: 0 2px 4px 0 #00000040;
} }
@ -125,12 +125,12 @@ hr{
/* Text inside */ /* Text inside */
.select2-container .select2-selection__rendered { .select2-container .select2-selection__rendered {
color: #000 !important; /* color: #000 !important; */
line-height: 36px !important; line-height: 36px !important;
} }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
background-color: #ECECEC !important; background-color: #00999E !important;
} }
</style> </style>
@ -188,7 +188,7 @@ hr{
</div> </div>
<div class="row mb-2"> <div class="row mb-2">
<div class="col-4 app-subtitle app-text-grey app-font-family">Policy Number</div> <div class="col-4 app-subtitle app-text-grey app-font-family">Policy Number</div>
<div class="col-8 app-text text-end app-font-family" style="font-weight: 500 !important;"> <div class="col-8 app-text text-end app-font-family app-text-black" style="font-weight: 500 !important;">
<?= (!empty($master[0]['policy_no']) && strtolower($master[0]['policy_no']) !== 'null') <?= (!empty($master[0]['policy_no']) && strtolower($master[0]['policy_no']) !== 'null')
? '<u class="app-text-black"> ? '<u class="app-text-black">
<a href="javascript:void(0);" <a href="javascript:void(0);"
@ -209,7 +209,20 @@ hr{
</div> </div>
<div class="row mb-2"> <div class="row mb-2">
<div class="col-4 app-subtitle app-text-grey app-font-family">Status</div> <div class="col-4 app-subtitle app-text-grey app-font-family">Status</div>
<div class="col-8 app-text app-text-black text-end app-font-family" style="font-weight: 500 !important;"><?= $master[0]['status'];?></div> <div class="col-8 app-text app-text-black text-end app-font-family" style="font-weight: 500 !important;">
<?= (!empty($master[0]['status']) && strtolower($master[0]['status']) !== 'null')
? '<u class="app-text-black">
<a href="javascript:void(0);"
class="app-text-black"
onclick="statusHistory('.$master[0]['thz_id'].')"
data-toggle="modal"
data-target="#StatusModal"
title="Click to view Status History">'
.$master[0]['status'].'
</a>
</u>'
: 'N/A'; ?>
</div>
</div> </div>
<div class="row mb-2"> <div class="row mb-2">
<div class="col-4 app-subtitle app-text-grey app-font-family">Ticket Type</div> <div class="col-4 app-subtitle app-text-grey app-font-family">Ticket Type</div>
@ -251,7 +264,7 @@ hr{
<!-- Conversation Card --> <!-- Conversation Card -->
<div class="card mb-3 conversation-card"> <div class="card mb-3 conversation-card">
<div class="card-header d-flex justify-content-between align-items-center" style="background:none; border:none; padding-bottom: 0px;"> <div class="card-header d-flex justify-content-between align-items-center" style="background:none; border:none; padding-bottom: 0px;">
<p class="sub-title-text app-font-family" >Conversation</p> <p class="sub-title-text app-font-family app-text-black" >Conversation</p>
</div> </div>
<div class="card-body recard-scroll" style="padding:0 27px !important; margin:0 !important; background:#F5FFFF;"> <div class="card-body recard-scroll" style="padding:0 27px !important; margin:0 !important; background:#F5FFFF;">
<?php if(!empty($notes)): ?> <?php if(!empty($notes)): ?>
@ -283,7 +296,7 @@ hr{
<?php else: ?> <?php else: ?>
<div class="d-flex justify-content-center align-items-center app-font-family" <div class="d-flex justify-content-center align-items-center app-font-family"
style="height: 45vh; width:100%;"> style="height: 45vh; width:100%;">
<p class="text-center app-font-family"><i>No Data Found</i></p> <p class="text-center app-font-family font-color-black"><i>No Data Found</i></p>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
@ -297,7 +310,7 @@ hr{
<input type="hidden" id="notes_by" name="notes_by" value="Staff"> <input type="hidden" id="notes_by" name="notes_by" value="Staff">
<input type="hidden" id="created_by" name="created_by" value="<?= get_session_userid(); ?>"> <input type="hidden" id="created_by" name="created_by" value="<?= get_session_userid(); ?>">
<div class="notes-box"> <div class="notes-box">
<textarea class="form-control" id="notes" name="notes" placeholder="Write your notes here..." required></textarea> <textarea class="form-control" id="notes" name="notes" placeholder="Write your notes here..." required maxlength="1500"></textarea>
<div class="icon-buttons"> <div class="icon-buttons">
<!-- save btn means local - internal --> <!-- save btn means local - internal -->
<button type="button" class="btn-icon" onclick="submitConverstionTicket('Internal')"><i class="mdi mdi-content-save"></i></button> <button type="button" class="btn-icon" onclick="submitConverstionTicket('Internal')"><i class="mdi mdi-content-save"></i></button>
@ -305,6 +318,7 @@ hr{
<button type="button" class="btn-icon" onclick="submitConverstionTicket('External')"><i class="mdi mdi-email"></i></button> <button type="button" class="btn-icon" onclick="submitConverstionTicket('External')"><i class="mdi mdi-email"></i></button>
</div> </div>
</div> </div>
<small id="messageCounter" class="form-text text-muted text-end app-text-right">0/1500</small>
</form> </form>
</div> </div>
@ -391,15 +405,17 @@ hr{
<?php if(!empty($related_tickets)): foreach($related_tickets as $j => $rt): ?> <?php if(!empty($related_tickets)): foreach($related_tickets as $j => $rt): ?>
<div class="card related-ticket-card app-font-family app-text" <div class="card related-ticket-card app-font-family app-text"
style="cursor: pointer;" style="cursor: pointer;"
onclick="window.location='<?= base_url().'/ticketConversationList?return_type=web&thz_id='.$rt['thz_id']; ?>'"> onclick="window.open('<?= base_url().'/ticketConversationList?return_type=web&thz_id='.$rt['thz_id']; ?>', '_blank')">
<div class="card-body"> <div class="card-body">
<div class="d-flex justify-content-between align-items-center" style="margin-bottom: 10px !important;"> <div class="d-flex justify-content-between align-items-center" style="margin-bottom: 10px !important;">
<h5 class="app-font-family app-text"><?php echo '# '.$rt['thz_id']." / ".$rt['ticket_type']; ?></h5> <h5 class="app-font-family app-text"><?php echo '# '.$rt['thz_id']." / ".$rt['ticket_type']; ?></h5>
<small classs="app-font-family" style="font-size:7px;"> <small classs="app-font-family" style="font-size:7px;">
<?php if (!empty($rt['created_at'])): <?php if (!empty($rt['created_at'])):
$cdt = new DateTime($rt['created_at']); $cd = date("j F Y", strtotime($rt['created_at']));
echo $cdt->format('d/m/Y') . "<span class='time'> " . $cdt->format('h:i a') . "</span>"; $ct = date("h:i a", strtotime($rt['created_at']));
endif; ?> echo $cd . " " . $ct;
endif;
?>
</small> </small>
</div> </div>
<p class="mt-1 app-font-family" <p class="mt-1 app-font-family"
@ -413,7 +429,7 @@ hr{
else: ?> else: ?>
<div class="d-flex justify-content-center align-items-center" <div class="d-flex justify-content-center align-items-center"
style="height: 50vh; width:100%;"> style="height: 50vh; width:100%;">
<p class="text-center"><i>No Data Found</i></p> <p class="text-center font-color-black" ><i>No Data Found</i></p>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
@ -437,7 +453,7 @@ hr{
else: ?> else: ?>
<div class="d-flex justify-content-center align-items-center" <div class="d-flex justify-content-center align-items-center"
style="height: 50vh; width:100%;"> style="height: 50vh; width:100%;">
<p class="text-center"><i>No Data Found</i></p> <p class="text-center font-color-black"><i>No Data Found</i></p>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
@ -446,6 +462,23 @@ hr{
</div> </div>
</div> </div>
<div class="modal fade app-font-family" id="StatusModal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg" >
<!-- style="max-width: 775px !important;"> -->
<div class="modal-content" style="border-radius:15px;">
<div class="modal-header" style="border-bottom-width:0;">
<h4 class="modal-title title-text app-font-family">Status History</h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<div class="modal-body card-scroll history-container" style="padding:5px 11px 11px 11px!important;">
</div>
</div>
</div>
</div>
<script> <script>
@ -455,6 +488,20 @@ hr{
$("#ticket_type").select2(); $("#ticket_type").select2();
$("#status").select2(); $("#status").select2();
$("#assign_to").select2(); $("#assign_to").select2();
const messageInput = document.getElementById("notes");
const messageCounter = document.getElementById("messageCounter");
messageInput.addEventListener("input", function () {
const messageLength = messageInput.value.length;
messageCounter.textContent = `${messageLength}/1500`;
if (messageLength > 1500) {
toastr.error('Message cannot exceed 1500 characters', 'Warning');
messageInput.classList.add('is-invalid');
} else {
messageInput.classList.remove('is-invalid');
}
});
}); });
@ -552,3 +599,86 @@ hr{
}); });
} }
</script> </script>
<script>
function statusHistory(thzId) {
console.log("*****");
$.ajax({
url: "<?= base_url('ticketHistoryList?thz_id=') ?>" + thzId,
type: "GET",
dataType: "json",
success: function(response) {
let container = $(".history-container");
container.empty(); // clear old content
if (response.status === "success" && response.data.length > 0) {
let table = `
<div class="table-responsive">
<table data-custom-table-css="table" class="table w-100 nowrap text-custom-black text-custom app-font-family app-datatable">
<thead class="app-table-head">
<tr>
<th class="app-text app-text-white">S.No</th>
<th class="app-text app-text-white">Old Status</th>
<th class="app-text app-text-white">New Status</th>
<th class="app-text app-text-white">Updated By</th>
<th class="app-text app-text-white">Date/Time</th>
</tr>
</thead>
<tbody class="app-table-body">
`;
response.data.forEach((row, index) => {
table += `
<tr>
<td class="app-text" style="text-align:left; vertical-align:middle;">${index + 1}</td>
<td class="app-text" style="text-align:left; vertical-align:middle;">${row.old_value ?? '-'}</td>
<td class="app-text" style="text-align:left; vertical-align:middle;">${row.new_value ?? '-'}</td>
<td class="app-text" style="text-align:left; vertical-align:middle;">${row.created_name ?? '-'}</td>
<td class="app-text" style="text-align:left; vertical-align:middle;">${row.created_at
? (() => {
let dt = new Date(row.created_at);
let dateStr = dt.toLocaleDateString('en-GB', {
day: '2-digit',
month: 'long',
year: 'numeric'
});
let timeStr = dt.toLocaleTimeString('en-US', {
hour: '2-digit',
minute: '2-digit',
hour12: true
}).toLowerCase();
return `${dateStr} ${timeStr}`;
})()
: '-'
}</td>
</tr>
`;
});
table += `</tbody></table></div>`;
container.html(table);
} else {
container.html(`
<div class="d-flex justify-content-center align-items-center" style="height: 50vh; width:100%;">
<p class="text-center app-font-family font-color-black"><i>${response.message ?? 'No history found'}</i></p>
</div>
`);
}
$("#StatusModal").modal("show");
},
error: function(xhr) {
$(".history-container").html(`
<div class="d-flex justify-content-center align-items-center" style="height: 50vh; width:100%;">
<p class="text-center app-font-family font-color-black"><i>No Data Found</i></p>
</div>
`);
$("#StatusModal").modal("show");
// toastr.error("Something went wrong!", "Error");
console.error(xhr.responseText);
}
});
}
</script>

View File

@ -13,7 +13,7 @@
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
<div class="card-body"> <div class="card-body">
<form role="form" class="parsley-examples" method="post" id="ticket_auto_query" <form role="form" class="parsley-examples" style="color:black;" method="post" id="ticket_auto_query"
enctype="multipart/form-data"> enctype="multipart/form-data">
<div class="form-group"> <div class="form-group">
<div class="form-row"> <div class="form-row">

View File

@ -2,6 +2,11 @@
.bg-staff { .bg-staff {
background-color: #FFF5E5; background-color: #FFF5E5;
} }
.label-font-size{
font-size:0.875rem;
}
</style> </style>
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
@ -22,49 +27,49 @@
<!-- Navigation Tabs --> <!-- Navigation Tabs -->
<ul class="nav nav-pills navtab-bg"> <ul class="nav nav-pills navtab-bg">
<li class="nav-item"> <li class="nav-item">
<a href="#general-tab" data-toggle="tab" class="nav-link px-2 py-1 active" id="general_tab" <a href="#general-tab" data-toggle="tab" class="nav-link px-2 py-1 active label-font-size" id="general_tab"
aria-expanded="true"> aria-expanded="true">
<i class="mdi mdi-ticket-account"></i> <i class="mdi mdi-ticket-account"></i>
<span class="d-none d-sm-inline-block">General</span> <span class="d-none d-sm-inline-block ">General</span>
</a> </a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a href="#reply-tab" data-toggle="tab" class="nav-link px-2 py-1" id="reply_tab" <a href="#reply-tab" data-toggle="tab" class="nav-link px-2 py-1 label-font-size" id="reply_tab"
aria-expanded="false"> aria-expanded="false">
<i class="mdi mdi-message-processing"></i> <i class="mdi mdi-message-processing"></i>
<span class="d-none d-sm-inline-block">Reply</span> <span class="d-none d-sm-inline-block">Reply</span>
</a> </a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a href="#note-tab" data-toggle="tab" class="nav-link px-2 py-1" id="note_tab" <a href="#note-tab" data-toggle="tab" class="nav-link px-2 py-1 label-font-size" id="note_tab"
aria-expanded="false"> aria-expanded="false">
<i class="mdi mdi-note-text"></i> <i class="mdi mdi-note-text"></i>
<span class="d-none d-sm-inline-block">Notes</span> <span class="d-none d-sm-inline-block">Notes</span>
</a> </a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a href="#history-tab" data-toggle="tab" class="nav-link px-2 py-1" id="history_tab" <a href="#history-tab" data-toggle="tab" class="nav-link px-2 py-1 label-font-size" id="history_tab"
aria-expanded="false"> aria-expanded="false">
<i class="mdi mdi-history"></i> <i class="mdi mdi-history"></i>
<span class="d-none d-sm-inline-block">History</span> <span class="d-none d-sm-inline-block">History</span>
</a> </a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a href="#autoQuery-tab" data-toggle="tab" class="nav-link px-2 py-1" id="auto_query_tab" <a href="#autoQuery-tab" data-toggle="tab" class="nav-link px-2 py-1 label-font-size" id="auto_query_tab"
aria-expanded="false"> aria-expanded="false">
<i class="mdi mdi-robot mr-1"></i> <i class="mdi mdi-robot mr-1"></i>
<span class="d-none d-sm-inline-block">Auto Query Content</span> <span class="d-none d-sm-inline-block">Auto Query Content</span>
</a> </a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a href="#uploads-tab" data-toggle="tab" class="nav-link px-2 py-1" id="uploads_tab" <a href="#uploads-tab" data-toggle="tab" class="nav-link px-2 py-1 label-font-size" id="uploads_tab"
aria-expanded="false"> aria-expanded="false">
<i class="mdi mdi-file mr-1"></i> <i class="mdi mdi-file mr-1"></i>
<span class="d-none d-sm-inline-block">Claim Files</span> <span class="d-none d-sm-inline-block">Claim Files</span>
</a> </a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a href="#viewpolicyterms-tab" data-toggle="tab" class="nav-link px-2 py-1" id="viewpolicyterms_tab" <a href="#viewpolicyterms-tab" data-toggle="tab" class="nav-link px-2 py-1 label-font-size" id="viewpolicyterms_tab"
aria-expanded="false"> aria-expanded="false">
<i class="mdi mdi-eye mr-1"></i> <i class="mdi mdi-eye mr-1"></i>
<span class="d-none d-sm-inline-block">View Policy Terms</span> <span class="d-none d-sm-inline-block">View Policy Terms</span>

View File

@ -50,7 +50,7 @@ table.dataTable tbody td {
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th>Claim Number</th> <th>Claim Number</th>

View File

@ -23,6 +23,14 @@
color: #0056b3; color: #0056b3;
font-size: 24px; font-size: 24px;
} }
.label-font-size{
font-size:0.875rem;
}
</style> </style>
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
@ -51,14 +59,14 @@
<div class="form-group"> <div class="form-group">
<h5>Employee Details</h5> <h4>Employee Details</h4>
<hr> <hr>
<!-- first_data_points --> <!-- first_data_points -->
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="emp_code">Employee ID <span class="text-danger">*</span> &nbsp; &nbsp; <i class="mdi mdi-magnify text-danger" <label for="emp_code" class="label-font-size">Employee ID <span class="text-danger">*</span> &nbsp; &nbsp; <i class="mdi mdi-magnify text-danger"
aria-hidden="true" onclick="openFetchEmpDataodal(this)"></i> <span aria-hidden="true" onclick="openFetchEmpDataodal(this)"></i> <span
class="text-danger"></span></label> class="text-danger"></span></label>
<input type="text" class="form-control" id="emp_code" placeholder="Enter Employee ID" <input type="text" class="form-control" id="emp_code" placeholder="Enter Employee ID"
@ -67,7 +75,7 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="emp_name">Employee Name <span class="text-danger">*</span></label> <label for="emp_name" class="label-font-size">Employee Name <span class="text-danger">*</span></label>
<input type=hidden id="emp_id" name="emp_id" value="<?= isset($ticket_data['emp_id']) ? $ticket_data['emp_id'] : '' ?>"> <input type=hidden id="emp_id" name="emp_id" value="<?= isset($ticket_data['emp_id']) ? $ticket_data['emp_id'] : '' ?>">
<input type="text" class="form-control" id="emp_name" placeholder="Enter Employee Name" <input type="text" class="form-control" id="emp_name" placeholder="Enter Employee Name"
value="<?= isset($ticket_data['emp_name']) ? $ticket_data['emp_name'] : '' ?>" value="<?= isset($ticket_data['emp_name']) ? $ticket_data['emp_name'] : '' ?>"
@ -75,13 +83,13 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="insured_name"> Insured Name <span class="text-danger">*</span></label> <label for="insured_name" class="label-font-size"> Insured Name <span class="text-danger">*</span></label>
<input type=hidden id="insured_emp_id" name="insured_emp_id" value="<?= isset($ticket_data['insured_emp_id']) ? $ticket_data['insured_emp_id'] : '' ?>"> <input type=hidden id="insured_emp_id" name="insured_emp_id" value="<?= isset($ticket_data['insured_emp_id']) ? $ticket_data['insured_emp_id'] : '' ?>">
<input class="form-control" id="insured_name" name="insured_name" value="<?= isset($ticket_data['insured_name']) ? $ticket_data['insured_name'] : '' ?>" required> <input class="form-control" id="insured_name" name="insured_name" value="<?= isset($ticket_data['insured_name']) ? $ticket_data['insured_name'] : '' ?>" required>
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="relationship"> Relationship <span class="text-danger">*</span></label> <label for="relationship" class="label-font-size"> Relationship <span class="text-danger">*</span></label>
<select class="form-control" id="relationship" name="relationship" required> <select class="form-control" id="relationship" name="relationship" required>
<option value="">Select Relationship</option> <option value="">Select Relationship</option>
<?php <?php
@ -96,54 +104,54 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="policy_no">Policy No <span class="text-danger"></span></label> <label for="policy_no" class="label-font-size">Policy No <span class="text-danger"></span></label>
<input type="text" class="form-control" id="policy_no" <input type="text" class="form-control" id="policy_no"
value="<?= isset($ticket_data['policy_no']) ? $ticket_data['policy_no'] : '' ?>" value="<?= isset($ticket_data['policy_no']) ? $ticket_data['policy_no'] : '' ?>"
name="policy_no" placeholder="Policy Number"> name="policy_no" placeholder="Policy Number">
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="tpa_no">TPA ID <span class="text-danger"></span></label> <label for="tpa_no" class="label-font-size">TPA ID <span class="text-danger"></span></label>
<input type="text" class="form-control" id="tpa_no" placeholder="Enter TPA ID" <input type="text" class="form-control" id="tpa_no" placeholder="Enter TPA ID"
value="<?= isset($ticket_data['tpa_no']) ? $ticket_data['tpa_no'] : '' ?>" value="<?= isset($ticket_data['tpa_no']) ? $ticket_data['tpa_no'] : '' ?>"
name="tpa_no"> name="tpa_no">
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="emp_mobile">Employee Mobile No <span class="text-danger">*</span></label> <label for="emp_mobile" class="label-font-size">Employee Mobile No <span class="text-danger">*</span></label>
<input type="text" class="form-control" id="emp_mobile" placeholder="Enter EMP Mobile" <input type="text" class="form-control" id="emp_mobile" placeholder="Enter EMP Mobile"
value="<?= isset($ticket_data['emp_mobile']) ? $ticket_data['emp_mobile'] : '' ?>" value="<?= isset($ticket_data['emp_mobile']) ? $ticket_data['emp_mobile'] : '' ?>"
name="emp_mobile" required> name="emp_mobile" required>
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="emp_mail">Employee Mail ID <span class="text-danger">*</span></label> <label for="emp_mail" class="label-font-size">Employee Mail ID <span class="text-danger">*</span></label>
<input type="text" class="form-control" id="emp_mail" placeholder="Enter EMP Mail" <input type="text" class="form-control" id="emp_mail" placeholder="Enter EMP Mail"
value="<?= isset($ticket_data['emp_mail']) ? $ticket_data['emp_mail'] : '' ?>" value="<?= isset($ticket_data['emp_mail']) ? $ticket_data['emp_mail'] : '' ?>"
name="emp_mail" required> name="emp_mail" required>
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="emp_personal_mail">Employee Personal Mail ID</label> <label for="emp_personal_mail" class="label-font-size">Employee Personal Mail ID</label>
<input type="text" class="form-control" id="emp_personal_mail" placeholder="Enter EMP Personal Mail" <input type="text" class="form-control" id="emp_personal_mail" placeholder="Enter EMP Personal Mail"
value="<?= isset($ticket_data['emp_personal_mail']) ? $ticket_data['emp_personal_mail'] : '' ?>" value="<?= isset($ticket_data['emp_personal_mail']) ? $ticket_data['emp_personal_mail'] : '' ?>"
name="emp_personal_mail"> name="emp_personal_mail">
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="client_name">Corporate Name <span class="text-danger">*</span></label> <label for="client_name" class="label-font-size">Corporate Name <span class="text-danger">*</span></label>
<input type="hidden" id="client_id" name="client_id" value="<?= isset($ticket_data['client_id']) ? $ticket_data['client_id'] : '' ?>"> <input type="hidden" id="client_id" name="client_id" value="<?= isset($ticket_data['client_id']) ? $ticket_data['client_id'] : '' ?>">
<input type="text" class="form-control" id="client_name" placeholder="Client" value="<?= isset($ticket_data['client_name']) ? $ticket_data['client_name'] : '' ?>" readonly required> <input type="text" class="form-control" id="client_name" placeholder="Client" value="<?= isset($ticket_data['client_name']) ? $ticket_data['client_name'] : '' ?>" readonly required>
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="insurer_id">Insurer <span class="text-danger">*</span></label> <label for="insurer_id" class="label-font-size">Insurer <span class="text-danger">*</span></label>
<input type=hidden id="insurer_id" name="insurer_id" value="<?= isset($ticket_data['insurer_id']) ? $ticket_data['insurer_id'] : '' ?>"> <input type=hidden id="insurer_id" name="insurer_id" value="<?= isset($ticket_data['insurer_id']) ? $ticket_data['insurer_id'] : '' ?>">
<input type=text class="form-control" id="insurer_name" placeholder="Insurer" value="<?= isset($ticket_data['insurer_name']) ? $ticket_data['insurer_name'] : '' ?>" readonly required> <input type=text class="form-control" id="insurer_name" placeholder="Insurer" value="<?= isset($ticket_data['insurer_name']) ? $ticket_data['insurer_name'] : '' ?>" readonly required>
</div> </div>
<input type="hidden" id="empIDHidden" onchange="getClientPolicy()"> <input type="hidden" id="empIDHidden" onchange="getClientPolicy()">
<div class="col-md-3"> <div class="col-md-3">
<div class="form-group"> <div class="form-group">
<label>Policy <span class="text-danger">*</span></label> <label class="label-font-size">Policy <span class="text-danger">*</span></label>
<select id="emp_client_policy" name="client_policy_id" <select id="emp_client_policy" name="client_policy_id"
class="form-control custom-select" required onchange="setMinDateDOA(this.value); setInsurerAndTPAData(this)"> class="form-control custom-select" required onchange="setMinDateDOA(this.value); setInsurerAndTPAData(this)">
<?php if (!empty($ticket_data['client_policy_id'])) { ?> <?php if (!empty($ticket_data['client_policy_id'])) { ?>
@ -156,13 +164,13 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="tpa_name">TPA <span class="text-danger"></span></label> <label class="label-font-size" for="tpa_name">TPA <span class="text-danger"></span></label>
<input type=hidden id="tpa_id" name="tpa_id" value="<?= isset($ticket_data['tpa_id']) ? $ticket_data['tpa_id'] : '' ?>"> <input type=hidden id="tpa_id" name="tpa_id" value="<?= isset($ticket_data['tpa_id']) ? $ticket_data['tpa_id'] : '' ?>">
<input type=text class="form-control" id="tpa_name" placeholder="TPA" value="<?= isset($ticket_data['tpa_name']) ? $ticket_data['tpa_name'] : '' ?>" readonly> <input type=text class="form-control" id="tpa_name" placeholder="TPA" value="<?= isset($ticket_data['tpa_name']) ? $ticket_data['tpa_name'] : '' ?>" readonly>
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="acm_id">Account Manager <span class="text-danger">*</span></label> <label class="label-font-size" for="acm_id">Account Manager <span class="text-danger">*</span></label>
<select class="form-control" id="acm_id" name="acm_id" required> <select class="form-control" id="acm_id" name="acm_id" required>
<!-- <option value="0">Select Account Manager</option> --> <!-- <option value="0">Select Account Manager</option> -->
<?php <?php
@ -195,7 +203,7 @@
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="claim_status">Status <span class="text-danger">*</span></label> <label class="label-font-size" for="claim_status">Status <span class="text-danger">*</span></label>
<select class="form-control" id="claim_status_id" name="claim_status_id" required> <select class="form-control" id="claim_status_id" name="claim_status_id" required>
<!-- <option value="0">Select status</option> --> <!-- <option value="0">Select status</option> -->
<?php <?php
@ -210,7 +218,7 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="priority">Priority <span class="text-danger">*</span></label> <label class="label-font-size" for="priority">Priority <span class="text-danger">*</span></label>
<select class="form-control" id="priority" name="priority" required> <select class="form-control" id="priority" name="priority" required>
<!-- <option value="0">Select Priority</option> --> <!-- <option value="0">Select Priority</option> -->
<?php <?php
@ -225,7 +233,7 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="mode_of_intimation"> Mode of Submission <span <label class="label-font-size" for="mode_of_intimation"> Mode of Submission <span
class="text-danger">*</span></label> class="text-danger">*</span></label>
<select class="form-control" id="mode_of_intimation" name="mode_of_intimation" required> <select class="form-control" id="mode_of_intimation" name="mode_of_intimation" required>
<!-- <option value="0">Select Mode</option> --> <!-- <option value="0">Select Mode</option> -->
@ -241,7 +249,7 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="claim_type"> Claim Type <span class="text-danger">*</span></label> <label class="label-font-size" for="claim_type"> Claim Type <span class="text-danger">*</span></label>
<select class="form-control" id="claim_type" name="claim_type" required> <select class="form-control" id="claim_type" name="claim_type" required>
<!-- <option value="0">Select claim Type</option> --> <!-- <option value="0">Select claim Type</option> -->
<?php <?php
@ -256,7 +264,7 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="hospital_name">Hospital Name <span class="text-danger">*</span></label> <label class="label-font-size" for="hospital_name">Hospital Name <span class="text-danger">*</span></label>
<input type="text" class="form-control" id="hospital_name" <input type="text" class="form-control" id="hospital_name"
placeholder="Enter Hospital Name" placeholder="Enter Hospital Name"
value="<?= isset($ticket_data['hospital_name']) ? $ticket_data['hospital_name'] : '' ?>" value="<?= isset($ticket_data['hospital_name']) ? $ticket_data['hospital_name'] : '' ?>"
@ -264,20 +272,20 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="doa">DOA <span class="text-danger">*</span></label> <label class="label-font-size" for="doa">DOA <span class="text-danger">*</span></label>
<input type="text" class="form-control" id="doa" placeholder="Enter DOA" <input type="text" class="form-control" id="doa" placeholder="Enter DOA"
value="<?= isset($ticket_data['doa']) ? $ticket_data['doa'] : '' ?>" value="<?= isset($ticket_data['doa']) ? $ticket_data['doa'] : '' ?>"
name="doa" required> name="doa" required>
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="dod">DOD <span class="text-danger">*</span></label> <label class="label-font-size" for="dod">DOD <span class="text-danger">*</span></label>
<input type="text" class="form-control" id="dod" placeholder="Enter DOD" <input type="text" class="form-control" id="dod" placeholder="Enter DOD"
value="<?= isset($ticket_data['dod']) ? $ticket_data['dod'] : '' ?>" name="dod" required> value="<?= isset($ticket_data['dod']) ? $ticket_data['dod'] : '' ?>" name="dod" required>
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="claim_amount">Claim Amount <span class="text-danger">*</span></label> <label class="label-font-size" for="claim_amount">Claim Amount <span class="text-danger">*</span></label>
<input type="text" class="form-control" id="claim_amount" <input type="text" class="form-control" id="claim_amount"
placeholder="Enter Claim Amount" placeholder="Enter Claim Amount"
value="<?= isset($ticket_data['claim_amount']) ? $ticket_data['claim_amount'] : '' ?>" value="<?= isset($ticket_data['claim_amount']) ? $ticket_data['claim_amount'] : '' ?>"
@ -285,7 +293,7 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label id="pod_no_label_1" for="pod_no">POD No with Courier Name <span id="pod_no_label_1_span" class="text-danger"></span></label> <label class="label-font-size" id="pod_no_label_1" for="pod_no">POD No with Courier Name <span id="pod_no_label_1_span" class="text-danger"></span></label>
<input type="text" class="form-control" id="pod_no" placeholder="Enter POD NO" <input type="text" class="form-control" id="pod_no" placeholder="Enter POD NO"
value="<?= isset($ticket_data['pod_no']) ? $ticket_data['pod_no'] : '' ?>" value="<?= isset($ticket_data['pod_no']) ? $ticket_data['pod_no'] : '' ?>"
name="pod_no"> name="pod_no">
@ -302,108 +310,108 @@
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-3 up_cnu" style="display: none;"> <div class="form-group col-md-3 up_cnu" style="display: none;">
<label for="claim_number">Claim Number <span class="text-danger"></span></label> <label class="label-font-size" for="claim_number">Claim Number <span class="text-danger"></span></label>
<input type="text" class="form-control" id="claim_number" placeholder="Enter Claim NO" <input type="text" class="form-control" id="claim_number" placeholder="Enter Claim NO"
value="<?= isset($ticket_data['claim_number']) ? $ticket_data['claim_number'] : '' ?>" value="<?= isset($ticket_data['claim_number']) ? $ticket_data['claim_number'] : '' ?>"
name="claim_number"> name="claim_number">
</div> </div>
<div class="form-group col-md-3 up_cnu" style="display: none;"> <div class="form-group col-md-3 up_cnu" style="display: none;">
<label for="registration_date">Registration Date</label> <label class="label-font-size" for="registration_date">Registration Date</label>
<input type="text" class="form-control datepicker" id="registration_date" placeholder="Select Registration Date" <input type="text" class="form-control datepicker" id="registration_date" placeholder="Select Registration Date"
value="<?= isset($ticket_data['registration_date']) ? $ticket_data['registration_date'] : '' ?>" name="registration_date"> value="<?= isset($ticket_data['registration_date']) ? $ticket_data['registration_date'] : '' ?>" name="registration_date">
</div> </div>
<div class="form-group col-md-3 cda_ir" style="display: none;"> <div class="form-group col-md-3 cda_ir" style="display: none;">
<label for="raised_date">Raised Date</label> <label class="label-font-size" for="raised_date">Raised Date</label>
<input type="text" class="form-control datepicker" id="raised_date" placeholder="Select Raised Date" <input type="text" class="form-control datepicker" id="raised_date" placeholder="Select Raised Date"
value="<?= isset($ticket_data['raised_date']) ? $ticket_data['raised_date'] : '' ?>" name="raised_date"> value="<?= isset($ticket_data['raised_date']) ? $ticket_data['raised_date'] : '' ?>" name="raised_date">
</div> </div>
<div class="form-group col-md-3 up_qdr" style="display: none;"> <div class="form-group col-md-3 up_qdr" style="display: none;">
<label for="query_received_date">Query Received Date</label> <label class="label-font-size" for="query_received_date">Query Received Date</label>
<input type="text" class="form-control datepicker" id="query_received_date" placeholder="Select Query Received Date" <input type="text" class="form-control datepicker" id="query_received_date" placeholder="Select Query Received Date"
value="<?= isset($ticket_data['query_received_date']) ? $ticket_data['query_received_date'] : '' ?>" name="query_received_date"> value="<?= isset($ticket_data['query_received_date']) ? $ticket_data['query_received_date'] : '' ?>" name="query_received_date">
</div> </div>
<div class="form-group col-md-3 rejected" style="display: none;"> <div class="form-group col-md-3 rejected" style="display: none;">
<label for="denial_reason">Denial Reason</label> <label class="label-font-size" for="denial_reason">Denial Reason</label>
<input type="text" class="form-control" id="denial_reason" placeholder="Enter Denial Reason" <input type="text" class="form-control" id="denial_reason" placeholder="Enter Denial Reason"
value="<?= isset($ticket_data['denial_reason']) ? $ticket_data['denial_reason'] : '' ?>" name="denial_reason"> value="<?= isset($ticket_data['denial_reason']) ? $ticket_data['denial_reason'] : '' ?>" name="denial_reason">
</div> </div>
<div class="form-group col-md-3 rejected" style="display: none;"> <div class="form-group col-md-3 rejected" style="display: none;">
<label for="denial_date">Denial Date</label> <label class="label-font-size" for="denial_date">Denial Date</label>
<input type="text" class="form-control datepicker" id="denial_date" placeholder="Select Denial Date" <input type="text" class="form-control datepicker" id="denial_date" placeholder="Select Denial Date"
value="<?= isset($ticket_data['denial_date']) ? $ticket_data['denial_date'] : '' ?>" name="denial_date"> value="<?= isset($ticket_data['denial_date']) ? $ticket_data['denial_date'] : '' ?>" name="denial_date">
</div> </div>
<div class="form-group col-md-3 approved" style="display: none;"> <div class="form-group col-md-3 approved" style="display: none;">
<label for="approved_amount">Approved Amount</label> <label class="label-font-size" for="approved_amount">Approved Amount</label>
<input type="text" class="form-control" id="approved_amount" placeholder="Enter Approved Amount" <input type="text" class="form-control" id="approved_amount" placeholder="Enter Approved Amount"
value="<?= isset($ticket_data['approved_amount']) ? $ticket_data['approved_amount'] : '' ?>" name="approved_amount"> value="<?= isset($ticket_data['approved_amount']) ? $ticket_data['approved_amount'] : '' ?>" name="approved_amount">
</div> </div>
<div class="form-group col-md-3 approved" style="display: none;"> <div class="form-group col-md-3 approved" style="display: none;">
<label for="approved_date">Approved Date</label> <label class="label-font-size" for="approved_date">Approved Date</label>
<input type="text" class="form-control datepicker" id="approved_date" placeholder="Select Approved Date" <input type="text" class="form-control datepicker" id="approved_date" placeholder="Select Approved Date"
value="<?= isset($ticket_data['approved_date']) ? $ticket_data['approved_date'] : '' ?>" name="approved_date"> value="<?= isset($ticket_data['approved_date']) ? $ticket_data['approved_date'] : '' ?>" name="approved_date">
</div> </div>
<div class="form-group col-md-6 approved" style="display: none;"> <div class="form-group col-md-6 approved" style="display: none;">
<label for="approved_letter">Approved Letter</label> <label class="label-font-size" for="approved_letter">Approved Letter</label>
<input type="text" class="form-control" id="approved_letter" placeholder="Enter Approved Letter" <input type="text" class="form-control" id="approved_letter" placeholder="Enter Approved Letter"
value="<?= isset($ticket_data['approved_letter']) ? $ticket_data['approved_letter'] : '' ?>" name="approved_letter"> value="<?= isset($ticket_data['approved_letter']) ? $ticket_data['approved_letter'] : '' ?>" name="approved_letter">
</div> </div>
<div class="form-group col-md-6 approved" style="display: none;"> <div class="form-group col-md-6 approved" style="display: none;">
<label for="approved_description">Approved Description</label> <label class="label-font-size" for="approved_description">Approved Description</label>
<input type="text" class="form-control" id="approved_description" placeholder="Enter Approved Description" <input type="text" class="form-control" id="approved_description" placeholder="Enter Approved Description"
value="<?= isset($ticket_data['approved_description']) ? $ticket_data['approved_description'] : '' ?>" name="approved_description"> value="<?= isset($ticket_data['approved_description']) ? $ticket_data['approved_description'] : '' ?>" name="approved_description">
</div> </div>
<div class="form-group col-md-3 settled" style="display: none;"> <div class="form-group col-md-3 settled" style="display: none;">
<label for="utr_details">UTR Details</label> <label class="label-font-size" for="utr_details">UTR Details</label>
<input type="text" class="form-control" id="utr_details" placeholder="Enter UTR Details" <input type="text" class="form-control" id="utr_details" placeholder="Enter UTR Details"
value="<?= isset($ticket_data['utr_details']) ? $ticket_data['utr_details'] : '' ?>" name="utr_details"> value="<?= isset($ticket_data['utr_details']) ? $ticket_data['utr_details'] : '' ?>" name="utr_details">
</div> </div>
<div class="form-group col-md-3 settled" style="display: none;"> <div class="form-group col-md-3 settled" style="display: none;">
<label for="settled_date">Settled Date</label> <label class="label-font-size" for="settled_date">Settled Date</label>
<input type="text" class="form-control datepicker" id="settled_date" placeholder="Select Settled Date" <input type="text" class="form-control datepicker" id="settled_date" placeholder="Select Settled Date"
value="<?= isset($ticket_data['settled_date']) ? $ticket_data['settled_date'] : '' ?>" name="settled_date"> value="<?= isset($ticket_data['settled_date']) ? $ticket_data['settled_date'] : '' ?>" name="settled_date">
</div> </div>
<div class="form-group col-md-6 settled" style="display: none;"> <div class="form-group col-md-6 settled" style="display: none;">
<label for="settle_letter">Settle Letter</label> <label class="label-font-size" for="settle_letter">Settle Letter</label>
<input type="text" class="form-control" id="settle_letter" placeholder="Enter Settle Letter" <input type="text" class="form-control" id="settle_letter" placeholder="Enter Settle Letter"
value="<?= isset($ticket_data['settle_letter']) ? $ticket_data['settle_letter'] : '' ?>" name="settle_letter"> value="<?= isset($ticket_data['settle_letter']) ? $ticket_data['settle_letter'] : '' ?>" name="settle_letter">
</div> </div>
<div class="form-group col-md-3 payment" style="display: none;"> <div class="form-group col-md-3 payment" style="display: none;">
<label for="pay_initiate_date">Payment Initiate Date</label> <label class="label-font-size" for="pay_initiate_date">Payment Initiate Date</label>
<input type="text" class="form-control datepicker" id="pay_initiate_date" placeholder="Select Payment Initiate Date" <input type="text" class="form-control datepicker" id="pay_initiate_date" placeholder="Select Payment Initiate Date"
value="<?= isset($ticket_data['pay_initiate_date']) ? $ticket_data['pay_initiate_date'] : '' ?>" name="pay_initiate_date"> value="<?= isset($ticket_data['pay_initiate_date']) ? $ticket_data['pay_initiate_date'] : '' ?>" name="pay_initiate_date">
</div> </div>
<div class="form-group col-md-3 canceled" style="display: none;"> <div class="form-group col-md-3 canceled" style="display: none;">
<label for="cancel_remark">Cancel Remark</label> <label class="label-font-size" for="cancel_remark">Cancel Remark</label>
<textarea class="form-control" id="cancel_remark" rows="1" placeholder="Enter Cancel Remark" name="cancel_remark"><?= isset($ticket_data['cancel_remark']) ? $ticket_data['cancel_remark'] : '' ?></textarea> <textarea class="form-control" id="cancel_remark" rows="1" placeholder="Enter Cancel Remark" name="cancel_remark"><?= isset($ticket_data['cancel_remark']) ? $ticket_data['cancel_remark'] : '' ?></textarea>
</div> </div>
<div class="form-group col-md-3 returned" style="display: none;"> <div class="form-group col-md-3 returned" style="display: none;">
<label for="return_remark">Return Remark</label> <label class="label-font-size" for="return_remark">Return Remark</label>
<textarea class="form-control" id="return_remark" rows="1" placeholder="Enter Return Remark" name="return_remark"><?= isset($ticket_data['return_remark']) ? $ticket_data['return_remark'] : '' ?></textarea> <textarea class="form-control" id="return_remark" rows="1" placeholder="Enter Return Remark" name="return_remark"><?= isset($ticket_data['return_remark']) ? $ticket_data['return_remark'] : '' ?></textarea>
</div> </div>
<div class="form-group col-md-6 returned" style="display: none;"> <div class="form-group col-md-6 returned" style="display: none;">
<label for="awb_no_courier_name">Return AWB No with Courier Name</label> <label class="label-font-size" for="awb_no_courier_name">Return AWB No with Courier Name</label>
<input type="text" class="form-control" id="awb_no_courier_name" placeholder="eg : 0001/ST Courier" <input type="text" class="form-control" id="awb_no_courier_name" placeholder="eg : 0001/ST Courier"
value="<?= isset($ticket_data['awb_no_courier_name']) ? $ticket_data['awb_no_courier_name'] : '' ?>" name="awb_no_courier_name"> value="<?= isset($ticket_data['awb_no_courier_name']) ? $ticket_data['awb_no_courier_name'] : '' ?>" name="awb_no_courier_name">
</div> </div>
<div class="form-group col-md-3 non_id" style="display: none;"> <div class="form-group col-md-3 non_id" style="display: none;">
<label for="non_id_reason">Non ID Reason <span id="non_id_reason_lable_id" class="text-danger"></span></label> <label class="label-font-size" for="non_id_reason">Non ID Reason <span id="non_id_reason_lable_id" class="text-danger"></span></label>
<select class="form-control" id="non_id_reason" name="non_id_reason"> <select class="form-control" id="non_id_reason" name="non_id_reason">
<option value="">Select Reason</option> <option value="">Select Reason</option>
<?php <?php

View File

@ -16,6 +16,11 @@
color: #0056b3; color: #0056b3;
font-size: 24px; font-size: 24px;
} }
.label-font-size{
font-size:0.875rem;
}
</style> </style>
<div class="row"> <div class="row">
@ -51,7 +56,7 @@
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="emp_code">Employee ID <span class="text-danger">*</span> &nbsp; &nbsp; <i class="mdi mdi-magnify text-danger" <label class="label-font-size" for="emp_code">Employee ID <span class="text-danger">*</span> &nbsp; &nbsp; <i class="mdi mdi-magnify text-danger"
aria-hidden="true" onclick="openFetchEmpDataodal(this)"></i> <span class="text-danger"></span></label> aria-hidden="true" onclick="openFetchEmpDataodal(this)"></i> <span class="text-danger"></span></label>
<input type="text" class="form-control" id="emp_code" placeholder="Enter Employee ID" <input type="text" class="form-control" id="emp_code" placeholder="Enter Employee ID"
value="<?= isset($ticket_data['emp_code']) ? $ticket_data['emp_code'] : '' ?>" value="<?= isset($ticket_data['emp_code']) ? $ticket_data['emp_code'] : '' ?>"
@ -59,7 +64,7 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="emp_name">Employee Name <span class="text-danger">*</span></label> <label class="label-font-size" for="emp_name">Employee Name <span class="text-danger">*</span></label>
<input type=hidden id="emp_id" name="emp_id" value="<?= isset($ticket_data['emp_id']) ? $ticket_data['emp_id'] : '' ?>"> <input type=hidden id="emp_id" name="emp_id" value="<?= isset($ticket_data['emp_id']) ? $ticket_data['emp_id'] : '' ?>">
<input type="text" class="form-control" id="emp_name" placeholder="Enter Employee Name" <input type="text" class="form-control" id="emp_name" placeholder="Enter Employee Name"
value="<?= isset($ticket_data['emp_name']) ? $ticket_data['emp_name'] : '' ?>" value="<?= isset($ticket_data['emp_name']) ? $ticket_data['emp_name'] : '' ?>"
@ -67,41 +72,41 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="emp_mobile">Employee Mobile No <span class="text-danger">*</span></label> <label class="label-font-size" for="emp_mobile">Employee Mobile No <span class="text-danger">*</span></label>
<input type="text" class="form-control" id="emp_mobile" placeholder="Enter EMP Mobile" <input type="text" class="form-control" id="emp_mobile" placeholder="Enter EMP Mobile"
value="<?= isset($ticket_data['emp_mobile']) ? $ticket_data['emp_mobile'] : '' ?>" value="<?= isset($ticket_data['emp_mobile']) ? $ticket_data['emp_mobile'] : '' ?>"
name="emp_mobile" required> name="emp_mobile" required>
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="emp_mail">Employee Mail ID <span class="text-danger">*</span></label> <label class="label-font-size" for="emp_mail">Employee Mail ID <span class="text-danger">*</span></label>
<input type="text" class="form-control" id="emp_mail" placeholder="Enter EMP Mail" <input type="text" class="form-control" id="emp_mail" placeholder="Enter EMP Mail"
value="<?= isset($ticket_data['emp_mail']) ? $ticket_data['emp_mail'] : '' ?>" value="<?= isset($ticket_data['emp_mail']) ? $ticket_data['emp_mail'] : '' ?>"
name="emp_mail" required> name="emp_mail" required>
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="emp_personal_mail">Employee Personal Mail ID</label> <label class="label-font-size" for="emp_personal_mail">Employee Personal Mail ID</label>
<input type="text" class="form-control" id="emp_personal_mail" placeholder="Enter EMP Personal Mail" <input type="text" class="form-control" id="emp_personal_mail" placeholder="Enter EMP Personal Mail"
value="<?= isset($ticket_data['emp_personal_mail']) ? $ticket_data['emp_personal_mail'] : '' ?>" value="<?= isset($ticket_data['emp_personal_mail']) ? $ticket_data['emp_personal_mail'] : '' ?>"
name="emp_personal_mail"> name="emp_personal_mail">
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="policy_no">Policy No <span class="text-danger"></span></label> <label class="label-font-size" for="policy_no">Policy No <span class="text-danger"></span></label>
<input type="text" class="form-control" id="policy_no" <input type="text" class="form-control" id="policy_no"
value="<?= isset($ticket_data['policy_no']) ? $ticket_data['policy_no'] : '' ?>" value="<?= isset($ticket_data['policy_no']) ? $ticket_data['policy_no'] : '' ?>"
name="policy_no"> name="policy_no">
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="client_name">Corporate Name <span class="text-danger">*</span></label> <label class="label-font-size" for="client_name">Corporate Name <span class="text-danger">*</span></label>
<input type="hidden" id="client_id" name="client_id" value="<?= isset($ticket_data['client_id']) ? $ticket_data['client_id'] : '' ?>"> <input type="hidden" id="client_id" name="client_id" value="<?= isset($ticket_data['client_id']) ? $ticket_data['client_id'] : '' ?>">
<input type="text" class="form-control" id="client_name" placeholder="Client" value="<?= isset($ticket_data['client_name']) ? $ticket_data['client_name'] : '' ?>" readonly required> <input type="text" class="form-control" id="client_name" placeholder="Client" value="<?= isset($ticket_data['client_name']) ? $ticket_data['client_name'] : '' ?>" readonly required>
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="insurer_id">Insurer <span class="text-danger">*</span></label> <label class="label-font-size" for="insurer_id">Insurer <span class="text-danger">*</span></label>
<input type=hidden id="insurer_id" name="insurer_id" value="<?= isset($ticket_data['insurer_id']) ? $ticket_data['insurer_id'] : '' ?>"> <input type=hidden id="insurer_id" name="insurer_id" value="<?= isset($ticket_data['insurer_id']) ? $ticket_data['insurer_id'] : '' ?>">
<input type=text class="form-control" id="insurer_name" placeholder="Insurer" value="<?= isset($ticket_data['insurer_name']) ? $ticket_data['insurer_name'] : '' ?>" readonly required> <input type=text class="form-control" id="insurer_name" placeholder="Insurer" value="<?= isset($ticket_data['insurer_name']) ? $ticket_data['insurer_name'] : '' ?>" readonly required>
</div> </div>
@ -109,7 +114,7 @@
<div class="col-md-3"> <div class="col-md-3">
<div class="form-group"> <div class="form-group">
<label>Policy <span class="text-danger">*</span></label> <label class="label-font-size">Policy <span class="text-danger">*</span></label>
<select id="emp_client_policy" name="client_policy_id" <select id="emp_client_policy" name="client_policy_id"
class="form-control custom-select" required onchange="setDateValidation(this.value,true); setInsurerAndTPAData(this)" class="form-control custom-select" required onchange="setDateValidation(this.value,true); setInsurerAndTPAData(this)"
<?= isset($ticket_data['client_policy_id'])?" class = 'readonly-select'":'' ?> <?= isset($ticket_data['client_policy_id'])?" class = 'readonly-select'":'' ?>
@ -124,7 +129,7 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="acm_id">Account Manager <span class="text-danger">*</span></label> <label class="label-font-size" for="acm_id">Account Manager <span class="text-danger">*</span></label>
<select class="form-control" id="acm_id" name="acm_id" required> <select class="form-control" id="acm_id" name="acm_id" required>
<!-- <option value="0">Select Account Manager</option> --> <!-- <option value="0">Select Account Manager</option> -->
<?php <?php
@ -149,7 +154,7 @@
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="ticket_type_id"> Policy Type <span class="text-danger"></span></label> <label class="label-font-size" for="ticket_type_id"> Policy Type <span class="text-danger"></span></label>
<select class="form-control readonly-select" id="ticket_type_id" name="ticket_type_id" readonly> <select class="form-control readonly-select" id="ticket_type_id" name="ticket_type_id" readonly>
<?php <?php
if (isset($ticket_type) && count($ticket_type)) { if (isset($ticket_type) && count($ticket_type)) {
@ -165,7 +170,7 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="claim_status">Status <span class="text-danger">*</span></label> <label class="label-font-size" for="claim_status">Status <span class="text-danger">*</span></label>
<select class="form-control" id="claim_status_id" name="claim_status_id" required> <select class="form-control" id="claim_status_id" name="claim_status_id" required>
<!-- <option value="0">Select status</option> --> <!-- <option value="0">Select status</option> -->
<?php <?php
@ -180,7 +185,7 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="claim_type"> Claim Type <span class="text-danger">*</span></label> <label class="label-font-size" for="claim_type"> Claim Type <span class="text-danger">*</span></label>
<select class="form-control" id="claim_type" name="claim_type" required> <select class="form-control" id="claim_type" name="claim_type" required>
<!-- <option value="0">Select claim Type</option> --> <!-- <option value="0">Select claim Type</option> -->
<?php <?php
@ -195,7 +200,7 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="date_of_join">Date of joining<span class="text-danger"></span></label> <label class="label-font-size" for="date_of_join">Date of joining<span class="text-danger"></span></label>
<input type="text" class="form-control" id="date_of_join" <input type="text" class="form-control" id="date_of_join"
placeholder="Enter Joining Date" placeholder="Enter Joining Date"
value="<?= isset($ticket_data['date_of_join']) ? $ticket_data['date_of_join'] : '' ?>" value="<?= isset($ticket_data['date_of_join']) ? $ticket_data['date_of_join'] : '' ?>"
@ -203,7 +208,7 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="date_of_incep">Date of Inception<span class="text-danger"></span></label> <label class="label-font-size" for="date_of_incep">Date of Inception<span class="text-danger"></span></label>
<input type="text" class="form-control" id="date_of_incep" <input type="text" class="form-control" id="date_of_incep"
placeholder="Enter Inception Date" placeholder="Enter Inception Date"
value="<?= isset($ticket_data['date_of_incep']) ? $ticket_data['date_of_incep'] : '' ?>" value="<?= isset($ticket_data['date_of_incep']) ? $ticket_data['date_of_incep'] : '' ?>"
@ -211,13 +216,13 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="dob">Date of Birth <span class="text-danger">*</span></label> <label class="label-font-size" for="dob">Date of Birth <span class="text-danger">*</span></label>
<input type="text" class="form-control" id="dob" placeholder="Enter Birth Date" <input type="text" class="form-control" id="dob" placeholder="Enter Birth Date"
value="<?= isset($ticket_data['dob']) ? $ticket_data['dob'] : '' ?>" name="dob" required> value="<?= isset($ticket_data['dob']) ? $ticket_data['dob'] : '' ?>" name="dob" required>
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="date_of_accident">Date of Accident <span class="text-danger"></span></label> <label class="label-font-size" for="date_of_accident">Date of Accident <span class="text-danger"></span></label>
<input type="text" class="form-control" id="date_of_accident" <input type="text" class="form-control" id="date_of_accident"
placeholder="Enter Accident Date" placeholder="Enter Accident Date"
value="<?= isset($ticket_data['date_of_accident']) ? $ticket_data['date_of_accident'] : '' ?>" value="<?= isset($ticket_data['date_of_accident']) ? $ticket_data['date_of_accident'] : '' ?>"
@ -225,7 +230,7 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="date_of_death">Date of Death <span class="text-danger"></span></label> <label class="label-font-size" for="date_of_death">Date of Death <span class="text-danger"></span></label>
<input type="date_of_death" class="form-control" id="date_of_death" <input type="date_of_death" class="form-control" id="date_of_death"
placeholder="Enter Death Date" placeholder="Enter Death Date"
value="<?= isset($ticket_data['date_of_death']) ? $ticket_data['date_of_death'] : '' ?>" value="<?= isset($ticket_data['date_of_death']) ? $ticket_data['date_of_death'] : '' ?>"
@ -233,7 +238,7 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="date_of_intimat">Date of Intimation <span class="text-danger">*</span></label> <label class="label-font-size" for="date_of_intimat">Date of Intimation <span class="text-danger">*</span></label>
<input type="text" class="form-control" id="date_of_intimat" <input type="text" class="form-control" id="date_of_intimat"
placeholder="Enter Intimation Date" placeholder="Enter Intimation Date"
value="<?= isset($ticket_data['date_of_intimat']) ? $ticket_data['date_of_intimat'] : '' ?>" value="<?= isset($ticket_data['date_of_intimat']) ? $ticket_data['date_of_intimat'] : '' ?>"
@ -241,7 +246,7 @@
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="si_amt">Sum insured <span class="text-danger">*</span></label> <label class="label-font-size" for="si_amt">Sum insured <span class="text-danger">*</span></label>
<input type="text" class="form-control" id="si_amt" placeholder="Enter SI" <input type="text" class="form-control" id="si_amt" placeholder="Enter SI"
value="<?= isset($ticket_data['si_amt']) ? $ticket_data['si_amt'] : '' ?>" value="<?= isset($ticket_data['si_amt']) ? $ticket_data['si_amt'] : '' ?>"
name="si_amt" required> name="si_amt" required>
@ -257,59 +262,59 @@
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-3 approved" style="display: none;"> <div class="form-group col-md-3 approved" style="display: none;">
<label for="approved_amount">Approved Amount</label> <label class="label-font-size" for="approved_amount">Approved Amount</label>
<input type="text" class="form-control" id="approved_amount" placeholder="Enter Approved Amount" <input type="text" class="form-control" id="approved_amount" placeholder="Enter Approved Amount"
value="<?= isset($ticket_data['approved_amount']) ? $ticket_data['approved_amount'] : '' ?>" name="approved_amount"> value="<?= isset($ticket_data['approved_amount']) ? $ticket_data['approved_amount'] : '' ?>" name="approved_amount">
</div> </div>
<div class="form-group col-md-3 approved" style="display: none;"> <div class="form-group col-md-3 approved" style="display: none;">
<label for="approved_date">Approved Date</label> <label class="label-font-size" for="approved_date">Approved Date</label>
<input type="text" class="form-control datepicker" id="approved_date" placeholder="Select Approved Date" <input type="text" class="form-control datepicker" id="approved_date" placeholder="Select Approved Date"
value="<?= isset($ticket_data['approved_date']) ? $ticket_data['approved_date'] : '' ?>" name="approved_date"> value="<?= isset($ticket_data['approved_date']) ? $ticket_data['approved_date'] : '' ?>" name="approved_date">
</div> </div>
<div class="form-group col-md-6 approved" style="display: none;"> <div class="form-group col-md-6 approved" style="display: none;">
<label for="approved_letter">Approved Letter</label> <label class="label-font-size" for="approved_letter">Approved Letter</label>
<input type="text" class="form-control" id="approved_letter" placeholder="Enter Approved Letter" <input type="text" class="form-control" id="approved_letter" placeholder="Enter Approved Letter"
value="<?= isset($ticket_data['approved_letter']) ? $ticket_data['approved_letter'] : '' ?>" name="approved_letter"> value="<?= isset($ticket_data['approved_letter']) ? $ticket_data['approved_letter'] : '' ?>" name="approved_letter">
</div> </div>
<div class="form-group col-md-6 approved" style="display: none;"> <div class="form-group col-md-6 approved" style="display: none;">
<label for="approved_description">Approved Description</label> <label class="label-font-size" for="approved_description">Approved Description</label>
<input type="text" class="form-control" id="approved_description" placeholder="Enter Approved Description" <input type="text" class="form-control" id="approved_description" placeholder="Enter Approved Description"
value="<?= isset($ticket_data['approved_description']) ? $ticket_data['approved_description'] : '' ?>" name="approved_description"> value="<?= isset($ticket_data['approved_description']) ? $ticket_data['approved_description'] : '' ?>" name="approved_description">
</div> </div>
<div class="form-group col-md-3 settled" style="display: none;"> <div class="form-group col-md-3 settled" style="display: none;">
<label for="utr_details">UTR Details</label> <label class="label-font-size" for="utr_details">UTR Details</label>
<input type="text" class="form-control" id="utr_details" placeholder="Enter UTR Details" <input type="text" class="form-control" id="utr_details" placeholder="Enter UTR Details"
value="<?= isset($ticket_data['utr_details']) ? $ticket_data['utr_details'] : '' ?>" name="utr_details"> value="<?= isset($ticket_data['utr_details']) ? $ticket_data['utr_details'] : '' ?>" name="utr_details">
</div> </div>
<div class="form-group col-md-3 settled" style="display: none;"> <div class="form-group col-md-3 settled" style="display: none;">
<label for="settled_date">Settled Date</label> <label class="label-font-size" for="settled_date">Settled Date</label>
<input type="text" class="form-control datepicker" id="settled_date" placeholder="Select Settled Date" <input type="text" class="form-control datepicker" id="settled_date" placeholder="Select Settled Date"
value="<?= isset($ticket_data['settled_date']) ? $ticket_data['settled_date'] : '' ?>" name="settled_date"> value="<?= isset($ticket_data['settled_date']) ? $ticket_data['settled_date'] : '' ?>" name="settled_date">
</div> </div>
<div class="form-group col-md-6 settled" style="display: none;"> <div class="form-group col-md-6 settled" style="display: none;">
<label for="settle_letter">Settle Letter</label> <label class="label-font-size" for="settle_letter">Settle Letter</label>
<input type="text" class="form-control" id="settle_letter" placeholder="Enter Settle Letter" <input type="text" class="form-control" id="settle_letter" placeholder="Enter Settle Letter"
value="<?= isset($ticket_data['settle_letter']) ? $ticket_data['settle_letter'] : '' ?>" name="settle_letter"> value="<?= isset($ticket_data['settle_letter']) ? $ticket_data['settle_letter'] : '' ?>" name="settle_letter">
</div> </div>
<div class="form-group col-md-3 canceled" style="display: none;"> <div class="form-group col-md-3 canceled" style="display: none;">
<label for="cancel_remark">Cancel Remark</label> <label class="label-font-size" for="cancel_remark">Cancel Remark</label>
<textarea class="form-control" id="cancel_remark" rows="1" placeholder="Enter Cancel Remark" name="cancel_remark"><?= isset($ticket_data['cancel_remark']) ? $ticket_data['cancel_remark'] : '' ?></textarea> <textarea class="form-control" id="cancel_remark" rows="1" placeholder="Enter Cancel Remark" name="cancel_remark"><?= isset($ticket_data['cancel_remark']) ? $ticket_data['cancel_remark'] : '' ?></textarea>
</div> </div>
<div class="form-group col-md-3 returned" style="display: none;"> <div class="form-group col-md-3 returned" style="display: none;">
<label for="return_remark">Return Remark</label> <label class="label-font-size" for="return_remark">Return Remark</label>
<textarea class="form-control" id="return_remark" rows="1" placeholder="Enter Return Remark" name="return_remark"><?= isset($ticket_data['return_remark']) ? $ticket_data['return_remark'] : '' ?></textarea> <textarea class="form-control" id="return_remark" rows="1" placeholder="Enter Return Remark" name="return_remark"><?= isset($ticket_data['return_remark']) ? $ticket_data['return_remark'] : '' ?></textarea>
</div> </div>
<div class="form-group col-md-6 returned" style="display: none;"> <div class="form-group col-md-6 returned" style="display: none;">
<label for="awb_no_courier_name">AWB No with Courier Name</label> <label class="label-font-size" for="awb_no_courier_name">AWB No with Courier Name</label>
<input type="text" class="form-control" id="awb_no_courier_name" placeholder="eg : 0001/ST Courier" <input type="text" class="form-control" id="awb_no_courier_name" placeholder="eg : 0001/ST Courier"
value="<?= isset($ticket_data['awb_no_courier_name']) ? $ticket_data['awb_no_courier_name'] : '' ?>" name="awb_no_courier_name"> value="<?= isset($ticket_data['awb_no_courier_name']) ? $ticket_data['awb_no_courier_name'] : '' ?>" name="awb_no_courier_name">
</div> </div>

View File

@ -79,8 +79,8 @@
<label>Employee Data Points</label> <label>Employee Data Points</label>
<select name="employee_data_points" id="employee_data_points" <select name="employee_data_points" id="employee_data_points"
class="form-control"> class="form-control">
<option value="mobile">Mobile Number</option>
<option value="emp_code">Employee ID</option> <option value="emp_code">Employee ID</option>
<option value="mobile">Mobile Number</option>
</select> </select>
</div> </div>
</div> </div>
@ -252,6 +252,20 @@
}) })
$('#employee_data_points').on('change', function() {
let value = $(this).val();
let $label = $('#employee_data_points_label');
let $input = $('#emp_mobile_number_for_claim');
if (value == "mobile") {
$label.text('Employee Mobile Number');
$input.attr('onkeypress', 'return onlyNumbers(event)').attr('maxlength', '10');
} else {
$label.text('Employee ID');
$input.removeAttr('onkeypress maxlength');
}
});
}) })
function toggleAccordion(id) { function toggleAccordion(id) {
@ -260,6 +274,9 @@
// Define the other accordion to close // Define the other accordion to close
const otherId = id === 'mobileAccordion' ? 'clientBranchAccordion' : 'mobileAccordion'; const otherId = id === 'mobileAccordion' ? 'clientBranchAccordion' : 'mobileAccordion';
if(id === 'mobileAccordion'){
$('#employee_data_points').trigger('change');
}
const otherContent = document.getElementById(otherId); const otherContent = document.getElementById(otherId);
const otherArrow = document.querySelector(`#${id === 'mobileAccordion' ? 'clientBranchArrow' : 'mobileArrow'}`); const otherArrow = document.querySelector(`#${id === 'mobileAccordion' ? 'clientBranchArrow' : 'mobileArrow'}`);
@ -908,19 +925,6 @@
// } // }
// }) // })
$('#employee_data_points').on('change', function() {
let value = $(this).val();
let $label = $('#employee_data_points_label');
let $input = $('#emp_mobile_number_for_claim');
if (value == "mobile") {
$label.text('Employee Mobile Number');
$input.attr('onkeypress', 'return onlyNumbers(event)').attr('maxlength', '10');
} else {
$label.text('Employee ID');
$input.removeAttr('onkeypress maxlength');
}
});
function toResetTheModelFields() { function toResetTheModelFields() {

View File

@ -2,7 +2,7 @@
<div class="col-12"> <div class="col-12">
<div class="card-body"> <div class="card-body">
<div class="table-responsive"> <div class="table-responsive">
<table id="scroll-horizontal-datatable" class="table w-100"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th>Label</th> <th>Label</th>

View File

@ -54,7 +54,7 @@ table.dataTable tbody td {
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th>Status</th> <th>Status</th>

View File

@ -71,7 +71,7 @@
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<table id="scroll-horizontal-datatable" class="table w-100 nowrap"> <table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th>Template Name</th> <th>Template Name</th>

View File

@ -1,7 +1,7 @@
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
<div class="card-body"> <div class="card-body">
<form role="form" class="parsley-examples" method="post" id="ticket_reply_form" enctype="multipart/form-data"> <form role="form" class="parsley-examples" style="color:black;" method="post" id="ticket_reply_form" enctype="multipart/form-data">
<div class="form-group"> <div class="form-group">
<div class="form-row"> <div class="form-row">
<!-- Email To Field --> <!-- Email To Field -->

View File

@ -6,7 +6,7 @@
<div class="table-responsive" id="branch_table" > <div class="table-responsive" id="branch_table" >
<table class="table table-borderless table-nowrap mb-0"> <table data-custom-table-css="table" class="table table-borderless table-nowrap mb-0">
<thead class="thead-light"> <thead class="thead-light">
<tr> <tr>
<th>Branch Name</th> <th>Branch Name</th>

View File

@ -49,7 +49,7 @@
<h4 style="position: relative;">TPA List</h4> <h4 style="position: relative;">TPA List</h4>
</div> </div>
</div> </div>
<table class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0" <table data-custom-table-css="table" class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0"
id="tickets-table"> id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>

Some files were not shown because too many files have changed in this diff Show More