FIX_CLIENT_CHANGES : RV
@ -218,6 +218,7 @@ $routes->group("/util", ["filter" => "authMVC"], function ($routes) {
|
|||||||
$routes->get("init-Emp-onboard/(:any)", "EmployeeController::initiateManualEmployeesOnboardProcess/$1");
|
$routes->get("init-Emp-onboard/(:any)", "EmployeeController::initiateManualEmployeesOnboardProcess/$1");
|
||||||
$routes->get("full-excel-error-file/(:any)", "EmployeeController::downloadFullExcelErrorFile/$1");
|
$routes->get("full-excel-error-file/(:any)", "EmployeeController::downloadFullExcelErrorFile/$1");
|
||||||
$routes->get("id-card", "EmployeeController::viewECard/$1");
|
$routes->get("id-card", "EmployeeController::viewECard/$1");
|
||||||
|
$routes->get("preview-card/(:any)", "EmployeeController::previewTemplate/$1");
|
||||||
});
|
});
|
||||||
|
|
||||||
$routes->cli('cli/processjob', 'JobWorker::processJob');
|
$routes->cli('cli/processjob', 'JobWorker::processJob');
|
||||||
|
|||||||
@ -264,20 +264,20 @@ class ClientController extends AdminController
|
|||||||
$editData['client_kyc'] = $this->clientKYCDocsModel->where('client_id', $id)->findAll();
|
$editData['client_kyc'] = $this->clientKYCDocsModel->where('client_id', $id)->findAll();
|
||||||
$editData['client_branch'] = $this->clientBranchModel->where(['client_id' => $id, 'is_active' => 1])->findAll();
|
$editData['client_branch'] = $this->clientBranchModel->where(['client_id' => $id, 'is_active' => 1])->findAll();
|
||||||
$editData['client_relation'] = $this->clientRMModel->where(['client_id' => $id, 'is_active' => 1])->findAll();
|
$editData['client_relation'] = $this->clientRMModel->where(['client_id' => $id, 'is_active' => 1])->findAll();
|
||||||
|
// dd('Hi');
|
||||||
$clientPoliceData = $this->clientPolicyModel->getClientPolicyByClientId($id);
|
$clientPoliceData = $this->clientPolicyModel->getClientPolicyByClientId($id);
|
||||||
|
// dd($this->clientPolicyModel->getLastQuery());
|
||||||
|
// foreach ($clientPoliceData as $key => $value) {
|
||||||
|
|
||||||
foreach ($clientPoliceData as $key => $value) {
|
// $clientPoliceData[$key]->policy_start_date = date('d-M-Y', strtotime($value->policy_start_date));
|
||||||
|
// $clientPoliceData[$key]->policy_end_date = date('d-M-Y', strtotime($value->policy_end_date));
|
||||||
$clientPoliceData[$key]->policy_start_date = date('d-M-Y', strtotime($value->policy_start_date));
|
// }
|
||||||
$clientPoliceData[$key]->policy_end_date = date('d-M-Y', strtotime($value->policy_end_date));
|
|
||||||
}
|
|
||||||
|
|
||||||
$editData['client_policy'] = $clientPoliceData;
|
$editData['client_policy'] = $clientPoliceData;
|
||||||
|
|
||||||
|
|
||||||
// echo "<pre>";
|
// echo "<pre>";
|
||||||
// dd($editData); die;
|
// dd($clientPoliceData); die;
|
||||||
|
|
||||||
echo view('layout/header', $headerData);
|
echo view('layout/header', $headerData);
|
||||||
echo view('client_onboarding', $editData);
|
echo view('client_onboarding', $editData);
|
||||||
@ -609,6 +609,8 @@ class ClientController extends AdminController
|
|||||||
$data['is_addon'] = $this->request->getPost('is_addon');
|
$data['is_addon'] = $this->request->getPost('is_addon');
|
||||||
$data['base_policy'] = $this->request->getPost('base_policy');
|
$data['base_policy'] = $this->request->getPost('base_policy');
|
||||||
$data['policy_status'] = 1;
|
$data['policy_status'] = 1;
|
||||||
|
$data['inception_type'] = $this->request->getPost('inception_type') ? 1 : 2;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -629,8 +631,11 @@ class ClientController extends AdminController
|
|||||||
|
|
||||||
$data['policy_terms'] = json_encode($decoded_policyTerm);
|
$data['policy_terms'] = json_encode($decoded_policyTerm);
|
||||||
} else {
|
} else {
|
||||||
$data['policy_terms'] = $policy_terms['policy_terms'];
|
|
||||||
|
|
||||||
|
if ($this->request->getPost('policy_type_id') != 3) {
|
||||||
|
|
||||||
|
$data['policy_terms'] = $policy_terms['policy_terms'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -696,6 +701,8 @@ class ClientController extends AdminController
|
|||||||
$data['is_addon'] = $this->request->getPost('is_addon');
|
$data['is_addon'] = $this->request->getPost('is_addon');
|
||||||
$data['base_policy'] = $this->request->getPost('base_policy');
|
$data['base_policy'] = $this->request->getPost('base_policy');
|
||||||
$data['policy_status'] = 1;
|
$data['policy_status'] = 1;
|
||||||
|
$data['inception_type'] = $this->request->getPost('inception_type') ? 1 : 2;
|
||||||
|
|
||||||
|
|
||||||
$policy_terms = $this->clientPolicyModel->where('id', $this->request->getPost('base_policy'))->first();
|
$policy_terms = $this->clientPolicyModel->where('id', $this->request->getPost('base_policy'))->first();
|
||||||
|
|
||||||
@ -747,12 +754,19 @@ class ClientController extends AdminController
|
|||||||
$policy_type = $this->request->getPost('policy_type');
|
$policy_type = $this->request->getPost('policy_type');
|
||||||
$client_id = $this->request->getPost('client_id');
|
$client_id = $this->request->getPost('client_id');
|
||||||
$client_policy_id = $this->request->getPost('client_policy_id');
|
$client_policy_id = $this->request->getPost('client_policy_id');
|
||||||
$premium_type = $this->request->getPost('premium_type');
|
// $premium_type = $this->request->getPost('premium_type');
|
||||||
if (!empty($client_id) && $client_id != null) {
|
if (!empty($client_id) && $client_id != null) {
|
||||||
$client_policy_data = $this->clientPolicyModel->where('id', $client_policy_id)->first();
|
$client_policy_data = $this->clientPolicyModel->where('id', $client_policy_id)->first();
|
||||||
$client_id = $client_policy_data['client_id'];
|
$client_id = $client_policy_data['client_id'];
|
||||||
}
|
}
|
||||||
$policy_grid_id = $this->request->getPost('policy_grid_id');
|
$policy_grid_id = $this->request->getPost('policy_grid_id');
|
||||||
|
|
||||||
|
if($policy_grid_id == 10 || $policy_grid_id == 11){
|
||||||
|
$premium_type = 1;
|
||||||
|
}else{
|
||||||
|
$premium_type = 2;
|
||||||
|
}
|
||||||
|
|
||||||
$si_or_bp = $this->request->getPost('si_or_bp');
|
$si_or_bp = $this->request->getPost('si_or_bp');
|
||||||
$basic_multiplier = str_replace(',', '', $this->request->getPost('basic_multiplier'));
|
$basic_multiplier = str_replace(',', '', $this->request->getPost('basic_multiplier'));
|
||||||
$premium_multiplier = str_replace(',', '', $this->request->getPost('premium_multiplier'));
|
$premium_multiplier = str_replace(',', '', $this->request->getPost('premium_multiplier'));
|
||||||
@ -776,10 +790,14 @@ class ClientController extends AdminController
|
|||||||
|
|
||||||
|
|
||||||
if ($policy_grid_id == '1') {
|
if ($policy_grid_id == '1') {
|
||||||
|
|
||||||
|
|
||||||
if ($si_or_bp == '1') {
|
if ($si_or_bp == '1') {
|
||||||
|
|
||||||
$premium = str_replace(',', '', $this->request->getPost('gpa_sum_premium[]'));
|
$premium = str_replace(',', '', $this->request->getPost('gpa_sum_premium[]'));
|
||||||
$sum_insure = str_replace(',', '', $this->request->getPost('gpa_sum_si[]'));
|
$sum_insure = str_replace(',', '', $this->request->getPost('gpa_sum_si[]'));
|
||||||
$multiplier = $this->request->getPost('gpa_sum_multiplier');
|
$multiplier = $this->request->getPost('gpa_sum_multiplier');
|
||||||
|
|
||||||
for ($i = 0; $i < count($premium); $i++) {
|
for ($i = 0; $i < count($premium); $i++) {
|
||||||
$data['si'] = $sum_insure[$i];
|
$data['si'] = $sum_insure[$i];
|
||||||
$data['premium'] = $premium[$i];
|
$data['premium'] = $premium[$i];
|
||||||
@ -788,7 +806,26 @@ class ClientController extends AdminController
|
|||||||
|
|
||||||
$policyPremium = $this->policyPremium1Model->insert($data);
|
$policyPremium = $this->policyPremium1Model->insert($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else if ($si_or_bp == '3') {
|
||||||
|
|
||||||
|
$premium = str_replace(',', '', $this->request->getPost('gpa_sum_premium2[]'));
|
||||||
|
$sum_insure = str_replace(',', '', $this->request->getPost('gpa_sum_si2[]'));
|
||||||
|
$multiplier = $this->request->getPost('gpa_sum_multiplier2');
|
||||||
|
$grade = $this->request->getPost('gpa_band[]');
|
||||||
|
|
||||||
|
for ($i = 0; $i < count($premium); $i++) {
|
||||||
|
$data['si'] = $sum_insure[$i];
|
||||||
|
$data['premium'] = $premium[$i];
|
||||||
|
$data['grade'] = $grade[$i];
|
||||||
|
$data['multiplier'] = $multiplier;
|
||||||
|
$data['si_or_bp'] = $this->request->getPost('si_or_bp');
|
||||||
|
|
||||||
|
$policyPremium = $this->policyPremium1Model->insert($data);
|
||||||
|
}
|
||||||
|
|
||||||
}else {
|
}else {
|
||||||
|
|
||||||
$data['premium'] = str_replace(',', '', $this->request->getPost('gpa_basic_premium'));
|
$data['premium'] = str_replace(',', '', $this->request->getPost('gpa_basic_premium'));
|
||||||
$data['si'] = str_replace(',', '', $this->request->getPost('gpa_basic_si'));
|
$data['si'] = str_replace(',', '', $this->request->getPost('gpa_basic_si'));
|
||||||
$data['basic_multiplier'] = str_replace(',', '', $this->request->getPost('basic_multiplier'));
|
$data['basic_multiplier'] = str_replace(',', '', $this->request->getPost('basic_multiplier'));
|
||||||
@ -798,6 +835,7 @@ class ClientController extends AdminController
|
|||||||
|
|
||||||
$policyPremium = $this->policyPremium1Model->insert($data);
|
$policyPremium = $this->policyPremium1Model->insert($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
$data = $this->request->getPost();
|
$data = $this->request->getPost();
|
||||||
$insert = true;
|
$insert = true;
|
||||||
} else if ($policy_grid_id == '2') {
|
} else if ($policy_grid_id == '2') {
|
||||||
@ -819,6 +857,8 @@ class ClientController extends AdminController
|
|||||||
$data = $this->request->getPost();
|
$data = $this->request->getPost();
|
||||||
$insert = true;
|
$insert = true;
|
||||||
} else if ($policy_grid_id == '4') {
|
} else if ($policy_grid_id == '4') {
|
||||||
|
|
||||||
|
|
||||||
$premium = $this->request->getPost('4_premium[]');
|
$premium = $this->request->getPost('4_premium[]');
|
||||||
$sum_insure = $this->request->getPost('4_si');
|
$sum_insure = $this->request->getPost('4_si');
|
||||||
$age_from = $this->request->getPost('4_age_from[]');
|
$age_from = $this->request->getPost('4_age_from[]');
|
||||||
@ -832,6 +872,8 @@ class ClientController extends AdminController
|
|||||||
}
|
}
|
||||||
$data = $this->request->getPost();
|
$data = $this->request->getPost();
|
||||||
$insert = true;
|
$insert = true;
|
||||||
|
|
||||||
|
|
||||||
} else if ($policy_grid_id == '5') {
|
} else if ($policy_grid_id == '5') {
|
||||||
$premium = $this->request->getPost('5_premium[]');
|
$premium = $this->request->getPost('5_premium[]');
|
||||||
$sum_insure = $this->request->getPost('5_si[]');
|
$sum_insure = $this->request->getPost('5_si[]');
|
||||||
@ -847,19 +889,23 @@ class ClientController extends AdminController
|
|||||||
$data = $this->request->getPost();
|
$data = $this->request->getPost();
|
||||||
$insert = true;
|
$insert = true;
|
||||||
} else if ($policy_grid_id == '6') {
|
} else if ($policy_grid_id == '6') {
|
||||||
|
|
||||||
|
|
||||||
$premium = $this->request->getPost('6_premium[]');
|
$premium = $this->request->getPost('6_premium[]');
|
||||||
$sum_insure = $this->request->getPost('6_si[]');
|
$sum_insure = $this->request->getPost('6_si');
|
||||||
$age_from = $this->request->getPost('6_age_from[]');
|
$age_from = $this->request->getPost('6_age_from[]');
|
||||||
$age_to = $this->request->getPost('6_age_to[]');
|
$age_to = $this->request->getPost('6_age_to[]');
|
||||||
for ($i = 0; $i < count($premium); $i++) {
|
for ($i = 0; $i < count($premium); $i++) {
|
||||||
$data['premium'] = str_replace(',', '', $premium[$i]);
|
$data['premium'] = str_replace(',', '', $premium[$i]);
|
||||||
$data['si'] = str_replace(',', '', $sum_insure[$i]);
|
$data['si'] = str_replace(',', '', $sum_insure);
|
||||||
$data['age_from'] = $age_from[$i];
|
$data['age_from'] = $age_from[$i];
|
||||||
$data['age_to'] = $age_to[$i];
|
$data['age_to'] = $age_to[$i];
|
||||||
$dataa = $this->policyPremium2Model->insert($data);
|
$dataa = $this->policyPremium2Model->insert($data);
|
||||||
}
|
}
|
||||||
$data = $this->request->getPost();
|
$data = $this->request->getPost();
|
||||||
$insert = true;
|
$insert = true;
|
||||||
|
|
||||||
|
|
||||||
} else if ($policy_grid_id == '7') {
|
} else if ($policy_grid_id == '7') {
|
||||||
$premium = $this->request->getPost('7_premium[]');
|
$premium = $this->request->getPost('7_premium[]');
|
||||||
$sum_insure = $this->request->getPost('7_si[]');
|
$sum_insure = $this->request->getPost('7_si[]');
|
||||||
@ -1117,12 +1163,13 @@ class ClientController extends AdminController
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
foreach ($results as $index => $record) {
|
foreach ($results as $index => $record) {
|
||||||
if ($self->self == 1 && $self->spouse == 0 && $self->childrens == 0 && $self->parents == 0 && $self->{'parents-in-law'} == 0 && $self->{'either-parents-pil'} == 0 && $family_floater == 0) {
|
// if ($self->self == 1 && $self->spouse == 0 && $self->childrens == 0 && $self->parents == 0 && $self->{'parents-in-law'} == 0 && $self->{'either-parents-pil'} == 0 && $family_floater == 0) {
|
||||||
if ($index == '0' || $index == '1' || $index == '2') {
|
if ($family_floater == 1) {
|
||||||
|
if ($index == '7' || $index == '8' || $index == '9' || $index == '10') {
|
||||||
$resultss[$index] = $record;
|
$resultss[$index] = $record;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($index == '3' || $index == '4' || $index == '5' || $index == '6' || $index == '8' || $index == '7' || $index == '9' || $index == '10') {
|
if ($index == '0' || $index == '1' || $index == '2' || $index == '3' || $index == '4' || $index == '5' || $index == '6') {
|
||||||
$resultss[$index] = $record;
|
$resultss[$index] = $record;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1340,23 +1387,24 @@ class ClientController extends AdminController
|
|||||||
$record = $this->clientPolicyModel->where('id', $client_policy_id)->first();
|
$record = $this->clientPolicyModel->where('id', $client_policy_id)->first();
|
||||||
$policy_name = $this->policesModel->select('name')->where('id', $record['policy_id'])->first();
|
$policy_name = $this->policesModel->select('name')->where('id', $record['policy_id'])->first();
|
||||||
|
|
||||||
$emp_count = $this->employeeModel ->join('client_policy cp',"employees.client_id = cp.client_id")
|
// $emp_count = $this->employeeModel ->join('client_policy cp',"employees.client_id = cp.client_id")
|
||||||
->join('employee_polices ep',"cp.id = ep.client_policy_id AND employees.id = ep.employee_id")
|
// ->join('employee_polices ep',"cp.id = ep.client_policy_id AND employees.id = ep.employee_id")
|
||||||
->where("employees.client_id", $record['client_id'])
|
// ->where("employees.client_id", $record['client_id'])
|
||||||
->where("employees.emp_status",'active')
|
// ->where("employees.emp_status",'active')
|
||||||
->countAllResults();
|
// ->countAllResults();
|
||||||
|
|
||||||
$emp_count_by_policy = $this->employeePolicyModel->where('client_policy_id',$client_policy_id)->where('is_active',1)->countAllResults();
|
$emp_count_by_policy = $this->employeePolicyModel->where('client_policy_id',$client_policy_id)->where('is_active',1)->countAllResults();
|
||||||
if($emp_count == 0){
|
|
||||||
$emp_count = true;
|
// if($emp_count == 0){
|
||||||
}else{
|
// $emp_count = true;
|
||||||
$emp_count = false;
|
// }else{
|
||||||
}
|
// $emp_count = false;
|
||||||
|
// }
|
||||||
|
|
||||||
if ($record) {
|
if ($record) {
|
||||||
return $this->respond(['Status' => true,'code' => 200,'data' => $record['policy_terms'], 'count' => $emp_count, 'policy_name' => $policy_name,'policy_addon' => $record['is_addon'], 'emp_count_by_policy'=>$emp_count_by_policy], 200);
|
return $this->respond(['Status' => true,'code' => 200,'data' => $record['policy_terms'], 'policy_name' => $policy_name,'policy_addon' => $record['is_addon'], 'emp_count_by_policy'=>$emp_count_by_policy], 200);
|
||||||
} else {
|
} else {
|
||||||
return $this->respond(['Status' => false,'code' => 200,'message' => 'Record not found.', 'count' => $emp_count, 'policy_name' => $policy_name], 200);
|
return $this->respond(['Status' => false,'code' => 200,'message' => 'Record not found.', 'policy_name' => $policy_name], 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1416,6 +1464,9 @@ class ClientController extends AdminController
|
|||||||
$data['animalSnakeInsectBite'] = $this->request->getPost("animalSnakeInsectBite");
|
$data['animalSnakeInsectBite'] = $this->request->getPost("animalSnakeInsectBite");
|
||||||
$data['terrorism'] = $this->request->getPost("terrorism");
|
$data['terrorism'] = $this->request->getPost("terrorism");
|
||||||
$data['worldwideCover'] = $this->request->getPost("worldwideCover");
|
$data['worldwideCover'] = $this->request->getPost("worldwideCover");
|
||||||
|
$data['gpa_special_condition_label'] = str_replace(',', '',$this->request->getPost("gpa_special_condition_label")) ?? [];
|
||||||
|
$data['gpa_special_condition_input'] = str_replace(',', '',$this->request->getPost("gpa_special_condition_input")) ?? [];
|
||||||
|
|
||||||
|
|
||||||
$jsonData = json_encode($data);
|
$jsonData = json_encode($data);
|
||||||
$dataa = array(
|
$dataa = array(
|
||||||
@ -1507,7 +1558,7 @@ class ClientController extends AdminController
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check if 'family_floater' key exists and has a value
|
// Check if 'family_floater' key exists and has a value
|
||||||
if (isset($termsData->family_floater) && empty($termsData->family_floater)) {
|
if (isset($termsData->family_floater) && $termsData->family_floater == null) {
|
||||||
return $this->respond(['status' => false,'code' => 200,'message' => 'The Policy terms Family Floater field is empty'], 200);
|
return $this->respond(['status' => false,'code' => 200,'message' => 'The Policy terms Family Floater field is empty'], 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1598,7 +1598,7 @@ class EmpDataServiceController extends BaseController
|
|||||||
foreach ($ids as $key => $id) {
|
foreach ($ids as $key => $id) {
|
||||||
|
|
||||||
$get_emp_email_and_other_details = $this->employeePolicyModel
|
$get_emp_email_and_other_details = $this->employeePolicyModel
|
||||||
->select('employee_polices.client_policy_id, employees.emp_code, employees.email_corporate, employees.name, employee_polices.rand_string, employee_polices.tpa_id')
|
->select('employee_polices.client_policy_id, employees.emp_code, employees.email_corporate, employees.name, employees.id as employee_id, employees.emp_code employee_polices.rand_string, employee_polices.tpa_id')
|
||||||
->join('employees', 'employees.id = employee_polices.employee_id')
|
->join('employees', 'employees.id = employee_polices.employee_id')
|
||||||
->where('employees.emp_status', 'active')
|
->where('employees.emp_status', 'active')
|
||||||
->where('employees.is_active', '1')
|
->where('employees.is_active', '1')
|
||||||
@ -1608,7 +1608,9 @@ class EmpDataServiceController extends BaseController
|
|||||||
|
|
||||||
if ($get_emp_email_and_other_details != null && $get_emp_email_and_other_details != "") {
|
if ($get_emp_email_and_other_details != null && $get_emp_email_and_other_details != "") {
|
||||||
|
|
||||||
|
$employee_id = $get_emp_email_and_other_details['employee_id'];
|
||||||
$name = $get_emp_email_and_other_details['name'];
|
$name = $get_emp_email_and_other_details['name'];
|
||||||
|
$emp_code = $get_emp_email_and_other_details['name'];
|
||||||
$email = $get_emp_email_and_other_details['email_corporate'];
|
$email = $get_emp_email_and_other_details['email_corporate'];
|
||||||
$rand_string = $get_emp_email_and_other_details['rand_string'];
|
$rand_string = $get_emp_email_and_other_details['rand_string'];
|
||||||
$tpa_id = $get_emp_email_and_other_details['tpa_id'];
|
$tpa_id = $get_emp_email_and_other_details['tpa_id'];
|
||||||
@ -1645,7 +1647,17 @@ class EmpDataServiceController extends BaseController
|
|||||||
|
|
||||||
// dd($data);
|
// dd($data);
|
||||||
$this->myLogger->logme('error', 'status : {status}, message : {message}, email : {email}', $data);
|
$this->myLogger->logme('error', 'status : {status}, message : {message}, email : {email}', $data);
|
||||||
|
|
||||||
|
}else{
|
||||||
|
|
||||||
|
$this->myLogger->log('error', 'The employee (primaryKey : {id}, Name : {name}, Emp Code : {emp_code} ) has no corporate email.', ['id' => $employee_id, 'name' => $name, 'emp_code' => $emp_code]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}else{
|
||||||
|
|
||||||
|
$this->myLogger->log('error', 'The employee policy ID ( {id} ) has no active policy or the employee is not active.', ['id' => $id]);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true; // Email(s) sent successfully
|
return true; // Email(s) sent successfully
|
||||||
@ -1655,4 +1667,5 @@ class EmpDataServiceController extends BaseController
|
|||||||
return false; // Email(s) sending failed
|
return false; // Email(s) sending failed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,6 +16,7 @@ use App\Models\BatchListModel;
|
|||||||
use App\Models\BatchFileModel;
|
use App\Models\BatchFileModel;
|
||||||
use App\Models\EmpEndorsementModel;
|
use App\Models\EmpEndorsementModel;
|
||||||
use App\Models\ClientPolicyModel;
|
use App\Models\ClientPolicyModel;
|
||||||
|
use App\Models\TPAModel;
|
||||||
|
|
||||||
use App\Controllers\Jobs;
|
use App\Controllers\Jobs;
|
||||||
use App\Controllers\JobWorker;
|
use App\Controllers\JobWorker;
|
||||||
@ -30,6 +31,8 @@ use PhpOffice\PhpSpreadsheet\IOFactory;
|
|||||||
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
|
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
|
||||||
|
|
||||||
use Dompdf\Dompdf;
|
use Dompdf\Dompdf;
|
||||||
|
use Dompdf\Options;
|
||||||
|
|
||||||
|
|
||||||
class EmployeeController extends AdminController
|
class EmployeeController extends AdminController
|
||||||
{
|
{
|
||||||
@ -45,6 +48,7 @@ class EmployeeController extends AdminController
|
|||||||
protected $batchFileModel;
|
protected $batchFileModel;
|
||||||
protected $empEndorsementModel;
|
protected $empEndorsementModel;
|
||||||
protected $clientPolicyModel;
|
protected $clientPolicyModel;
|
||||||
|
protected $TPAModel;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
@ -59,6 +63,7 @@ class EmployeeController extends AdminController
|
|||||||
$this->batchFileModel = new BatchFileModel();
|
$this->batchFileModel = new BatchFileModel();
|
||||||
$this->empEndorsementModel = new EmpEndorsementModel();
|
$this->empEndorsementModel = new EmpEndorsementModel();
|
||||||
$this->clientPolicyModel = new ClientPolicyModel();
|
$this->clientPolicyModel = new ClientPolicyModel();
|
||||||
|
$this->TPAModel = new TPAModel();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function list()
|
public function list()
|
||||||
@ -66,8 +71,7 @@ class EmployeeController extends AdminController
|
|||||||
// $model = new UserModel();
|
// $model = new UserModel();
|
||||||
$data = [];
|
$data = [];
|
||||||
$data['status'] = ['draft' => 'Draft', 'active' => 'Active', 'inactive' => 'In-Active', 'expired' => 'Expired'];
|
$data['status'] = ['draft' => 'Draft', 'active' => 'Active', 'inactive' => 'In-Active', 'expired' => 'Expired'];
|
||||||
if(count($this->request->getGet()))
|
if (count($this->request->getGet())) {
|
||||||
{
|
|
||||||
$filterData = $this->request->getGet();
|
$filterData = $this->request->getGet();
|
||||||
$data['employees'] = $this->employeePolicyModel->getEmployeePolicy(client_id: $filterData['client_id'], policy_id: $filterData['policy_id'], status: $filterData['status']);
|
$data['employees'] = $this->employeePolicyModel->getEmployeePolicy(client_id: $filterData['client_id'], policy_id: $filterData['policy_id'], status: $filterData['status']);
|
||||||
$data['getData'] = $filterData;
|
$data['getData'] = $filterData;
|
||||||
@ -83,12 +87,9 @@ class EmployeeController extends AdminController
|
|||||||
$result = $this->clientModel->clientsWithPolicies();
|
$result = $this->clientModel->clientsWithPolicies();
|
||||||
|
|
||||||
// print_r($result);die();
|
// print_r($result);die();
|
||||||
if(!count($result))
|
if (!count($result)) {
|
||||||
{
|
|
||||||
return $this->respond(['dataStatus' => false, 'code' => 404, 'message' => 'no data found'], 200);
|
return $this->respond(['dataStatus' => false, 'code' => 404, 'message' => 'no data found'], 200);
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
|
|
||||||
return $this->respond(['dataStatus' => true, 'code' => 200, 'data' => $result], 200);
|
return $this->respond(['dataStatus' => true, 'code' => 200, 'data' => $result], 200);
|
||||||
}
|
}
|
||||||
@ -104,12 +105,9 @@ class EmployeeController extends AdminController
|
|||||||
// echo $file_id;die();
|
// echo $file_id;die();
|
||||||
$file = $this->fileModel->find($file_id);
|
$file = $this->fileModel->find($file_id);
|
||||||
// print_r($result);die();
|
// print_r($result);die();
|
||||||
if(!isset($file))
|
if (!isset($file)) {
|
||||||
{
|
|
||||||
return $this->respond(['dataStatus' => false, 'code' => 404, 'message' => 'no data found'], 200);
|
return $this->respond(['dataStatus' => false, 'code' => 404, 'message' => 'no data found'], 200);
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
|
|
||||||
return $this->respond(['dataStatus' => true, 'code' => 200, 'data' => $file['reason']], 200);
|
return $this->respond(['dataStatus' => true, 'code' => 200, 'data' => $file['reason']], 200);
|
||||||
}
|
}
|
||||||
@ -164,8 +162,7 @@ class EmployeeController extends AdminController
|
|||||||
// dd($failure_reason);
|
// dd($failure_reason);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
if($this->request->getMethod() == 'post')
|
if ($this->request->getMethod() == 'post') {
|
||||||
{
|
|
||||||
//validate uploaded file
|
//validate uploaded file
|
||||||
$filename = '';
|
$filename = '';
|
||||||
$validated = $this->validate([
|
$validated = $this->validate([
|
||||||
@ -180,10 +177,7 @@ class EmployeeController extends AdminController
|
|||||||
$avatar = $this->request->getFile('emplist');
|
$avatar = $this->request->getFile('emplist');
|
||||||
$is_moved = $avatar->move(WRITEPATH . 'uploads/excel/');
|
$is_moved = $avatar->move(WRITEPATH . 'uploads/excel/');
|
||||||
$filename = $avatar->getName();
|
$filename = $avatar->getName();
|
||||||
|
} else {
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return $this->respond(['dataStatus' => false, 'code' => 404, 'message' => 'invalid file'], 200);
|
return $this->respond(['dataStatus' => false, 'code' => 404, 'message' => 'invalid file'], 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -204,13 +198,11 @@ class EmployeeController extends AdminController
|
|||||||
$empServiceController = new EmployeeServiceController();
|
$empServiceController = new EmployeeServiceController();
|
||||||
$result = $empServiceController->excelFileFormatValidation(['file_id' => $file_id]);
|
$result = $empServiceController->excelFileFormatValidation(['file_id' => $file_id]);
|
||||||
//endof validation process
|
//endof validation process
|
||||||
if(isset($result['error_summary']) && count($result['error_summary']))
|
if (isset($result['error_summary']) && count($result['error_summary'])) {
|
||||||
{
|
|
||||||
return $this->respond(['dataStatus' => false, 'code' => 404, 'message' => 'file rejected with errors'], 200);
|
return $this->respond(['dataStatus' => false, 'code' => 404, 'message' => 'file rejected with errors'], 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->respond(['dataStatus' => true, 'code' => 200, 'data' => 'file upload success'], 200);
|
return $this->respond(['dataStatus' => true, 'code' => 200, 'data' => 'file upload success'], 200);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -238,11 +230,9 @@ class EmployeeController extends AdminController
|
|||||||
|
|
||||||
|
|
||||||
// dd($data['fileList']);die();
|
// dd($data['fileList']);die();
|
||||||
if($this->request->getMethod() == "get")
|
if ($this->request->getMethod() == "get") {
|
||||||
{
|
|
||||||
$this->loadLayout('import_export', $data);
|
$this->loadLayout('import_export', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getExcelFileErrors()
|
public function getExcelFileErrors()
|
||||||
@ -261,7 +251,6 @@ class EmployeeController extends AdminController
|
|||||||
|
|
||||||
$data['message'] = 'File Not Found Physically';
|
$data['message'] = 'File Not Found Physically';
|
||||||
return view('errors/404', $data);
|
return view('errors/404', $data);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
echo view('errors/html/production');
|
echo view('errors/html/production');
|
||||||
@ -360,7 +349,6 @@ class EmployeeController extends AdminController
|
|||||||
if ($insurer_or_tpa == 'tpa') {
|
if ($insurer_or_tpa == 'tpa') {
|
||||||
session()->setFlashdata('error', "No data was found for this action. The TPA ID has already been updated.");
|
session()->setFlashdata('error', "No data was found for this action. The TPA ID has already been updated.");
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
|
|
||||||
} else if ($insurer_or_tpa == 'insurer') {
|
} else if ($insurer_or_tpa == 'insurer') {
|
||||||
session()->setFlashdata('error', "No data was found for this action. The UHID has already been updated.");
|
session()->setFlashdata('error', "No data was found for this action. The UHID has already been updated.");
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
@ -368,7 +356,6 @@ class EmployeeController extends AdminController
|
|||||||
} else {
|
} else {
|
||||||
$this->myLogger->logme('error', 'Successfully exported Excel file in {data}.', ['data' => $event_type]);
|
$this->myLogger->logme('error', 'Successfully exported Excel file in {data}.', ['data' => $event_type]);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if ($event_type == 'correction') {
|
} else if ($event_type == 'correction') {
|
||||||
|
|
||||||
$return = $empDataServiceController->generateExcelForCorrection($batch_data);
|
$return = $empDataServiceController->generateExcelForCorrection($batch_data);
|
||||||
@ -378,7 +365,6 @@ class EmployeeController extends AdminController
|
|||||||
} else {
|
} else {
|
||||||
$this->myLogger->logme('error', 'Successfully exported Excel file in Correction.');
|
$this->myLogger->logme('error', 'Successfully exported Excel file in Correction.');
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if ($event_type == 'si_enhancement') {
|
} else if ($event_type == 'si_enhancement') {
|
||||||
|
|
||||||
$return = $empDataServiceController->generateExcelForSIEnhancement($batch_data);
|
$return = $empDataServiceController->generateExcelForSIEnhancement($batch_data);
|
||||||
@ -388,7 +374,6 @@ class EmployeeController extends AdminController
|
|||||||
} else {
|
} else {
|
||||||
$this->myLogger->logme('error', 'Successfully exported Excel file in SI_Enhancement.');
|
$this->myLogger->logme('error', 'Successfully exported Excel file in SI_Enhancement.');
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if ($event_type == 'deletion') {
|
} else if ($event_type == 'deletion') {
|
||||||
|
|
||||||
$return = $empDataServiceController->generateExcelForDeletion($batch_data);
|
$return = $empDataServiceController->generateExcelForDeletion($batch_data);
|
||||||
@ -399,8 +384,6 @@ class EmployeeController extends AdminController
|
|||||||
$this->myLogger->logme('error', 'Successfully exported Excel file in Deletion.');
|
$this->myLogger->logme('error', 'Successfully exported Excel file in Deletion.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} else if ($actions == 'import') {
|
} else if ($actions == 'import') {
|
||||||
|
|
||||||
$batch_data['file'] = $this->request->getFile('import_file_data');
|
$batch_data['file'] = $this->request->getFile('import_file_data');
|
||||||
@ -411,40 +394,31 @@ class EmployeeController extends AdminController
|
|||||||
if ($return == 1) {
|
if ($return == 1) {
|
||||||
session()->setFlashdata('success', 'Data updated successfully');
|
session()->setFlashdata('success', 'Data updated successfully');
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
|
|
||||||
} else if ($return == 2) {
|
} else if ($return == 2) {
|
||||||
session()->setFlashdata('error', 'The TPA ID column is either partially or entirely empty.');
|
session()->setFlashdata('error', 'The TPA ID column is either partially or entirely empty.');
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
|
|
||||||
} else if ($return == 0) {
|
} else if ($return == 0) {
|
||||||
session()->setFlashdata('error', 'Please upload the correct file.');
|
session()->setFlashdata('error', 'Please upload the correct file.');
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
|
|
||||||
} else if ($return == 3) {
|
} else if ($return == 3) {
|
||||||
session()->setFlashdata('error', 'The list of employees provided has already been updated with the TPA ID, or this is not the correct file');
|
session()->setFlashdata('error', 'The list of employees provided has already been updated with the TPA ID, or this is not the correct file');
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
|
|
||||||
} else if ($return == 4) {
|
} else if ($return == 4) {
|
||||||
session()->setFlashdata('error', 'The UHID column is either partially or entirely empty.');
|
session()->setFlashdata('error', 'The UHID column is either partially or entirely empty.');
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
|
|
||||||
} else if ($return == 5) {
|
} else if ($return == 5) {
|
||||||
session()->setFlashdata('error', 'The list of employees provided has already been updated with the UHID, or this is not the correct file');
|
session()->setFlashdata('error', 'The list of employees provided has already been updated with the UHID, or this is not the correct file');
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if ($event_type == 'correction') {
|
} else if ($event_type == 'correction') {
|
||||||
|
|
||||||
$return = $empDataServiceController->importExcelDataForCorrection($batch_data);
|
$return = $empDataServiceController->importExcelDataForCorrection($batch_data);
|
||||||
if ($return == 1) {
|
if ($return == 1) {
|
||||||
session()->setFlashdata('success', 'Data updated successfully');
|
session()->setFlashdata('success', 'Data updated successfully');
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
|
|
||||||
} else if ($return == 2) {
|
} else if ($return == 2) {
|
||||||
session()->setFlashdata('error', 'The Endorsement ID columns are empty.');
|
session()->setFlashdata('error', 'The Endorsement ID columns are empty.');
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
|
|
||||||
} else if ($return == 0) {
|
} else if ($return == 0) {
|
||||||
session()->setFlashdata('error', 'Please upload the correct file');
|
session()->setFlashdata('error', 'Please upload the correct file');
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
@ -452,18 +426,15 @@ class EmployeeController extends AdminController
|
|||||||
session()->setFlashdata('error', 'File already uploaded');
|
session()->setFlashdata('error', 'File already uploaded');
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if ($event_type == 'si_enhancement') {
|
} else if ($event_type == 'si_enhancement') {
|
||||||
|
|
||||||
$return = $empDataServiceController->importExcelDataForSIEnhancement($batch_data);
|
$return = $empDataServiceController->importExcelDataForSIEnhancement($batch_data);
|
||||||
if ($return == 1) {
|
if ($return == 1) {
|
||||||
session()->setFlashdata('success', 'Data updated successfully');
|
session()->setFlashdata('success', 'Data updated successfully');
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
|
|
||||||
} else if ($return == 2) {
|
} else if ($return == 2) {
|
||||||
session()->setFlashdata('error', 'The Endorsement ID columns are empty.');
|
session()->setFlashdata('error', 'The Endorsement ID columns are empty.');
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
|
|
||||||
} else if ($return == 0) {
|
} else if ($return == 0) {
|
||||||
session()->setFlashdata('error', 'Please upload the correct file');
|
session()->setFlashdata('error', 'Please upload the correct file');
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
@ -471,18 +442,15 @@ class EmployeeController extends AdminController
|
|||||||
session()->setFlashdata('error', 'File already uploaded');
|
session()->setFlashdata('error', 'File already uploaded');
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if ($event_type == 'deletion') {
|
} else if ($event_type == 'deletion') {
|
||||||
|
|
||||||
$return = $empDataServiceController->importExcelDataForDeletion($batch_data);
|
$return = $empDataServiceController->importExcelDataForDeletion($batch_data);
|
||||||
if ($return == 1) {
|
if ($return == 1) {
|
||||||
session()->setFlashdata('success', 'Data updated successfully');
|
session()->setFlashdata('success', 'Data updated successfully');
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
|
|
||||||
} else if ($return == 2) {
|
} else if ($return == 2) {
|
||||||
session()->setFlashdata('error', 'The Endorsement ID columns are empty.');
|
session()->setFlashdata('error', 'The Endorsement ID columns are empty.');
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
|
|
||||||
} else if ($return == 0) {
|
} else if ($return == 0) {
|
||||||
session()->setFlashdata('error', 'Please upload the correct file');
|
session()->setFlashdata('error', 'Please upload the correct file');
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
@ -490,12 +458,8 @@ class EmployeeController extends AdminController
|
|||||||
session()->setFlashdata('error', 'File already uploaded');
|
session()->setFlashdata('error', 'File already uploaded');
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------------------
|
||||||
@ -513,8 +477,7 @@ class EmployeeController extends AdminController
|
|||||||
|
|
||||||
$data = [];
|
$data = [];
|
||||||
$data['status'] = ['pending' => 'Pending', 'inprogress' => 'In-Progress', 'complete' => 'Complete'];
|
$data['status'] = ['pending' => 'Pending', 'inprogress' => 'In-Progress', 'complete' => 'Complete'];
|
||||||
if(count($this->request->getGet()))
|
if (count($this->request->getGet())) {
|
||||||
{
|
|
||||||
$filterData = $this->request->getGet();
|
$filterData = $this->request->getGet();
|
||||||
$data['employees'] = $this->employeePolicyModel->getEmployeeEndorsementList(client_id: $filterData['client_id'], policy_id: $filterData['policy_id'], status: $filterData['status']);
|
$data['employees'] = $this->employeePolicyModel->getEmployeeEndorsementList(client_id: $filterData['client_id'], policy_id: $filterData['policy_id'], status: $filterData['status']);
|
||||||
$data['getData'] = $filterData;
|
$data['getData'] = $filterData;
|
||||||
@ -575,7 +538,6 @@ class EmployeeController extends AdminController
|
|||||||
'data' => $formatedData,
|
'data' => $formatedData,
|
||||||
'data2' => $groupedData
|
'data2' => $groupedData
|
||||||
], 200);
|
], 200);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Return response if group key and actions are not found
|
// Return response if group key and actions are not found
|
||||||
return $this->respond(['dataStatus' => false, 'code' => 404, 'message' => 'no data found'], 200);
|
return $this->respond(['dataStatus' => false, 'code' => 404, 'message' => 'no data found'], 200);
|
||||||
@ -652,7 +614,6 @@ class EmployeeController extends AdminController
|
|||||||
$html = view('employee_data_list', $emp_data);
|
$html = view('employee_data_list', $emp_data);
|
||||||
|
|
||||||
return $this->respond(['dataStatus' => true, 'code' => 200, 'data' => $html], 200);
|
return $this->respond(['dataStatus' => true, 'code' => 200, 'data' => $html], 200);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -685,14 +646,12 @@ class EmployeeController extends AdminController
|
|||||||
$emp_data['tbody'] = $excel_data;
|
$emp_data['tbody'] = $excel_data;
|
||||||
|
|
||||||
$html = view('view_file_upload_emp_list', $emp_data);
|
$html = view('view_file_upload_emp_list', $emp_data);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$html = '<div class="text-center">No Data Found</div>';
|
$html = '<div class="text-center">No Data Found</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->respond(['dataStatus' => true, 'code' => 200, 'data' => $html, 'file_data' => $file_name, 'excel_data' => $excel_data], 200);
|
return $this->respond(['dataStatus' => true, 'code' => 200, 'data' => $html, 'file_data' => $file_name, 'excel_data' => $excel_data], 200);
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
// Handle exception
|
// Handle exception
|
||||||
$errorMessage = 'Error occurred: ' . $e->getMessage();
|
$errorMessage = 'Error occurred: ' . $e->getMessage();
|
||||||
@ -702,7 +661,9 @@ class EmployeeController extends AdminController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getEmpCount($id = null){
|
|
||||||
|
public function getEmpCount($id = null)
|
||||||
|
{
|
||||||
|
|
||||||
$data = $this->employeePolicyModel->select('employee_polices.id')
|
$data = $this->employeePolicyModel->select('employee_polices.id')
|
||||||
->where('employee_polices.is_active', 1)
|
->where('employee_polices.is_active', 1)
|
||||||
@ -713,16 +674,13 @@ class EmployeeController extends AdminController
|
|||||||
|
|
||||||
if ($data) {
|
if ($data) {
|
||||||
return $this->respond(['dataStatus' => true, 'code' => 200, 'emp_count' => $emp_count], 200);
|
return $this->respond(['dataStatus' => true, 'code' => 200, 'emp_count' => $emp_count], 200);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
return $this->respond(['dataStatus' => false, 'code' => 404], 404);
|
return $this->respond(['dataStatus' => false, 'code' => 404], 404);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public function downloadFullExcelErrorFile($file_id, $rowIndex = 1, $colIndex = 1)
|
public function downloadFullExcelErrorFile($file_id, $rowIndex = 1, $colIndex = 1)
|
||||||
{
|
{
|
||||||
// Get file data from the database
|
// Get file data from the database
|
||||||
@ -780,7 +738,6 @@ class EmployeeController extends AdminController
|
|||||||
];
|
];
|
||||||
|
|
||||||
$sheet->getStyle([$colIndex, $rowIndex])->applyFromArray($style);
|
$sheet->getStyle([$colIndex, $rowIndex])->applyFromArray($style);
|
||||||
|
|
||||||
}
|
}
|
||||||
} else if ($error->error_type == 2) {
|
} else if ($error->error_type == 2) {
|
||||||
|
|
||||||
@ -801,11 +758,8 @@ class EmployeeController extends AdminController
|
|||||||
]
|
]
|
||||||
];
|
];
|
||||||
$sheet->getStyle([$colIndex, $rowIndex])->applyFromArray($style);
|
$sheet->getStyle([$colIndex, $rowIndex])->applyFromArray($style);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -833,60 +787,157 @@ class EmployeeController extends AdminController
|
|||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function generateIDCardForEmployee($rand_string)
|
public function generateIDCardForEmployee($rand_string)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
$get_emp_code_and_client_policy_id = $this->employeePolicyModel
|
$get_emp_code_and_client_policy_id = $this->employeePolicyModel
|
||||||
->select('employee_polices.client_policy_id, employees.emp_code')
|
->select('employee_polices.client_policy_id, employees.emp_code, tpa.short_name')
|
||||||
|
->join('client_policy', 'client_policy.id = employee_polices.client_policy_id')
|
||||||
->join('employees', 'employees.id = employee_polices.employee_id')
|
->join('employees', 'employees.id = employee_polices.employee_id')
|
||||||
|
->join('tpa', 'tpa.id = client_policy.tpa_id')
|
||||||
->where('employees.emp_status', 'active')
|
->where('employees.emp_status', 'active')
|
||||||
->where('employees.is_active', '1')
|
->where('employees.is_active', '1')
|
||||||
|
->where("employee_polices.tpa_id IS NOT NULL AND employee_polices.tpa_id <> ''")
|
||||||
->where('employee_polices.status', 'active')
|
->where('employee_polices.status', 'active')
|
||||||
->where('employee_polices.is_active', '1')
|
->where('employee_polices.is_active', '1')
|
||||||
->where('employee_polices.rand_string', $rand_string)->first();
|
->where('employee_polices.rand_string', $rand_string)->first();
|
||||||
|
|
||||||
|
// dd($get_emp_code_and_client_policy_id);
|
||||||
|
|
||||||
|
|
||||||
if ($get_emp_code_and_client_policy_id == null || $get_emp_code_and_client_policy_id == "") {
|
if ($get_emp_code_and_client_policy_id == null || $get_emp_code_and_client_policy_id == "") {
|
||||||
|
|
||||||
$data['message'] = 'Record Not Found';
|
$data['message'] = 'Record Not Found';
|
||||||
return view('errors/404', $data);
|
return view('errors/404', $data);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$client_policy_id = $get_emp_code_and_client_policy_id['client_policy_id'];
|
$client_policy_id = $get_emp_code_and_client_policy_id['client_policy_id'];
|
||||||
$emp_code = $get_emp_code_and_client_policy_id['emp_code'];
|
$emp_code = $get_emp_code_and_client_policy_id['emp_code'];
|
||||||
|
|
||||||
$data['data'] = $this->employeePolicyModel->getECardDataUsingMd5($client_policy_id, $emp_code);
|
// $data['data'] = $this->employeePolicyModel->getECardDataUsingMd5($client_policy_id, $emp_code);
|
||||||
// $this->loadLayout('id_card_view', $data);exit;
|
$data = $this->employeePolicyModel->getECardDataUsingMd5($client_policy_id, $emp_code);
|
||||||
$html = view('id_card_view', $data);
|
|
||||||
|
|
||||||
$dompdf = new Dompdf();
|
$template_data_path = WRITEPATH . 'e_card_template/';
|
||||||
$dompdf->loadHtml($html);
|
$tpa_short_name = strtolower(str_replace(' ', '_', $get_emp_code_and_client_policy_id['short_name'])) . '.html';
|
||||||
$dompdf->setPaper('A4', 'landscape');
|
$final_path = $template_data_path . $tpa_short_name;
|
||||||
$dompdf->render();
|
|
||||||
|
|
||||||
$filename = 'ECard.pdf'; // Default filename
|
if (!file_exists($final_path)) {
|
||||||
|
|
||||||
foreach ($data['data'] as $key => $value) {
|
$data['message'] = 'Record Not Found';
|
||||||
|
return view('errors/404', $data);
|
||||||
|
}
|
||||||
|
|
||||||
if ($value['relationship'] == "Self") {
|
$tmplt_data = file_get_contents($final_path);
|
||||||
|
|
||||||
$filename = $value['tpa_id']; // Update filename if relationship is "Self"
|
|
||||||
|
|
||||||
} elseif (!empty($value['tpa_id']) && $filename == 'ECard.pdf') {
|
$html = ""; // Initialize the HTML variable
|
||||||
|
foreach ($data as $key => $value) {
|
||||||
|
|
||||||
$filename = $value['tpa_id'];
|
// Get the HTML content from the template
|
||||||
|
// $htmlContent = view('ecard_template/md_tpa');
|
||||||
|
$htmlContent = $tmplt_data;
|
||||||
|
|
||||||
|
// Define the placeholders and their corresponding values
|
||||||
|
$placeholders = [
|
||||||
|
'{TPA_ID}' => $value['tpa_id'],
|
||||||
|
'{NAME}' => $value['name'],
|
||||||
|
'{UHID}' => $value['uhid'],
|
||||||
|
'{GENDER}' => $value['gender'],
|
||||||
|
'{DOB}' => date('d-M-Y', strtotime($value['dob'])),
|
||||||
|
'{SELF_NAME}' => $value['self'] ?? $value['name'],
|
||||||
|
'{POLICY_DATE}' => date('d-M-Y', strtotime($value['policy_end_date'])),
|
||||||
|
'{INSURER_NAME}' => $value['insurer_name'],
|
||||||
|
'{INSURER_LOGO}' => base_url() . 'public/uploads/logo/' . $value['insurer_logo'],
|
||||||
|
'{FRONT_CARD}' => base_url() . 'public/uploads/template_bg/' . $value['front_card'],
|
||||||
|
'{BACK_CARD}' => base_url() . 'public/uploads/logo/' . $value['back_card'],
|
||||||
|
'{EMP_ID}' =>$value['emp_code'],
|
||||||
|
'{CORPORATE_NAME}' =>$value['client_name'],
|
||||||
|
'{AGE}' =>$value['emp_age'],
|
||||||
|
];
|
||||||
|
|
||||||
|
// Replace placeholders with values in HTML content
|
||||||
|
foreach ($placeholders as $placeholder => $replaceValue) {
|
||||||
|
$htmlContent = str_replace($placeholder, $replaceValue, $htmlContent);
|
||||||
|
}
|
||||||
|
|
||||||
|
$html .= $htmlContent;
|
||||||
|
}
|
||||||
|
|
||||||
|
echo '<button id="downloadBtn" style="display: block;margin: 30px;position: relative;left: 220px;">Print</button>' . $html . '</button>
|
||||||
|
<script>
|
||||||
|
document.getElementById("downloadBtn").addEventListener("click", function() {
|
||||||
|
this.style.display = "none";
|
||||||
|
window.print();
|
||||||
|
this.style.display = "block";
|
||||||
|
});
|
||||||
|
</script>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// $file_name = $get_emp_code_and_client_policy_id['short_names'] ?? 'md_tpa';
|
||||||
|
// $file_name = strtolower(str_replace(' ', '_', $file_name));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// $file_path = ROOTPATH . 'app/Views/ecard_template/' . $file_name . '.php';
|
||||||
|
|
||||||
|
// if (is_file($file_path)) {
|
||||||
|
// $view_file = 'ecard_template/' . $file_name;
|
||||||
|
|
||||||
|
// } else {
|
||||||
|
// $view_file = 'ecard_template/default_ecard';
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
// $dpi = 132;
|
||||||
|
// $html = view('ecard_template/md_tpa');
|
||||||
|
// // echo $html; die;
|
||||||
|
|
||||||
|
// $options = new Options();
|
||||||
|
// $options->set('isRemoteEnabled', true);
|
||||||
|
// $options->set('isPhpEnabled', true);
|
||||||
|
// $options->setDpi($dpi);
|
||||||
|
// $dompdf = new Dompdf($options);
|
||||||
|
|
||||||
|
// $dompdf->loadHtml($html);
|
||||||
|
// $dompdf->setPaper('A4', 'portrait');
|
||||||
|
// $dompdf->render();
|
||||||
|
|
||||||
|
|
||||||
|
// $filename = 'ECard.pdf'; // Default filename
|
||||||
|
|
||||||
|
// foreach ($data['data'] as $key => $value) {
|
||||||
|
|
||||||
|
// if ($value['relationship'] == "Self") {
|
||||||
|
|
||||||
|
// $filename = $value['tpa_id'] . '.pdf'; // Update filename if relationship is "Self"
|
||||||
|
// } elseif (!empty($value['tpa_id']) && $filename == 'ECard.pdf') {
|
||||||
|
|
||||||
|
// $filename = $value['tpa_id'] . '.pdf';
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// $dompdf->stream($filename, array("Attachment" => false));
|
||||||
|
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
|
||||||
|
$data['message'] = 'Record Not Founds';
|
||||||
|
return view('errors/404', $data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$dompdf->stream($filename);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function viewECard()
|
public function viewECard()
|
||||||
{
|
{
|
||||||
|
|
||||||
$this->loadLayout('id_card_view');
|
$this->loadLayout('ecard_template/default_ecard');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function truncateFileData() //truncateFileDataIn DB (de activate rows)
|
public function truncateFileData() //truncateFileDataIn DB (de activate rows)
|
||||||
{
|
{
|
||||||
$file_id = $this->request->uri->getSegment(3);
|
$file_id = $this->request->uri->getSegment(3);
|
||||||
@ -895,16 +946,12 @@ class EmployeeController extends AdminController
|
|||||||
// $file['action'] = 'si_enhancement';
|
// $file['action'] = 'si_enhancement';
|
||||||
// $result = [];
|
// $result = [];
|
||||||
// !dd($file);
|
// !dd($file);
|
||||||
if($file['action'] == 'inception' || $file['action'] == 'dependent_addition' || $file['action'] == 'addition')
|
if ($file['action'] == 'inception' || $file['action'] == 'dependent_addition' || $file['action'] == 'addition') {
|
||||||
{
|
|
||||||
$result = $this->employeeModel->getEmpListByFileId(file_id: $file_id, emp_status: ['active'], policy_status: ['active']);
|
$result = $this->employeeModel->getEmpListByFileId(file_id: $file_id, emp_status: ['active'], policy_status: ['active']);
|
||||||
// ~dd($result);
|
// ~dd($result);
|
||||||
if(count($result))
|
if (count($result)) {
|
||||||
{
|
|
||||||
return $this->respond(['dataStatus' => false, 'code' => 404, 'message' => 'File data already processed'], 200);
|
return $this->respond(['dataStatus' => false, 'code' => 404, 'message' => 'File data already processed'], 200);
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
|
|
||||||
//update emp and emp plocies
|
//update emp and emp plocies
|
||||||
$db = db_connect();
|
$db = db_connect();
|
||||||
@ -918,9 +965,7 @@ class EmployeeController extends AdminController
|
|||||||
|
|
||||||
return $this->respond(['dataStatus' => true, 'code' => 200, 'data' => round($affectedRows / 2)], 200);
|
return $this->respond(['dataStatus' => true, 'code' => 200, 'data' => round($affectedRows / 2)], 200);
|
||||||
}
|
}
|
||||||
}
|
} else if ($file['action'] == 'si_enhancement' || $file['action'] == 'correction' || $file['action'] == 'deletion') {
|
||||||
else if($file['action'] == 'si_enhancement' || $file['action'] == 'correction' || $file['action'] == 'deletion')
|
|
||||||
{
|
|
||||||
$res = $this->empEndorsementModel->select(['count(id) as count'])
|
$res = $this->empEndorsementModel->select(['count(id) as count'])
|
||||||
->where('emp_endorsement.file_id', $file_id)
|
->where('emp_endorsement.file_id', $file_id)
|
||||||
->groupStart()
|
->groupStart()
|
||||||
@ -931,8 +976,7 @@ class EmployeeController extends AdminController
|
|||||||
->getResult();
|
->getResult();
|
||||||
// print_r($this->empEndorsementModel->getLastQuery());
|
// print_r($this->empEndorsementModel->getLastQuery());
|
||||||
// echo $res[0]->count;die();
|
// echo $res[0]->count;die();
|
||||||
if($res[0]->count == 0)
|
if ($res[0]->count == 0) {
|
||||||
{
|
|
||||||
//update truncated status to db
|
//update truncated status to db
|
||||||
$this->empEndorsementModel->where('file_id', $file_id)
|
$this->empEndorsementModel->where('file_id', $file_id)
|
||||||
->set(['status' => 'truncated'])
|
->set(['status' => 'truncated'])
|
||||||
@ -940,17 +984,48 @@ class EmployeeController extends AdminController
|
|||||||
//update file status
|
//update file status
|
||||||
$this->fileModel->where('id', $file_id)->set(['status' => 'truncated'])->update();
|
$this->fileModel->where('id', $file_id)->set(['status' => 'truncated'])->update();
|
||||||
return $this->respond(['dataStatus' => true, 'code' => 200, 'data' => 'success'], 200);
|
return $this->respond(['dataStatus' => true, 'code' => 200, 'data' => 'success'], 200);
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
return $this->respond(['dataStatus' => false, 'code' => 404, 'message' => 'File data already processed'], 200);
|
return $this->respond(['dataStatus' => false, 'code' => 404, 'message' => 'File data already processed'], 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function previewTemplate($id = null){
|
||||||
|
|
||||||
|
|
||||||
|
$tpa_id = $this->TPAModel->where('id', $id)->first();
|
||||||
|
|
||||||
|
$template_data_path = WRITEPATH . 'e_card_template/';
|
||||||
|
$tpa_short_name = strtolower(str_replace(' ', '_', $tpa_id['short_name'])) . '.html';
|
||||||
|
$final_path = $template_data_path . $tpa_short_name;
|
||||||
|
|
||||||
|
if (!file_exists($final_path)) {
|
||||||
|
|
||||||
|
$data['message'] = 'Record Not Found';
|
||||||
|
return view('errors/404', $data);
|
||||||
|
}
|
||||||
|
|
||||||
|
$tmplt_data = file_get_contents($final_path);
|
||||||
|
|
||||||
|
$placeholders = [
|
||||||
|
'{FRONT_CARD}' => base_url() . 'public/uploads/template_bg/' . $tpa_id['front_card'],
|
||||||
|
'{BACK_CARD}' => base_url() . 'public/uploads/logo/' . $tpa_id['back_card'],
|
||||||
|
];
|
||||||
|
|
||||||
|
// Get the values to replace the placeholders
|
||||||
|
$replaceValues = array_values($placeholders);
|
||||||
|
|
||||||
|
// Get the placeholders to search for
|
||||||
|
$searchPlaceholders = array_keys($placeholders);
|
||||||
|
|
||||||
|
// Replace placeholders with values in HTML content
|
||||||
|
$htmlContent = str_replace($searchPlaceholders, $replaceValues, $tmplt_data);
|
||||||
|
|
||||||
|
|
||||||
|
echo $htmlContent;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -7,6 +7,7 @@ use CodeIgniter\HTTP\RequestInterface;
|
|||||||
use CodeIgniter\HTTP\ResponseInterface;
|
use CodeIgniter\HTTP\ResponseInterface;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
use CodeIgniter\API\ResponseTrait;
|
use CodeIgniter\API\ResponseTrait;
|
||||||
|
use CodeIgniter\Files\File;
|
||||||
|
|
||||||
use App\Models\UserModel;
|
use App\Models\UserModel;
|
||||||
use App\Models\ClientModel;
|
use App\Models\ClientModel;
|
||||||
@ -186,8 +187,11 @@ class MasterController extends AdminController
|
|||||||
{
|
{
|
||||||
|
|
||||||
$this->myLogger->logme('error','Insurer general info function called');
|
$this->myLogger->logme('error','Insurer general info function called');
|
||||||
|
$uploadFilePath = ROOTPATH . 'public/uploads/logo/';
|
||||||
|
$file_name = file_Upload($this->request->getFile('insurer_logo'), $uploadFilePath);
|
||||||
$data = $this->request->getPost();
|
$data = $this->request->getPost();
|
||||||
$data['created_by'] = get_session_userid();
|
$data['created_by'] = get_session_userid();
|
||||||
|
$data['insurer_logo'] = $file_name;
|
||||||
|
|
||||||
$insert = $this->insurerModel->insert($data);
|
$insert = $this->insurerModel->insert($data);
|
||||||
if($insert){
|
if($insert){
|
||||||
@ -249,9 +253,18 @@ class MasterController extends AdminController
|
|||||||
public function editInsurerGeneralInfo()
|
public function editInsurerGeneralInfo()
|
||||||
{
|
{
|
||||||
$this->myLogger->logme('error','edit Insurer general info function called');
|
$this->myLogger->logme('error','edit Insurer general info function called');
|
||||||
|
|
||||||
|
$uploadFilePath = ROOTPATH . 'public/uploads/logo/';
|
||||||
|
$file_name = file_Upload($this->request->getFile('insurer_logo'), $uploadFilePath);
|
||||||
|
|
||||||
$id = $this->request->getPost('PrimaryKey');
|
$id = $this->request->getPost('PrimaryKey');
|
||||||
$data = $this->request->getPost();
|
$data = $this->request->getPost();
|
||||||
$data['updated_by'] = get_session_userid();
|
$data['updated_by'] = get_session_userid();
|
||||||
|
|
||||||
|
if(!empty($file_name)){
|
||||||
|
$data['insurer_logo'] = $file_name;
|
||||||
|
}
|
||||||
|
|
||||||
$update = $this->insurerModel->update($id,$data);
|
$update = $this->insurerModel->update($id,$data);
|
||||||
if($update){
|
if($update){
|
||||||
echo json_encode(array("status" => true , 'data' => $data));
|
echo json_encode(array("status" => true , 'data' => $data));
|
||||||
@ -399,10 +412,50 @@ class MasterController extends AdminController
|
|||||||
{
|
{
|
||||||
|
|
||||||
$this->myLogger->logme('error','TPA general info function called');
|
$this->myLogger->logme('error','TPA general info function called');
|
||||||
|
|
||||||
|
$uploadFilePath = ROOTPATH . 'public/uploads/logo/';
|
||||||
|
$file_name = file_Upload($this->request->getFile('tpa_logo'), $uploadFilePath);
|
||||||
|
|
||||||
|
$template_bg_path = ROOTPATH . 'public/uploads/template_bg';
|
||||||
|
$front_card_file_name = file_Upload($this->request->getFile('fc'), $template_bg_path);
|
||||||
|
$back_card_file_name = file_Upload($this->request->getFile('bc'), $template_bg_path);
|
||||||
|
|
||||||
|
|
||||||
|
$eCardTemplate = $this->request->getPost('ecard_content');
|
||||||
$data = $this->request->getPost();
|
$data = $this->request->getPost();
|
||||||
$data['created_by'] = get_session_userid();
|
$data['created_by'] = get_session_userid();
|
||||||
|
$data['tpa_logo'] = $file_name;
|
||||||
|
$data['front_card'] = $front_card_file_name;
|
||||||
|
$data['back_card'] = $back_card_file_name;
|
||||||
|
|
||||||
$insert = $this->tpaModel->insert($data);
|
$insert = $this->tpaModel->insert($data);
|
||||||
|
|
||||||
|
$tpa_name = (string) $this->request->getPost('name');
|
||||||
|
$short_name = (string) $this->request->getPost('short_name');
|
||||||
|
|
||||||
|
$filename = strtolower(str_replace(' ', '_', $short_name)) . '.html';
|
||||||
|
$file_directory = WRITEPATH . 'e_card_template/';
|
||||||
|
$file_path = $file_directory . $filename;
|
||||||
|
|
||||||
|
// Ensure that the directory exists, if not, create it
|
||||||
|
if (!is_dir($file_directory)) {
|
||||||
|
mkdir($file_directory, 0777, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set the appropriate content type
|
||||||
|
header('Content-type:text/html; charset=utf-8');
|
||||||
|
|
||||||
|
// Write the HTML content to the file
|
||||||
|
$data = file_put_contents($file_path, $eCardTemplate);
|
||||||
|
|
||||||
|
|
||||||
|
if ($data !== false) {
|
||||||
|
$this->myLogger->logme('error', 'TPA: {tpa}, e-Card HTML template file saved successfully: {data}, filepath is: {path}', ['data' => $filename, 'tpa' => $tpa_name, 'path' => $file_path]);
|
||||||
|
} else {
|
||||||
|
$this->myLogger->logme('error', 'TPA: {tpa}, e-Card HTML template file unable to save: {data}', ['data' => $filename, 'tpa' => $tpa_name]);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if($insert){
|
if($insert){
|
||||||
$tpa_data = $this->tpaModel->where(['id' => $insert, 'is_active' => 1])->first();
|
$tpa_data = $this->tpaModel->where(['id' => $insert, 'is_active' => 1])->first();
|
||||||
echo json_encode(array("status" => true , 'data' => $tpa_data));
|
echo json_encode(array("status" => true , 'data' => $tpa_data));
|
||||||
@ -457,10 +510,22 @@ class MasterController extends AdminController
|
|||||||
$this->myLogger->logme('error','Edit TPA Onboarding function called');
|
$this->myLogger->logme('error','Edit TPA Onboarding function called');
|
||||||
$headerData['page_name'] = 'Edit TPA Master';
|
$headerData['page_name'] = 'Edit TPA Master';
|
||||||
|
|
||||||
$editData['tpa'] = $this->tpaModel->where(['id' => $id, 'is_active' => 1])->first();
|
$tpa_data = $this->tpaModel->where(['id' => $id, 'is_active' => 1])->first();
|
||||||
|
|
||||||
|
$editData['tpa'] = $tpa_data;
|
||||||
$editData['tpa_branch'] = $this->tpaBranchModel->where(['tpa_id' => $id, 'is_active' => 1])->findAll();
|
$editData['tpa_branch'] = $this->tpaBranchModel->where(['tpa_id' => $id, 'is_active' => 1])->findAll();
|
||||||
$editData['state'] = $this->stateModel->getAllStates();
|
$editData['state'] = $this->stateModel->getAllStates();
|
||||||
|
|
||||||
|
$filename = strtolower(str_replace(' ', '_', $tpa_data['short_name'])) . '.html';
|
||||||
|
$template_data_path = WRITEPATH . 'e_card_template/';
|
||||||
|
$final_path = $template_data_path . $filename;
|
||||||
|
|
||||||
|
|
||||||
|
if (file_exists($final_path)) {
|
||||||
|
|
||||||
|
$tmplt_data = file_get_contents($final_path);
|
||||||
|
$editData['template_data'] = $tmplt_data;
|
||||||
|
}
|
||||||
|
|
||||||
// echo "<pre>";
|
// echo "<pre>";
|
||||||
// print_r($editData); die;
|
// print_r($editData); die;
|
||||||
@ -477,10 +542,61 @@ class MasterController extends AdminController
|
|||||||
public function editTPAGeneralInfo()
|
public function editTPAGeneralInfo()
|
||||||
{
|
{
|
||||||
$this->myLogger->logme('error','edit TPA general info function called');
|
$this->myLogger->logme('error','edit TPA general info function called');
|
||||||
|
|
||||||
|
$uploadFilePath = ROOTPATH . 'public/uploads/logo/';
|
||||||
|
$file_name = file_Upload($this->request->getFile('tpa_logo'), $uploadFilePath);
|
||||||
|
|
||||||
|
$template_bg_path = ROOTPATH . 'public/uploads/template_bg';
|
||||||
|
$front_card_file_name = file_Upload($this->request->getFile('fc'), $template_bg_path);
|
||||||
|
$back_card_file_name = file_Upload($this->request->getFile('bc'), $template_bg_path);
|
||||||
|
|
||||||
$id = $this->request->getPost('PrimaryKey');
|
$id = $this->request->getPost('PrimaryKey');
|
||||||
$data = $this->request->getPost();
|
$data = $this->request->getPost();
|
||||||
$data['updated_by'] = get_session_userid();
|
$data['updated_by'] = get_session_userid();
|
||||||
|
|
||||||
|
if(!empty($file_name)){
|
||||||
|
$data['tpa_logo'] = $file_name;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!empty($front_card_file_name)){
|
||||||
|
$data['front_card'] = $front_card_file_name;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!empty($back_card_file_name)){
|
||||||
|
$data['back_card'] = $back_card_file_name;
|
||||||
|
}
|
||||||
|
|
||||||
$update = $this->tpaModel->update($id,$data);
|
$update = $this->tpaModel->update($id,$data);
|
||||||
|
|
||||||
|
|
||||||
|
$tpa_name = (string) $this->request->getPost('name');
|
||||||
|
$short_name = (string) $this->request->getPost('short_name');
|
||||||
|
$eCardTemplate = $this->request->getPost('ecard_content');
|
||||||
|
|
||||||
|
$filename = strtolower(str_replace(' ', '_', $short_name)) . '.html';
|
||||||
|
$file_directory = WRITEPATH . 'e_card_template/';
|
||||||
|
$file_path = $file_directory . $filename;
|
||||||
|
|
||||||
|
// Ensure that the directory exists, if not, create it
|
||||||
|
if (!is_dir($file_directory)) {
|
||||||
|
mkdir($file_directory, 0777, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set the appropriate content type
|
||||||
|
header('Content-type:text/html; charset=utf-8');
|
||||||
|
|
||||||
|
// Write the HTML content to the file
|
||||||
|
$data = file_put_contents($file_path, $eCardTemplate);
|
||||||
|
|
||||||
|
|
||||||
|
if ($data !== false) {
|
||||||
|
$this->myLogger->logme('error', 'TPA: {tpa}, e-Card HTML template file saved successfully: {data}, filepath is: {path}', ['data' => $filename, 'tpa' => $tpa_name, 'path' => $file_path]);
|
||||||
|
} else {
|
||||||
|
$this->myLogger->logme('error', 'TPA: {tpa}, e-Card HTML template file unable to save: {data}', ['data' => $filename, 'tpa' => $tpa_name]);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if($update){
|
if($update){
|
||||||
echo json_encode(array("status" => true , 'data' => $data));
|
echo json_encode(array("status" => true , 'data' => $data));
|
||||||
}else{
|
}else{
|
||||||
@ -504,9 +620,6 @@ class MasterController extends AdminController
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public function editTPABranch()
|
public function editTPABranch()
|
||||||
{
|
{
|
||||||
$this->myLogger->logme('error','TPA branch CREATE function called');
|
$this->myLogger->logme('error','TPA branch CREATE function called');
|
||||||
@ -548,8 +661,6 @@ class MasterController extends AdminController
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public function tpaBranchList($id = null)
|
public function tpaBranchList($id = null)
|
||||||
{
|
{
|
||||||
$this->myLogger->logme('error','TPA List function called');
|
$this->myLogger->logme('error','TPA List function called');
|
||||||
|
|||||||
@ -167,6 +167,24 @@ if (!function_exists('generate_random_alphanumeric')) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (!function_exists('get_base64_image')) {
|
||||||
|
|
||||||
|
function get_base64_image($path)
|
||||||
|
{
|
||||||
|
// Get file extension
|
||||||
|
$type = pathinfo($path, PATHINFO_EXTENSION);
|
||||||
|
|
||||||
|
// Read file content
|
||||||
|
$dataContent = file_get_contents($path);
|
||||||
|
|
||||||
|
// Encode as base64
|
||||||
|
$base64Image = 'data:image/' . $type . ';base64,' . base64_encode($dataContent);
|
||||||
|
|
||||||
|
return $base64Image;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -34,6 +34,7 @@ class ClientPolicyModel extends Model
|
|||||||
"policy_terms",
|
"policy_terms",
|
||||||
"open_for_enrollment",
|
"open_for_enrollment",
|
||||||
"is_addon",
|
"is_addon",
|
||||||
|
"inception_type",
|
||||||
"base_policy",
|
"base_policy",
|
||||||
"created_by",
|
"created_by",
|
||||||
"updated_by",
|
"updated_by",
|
||||||
|
|||||||
@ -720,6 +720,8 @@ class EmployeePolicyModel extends Model
|
|||||||
e.doj,
|
e.doj,
|
||||||
e.band,
|
e.band,
|
||||||
TIMESTAMPDIFF(YEAR, e.dob, CURDATE()) AS emp_age,
|
TIMESTAMPDIFF(YEAR, e.dob, CURDATE()) AS emp_age,
|
||||||
|
(SELECT name FROM employees WHERE relationship = "Self" and emp_code = ' . $this->db->escape($emp_code) . ') AS self,
|
||||||
|
|
||||||
|
|
||||||
ep.tpa_id,
|
ep.tpa_id,
|
||||||
ep.uhid,
|
ep.uhid,
|
||||||
@ -728,12 +730,22 @@ class EmployeePolicyModel extends Model
|
|||||||
clients.client_name,
|
clients.client_name,
|
||||||
clients.short_name AS client_short_name,
|
clients.short_name AS client_short_name,
|
||||||
|
|
||||||
|
cp.policy_start_date,
|
||||||
|
|
||||||
policies.name AS policy_name,
|
policies.name AS policy_name,
|
||||||
|
|
||||||
insurers.name AS insurer_name,
|
insurers.name AS insurer_name,
|
||||||
insurers.short_name AS insurer_short_name,
|
insurers.short_name AS insurer_short_name,
|
||||||
|
insurers.insurer_logo,
|
||||||
|
|
||||||
|
insurer_branch.branch_name,
|
||||||
|
insurer_branch.branch_code,
|
||||||
|
insurer_branch.city as insurer_branch_city,
|
||||||
|
|
||||||
tpa.name AS tpa_name,
|
tpa.name AS tpa_name,
|
||||||
|
tpa.tpa_logo AS tpa_logo,
|
||||||
|
tpa.front_card,
|
||||||
|
tpa.back_card,
|
||||||
tpa.short_name AS tpa_short_name'
|
tpa.short_name AS tpa_short_name'
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -742,7 +754,9 @@ class EmployeePolicyModel extends Model
|
|||||||
->join('clients', 'clients.id = cp.client_id')
|
->join('clients', 'clients.id = cp.client_id')
|
||||||
->join('policies', 'policies.id = cp.policy_id')
|
->join('policies', 'policies.id = cp.policy_id')
|
||||||
->join('insurers', 'insurers.id = cp.insurer_id')
|
->join('insurers', 'insurers.id = cp.insurer_id')
|
||||||
|
->join('insurer_branch', 'insurer_branch.id = cp.insurer_branch_id')
|
||||||
->join('tpa', 'tpa.id = cp.tpa_id')
|
->join('tpa', 'tpa.id = cp.tpa_id')
|
||||||
|
->where("ep.tpa_id IS NOT NULL AND ep.tpa_id <> ''")
|
||||||
->where('e.emp_status', 'active')
|
->where('e.emp_status', 'active')
|
||||||
->where('e.is_active', '1')
|
->where('e.is_active', '1')
|
||||||
->where('ep.status', 'active')
|
->where('ep.status', 'active')
|
||||||
@ -753,6 +767,7 @@ class EmployeePolicyModel extends Model
|
|||||||
->getResultArray();
|
->getResultArray();
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -14,6 +14,7 @@ class InsurerModel extends Model
|
|||||||
"category",
|
"category",
|
||||||
"name",
|
"name",
|
||||||
"short_name",
|
"short_name",
|
||||||
|
"insurer_logo",
|
||||||
"created_by",
|
"created_by",
|
||||||
"updated_by",
|
"updated_by",
|
||||||
"is_active",
|
"is_active",
|
||||||
|
|||||||
@ -24,6 +24,7 @@ class PolicyPremium1Model extends Model
|
|||||||
"created_by",
|
"created_by",
|
||||||
"updated_by",
|
"updated_by",
|
||||||
'is_active',
|
'is_active',
|
||||||
|
'grade',
|
||||||
'premium_type',
|
'premium_type',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@ -12,6 +12,9 @@ class TPAModel extends Model
|
|||||||
"id",
|
"id",
|
||||||
"name",
|
"name",
|
||||||
"short_name",
|
"short_name",
|
||||||
|
"front_card",
|
||||||
|
"back_card",
|
||||||
|
"tpa_logo",
|
||||||
"created_by",
|
"created_by",
|
||||||
"updated_by",
|
"updated_by",
|
||||||
"is_active",
|
"is_active",
|
||||||
|
|||||||
@ -40,7 +40,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td><b><?php echo ($key + 1)?></b></td>
|
<td><b><?php echo ($key + 1)?></b></td>
|
||||||
<td><?php echo $file['batch_code']?></td>
|
<td><?php echo $file['batch_code']?></td>
|
||||||
<td><?php echo $file['file_name']?></td>
|
<td data-toggle="tooltip" data-placement="top" title="<?php echo $file['file_name'] ?>" ><?php echo strlen($file['file_name']) > 5 ? substr($file['file_name'], 0, 10) . "..." : $file['file_name'] ?></td>
|
||||||
<td><?php echo $file['client_short_name']?></td>
|
<td><?php echo $file['client_short_name']?></td>
|
||||||
<td><?php echo $file['policy_name']?></td>
|
<td><?php echo $file['policy_name']?></td>
|
||||||
<td><?php echo $file['event_type']?></td>
|
<td><?php echo $file['event_type']?></td>
|
||||||
|
|||||||
@ -105,6 +105,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-row" id="third" style="display: none; position: relative;top: 22px;">
|
||||||
|
|
||||||
|
<label class="switch">
|
||||||
|
<input id="inception_type" type="checkbox" name="inception_type">
|
||||||
|
<span class="slider round" style="height: 27px;"></span>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<label for="inception_type" style="position: relative;bottom: 5px;left: 10px;">Enable Employee Enrolment Process</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="policy_fields"></div>
|
<div id="policy_fields"></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -151,6 +161,7 @@
|
|||||||
onChange: function(selectedDates, dateStr, instance) {
|
onChange: function(selectedDates, dateStr, instance) {
|
||||||
var endDate = new Date(selectedDates[0]);
|
var endDate = new Date(selectedDates[0]);
|
||||||
endDate.setFullYear(endDate.getFullYear() + 1);
|
endDate.setFullYear(endDate.getFullYear() + 1);
|
||||||
|
endDate.setDate(endDate.getDate() - 1); // Set end date to last day of selected year
|
||||||
endDatePicker.setDate(endDate);
|
endDatePicker.setDate(endDate);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -158,6 +169,7 @@
|
|||||||
// Calculate the end date (today + 1 year)
|
// Calculate the end date (today + 1 year)
|
||||||
var endDate = new Date(today);
|
var endDate = new Date(today);
|
||||||
endDate.setFullYear(endDate.getFullYear() + 1);
|
endDate.setFullYear(endDate.getFullYear() + 1);
|
||||||
|
endDate.setDate(endDate.getDate() - 1); // Set end date to last day of next year
|
||||||
|
|
||||||
// Initialize Flatpickr for the end date with the calculated end date
|
// Initialize Flatpickr for the end date with the calculated end date
|
||||||
var endDatePicker = flatpickr("#end_date", {
|
var endDatePicker = flatpickr("#end_date", {
|
||||||
@ -167,6 +179,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$('#add_form').hide();
|
$('#add_form').hide();
|
||||||
$('.btnBack').hide();
|
$('.btnBack').hide();
|
||||||
|
|
||||||
@ -192,6 +205,7 @@
|
|||||||
|
|
||||||
$('#first').hide();
|
$('#first').hide();
|
||||||
$('#second').hide();
|
$('#second').hide();
|
||||||
|
$('#third').hide();
|
||||||
$('#base_policy_id').hide();
|
$('#base_policy_id').hide();
|
||||||
$('#base_policy').prop('required', false);
|
$('#base_policy').prop('required', false);
|
||||||
|
|
||||||
@ -284,6 +298,12 @@
|
|||||||
policy_PrimaryKey = $('#client_id_policy').val();
|
policy_PrimaryKey = $('#client_id_policy').val();
|
||||||
policy_client = $('#policy_PrimaryKey').val();
|
policy_client = $('#policy_PrimaryKey').val();
|
||||||
|
|
||||||
|
var policyDataId = $('#policy').children('option:selected').attr('data-id');
|
||||||
|
var basePolicyDataId = $('#base_policy').children('option:selected').attr('data-id');
|
||||||
|
|
||||||
|
console.log('policyDataId', policyDataId);
|
||||||
|
console.log('basePolicyDataId', basePolicyDataId);
|
||||||
|
|
||||||
if (policy_PrimaryKey === '' && policy_client === '') {
|
if (policy_PrimaryKey === '' && policy_client === '') {
|
||||||
toastr.error('Client is required', 'Error');
|
toastr.error('Client is required', 'Error');
|
||||||
$('#insurer').val('');
|
$('#insurer').val('');
|
||||||
@ -292,6 +312,22 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (basePolicyDataId == policyDataId) {
|
||||||
|
|
||||||
|
toastr.warning('The policy cannot be the same as the base policy.', 'Warning');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (basePolicyDataId == 3 || basePolicyDataId == 2) {
|
||||||
|
|
||||||
|
if (policyDataId == 1) {
|
||||||
|
|
||||||
|
toastr.warning('The GPA policy cannot be Select.', 'Warning');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
var isValid = $('#policy_form').parsley().validate();
|
var isValid = $('#policy_form').parsley().validate();
|
||||||
if (!isValid) {
|
if (!isValid) {
|
||||||
console.log('Form is Empty', 'Warning');
|
console.log('Form is Empty', 'Warning');
|
||||||
@ -461,7 +497,8 @@
|
|||||||
'">' + item.name + '( ' + item.policy_type + ' )</option>';
|
'">' + item.name + '( ' + item.policy_type + ' )</option>';
|
||||||
}
|
}
|
||||||
} else if ($policy_type_value == 1) {
|
} else if ($policy_type_value == 1) {
|
||||||
if (item.policy_type_id == 1 || item.policy_type_id == 2) {
|
|
||||||
|
if (item.policy_type_id == 1 || item.policy_type_id == 2 || item.policy_type_id == 3) {
|
||||||
|
|
||||||
OptionsHTML += '<option data-id="' + item.policy_type_id + '" value="' +
|
OptionsHTML += '<option data-id="' + item.policy_type_id + '" value="' +
|
||||||
item.id +
|
item.id +
|
||||||
@ -492,6 +529,9 @@
|
|||||||
console.log('id', id)
|
console.log('id', id)
|
||||||
$('#policy_type_id').val(dataId);
|
$('#policy_type_id').val(dataId);
|
||||||
|
|
||||||
|
var base_policy_dataId = $('#base_policy').children('option:selected').attr('data-id');
|
||||||
|
|
||||||
|
|
||||||
// $('#base_policy option').each(function() {
|
// $('#base_policy option').each(function() {
|
||||||
// var val = $(this).val();
|
// var val = $(this).val();
|
||||||
// if (val == id) {
|
// if (val == id) {
|
||||||
@ -508,6 +548,29 @@
|
|||||||
// appendPolicyFormFields(2);
|
// appendPolicyFormFields(2);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
if (dataId == 3) {
|
||||||
|
|
||||||
|
var displayStatus = $('#base_policy_id').css('display');
|
||||||
|
$('#base_policy_id').show();
|
||||||
|
$('#base_policy').prop('required', true);
|
||||||
|
|
||||||
|
if (displayStatus === 'none') {
|
||||||
|
$('#base_policy').val('').change();
|
||||||
|
}
|
||||||
|
|
||||||
|
// $('#base_policy').find('option[data-id="3"]').hide();
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
var displayStatus = $('#base_policy_id').css('display');
|
||||||
|
$('#base_policy_id').hide();
|
||||||
|
$('#base_policy').prop('required', false);
|
||||||
|
|
||||||
|
if (displayStatus === 'none') {
|
||||||
|
$('#base_policy').val('').change();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -557,19 +620,29 @@
|
|||||||
$('#policy_status').val(checkDateStatus(res.data.policy_end_date));
|
$('#policy_status').val(checkDateStatus(res.data.policy_end_date));
|
||||||
$('#policy_status_field').show();
|
$('#policy_status_field').show();
|
||||||
|
|
||||||
|
if (res.data.inception_type == 1) {
|
||||||
|
$('#inception_type').prop('checked', true);
|
||||||
|
} else {
|
||||||
|
$('#inception_type').prop('checked', false);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (res.data.is_addon != '1' && res.data.is_addon != '0') {
|
if (res.data.is_addon != '1' && res.data.is_addon != '0') {
|
||||||
$('#base_policy_id').show();
|
$('#base_policy_id').show();
|
||||||
$('#base_policy').prop('required', true);
|
$('#base_policy').prop('required', true);
|
||||||
$('#first').show();
|
$('#first').show();
|
||||||
$('#second').show();
|
$('#second').show();
|
||||||
|
$('#third').show();
|
||||||
} else if (res.data.is_addon == '0') {
|
} else if (res.data.is_addon == '0') {
|
||||||
$('#first').hide();
|
$('#first').hide();
|
||||||
$('#second').hide();
|
$('#second').hide();
|
||||||
|
$('#third').hide();
|
||||||
$('#base_policy_id').hide();
|
$('#base_policy_id').hide();
|
||||||
$('#base_policy').prop('required', false);
|
$('#base_policy').prop('required', false);
|
||||||
} else if (res.data.is_addon == '1') {
|
} else if (res.data.is_addon == '1') {
|
||||||
$('#first').show();
|
$('#first').show();
|
||||||
$('#second').show();
|
$('#second').show();
|
||||||
|
$('#third').show();
|
||||||
$('#base_policy_id').hide();
|
$('#base_policy_id').hide();
|
||||||
$('#base_policy').prop('required', false);
|
$('#base_policy').prop('required', false);
|
||||||
}
|
}
|
||||||
@ -640,7 +713,6 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
$('body').on('click', '.btnOpenEnroll', function() {
|
$('body').on('click', '.btnOpenEnroll', function() {
|
||||||
|
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
@ -650,7 +722,7 @@
|
|||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonColor: "#3085d6",
|
confirmButtonColor: "#3085d6",
|
||||||
cancelButtonColor: "#d33",
|
cancelButtonColor: "#d33",
|
||||||
confirmButtonText: "Yes, delete it!"
|
confirmButtonText: "Yes"
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
var client_policy_id = $(this).attr('data-id');
|
var client_policy_id = $(this).attr('data-id');
|
||||||
@ -734,6 +806,7 @@
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
function appendPolicyFormFields(policy_type, data = false) {
|
function appendPolicyFormFields(policy_type, data = false) {
|
||||||
|
|
||||||
var html = '';
|
var html = '';
|
||||||
@ -1133,11 +1206,13 @@
|
|||||||
$('#base_policy').prop('required', true);
|
$('#base_policy').prop('required', true);
|
||||||
$('#first').show();
|
$('#first').show();
|
||||||
$('#second').show();
|
$('#second').show();
|
||||||
|
$('#third').show();
|
||||||
|
|
||||||
} else if ($(this).val() == '0') {
|
} else if ($(this).val() == '0') {
|
||||||
|
|
||||||
$('#first').hide();
|
$('#first').hide();
|
||||||
$('#second').hide();
|
$('#second').hide();
|
||||||
|
$('#third').hide();
|
||||||
$('#base_policy_id').hide();
|
$('#base_policy_id').hide();
|
||||||
$('#base_policy').prop('required', false);
|
$('#base_policy').prop('required', false);
|
||||||
|
|
||||||
@ -1146,6 +1221,7 @@
|
|||||||
|
|
||||||
$('#first').show();
|
$('#first').show();
|
||||||
$('#second').show();
|
$('#second').show();
|
||||||
|
$('#third').show();
|
||||||
$('#base_policy_id').hide();
|
$('#base_policy_id').hide();
|
||||||
$('#base_policy').prop('required', false);
|
$('#base_policy').prop('required', false);
|
||||||
}
|
}
|
||||||
@ -1176,9 +1252,22 @@
|
|||||||
var OptionsHTML = '';
|
var OptionsHTML = '';
|
||||||
OptionsHTML += '<option value="" selected>Select Base Policy</option>';
|
OptionsHTML += '<option value="" selected>Select Base Policy</option>';
|
||||||
$.each(res.data, function(index, item) {
|
$.each(res.data, function(index, item) {
|
||||||
|
|
||||||
|
if ($('#policy_type').val() == 1) {
|
||||||
|
|
||||||
|
console.log('if')
|
||||||
|
|
||||||
|
if (item.policy_type_id == 1 || item.policy_type_id == 2) {
|
||||||
|
console.log('if 2')
|
||||||
OptionsHTML += '<option data-id="' + item.policy_type_id + '" value="' + item.id +
|
OptionsHTML += '<option data-id="' + item.policy_type_id + '" value="' + item.id +
|
||||||
'">' + item.name + '( ' + item.policy_type + ' )</option>';
|
'">' + item.name + '( ' + item.policy_type + ' )</option>';
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
console.log('if')
|
||||||
|
OptionsHTML += '<option data-id="' + item.policy_type_id + '" value="' + item.id +
|
||||||
|
'">' + item.name + '( ' + item.policy_type + ' )</option>';
|
||||||
|
}
|
||||||
});
|
});
|
||||||
$('#base_policy').html(OptionsHTML);
|
$('#base_policy').html(OptionsHTML);
|
||||||
},
|
},
|
||||||
@ -1204,6 +1293,9 @@
|
|||||||
var policy_type = $('#policy_type').val()
|
var policy_type = $('#policy_type').val()
|
||||||
console.log(client_policy_id);
|
console.log(client_policy_id);
|
||||||
|
|
||||||
|
var dataId = $('#policy').children('option:selected').attr('data-id');
|
||||||
|
console.log('dataId', dataId)
|
||||||
|
|
||||||
var queryParams = {
|
var queryParams = {
|
||||||
client_policy_id: client_policy_id,
|
client_policy_id: client_policy_id,
|
||||||
policy_type: policy_type,
|
policy_type: policy_type,
|
||||||
@ -1238,26 +1330,31 @@
|
|||||||
$('#start_date').val(rearrangeDateFormat(res.data.policy_start_date)).change();
|
$('#start_date').val(rearrangeDateFormat(res.data.policy_start_date)).change();
|
||||||
$('#end_date').val(rearrangeDateFormat(res.data.policy_end_date)).change();
|
$('#end_date').val(rearrangeDateFormat(res.data.policy_end_date)).change();
|
||||||
|
|
||||||
|
|
||||||
var policeOptionHTML = '';
|
var policeOptionHTML = '';
|
||||||
$policy_type_value = $('#policy_type').val();
|
$policy_type_value = $('#policy_type').val();
|
||||||
$.each(res.policy, function(index, item) {
|
$.each(res.policy, function(index, item) {
|
||||||
|
|
||||||
// if ($policy_type_value == 3) {
|
|
||||||
// if (item.policy_type_id == 5) {
|
|
||||||
console.log(item);
|
console.log(item);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
policeOptionHTML += '<option data-id="' + item.policy_type_id +
|
policeOptionHTML += '<option data-id="' + item.policy_type_id +
|
||||||
'" value="' + item.id + '" ' + (res.data.policy_id === item.id ?
|
'" value="' + item.id + '" ' + (res.data.policy_id === item.id ?
|
||||||
'selected="selected"' : '') + '>' + item.name + '</option>';
|
'selected="selected"' : '') + '>' + item.name + '</option>';
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#policy').html(policeOptionHTML);
|
$('#policy').html(policeOptionHTML);
|
||||||
|
|
||||||
|
if (dataId == 3) {
|
||||||
|
setTimeout(function() {
|
||||||
|
var $option = $('#policy').find('option[data-id="3"]');
|
||||||
|
if ($option.length > 0) {
|
||||||
|
$option.prop('selected', true).change();
|
||||||
|
} else {
|
||||||
|
toastr.warning('The insurer does not have a GMC-Parents policy.', 'Warning');
|
||||||
|
}
|
||||||
|
}, 1500);
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
error: function(xhr, status, error) {
|
error: function(xhr, status, error) {
|
||||||
console.error(xhr.responseText);
|
console.error(xhr.responseText);
|
||||||
@ -1269,6 +1366,7 @@
|
|||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -157,8 +157,7 @@ $(document).ready(function(){
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('.loader').fadeOut();
|
$('.loader').fadeOut();
|
||||||
$('.loader-mask').delay(350).fadeOut('slow');
|
$('.loader-mask').delay(350).fadeOut('slow');
|
||||||
toastr.warning('Something Wrong!', 'warning');
|
console.log('Something Wrong!', 'warning'); }, 1000);
|
||||||
}, 1000);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>NHANCE</title>
|
<title>E-Card</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta content="A fully featured CRM" name="description" />
|
<meta content="A fully featured CRM" name="description" />
|
||||||
<meta content="Venba info tech" name="author" />
|
<meta content="Venba info tech" name="author" />
|
||||||
@ -23,6 +23,7 @@
|
|||||||
<!-- Left side of the ID card -->
|
<!-- Left side of the ID card -->
|
||||||
<div
|
<div
|
||||||
style="width: 400px; height: 250px; background-color: #f0f0f0; border: 1px solid #ccc; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; margin: 0 10px;">
|
style="width: 400px; height: 250px; background-color: #f0f0f0; border: 1px solid #ccc; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; margin: 0 10px;">
|
||||||
|
|
||||||
<div style="padding: 20px; box-sizing: border-box; border-right: 1px solid #ccc;">
|
<div style="padding: 20px; box-sizing: border-box; border-right: 1px solid #ccc;">
|
||||||
<div style="margin-bottom: 10px; display: flex; justify-content: space-between;">
|
<div style="margin-bottom: 10px; display: flex; justify-content: space-between;">
|
||||||
<label style="font-weight: bold;">Name:</label>
|
<label style="font-weight: bold;">Name:</label>
|
||||||
@ -49,6 +50,7 @@
|
|||||||
<span><?= htmlspecialchars(formatDateOrReturn($value['policy_end_date'])) ?></span>
|
<span><?= htmlspecialchars(formatDateOrReturn($value['policy_end_date'])) ?></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@ -77,6 +79,12 @@
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
<?php if(!isset($data)) { ?>
|
||||||
|
<a href="<?= generate_download_link('HX3kUB') ?>"
|
||||||
|
target="_blank">button</a>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
203
app/Views/ecard_template/fhpl_tpa.php
Normal file
@ -0,0 +1,203 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>E-Card</title>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
ol {
|
||||||
|
list-style-type: decimal;
|
||||||
|
font-family: sans-serif;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<table style="width: 100%;">
|
||||||
|
|
||||||
|
<?php if(isset($data)) { ?>
|
||||||
|
<?php foreach ($data as $key => $value) { ?>
|
||||||
|
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td style="padding-right: 50px;">
|
||||||
|
<div style="display: flex;justify-content: center;gap: 10px;">
|
||||||
|
<div
|
||||||
|
style="width: 100%;min-height: 320px; background-image:url(<?= base_url() . "public/assets/images/New-india-front.jpg"; ?>);background-size: 100% 100%;border: 1px solid black;line-height: 20px;padding-left: 20px;font-size: 14px;position: relative;">
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<h3
|
||||||
|
style="font-family: sans-serif;margin-bottom: 40px;margin-top: 30px;padding-left: 100px;">
|
||||||
|
THE NEW INDIA ASSURANCE CO.LTD</h3>
|
||||||
|
|
||||||
|
<div style="display: flex;gap: 20px;">
|
||||||
|
|
||||||
|
<table>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;"><span>UHID No</span><span
|
||||||
|
style="margin-left: 52px;">:</span></div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;">NIAC49688264</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<div style="font-family: sans-serif;"><b><?= htmlspecialchars($value['name']) ?></b></div>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;"><span>Age</span><span
|
||||||
|
style="margin-left:82px;">:</span></div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;"><?= htmlspecialchars($value['emp_age']) ?></div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;"><span>Relationship</span><span
|
||||||
|
style="margin-left: 29px;">:</span></div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;"><?= htmlspecialchars($value['relationship']) ?></div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;"><span>Plan Period</span><span
|
||||||
|
style="margin-left: 34px;">:</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;"><?= htmlspecialchars($value['policy_start_date']) ?> To <?= htmlspecialchars($value['policy_end_date']) ?></div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;"><span>Policy No</span><span
|
||||||
|
style="margin-left: 47px;">:</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;"><?= htmlspecialchars($value['tpa_id']) ?></div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;"><span>Insurer</span><span
|
||||||
|
style="margin-left: 62px;">:</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;">
|
||||||
|
<span>LCO</span><span>:</span><span><?= htmlspecialchars($value['branch_code']) ?></span><span>:</span><span><?= htmlspecialchars($value['insurer_branch_city']) ?></span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<img src="<?= base_url() . "public/assets/images/New_India_Assurance.png"; ?>" alt=""
|
||||||
|
width="70px" height="70px"
|
||||||
|
style="object-fit: fill;position: absolute;top: 6px;left: 38px;">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td style="width: 50%; padding-left: 50px;">
|
||||||
|
<div style="display: flex;justify-content: center;gap: 10px;">
|
||||||
|
<div
|
||||||
|
style="width: 100%;min-height: 310px; background-image: url(<?= base_url() . "public/assets/images/New-india-back.jpg"; ?>);background-size: 100% 100%;border: 1px solid black;padding-top: 10px;padding-right: 10px;">
|
||||||
|
<h4 style="font-family: sans-serif;padding-left: 20px;margin:0px;">Instructions</h4>
|
||||||
|
<ul style="font-family: sans-serif;font-size: 11px;line-height: 15px;padding-left: 30px;">
|
||||||
|
<li>Card has to be presented to our network hospitals at the time of the admission while
|
||||||
|
availing cashless</li>
|
||||||
|
<li>Free authorizationfrom FHPL it must should be taken before 48 hrs for all planed
|
||||||
|
admissions & emergency admissions within 24 hrs of getting admitted to any network
|
||||||
|
hospitals FHPL</li>
|
||||||
|
<li>The issuance of this card doesnot guarantee cashless benefits /hospitalisation</li>
|
||||||
|
<li>The card is for the identification purpose.in case of without photograph
|
||||||
|
card.Alternative identification proof such as Voter ID/driving license etc...should be
|
||||||
|
produced</li>
|
||||||
|
<li>All insurance claim will be processed as per policy terms & conditions</li>
|
||||||
|
<li>For more details kindly referbook kindly provided</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
<div
|
||||||
|
style="margin-left: 20%; position:relative; top:70px; width: 160%; display: flex;justify-content: center; line-height: 27px; ">
|
||||||
|
|
||||||
|
<span style="font-family: sans-serif;margin: 0px;margin-left: 30px;font-size: 15px;font-weight: 100;">TERMS
|
||||||
|
AND CONDITIONS:</span>
|
||||||
|
|
||||||
|
<div style=" font-size : 15px; justify-content: space-around;align-items: center;">
|
||||||
|
|
||||||
|
<ol type="number" style="font-family: sans-serif;">
|
||||||
|
<li>This card is generated as per the details given by your employer/HR. Incase of any
|
||||||
|
errors in the
|
||||||
|
details you may confirm the same through your employer for making required corrections.
|
||||||
|
</li>
|
||||||
|
<li>No physical card will be provided to you. For all requirements you may use this card
|
||||||
|
printed in black
|
||||||
|
and white or colour.</li>
|
||||||
|
<li>You can access our network hospitals list from our website https://www.fhpl.net for any
|
||||||
|
information
|
||||||
|
regarding hospitals available within your location or as required.</li>
|
||||||
|
<li>For the convenience of the members the guide book is made available on our website
|
||||||
|
https://www.fhpl.net for understanding protocols in the event of any hospitalization
|
||||||
|
assistance required
|
||||||
|
for availing cashless service and also to forward any claim where the member has spent
|
||||||
|
on his/her own.</li>
|
||||||
|
<li>All our network hospitals will accept the printed card and seek the preauthorization
|
||||||
|
from FHPL in the
|
||||||
|
event of any in-patient hospitalization.</li>
|
||||||
|
<li>Incase there is no photograph on the ID card, the member has to identify himself/herself
|
||||||
|
with any other
|
||||||
|
photo-card like: credit card, ration card, electoral card, Company ID card etc in
|
||||||
|
conjunction with this card.</li>
|
||||||
|
<li>This card is not transferable and cannot be forwarded further to any other person by
|
||||||
|
email/fax.</li>
|
||||||
|
<li> The card will be visible to any member as long the policy is valid after which this
|
||||||
|
service will be
|
||||||
|
withdrawn or till such time the member is employed with the current employer.</li>
|
||||||
|
<li>Usage of this card after the validity/policy expiry will not be entertained.</li>
|
||||||
|
<li>A fresh card will be generated subjected to the renewal of the policy.</li>
|
||||||
|
<li>For Any further queries, Please feel free to contact us on Toll—Free Helpline :1800 -
|
||||||
|
103 - 7519</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="padding-top: 500px;" ></div>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
179
app/Views/ecard_template/icici_tpa.php
Normal file
@ -0,0 +1,179 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>E-Card</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<table style="width: 100%;">
|
||||||
|
|
||||||
|
<?php if(isset($data)) { ?>
|
||||||
|
<?php foreach ($data as $key => $value) { ?>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td style="width: 42%;">
|
||||||
|
<div
|
||||||
|
style="width: 97%; min-height: 330px; padding-left: 21px; line-height: 19px; font-size: 13px;background-image: url(<?= base_url() . "public/assets/images/icici-front.jpg"; ?>);background-size:100% 100%;">
|
||||||
|
|
||||||
|
<div >
|
||||||
|
|
||||||
|
<div style="font-weight: 600;font-family: sans-serif;margin-top: 50px;margin-bottom: 10px;">
|
||||||
|
MADRAS BOAT CLUB</div>
|
||||||
|
|
||||||
|
<div style="display: flex;gap: 20px; padding-top: 10px;">
|
||||||
|
|
||||||
|
<table>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;font-weight: 400;font-weight: bold;">
|
||||||
|
<span>Name</span><span >:</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;">MURUGAN M</div>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;font-weight: 400;font-weight: bold;">
|
||||||
|
<span>Policy No</span><span >:</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;">4016/x/255486172/01/000</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;font-weight: 400;font-weight: bold;">
|
||||||
|
<span>Card No</span><span>:</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;">IL22710628200</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;font-weight: 400;font-weight: bold;">
|
||||||
|
<span>Emp ID</span><span>:</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;">60</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;font-weight: 400;font-weight: bold;">
|
||||||
|
<span>Age</span><span >:</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;">51</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;font-weight: 400;font-weight: bold;">
|
||||||
|
<span>Valid up</span><span>:</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div style="font-family: sans-serif;">10-Aug-2024</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- </div> -->
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td style="padding-left: 30px; padding-bottom: 40px">
|
||||||
|
<div
|
||||||
|
style="width: 90%;min-height: 210px;background-image: url(<?= base_url() . "public/assets/images/icici-back.jpg"; ?>);background-size: 100% 100%;padding-top: 10px; position: relative;top: 18px;">
|
||||||
|
|
||||||
|
<ul style="font-family: sans-serif;font-size: 10px;margin-left: 0px;padding-left: 35px;">
|
||||||
|
<li>*For services like second opinion,doctor appointment,facilitating hospitalisation,post
|
||||||
|
hospitalisation care,call our health assistance helpline at 040-66274205{8AM-8PM Monday
|
||||||
|
to Saturday except public holidays}</li>
|
||||||
|
<li>This Card is non-Transferable and is valid at Network hospitals only</li>
|
||||||
|
<li>Use of this card is governed by the policy terms and conditions</li>
|
||||||
|
<li>Cashless access to the network provider can only be obtained When accompanied with the
|
||||||
|
authorization letter issued by ICICI Lombard GIC Ltd</li>
|
||||||
|
<li>In case of non photo cards,to prove your identy,please produce this card along with any
|
||||||
|
photo id card issued by government</li>
|
||||||
|
<li>valid up to policy expiry date or cancellation date whichever is earlier</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div style="padding-left: 20px;">
|
||||||
|
<div style="font-size: 10px;"><span style="color: #AA292E;font-family: sans-serif;">ICICI
|
||||||
|
Lombard Health Care Pays:</span><span style="font-family: sans-serif;">hospitalisation
|
||||||
|
bills for admissable claim,Subject
|
||||||
|
to prior prior approval.In case of Emergency.Approval can be taken with in 24 hours
|
||||||
|
of hospitalisation</span></div>
|
||||||
|
|
||||||
|
<div style="font-size: 10px;"><span style="color: #AA292E;font-family: sans-serif;">Insured
|
||||||
|
pays:</span><span style="font-family: sans-serif;">All non medical Hospitalisation
|
||||||
|
bills and expenses not covered Under the policy</span></div>
|
||||||
|
|
||||||
|
<div style="font-size: 10px;"><span style="color: #AA292E;font-family: sans-serif;">Mailing
|
||||||
|
Address:</span><span style="font-family: sans-serif;">ICICI Lombard GIC
|
||||||
|
Ltd,1st,4th,5th & 6th,Floor.Varun Towers-II,Opp,Hydrabad Public
|
||||||
|
School,Begumpet,Hyderabad-50016,Telangana</span></div>
|
||||||
|
|
||||||
|
<div style="font-size: 10px;"><span style="color: #AA292E;font-family: sans-serif;">Registered
|
||||||
|
Addresss:</span><span style="font-family: sans-serif;">ICICI Lombard General insurance
|
||||||
|
company
|
||||||
|
limited,ICICI Lombard House,414,savakar marg,near sidhivinayak
|
||||||
|
temple,prabhadevi,Mumbai-400025</span></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
style="display: flex;gap: 30px;padding-left: 20px;margin: 10px 0px 10px 0px;font-size: 10px;font-family: sans-serif;">
|
||||||
|
<div>
|
||||||
|
<div><span><b>Fax Number:</b></span><span>(040)6698916061</span></div>
|
||||||
|
<div><span><b>Email:</b></span><span>ihealth@icicilombard.com</span></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<div><span><b>Toll Free number:</b></span><span>18002666</span></div>
|
||||||
|
<div><span><b>Visit Us at:</b></span><span>www.icicilombard.com</span></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="padding-left: 20px;">
|
||||||
|
<div style="font-family: sans-serif;font-size: 9px;">Insurance is the subject matter of the
|
||||||
|
soficitation.IRDA Reg no.115.CIN:L67200MH2000PLC129408</div>
|
||||||
|
<div style="font-family: sans-serif;font-size: 9px;">*The Mentioned Covers are add-ones by
|
||||||
|
paying additional premium and available only if opted by policyholders</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
119
app/Views/ecard_template/md_tpa.php
Normal file
@ -0,0 +1,119 @@
|
|||||||
|
<body>
|
||||||
|
|
||||||
|
<div style="display: flex;justify-content: center;gap: 10px; width:840px;margin:0 auto 15px; page-break-after: auto;">
|
||||||
|
|
||||||
|
<div style="border: 1px solid black;width: 400px;max-height: 300px;background: url('{FRONT_CARD}');background-size: 100% 100%;padding: 10px;">
|
||||||
|
|
||||||
|
<div style="display: flex;">
|
||||||
|
<div><img src="{INSURER_LOGO}" alt="" width="60px"
|
||||||
|
width="60px" style="object-fit: fill;;"></div>
|
||||||
|
<div style="text-align: center;font-family: sans-serif;font-weight: 600;margin-top: 10px;"><span>THE NEW
|
||||||
|
INDIA ASSURANCE CO.LTD.</span> <br><span style="font-size: 15px;">GOOD HEALTH MEDICLAIM
|
||||||
|
POLICY</span></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<table
|
||||||
|
style="font-family: sans-serif;font-size: 14px;width: 100%;margin-top: 20px;margin-left: 20px;line-height: 20px;">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>MDID : {TPA_ID}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2"><b>{NAME}</b></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Certificate No : {UHID}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><span>Sex : {GENDER} </span> <span style="margin-left: 30px;"> Date of Birth : {DOB}</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2"><b>{SELF_NAME}</b></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Valid form :{POLICY_DATE}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
<table style="width: 100%;text-align: center;font-size: 11px;">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>General & Claim Enquiry Helpline</td>
|
||||||
|
<td>Cashless Enquiry helpline</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
<table style="font-size: 11px;width: 100%;text-align: center;">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="border: 1px solid black;">Toll Free : 1800-209-7777 <br>Email :
|
||||||
|
citibank_chennai@mdindia.com</td>
|
||||||
|
<td style="border: 1px solid black;">Toll Free : 1800-209-7800 <br>Email:
|
||||||
|
authorisation@mdindia.com</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<div style="font-size: 14px;text-align: center;">CITI MDIndia branch contact</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<table style="text-align: center;width: 100%;font-size: 12px;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th style="border: 1px solid black;">Center</th>
|
||||||
|
<th style="border: 1px solid black;">Ph.No/Fax.No.</th>
|
||||||
|
<th style="border: 1px solid black;">Center</th>
|
||||||
|
<th style="border: 1px solid black;">Ph.No/Fax.No.</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="border: 1px solid black;">Chennai</td>
|
||||||
|
<td style="border: 1px solid black;">9381819401</td>
|
||||||
|
<td style="border: 1px solid black;">Delhi</td>
|
||||||
|
<td style="border: 1px solid black;">9310596976</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="border: 1px solid black;">Chennai</td>
|
||||||
|
<td style="border: 1px solid black;">9381819501</td>
|
||||||
|
<td style="border: 1px solid black;">Mumbai</td>
|
||||||
|
<td style="border: 1px solid black;">9320373542</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="border: 1px solid black;">Hyderabad</td>
|
||||||
|
<td style="border: 1px solid black;">9390838023</td>
|
||||||
|
<td style="border: 1px solid black;">Pune</td>
|
||||||
|
<td style="border: 1px solid black;">9371644536</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="border: 1px solid black;">Bangalore</td>
|
||||||
|
<td style="border: 1px solid black;">9341555665</td>
|
||||||
|
<td style="border: 1px solid black;">Kolkata</td>
|
||||||
|
<td style="border: 1px solid black;">9333441389</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h6 style="margin: 5px;">TERMS AND CONDITIONS</h6>
|
||||||
|
<ol style="font-size: 11px;padding-left: 15px;margin-top: 0px;">
|
||||||
|
<li>Pre authorisation is compulsary from tpa prior to planned admission within 24hours for
|
||||||
|
emergencies.</li>
|
||||||
|
<li>Admission for Investigation/Evaluation Not covered.</li>
|
||||||
|
<li>All terms and conditions of the policy would be applicable</li>
|
||||||
|
<li>cashless hospitalisation in network hospitals can be obtained in conjunction with this card.an
|
||||||
|
authorisation letter issued by tpa and photo identification and such as Voters ID,Driver
|
||||||
|
Licence,Passport,etc.</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
@ -44,7 +44,7 @@
|
|||||||
<th class="font-weight-medium">Policy name</th>
|
<th class="font-weight-medium">Policy name</th>
|
||||||
<th class="font-weight-medium">Insurer name</th>
|
<th class="font-weight-medium">Insurer name</th>
|
||||||
<th class="font-weight-medium">TPA ID</th>
|
<th class="font-weight-medium">TPA ID</th>
|
||||||
<th class="font-weight-medium">UHID ID</th>
|
<th class="font-weight-medium">UHID</th>
|
||||||
<th class="font-weight-medium">Policy status</th>
|
<th class="font-weight-medium">Policy status</th>
|
||||||
<th class="font-weight-medium">Sum Insured</th>
|
<th class="font-weight-medium">Sum Insured</th>
|
||||||
<th class="font-weight-medium">Premium</th>
|
<th class="font-weight-medium">Premium</th>
|
||||||
|
|||||||
@ -2,29 +2,23 @@
|
|||||||
<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="insurer_general_form"
|
<form role="form" class="parsley-examples" method="post" id="insurer_general_form" enctype="multipart/form-data">
|
||||||
enctype="multipart/form-data">
|
|
||||||
<input type="hidden" value="<?= csrf_hash() ?>" name="<?= csrf_token() ?>" />
|
<input type="hidden" value="<?= csrf_hash() ?>" name="<?= csrf_token() ?>" />
|
||||||
<input type="hidden" name="PrimaryKey" id="insurer_General_PrimaryKey"
|
<input type="hidden" name="PrimaryKey" id="insurer_General_PrimaryKey" value="<?= isset($insurer['id']) ? $insurer['id'] : '' ?>" />
|
||||||
value="<?= isset($insurer['id']) ? $insurer['id'] : '' ?>" />
|
|
||||||
<input type="hidden" name="insurer_id" id="insurer_id" />
|
<input type="hidden" name="insurer_id" id="insurer_id" />
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label for="insurer_name">Insurer Name<span class="text-danger">*</span></label>
|
<label for="insurer_name">Insurer Name<span class="text-danger">*</span></label>
|
||||||
<input type="text" class="form-control" id="insurer_name"
|
<input type="text" class="form-control" id="insurer_name" placeholder="Enter Insurer Name" value="<?= isset($insurer['name']) ? $insurer['name'] : '' ?>" name="name" required>
|
||||||
placeholder="Enter Insurer Name"
|
|
||||||
value="<?= isset($insurer['name']) ? $insurer['name'] : '' ?>" name="name" required>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label for="short_name">Insurer Short Name<span class="text-danger">*</span></label>
|
<label for="short_name">Insurer Short Name<span class="text-danger">*</span></label>
|
||||||
<input type="text" class="form-control" id="short_name" placeholder="Enter Short Name"
|
<input type="text" class="form-control" id="short_name" placeholder="Enter Short Name" value="<?= isset($insurer['short_name']) ? $insurer['short_name'] : '' ?>" name="short_name" required minlength="3" maxlength="8">
|
||||||
value="<?= isset($insurer['short_name']) ? $insurer['short_name'] : '' ?>"
|
|
||||||
name="short_name" required minlength="3" maxlength="8">
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -52,13 +46,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-row">
|
||||||
|
|
||||||
|
<div class="form-group col-md-4">
|
||||||
|
<label for="short_name">Insurer Logo<span class="text-danger"></span></label>
|
||||||
|
<input type="file" class="form-control" onchange="PreviewImage();" id="insurer_logo" name="insurer_logo" accept="image/jpeg, image/jpg, image/png">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-4 float-right" style="position: relative;left: 40px;bottom: 28px;">
|
||||||
|
<img src="<?= isset($insurer['insurer_logo']) && !empty($insurer['insurer_logo']) ? base_url() . "public/uploads/logo/" . $insurer['insurer_logo'] : base_url() . "public/assets/images/avatar_2x.png" ?>" width="100" height="100" id="uploadPreview" class="avatar img-circle img-thumbnail" alt="avatar" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group text-right m-b-0">
|
<div class="form-group text-right m-b-0">
|
||||||
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1"
|
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1" id="btnSubmit">Submit</button>
|
||||||
id="btnSubmit">Submit</button>
|
<button type="button" class="btn btn-secondary waves-effect btnBack" id="btnBack">Cancel</button>
|
||||||
<button type="button" class="btn btn-secondary waves-effect btnBack"
|
|
||||||
id="btnBack">Cancel</button>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@ -138,8 +143,7 @@ $(document).ready(function() {
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('.loader').fadeOut();
|
$('.loader').fadeOut();
|
||||||
$('.loader-mask').delay(350).fadeOut('slow');
|
$('.loader-mask').delay(350).fadeOut('slow');
|
||||||
toastr.warning('Something Wrong!', 'warning');
|
console.log('Something Wrong!', 'warning'); }, 1000);
|
||||||
}, 1000);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -175,4 +179,13 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function PreviewImage() {
|
||||||
|
var oFReader = new FileReader();
|
||||||
|
oFReader.readAsDataURL(document.getElementById("insurer_logo").files[0]);
|
||||||
|
|
||||||
|
oFReader.onload = function(oFREvent) {
|
||||||
|
document.getElementById("uploadPreview").src = oFREvent.target.result;
|
||||||
|
};
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
@ -304,8 +304,7 @@ $(document).ready(function () {
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('.loader').fadeOut();
|
$('.loader').fadeOut();
|
||||||
$('.loader-mask').delay(350).fadeOut('slow');
|
$('.loader-mask').delay(350).fadeOut('slow');
|
||||||
toastr.warning('Something Wrong!', 'warning');
|
console.log('Something Wrong!', 'warning'); }, 1000);
|
||||||
}, 1000);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,6 +10,7 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin-right: -85px;
|
margin-right: -85px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.radiobuttondiv {
|
.radiobuttondiv {
|
||||||
margin-left: 32px;
|
margin-left: 32px;
|
||||||
}
|
}
|
||||||
@ -26,10 +27,12 @@
|
|||||||
/* border:1px solid; */
|
/* border:1px solid; */
|
||||||
/* background-color: #0001; */
|
/* background-color: #0001; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group-client-policy-masters {
|
.form-group-client-policy-masters {
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
max-width: 100% !important;
|
max-width: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex-container {
|
.flex-container {
|
||||||
display: block;
|
display: block;
|
||||||
/* flex-wrap: wrap; */
|
/* flex-wrap: wrap; */
|
||||||
@ -37,8 +40,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.flex-container>div {
|
.flex-container>div {
|
||||||
flex: 1; /* Each div takes equal space */
|
flex: 1;
|
||||||
|
/* Each div takes equal space */
|
||||||
}
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
padding-top: 7px;
|
padding-top: 7px;
|
||||||
width: 400px;
|
width: 400px;
|
||||||
@ -46,9 +51,11 @@
|
|||||||
height: 36px;
|
height: 36px;
|
||||||
/* text-align: center; */
|
/* text-align: center; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.jodit-status-bar {
|
.jodit-status-bar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* .jodit-container{
|
/* .jodit-container{
|
||||||
width: 821px !important;
|
width: 821px !important;
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
@ -60,12 +67,15 @@
|
|||||||
.input-group {
|
.input-group {
|
||||||
width: 64.5% !important;
|
width: 64.5% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group-append-client-policy-master {
|
.input-group-append-client-policy-master {
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.jodit-wysiwyg {
|
.jodit-wysiwyg {
|
||||||
margin-bottom: 162px;
|
margin-bottom: 162px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.s {
|
.s {
|
||||||
margin-left: 30px;
|
margin-left: 30px;
|
||||||
width: 689px;
|
width: 689px;
|
||||||
@ -207,7 +217,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<input type="radio" name="9monthwaitingperiodwaived" class="9monthwaitingperiodwaived" value="1"> Yes, waived off
|
<input type="radio" name="9monthwaitingperiodwaived" class="9monthwaitingperiodwaived" value="1"> Yes, waived off
|
||||||
<input type="radio" name="9monthwaitingperiodwaived" class="9monthwaitingperiodwaived" value="0" style="margin-left:10px"> No </div>
|
<input type="radio" name="9monthwaitingperiodwaived" class="9monthwaitingperiodwaived" value="0" style="margin-left:10px"> No
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row" style="margin-bottom: 10px;">
|
<div class="row" style="margin-bottom: 10px;">
|
||||||
@ -255,7 +266,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<input type="radio" name="congenitaldiseasesinternal" class="congenitaldiseasesinternal" value="internal"> Internal Covered
|
<input type="radio" name="congenitaldiseasesinternal" class="congenitaldiseasesinternal" value="internal"> Internal Covered
|
||||||
<input type="radio" name="congenitaldiseasesinternal" class="congenitaldiseasesinternal" value="no" style="margin-left:10px"> No </div>
|
<input type="radio" name="congenitaldiseasesinternal" class="congenitaldiseasesinternal" value="no" style="margin-left:10px"> No
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row" style="margin-bottom: 10px;">
|
<div class="row" style="margin-bottom: 10px;">
|
||||||
@ -362,7 +374,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<input type="radio" name="reasonableandcustomarycharges" class="reasonableandcustomarycharges" value="1">Applicable
|
<input type="radio" name="reasonableandcustomarycharges" class="reasonableandcustomarycharges" value="1">Applicable
|
||||||
<input type="radio" name="reasonableandcustomarycharges" class="reasonableandcustomarycharges" value="0" style="margin-left:10px">Not Applicable </div>
|
<input type="radio" name="reasonableandcustomarycharges" class="reasonableandcustomarycharges" value="0" style="margin-left:10px">Not Applicable
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row" style="margin-bottom: 10px;">
|
<div class="row" style="margin-bottom: 10px;">
|
||||||
@ -371,7 +384,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<input type="radio" name="daycaretreatment" class="daycaretreatment" value="1"> Yes
|
<input type="radio" name="daycaretreatment" class="daycaretreatment" value="1"> Yes
|
||||||
<input type="radio" name="daycaretreatment" class="daycaretreatment" value="0" style="margin-left:10px"> No </div>
|
<input type="radio" name="daycaretreatment" class="daycaretreatment" value="0" style="margin-left:10px"> No
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row" style="margin-bottom: 10px;">
|
<div class="row" style="margin-bottom: 10px;">
|
||||||
@ -477,7 +491,7 @@
|
|||||||
|
|
||||||
<div class="row" style="margin-bottom: 10px;">
|
<div class="row" style="margin-bottom: 10px;">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label for="totalSumInsured">Days of Discharge</label>
|
<label for="totalSumInsured">Claim Intimation Clause</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<input type="text" id="days_of_discharge" name="days_of_discharge" class="form-control " placeholder="Enter the number of days">
|
<input type="text" id="days_of_discharge" name="days_of_discharge" class="form-control " placeholder="Enter the number of days">
|
||||||
@ -487,7 +501,7 @@
|
|||||||
|
|
||||||
<div class="row" style="margin-bottom: 10px;">
|
<div class="row" style="margin-bottom: 10px;">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label for="totalSumInsured">Days from DOD</label>
|
<label for="totalSumInsured">Claim Submission</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<input type="text" id="days_from_dod" name="days_from_dod" class="form-control " placeholder="Enter the number of days">
|
<input type="text" id="days_from_dod" name="days_from_dod" class="form-control " placeholder="Enter the number of days">
|
||||||
@ -495,10 +509,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <hr> -->
|
<hr>
|
||||||
|
|
||||||
|
<div class="form-column" id="grid_content_input">
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- <div class="form-row" id="grid_content_input">
|
|
||||||
</div> -->
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -611,7 +626,7 @@ var grid_html = '';
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('.loader').fadeOut();
|
$('.loader').fadeOut();
|
||||||
$('.loader-mask').delay(350).fadeOut('slow');
|
$('.loader-mask').delay(350).fadeOut('slow');
|
||||||
toastr.warning('Something Wrong!', 'warning');
|
console.log('Something Wrong!', 'warning');
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -654,7 +669,9 @@ var grid_html = '';
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
url: '<?= base_url("client/policy/getterms") ?>',
|
url: '<?= base_url("client/policy/getterms") ?>',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
data: {client_policy_id: client_policy_id},
|
data: {
|
||||||
|
client_policy_id: client_policy_id
|
||||||
|
},
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
console.log('response', response);
|
console.log('response', response);
|
||||||
|
|
||||||
@ -667,30 +684,36 @@ var grid_html = '';
|
|||||||
$('#nameOfThePolicyInGMC').html(' - ' + response.policy_name.name);
|
$('#nameOfThePolicyInGMC').html(' - ' + response.policy_name.name);
|
||||||
$('gmc_emp_count').val(response.count);
|
$('gmc_emp_count').val(response.count);
|
||||||
|
|
||||||
console.log('count--1', response.count);
|
// console.log('count--1', response.count);
|
||||||
$('emp_count').val(response.count)
|
// $('emp_count').val(response.count)
|
||||||
if (response && response.hasOwnProperty('count')) {
|
// if (response && response.hasOwnProperty('count')) {
|
||||||
if (response.count === false) {
|
// if (response.count === false) {
|
||||||
console.log('count -- 2', response.count);
|
// console.log('count -- 2', response.count);
|
||||||
console.log(document.getElementById('btnGridSubmit1'))
|
// console.log(document.getElementById('btnGridSubmit1'))
|
||||||
$("#btnGridSubmit1").hide();
|
// $("#btnGridSubmit1").hide();
|
||||||
$("#myButtonSpecialCondition").hide();
|
// $("#myButtonSpecialCondition").hide();
|
||||||
} else {
|
// } else {
|
||||||
$("#btnGridSubmit1").show();
|
// $("#btnGridSubmit1").show();
|
||||||
$("#myButtonSpecialCondition").show();
|
// $("#myButtonSpecialCondition").show();
|
||||||
console.log('count -- ', response.count);
|
// console.log('count -- ', response.count);
|
||||||
}
|
// }
|
||||||
} else {
|
// } else {
|
||||||
console.error('Response object does not have a "count" property or is invalid.');
|
// console.error('Response object does not have a "count" property or is invalid.');
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
if (response) {
|
if (response) {
|
||||||
if ( response.emp_count_by_policy != 0) {
|
|
||||||
$('#btnGridSubmit1').hide();
|
|
||||||
|
|
||||||
|
if (response.emp_count_by_policy != 0) {
|
||||||
|
|
||||||
|
$('#btnGridSubmit1').hide();
|
||||||
$('#myButtonSpecialCondition').hide();
|
$('#myButtonSpecialCondition').hide();
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$('#btnGridSubmit1').show();
|
||||||
|
$('#myButtonSpecialCondition').show();
|
||||||
}
|
}
|
||||||
|
|
||||||
let jsonObject = JSON.parse(response.data);
|
let jsonObject = JSON.parse(response.data);
|
||||||
Object.keys(jsonObject).forEach(function(key) {
|
Object.keys(jsonObject).forEach(function(key) {
|
||||||
if (key.includes("special_condition_label") || key.includes("special_condition_input")) {
|
if (key.includes("special_condition_label") || key.includes("special_condition_input")) {
|
||||||
@ -855,7 +878,7 @@ var grid_html = '';
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('.loader').fadeOut();
|
$('.loader').fadeOut();
|
||||||
$('.loader-mask').delay(350).fadeOut('slow');
|
$('.loader-mask').delay(350).fadeOut('slow');
|
||||||
toastr.warning('Something Wrong!', 'warning');
|
console.log('Something Wrong!', 'warning');
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -876,6 +899,7 @@ var grid_html = '';
|
|||||||
$("#numberToWordGMC").text("");
|
$("#numberToWordGMC").text("");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
@ -897,26 +921,37 @@ var grid_html = '';
|
|||||||
|
|
||||||
<!-- Policy terms Add Special Condition -->
|
<!-- Policy terms Add Special Condition -->
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
document.getElementById('myButtonSpecialCondition').addEventListener('click', function(event) {
|
document.getElementById('myButtonSpecialCondition').addEventListener('click', function(event) {
|
||||||
|
|
||||||
|
console.log('specialCondition callback clicked')
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
specialCondition();
|
specialCondition();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
function specialCondition(count = 0) {
|
function specialCondition(count = 0) {
|
||||||
|
|
||||||
|
console.log('specialCondition function called')
|
||||||
|
|
||||||
|
console.log('before if count', count)
|
||||||
|
|
||||||
if (count === 0) {
|
if (count === 0) {
|
||||||
|
|
||||||
|
console.log('after if count', count)
|
||||||
|
|
||||||
var index = $('.modifyclassinput').length;
|
var index = $('.modifyclassinput').length;
|
||||||
var appendElement = `<div class="form-group col-md-6 form-group-client-policy-masters removeDom">
|
var appendElement = `<div class="form-group col-md-6 form-group-client-policy-masters removeDom">
|
||||||
<label for="specialconditionlabel" class="special_condition_label[]" style="width: 400px;"><input name="special_condition_label[]" id="special_condition_label[]"><span class="specialConditionClose" style="color: red;margin-left: 20px;">X</span></label>
|
<label for="specialconditionlabel" class="special_condition_label[]" style="width: 450px;"><input name="special_condition_label[]" id="special_condition_label[]" style="position: relative;right: 15px;"><span class="specialConditionClose" style="color: red;margin-left: 5px;">X</span></label>
|
||||||
<input type="text" name="special_condition_input[]" id="special_condition_input[]" class="form-control s special_condition_input[]">
|
<input type="text" name="special_condition_input[]" id="special_condition_input[]" class="form-control s special_condition_input[]">
|
||||||
</div>`;
|
</div>`;
|
||||||
|
console.log($(this));
|
||||||
$('.form-column').each(function() {
|
$('.form-column').each(function() {
|
||||||
$(this).append(appendElement);
|
$(this).append(appendElement);
|
||||||
});
|
});
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
|
|
||||||
|
console.log('else')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -947,5 +982,4 @@ var grid_html = '';
|
|||||||
// // Update the input value
|
// // Update the input value
|
||||||
// input.value = value;
|
// input.value = value;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@ -40,8 +40,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.flex-container>div {
|
.flex-container>div {
|
||||||
flex: 1; /* Each div takes equal space */
|
flex: 1;
|
||||||
|
/* Each div takes equal space */
|
||||||
}
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
padding-top: 7px;
|
padding-top: 7px;
|
||||||
width: 400px;
|
width: 400px;
|
||||||
@ -49,18 +51,23 @@
|
|||||||
height: 36px;
|
height: 36px;
|
||||||
/* text-align: center; */
|
/* text-align: center; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.jodit-status-bar {
|
.jodit-status-bar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group {
|
.input-group {
|
||||||
width: 64.5% !important;
|
width: 64.5% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group-append-client-policy-master {
|
.input-group-append-client-policy-master {
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.jodit-wysiwyg {
|
.jodit-wysiwyg {
|
||||||
margin-bottom: 162px;
|
margin-bottom: 162px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-control-client-policy-masters {
|
.form-control-client-policy-masters {
|
||||||
margin-left: 30px;
|
margin-left: 30px;
|
||||||
width: 689px;
|
width: 689px;
|
||||||
@ -268,6 +275,7 @@
|
|||||||
<input type="radio" name="terrorism" value="0" style="margin-left:10px" checked> No
|
<input type="radio" name="terrorism" value="0" style="margin-left:10px" checked> No
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row" style="margin-bottom: 10px;">
|
<div class="row" style="margin-bottom: 10px;">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label for="totalSumInsured">Worldwide Cover</label>
|
<label for="totalSumInsured">Worldwide Cover</label>
|
||||||
@ -279,8 +287,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<div class="gpa_special_condition">
|
||||||
|
</div>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<div class="form-group text-right m-b-0" style="margin-top: -49px;">
|
<div class="form-group text-right m-b-0" style="margin-top: -49px;">
|
||||||
|
<a href="#" class="button-like" id="gpaButtonSpecialCondition" title="Special Condition">Special Condition</a>
|
||||||
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1" id="btnGPATermsSubmit" style="margin-top: 100px;">Submit</button>
|
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1" id="btnGPATermsSubmit" style="margin-top: 100px;">Submit</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -400,6 +414,7 @@
|
|||||||
processData: false,
|
processData: false,
|
||||||
contentType: false,
|
contentType: false,
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
|
|
||||||
$('#policyGPATerms')[0].reset();
|
$('#policyGPATerms')[0].reset();
|
||||||
$('.text-danger-2').html('');
|
$('.text-danger-2').html('');
|
||||||
console.log(res);
|
console.log(res);
|
||||||
@ -429,7 +444,7 @@
|
|||||||
$('.nav.nav-pills.navtab-bg').css('display', '');
|
$('.nav.nav-pills.navtab-bg').css('display', '');
|
||||||
$('.nav.nav-pills.navtab-bg').prev().css('display', '');
|
$('.nav.nav-pills.navtab-bg').prev().css('display', '');
|
||||||
var message = 'Policy Terms Updated successfully';
|
var message = 'Policy Terms Updated successfully';
|
||||||
toastr.success('message', 'Success');
|
toastr.success(message, 'Success');
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -459,11 +474,13 @@
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
url: '<?= base_url("client/policy/getterms") ?>',
|
url: '<?= base_url("client/policy/getterms") ?>',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
data: {client_policy_id: client_policy_id},
|
data: {
|
||||||
|
client_policy_id: client_policy_id
|
||||||
|
},
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
|
|
||||||
console.log(res);
|
console.log(res);
|
||||||
console.log('count', res.count);
|
console.log('count', res.emp_count_by_policy);
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('.loader').fadeOut();
|
$('.loader').fadeOut();
|
||||||
$('.loader-mask').delay(350).fadeOut('slow');
|
$('.loader-mask').delay(350).fadeOut('slow');
|
||||||
@ -472,15 +489,35 @@
|
|||||||
|
|
||||||
|
|
||||||
$('#emp_count').val(res.count)
|
$('#emp_count').val(res.count)
|
||||||
if(res.count === false){
|
if (res.emp_count_by_policy != 0) {
|
||||||
$("#btnGPATermsSubmit").hide();
|
$("#btnGPATermsSubmit").hide();
|
||||||
|
$("#gpaButtonSpecialCondition").hide();
|
||||||
} else {
|
} else {
|
||||||
$("#btnGPATermsSubmit").show();
|
$("#btnGPATermsSubmit").show();
|
||||||
|
$("#gpaButtonSpecialCondition").show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
|
|
||||||
|
let gpaJsonObjectForSpecialCondition = JSON.parse(res.data);
|
||||||
|
Object.keys(gpaJsonObjectForSpecialCondition).forEach(function(key) {
|
||||||
|
if (key.includes("gpa_special_condition_label") || key.includes("gpa_special_condition_input")) {
|
||||||
|
if (key.includes("gpa_special_condition_label")) {
|
||||||
|
for (let index = 0; index < gpaJsonObjectForSpecialCondition[key].length; index++) {
|
||||||
|
specialConditionForGPA();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let elements = document.getElementsByName(`${key}[]`);
|
||||||
|
|
||||||
|
if (elements) {
|
||||||
|
elements.forEach((element, index) => {
|
||||||
|
element.value = gpaJsonObjectForSpecialCondition[key][index];
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
let jsonObject = JSON.parse(res.data);
|
let jsonObject = JSON.parse(res.data);
|
||||||
$("#numberToWordSumInsured").text(convertCommaNumberToWords(jsonObject.sumInsured2));
|
$("#numberToWordSumInsured").text(convertCommaNumberToWords(jsonObject.sumInsured2));
|
||||||
$("#numberToWordTotalSumInsured").text(convertCommaNumberToWords(jsonObject.totalSumInsured));
|
$("#numberToWordTotalSumInsured").text(convertCommaNumberToWords(jsonObject.totalSumInsured));
|
||||||
@ -541,7 +578,7 @@
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('.loader').fadeOut();
|
$('.loader').fadeOut();
|
||||||
$('.loader-mask').delay(350).fadeOut('slow');
|
$('.loader-mask').delay(350).fadeOut('slow');
|
||||||
toastr.warning('Something Wrong!', 'warning');
|
console.log('Something Wrong!', 'warning');
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -551,12 +588,47 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
document.getElementById('gpaButtonSpecialCondition').addEventListener('click', function(event) {
|
||||||
|
|
||||||
|
console.log('specialConditionForGPA callback clicked')
|
||||||
|
event.preventDefault();
|
||||||
|
specialConditionForGPA();
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
function specialConditionForGPA(count = 0) {
|
||||||
|
|
||||||
|
console.log('specialConditionForGPA function called')
|
||||||
|
|
||||||
|
console.log('before if count', count)
|
||||||
|
|
||||||
|
if (count === 0) {
|
||||||
|
|
||||||
|
console.log('after if count', count)
|
||||||
|
|
||||||
|
var index = $('.modifyclassinput').length;
|
||||||
|
var appendElement = `<div class="form-group col-md-6 form-group-client-policy-masters removeDom">
|
||||||
|
<label for="specialconditionlabel" class="special_condition_label[]" style="width: 450px;"><input name="gpa_special_condition_label[]" id="gpa_special_condition_label[]" style="position: relative;right: 15px;"><span class="specialConditionClose" style="color: red;margin-left: 5px;">X</span></label>
|
||||||
|
<input type="text" name="gpa_special_condition_input[]" id="gpa_special_condition_input[]" class="form-control s special_condition_input[]">
|
||||||
|
</div>`;
|
||||||
|
console.log($(this));
|
||||||
|
$('.gpa_special_condition').each(function() {
|
||||||
|
$(this).append(appendElement);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
|
||||||
|
console.log('else')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$(document).on('click', '#policyGPATermsClose', function() {
|
$(document).on('click', '#policyGPATermsClose', function() {
|
||||||
$('#policyGPATermsForm').css('display', 'none');
|
$('#policyGPATermsForm').css('display', 'none');
|
||||||
$('#police-tab').css('display', '');
|
$('#police-tab').css('display', '');
|
||||||
|
|||||||
@ -27,7 +27,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-4" style="position: relative; left: 45px;display:none" id="premium_type">
|
<!-- <div class="form-group col-md-4" style="position: relative; left: 45px;display:none" id="premium_type">
|
||||||
<label for="css"> Premium Calculation </label>
|
<label for="css"> Premium Calculation </label>
|
||||||
<div style="display: flex; align-items: center;">
|
<div style="display: flex; align-items: center;">
|
||||||
<input type="radio" id="individual" name="premium_type" value="2">
|
<input type="radio" id="individual" name="premium_type" value="2">
|
||||||
@ -35,8 +35,7 @@
|
|||||||
<input type="radio" id="single" name="premium_type" value="1">
|
<input type="radio" id="single" name="premium_type" value="1">
|
||||||
<label for="single" style="position: relative;top: 5px;left: 5px;"> Single Insurance </label>
|
<label for="single" style="position: relative;top: 5px;left: 5px;"> Single Insurance </label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -285,17 +284,17 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
|
|
||||||
grid_html = `
|
grid_html = `
|
||||||
<div class="form-row" id="grid_6" style="width:84%">
|
<div class="form-row" id="grid_6" style="width:84%">
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="6_si[]" id="6_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="6_si" id="6_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
||||||
<div id='sum_insured_number_word' class="text-danger-2" ></div>
|
<div id='sum_insured_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-row">
|
||||||
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">From Age<span class="text-danger">*</span></label>
|
<label for="mobile">From Age<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.age_from : ''}" type="text" class="form-control" placeholder="Enter From Age" name="6_age_from[]" id="6_age_from" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.age_from : ''}" type="text" class="form-control" placeholder="Enter From Age" name="6_age_from[]" id="6_age_from" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">To Age<span class="text-danger">*</span></label>
|
<label for="mobile">To Age<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.age_to : ''}" type="text" class="form-control" placeholder="Enter TO Age" name="6_age_to[]" id="6_age_to" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.age_to : ''}" type="text" class="form-control" placeholder="Enter TO Age" name="6_age_to[]" id="6_age_to" required>
|
||||||
</div>
|
</div>
|
||||||
@ -308,7 +307,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
<button style="margin-top: 44px;" type="button" class="btn btn-danger" id="gmc_remove" onclick="removebutton(0,6)">x</button>
|
<button style="margin-top: 44px;" type="button" class="btn btn-danger" id="gmc_remove" onclick="removebutton(0,6)">x</button>
|
||||||
<button style="margin-top: 44px;" type="button" class="btn btn-primary" id="gmc_add_more" onclick="appendGridtHtml(6)">+</button>
|
<button style="margin-top: 44px;" type="button" class="btn btn-primary" id="gmc_add_more" onclick="appendGridtHtml(6)">+</button>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>`;
|
</div>`;
|
||||||
|
|
||||||
} else if (dataIdValue == '7') {
|
} else if (dataIdValue == '7') {
|
||||||
@ -684,18 +683,19 @@ $('body').on('click', '.btnPolicyModel', function() {
|
|||||||
|
|
||||||
$('#GridForm')[0].reset();
|
$('#GridForm')[0].reset();
|
||||||
|
|
||||||
if(res.family_floater == 1){
|
// if(res.family_floater == 1){
|
||||||
$('#premium_type').show();
|
// $('#premium_type').show();
|
||||||
$('#individual').prop('checked', true)
|
// $('#individual').prop('checked', true)
|
||||||
}else{
|
// }else{
|
||||||
$('#premium_type').hide();
|
// $('#premium_type').hide();
|
||||||
$('#individual').prop('checked', false)
|
// $('#individual').prop('checked', false)
|
||||||
}
|
// }
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('.loader').fadeOut();
|
$('.loader').fadeOut();
|
||||||
$('.loader-mask').delay(350).fadeOut('slow');
|
$('.loader-mask').delay(350).fadeOut('slow');
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
console.log('policy grid responce', res);
|
console.log('policy grid responce', res);
|
||||||
var temp_for_premiumData = JSON.parse(res.premiumData);
|
var temp_for_premiumData = JSON.parse(res.premiumData);
|
||||||
console.log('policy grid responce', temp_for_premiumData);
|
console.log('policy grid responce', temp_for_premiumData);
|
||||||
@ -736,24 +736,24 @@ $('body').on('click', '.btnPolicyModel', function() {
|
|||||||
});
|
});
|
||||||
$('#grid').html(policeGridOptionHTML);
|
$('#grid').html(policeGridOptionHTML);
|
||||||
|
|
||||||
if (res.premiumData[0].hasOwnProperty('premium_type')) {
|
// if (res.premiumData[0].hasOwnProperty('premium_type')) {
|
||||||
|
|
||||||
if (res.premiumData[0].premium_type == '2') {
|
// if (res.premiumData[0].premium_type == '2') {
|
||||||
|
|
||||||
$('#individual').prop('checked', true)
|
// $('#individual').prop('checked', true)
|
||||||
$('#single').prop('checked', false)
|
// $('#single').prop('checked', false)
|
||||||
|
|
||||||
} else if (res.premiumData[0].premium_type == '1') {
|
// } else if (res.premiumData[0].premium_type == '1') {
|
||||||
|
|
||||||
$('#single').prop('checked', true)
|
// $('#single').prop('checked', true)
|
||||||
$('#individual').prop('checked', false)
|
// $('#individual').prop('checked', false)
|
||||||
|
|
||||||
} else {
|
// } else {
|
||||||
$('#single').prop('checked', false)
|
// $('#single').prop('checked', false)
|
||||||
$('#individual').prop('checked', false)
|
// $('#individual').prop('checked', false)
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
var si_or_bp_value = '';
|
var si_or_bp_value = '';
|
||||||
@ -1035,19 +1035,13 @@ function appendGridtHtml(ui_type = false, data = false, ) {
|
|||||||
|
|
||||||
html = `
|
html = `
|
||||||
<div class="form-row" id="removeChild_${Count}" style="width:84%">
|
<div class="form-row" id="removeChild_${Count}" style="width:84%">
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="6_si[]" id="6_si_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)"required>
|
|
||||||
<div id='sum_insured_number_word_${Count}' class="text-danger-2" ></div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-2">
|
|
||||||
<label for="mobile">From Age<span class="text-danger">*</span></label>
|
<label for="mobile">From Age<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.age_from : ''}" type="text" class="form-control" placeholder="Enter From Age" name="6_age_from[]" id="6_age_from" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.age_from : ''}" type="text" class="form-control" placeholder="Enter From Age" name="6_age_from[]" id="6_age_from" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">To Age<span class="text-danger">*</span></label>
|
<label for="mobile">To Age<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.age_to : ''}" type="text" class="form-control" placeholder="Enter TO Age" name="6_age_to[]" id="6_age_to" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.age_from : ''}" type="text" class="form-control" placeholder="Enter TO Age" name="6_age_to[]" id="6_age_to" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
|
|||||||
@ -16,16 +16,58 @@
|
|||||||
<label for="short_name">TPA Short Name<span class="text-danger">*</span></label>
|
<label for="short_name">TPA Short Name<span class="text-danger">*</span></label>
|
||||||
<input type="text" class="form-control" id="short_name" placeholder="Enter Short Name" value="<?= isset($tpa['short_name']) ? $tpa['short_name'] : '' ?>" name="short_name" required>
|
<input type="text" class="form-control" id="short_name" placeholder="Enter Short Name" value="<?= isset($tpa['short_name']) ? $tpa['short_name'] : '' ?>" name="short_name" required>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group col-md-4">
|
||||||
|
<label for="short_name">TPA Logo<span class="text-danger"></span></label>
|
||||||
|
<input type="file" class="form-control" onchange="PreviewImage();" id="tpa_logo" name="tpa_logo" accept="image/jpeg, image/jpg, image/png">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
<div class="form-row">
|
||||||
|
<div class="form-group col-md-10">
|
||||||
|
<label for="tpa_name">E-Card Template<span class="text-danger"></span></label>
|
||||||
|
<textarea style="height: 100px;" class="form-control" id="ecard_content" placeholder="Enter E-card Content" name="ecard_content"><?= isset($template_data) ? $template_data : '' ?></textarea>
|
||||||
|
</div>
|
||||||
|
<div class="form-group col-md-2 float-right" style="position: relative;top: 0px;left: 40px;">
|
||||||
|
<label for="short_name">Logo Preview<span class="text-danger"></span></label>
|
||||||
|
<img src="<?= isset($tpa['tpa_logo']) && !empty($tpa['tpa_logo']) ? base_url() . "public/uploads/logo/" . $tpa['tpa_logo'] : base_url() . "public/assets/images/avatar_2x.png" ?>" width="100" height="100" id="uploadPreview" class="avatar img-circle img-thumbnail" alt="avatar" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-row">
|
||||||
|
<div class="form-group col-md-4">
|
||||||
|
<a href="<?= isset($tpa['id']) ? base_url('/util/preview-card/') . $tpa['id'] : '' ?>" class="btn btn-primary" id="preview" target="_blank">Preview</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-row">
|
||||||
|
<div class="form-group col-md-4">
|
||||||
|
<label for="short_name">Front card Image<span class="text-danger"></span></label>
|
||||||
|
<input type="file" class="form-control" onchange="PreviewImage2();" id="fc" name="fc" accept="image/jpeg, image/jpg, image/png">
|
||||||
|
</div>
|
||||||
|
<div class="form-group col-md-4">
|
||||||
|
<label for="short_name">Back card Image<span class="text-danger"></span></label>
|
||||||
|
<input type="file" class="form-control" onchange="PreviewImage3();" id="bc" name="bc" accept="image/jpeg, image/jpg, image/png">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-row">
|
||||||
|
<div class="form-group col-md-4">
|
||||||
|
<label for="short_name">Front card Preview<span class="text-danger"></span></label>
|
||||||
|
<img src="<?= isset($tpa['front_card']) && !empty($tpa['front_card']) ? base_url() . "public/uploads/template_bg/" . $tpa['front_card'] : base_url() . "public/assets/images/avatar_2x.png" ?>" width="100" height="100" id="uploadPreview2" class="avatar img-circle img-thumbnail" alt="avatar" />
|
||||||
|
</div>
|
||||||
|
<div class="form-group col-md-4">
|
||||||
|
<label for="short_name">Back card Preview<span class="text-danger"></span></label>
|
||||||
|
<img src="<?= isset($tpa['back_card']) && !empty($tpa['back_card']) ? base_url() . "public/uploads/template_bg/" . $tpa['back_card'] : base_url() . "public/assets/images/avatar_2x.png" ?>" width="100" height="100" id="uploadPreview3" class="avatar img-circle img-thumbnail" alt="avatar" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group text-right m-b-0">
|
<div class="form-group text-right m-b-0">
|
||||||
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1"
|
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1" id="btnSubmit">Submit</button>
|
||||||
id="btnSubmit">Submit</button>
|
<button type="button" class="btn btn-secondary waves-effect btnBack" id="btnBack">Cancel</button>
|
||||||
<button type="button" class="btn btn-secondary waves-effect btnBack"
|
|
||||||
id="btnBack">Cancel</button>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@ -34,8 +76,27 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- end -->
|
<!-- end -->
|
||||||
|
|
||||||
<script>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div id="full-width-modal-emp-list" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="fullWidthModalLabel" aria-hidden="true">
|
||||||
|
<div class="modal-dialog modal-full-width">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h4 class="modal-title" id="fullWidthModalLabel">Preview<span id="title_header_name"></span></h4>
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body" id="Preview_data">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
</div>
|
||||||
|
</div><!-- /.modal-content -->
|
||||||
|
</div><!-- /.modal-dialog -->
|
||||||
|
</div><!-- /.modal -->
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$("#tpa_general_form").submit(function(events) {
|
$("#tpa_general_form").submit(function(events) {
|
||||||
@ -95,8 +156,7 @@ $(document).ready(function () {
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('.loader').fadeOut();
|
$('.loader').fadeOut();
|
||||||
$('.loader-mask').delay(350).fadeOut('slow');
|
$('.loader-mask').delay(350).fadeOut('slow');
|
||||||
toastr.warning('Something Wrong!', 'warning');
|
console.log('Something Wrong!', 'warning'); }, 1000);
|
||||||
}, 1000);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -133,4 +193,78 @@ function validateForm() {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function PreviewImage() {
|
||||||
|
var oFReader = new FileReader();
|
||||||
|
oFReader.readAsDataURL(document.getElementById("tpa_logo").files[0]);
|
||||||
|
|
||||||
|
oFReader.onload = function(oFREvent) {
|
||||||
|
document.getElementById("uploadPreview").src = oFREvent.target.result;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
function PreviewImage2() {
|
||||||
|
var oFReader = new FileReader();
|
||||||
|
oFReader.readAsDataURL(document.getElementById("fc").files[0]);
|
||||||
|
|
||||||
|
oFReader.onload = function(oFREvent) {
|
||||||
|
document.getElementById("uploadPreview2").src = oFREvent.target.result;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
function PreviewImage3() {
|
||||||
|
var oFReader = new FileReader();
|
||||||
|
oFReader.readAsDataURL(document.getElementById("bc").files[0]);
|
||||||
|
|
||||||
|
oFReader.onload = function(oFREvent) {
|
||||||
|
document.getElementById("uploadPreview3").src = oFREvent.target.result;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$('#preview').click(function() {
|
||||||
|
var ecardContent = $('#ecard_content').val();
|
||||||
|
$('#Preview_data').html(ecardContent);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// $(document).ready(function() {
|
||||||
|
// $('#preview').click(function() {
|
||||||
|
// // Get the value from the textarea
|
||||||
|
// var ecardContent = $('#ecard_content').val();
|
||||||
|
|
||||||
|
|
||||||
|
// var filename_front = $('#fc').val().split('\\').pop();
|
||||||
|
// var original_string_front = '{FRONT_CARD}';
|
||||||
|
// var replace_string_front = '<?= isset($tpa['front_card']) && !empty($tpa['front_card']) ? base_url() . "public/uploads/template_bg/" . $tpa['front_card'] : "" ?>';
|
||||||
|
// ecardContent = ecardContent.replace(original_string_front, replace_string_front);
|
||||||
|
|
||||||
|
// console.log(ecardContent);
|
||||||
|
|
||||||
|
|
||||||
|
// var filename_back = $('#fc').val().split('\\').pop();
|
||||||
|
// var original_string_back = '{BACK_CARD}';
|
||||||
|
// var replace_string_back = '<?= isset($tpa['back_card']) && !empty($tpa['back_card']) ? base_url() . "public/uploads/template_bg/" . $tpa['back_card'] : "" ?>';
|
||||||
|
// ecardContent = ecardContent.replace(original_string_back, replace_string_back);
|
||||||
|
|
||||||
|
// // console.log(ecardContent)
|
||||||
|
|
||||||
|
// // Open a new window for printing
|
||||||
|
// var printWindow = window.open('', '_blank');
|
||||||
|
|
||||||
|
// // Insert the textarea value into the new window
|
||||||
|
// printWindow.document.write('<html><head><title>Preview Page</title></head><body>');
|
||||||
|
// printWindow.document.write(ecardContent); // Use <pre> tag to preserve formatting
|
||||||
|
// printWindow.document.write('</body></html>');
|
||||||
|
|
||||||
|
// // Trigger the print functionality
|
||||||
|
// printWindow.print();
|
||||||
|
// printWindow.close();
|
||||||
|
// });
|
||||||
|
// });
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@ -14,6 +14,7 @@ table.dataTable tbody td {
|
|||||||
<div class="table-rep-plugin">
|
<div class="table-rep-plugin">
|
||||||
<div class="table-responsive" data-pattern="priority-columns">
|
<div class="table-responsive" data-pattern="priority-columns">
|
||||||
<table id="tech-companies-1" class="table table-striped">
|
<table id="tech-companies-1" class="table table-striped">
|
||||||
|
|
||||||
<thead class="bg-light">
|
<thead class="bg-light">
|
||||||
<?php foreach ($thead as $header): ?>
|
<?php foreach ($thead as $header): ?>
|
||||||
<th><?php echo $header; ?></th>
|
<th><?php echo $header; ?></th>
|
||||||
@ -36,3 +37,36 @@ table.dataTable tbody td {
|
|||||||
|
|
||||||
</div> <!-- end .table-rep-plugin-->
|
</div> <!-- end .table-rep-plugin-->
|
||||||
</div> <!-- end .responsive-table-plugin-->
|
</div> <!-- end .responsive-table-plugin-->
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
$('#tech-companies-1').DataTable({
|
||||||
|
// Enable sorting
|
||||||
|
"ordering": true,
|
||||||
|
|
||||||
|
// Enable filtering/search
|
||||||
|
"searching": true,
|
||||||
|
|
||||||
|
// Enable pagination
|
||||||
|
"paging": true,
|
||||||
|
|
||||||
|
// Set the number of records per page
|
||||||
|
"pageLength": 10, // Adjust as needed
|
||||||
|
|
||||||
|
// Define the initial sorting order (optional)
|
||||||
|
"order": [[ 0, "asc" ]], // Sort by the first column in ascending order
|
||||||
|
|
||||||
|
// Customization for the pagination buttons (optional)
|
||||||
|
"language": {
|
||||||
|
"paginate": {
|
||||||
|
"first": "First",
|
||||||
|
"last": "Last",
|
||||||
|
"next": "Next",
|
||||||
|
"previous": "Previous"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
BIN
public/assets/images/New-india-back.jpg
Normal file
|
After Width: | Height: | Size: 156 KiB |
BIN
public/assets/images/New-india-front.jpg
Normal file
|
After Width: | Height: | Size: 189 KiB |
BIN
public/assets/images/New_India_Assurance.png
Normal file
|
After Width: | Height: | Size: 308 KiB |
BIN
public/assets/images/bg22.jpg
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
public/assets/images/icici-back.jpg
Normal file
|
After Width: | Height: | Size: 31 KiB |
BIN
public/assets/images/icici-front.jpg
Normal file
|
After Width: | Height: | Size: 238 KiB |
BIN
public/assets/images/insr.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
public/assets/images/logo.png
Normal file
|
After Width: | Height: | Size: 224 KiB |
BIN
public/assets/images/mdi.jpg
Normal file
|
After Width: | Height: | Size: 57 KiB |
BIN
public/assets/images/qr.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
62
writable/e_card_template/phs_tpa.html
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
<body>
|
||||||
|
|
||||||
|
<div style="display: flex;justify-content:center;gap: 10px;">
|
||||||
|
<div style="border: 1px solid black;max-height: 250px;width: 400px;background-image: url({FRONT_CARD});background-size: 100% 100%;position: relative;">
|
||||||
|
<div style="height: 50px;width: 100px;position: absolute;top: 20px;right: 40px;">
|
||||||
|
<img src="../image/niva.png" alt="" width="100px" height="50px" style="object-fit: fill;">
|
||||||
|
</div>
|
||||||
|
<table style="width: 100%;font-family: sans-serif;font-size: 14px;margin-left: 20px;margin-top: 55px;line-height: 19px;">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>Haamira Banu</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="width: auto;"><b>Xoriant Solutions Pvt Ltd</b></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><span>Dob : 02/05/2000</span><span style="padding-left: 40px;">EMP ID : 73496</span></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>PHS ID : MBHI CHE 38728183 XSP E</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Valid upto : 31/01/2024</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div style="border: 1px solid black;min-height: 250px;width: 400px;border: none;"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="display: flex;justify-content: space-around;justify-content: center;margin-top: 20px;">
|
||||||
|
|
||||||
|
<div style="border: 1px solid black;min-height: 450px;width: 800px;padding: 5px 5px 10px 5px ;">
|
||||||
|
<div style="font-family: sans-serif;line-height: 15px;">
|
||||||
|
<div style="font-size: 20px;font-weight: 600;margin-top: 10px;text-align: center;"><b>PARAMOUNT HEALTH SERVICES AND INSURANCE TPA PRIVATE.LTD</b></div>
|
||||||
|
<div style="font-size: 15px;font-weight: 500;text-align: center;margin-top: 10px;">Plot No:A42,Road no-28,M.I.D.C.industrial area,Ram Nagar,Wagle Estate,Thane(W) - 400 604</div>
|
||||||
|
</div>
|
||||||
|
<div style="border: 1px solid black;text-align: center;font-size: 16px;font-family: sans-serif;padding: 10px;margin-top: 10px;margin-left: 40px;margin-right: 40px;line-height: 25px;">Cashless Access to Network Hospitals can only be obtained <br> When accompanied with the Authorization letter issued by PHS</div>
|
||||||
|
<h2 style="font-family: sans-serif;text-align: center;margin: 5px;margin-bottom: 10px;">24 Hours Helpline - Mumbai:(022)-6662 0808</h2>
|
||||||
|
|
||||||
|
<div style="text-align: center;font-size: 17px;font-family: sans-serif;margin: 20px 20px;line-height: 25px;">
|
||||||
|
<b> Toll Free no -</b> 1800 22 6655 (Admission preferably)<br>Website :WWW.paramounttpa.com Email : contact.phs@paramounttpa.com
|
||||||
|
</div>
|
||||||
|
<div style="display: flex;justify-content: center;">
|
||||||
|
<table style="border-spacing:50px 10px;">
|
||||||
|
<tr>
|
||||||
|
<td><img src="../image/1 android.png" alt="" width="170px" height="135px"></td>
|
||||||
|
<td style="font-family: sans-serif;display: flex;align-items: start;font-size: 22px;"><b>Mobile App</b></td>
|
||||||
|
<td><img src="../image/1-ios.png" alt="" width="150px" height="140px"></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div style="text-align: center;font-family: sans-serif;font-size: 17px;line-height: 25px;">
|
||||||
|
please Quote Your PHS ID No.For HELP <br>Immediate intimation to PHS is a must in case of Capitalization
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
119
writable/e_card_template/vh_tpa.html
Normal file
@ -0,0 +1,119 @@
|
|||||||
|
<body>
|
||||||
|
|
||||||
|
<div style="display: flex;justify-content: center;gap: 10px; width:840px;margin:0 auto 15px; page-break-after: auto;">
|
||||||
|
|
||||||
|
<div style="border: 1px solid black;width: 400px;max-height: 300px;background: url('{FRONT_CARD}');background-size: 100% 100%;padding: 10px;">
|
||||||
|
|
||||||
|
<div style="display: flex;">
|
||||||
|
<div><img src="{INSURER_LOGO}" alt="" width="60px"
|
||||||
|
width="60px" style="object-fit: fill;;"></div>
|
||||||
|
<div style="text-align: center;font-family: sans-serif;font-weight: 600;margin-top: 10px;"><span>THE NEW
|
||||||
|
INDIA ASSURANCE CO.LTD.</span> <br><span style="font-size: 15px;">GOOD HEALTH MEDICLAIM
|
||||||
|
POLICY</span></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<table
|
||||||
|
style="font-family: sans-serif;font-size: 14px;width: 100%;margin-top: 20px;margin-left: 20px;line-height: 20px;">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>MDID : {TPA_ID}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2"><b>{NAME}</b></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Certificate No : {UHID}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><span>Sex : {GENDER} </span> <span style="margin-left: 30px;"> Date of Birth : {DOB}</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2"><b>{SELF_NAME}</b></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Valid form :{POLICY_DATE}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
<table style="width: 100%;text-align: center;font-size: 11px;">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>General & Claim Enquiry Helpline</td>
|
||||||
|
<td>Cashless Enquiry helpline</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
<table style="font-size: 11px;width: 100%;text-align: center;">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="border: 1px solid black;">Toll Free : 1800-209-7777 <br>Email :
|
||||||
|
citibank_chennai@mdindia.com</td>
|
||||||
|
<td style="border: 1px solid black;">Toll Free : 1800-209-7800 <br>Email:
|
||||||
|
authorisation@mdindia.com</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<div style="font-size: 14px;text-align: center;">CITI MDIndia branch contact</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<table style="text-align: center;width: 100%;font-size: 12px;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th style="border: 1px solid black;">Center</th>
|
||||||
|
<th style="border: 1px solid black;">Ph.No/Fax.No.</th>
|
||||||
|
<th style="border: 1px solid black;">Center</th>
|
||||||
|
<th style="border: 1px solid black;">Ph.No/Fax.No.</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="border: 1px solid black;">Chennai</td>
|
||||||
|
<td style="border: 1px solid black;">9381819401</td>
|
||||||
|
<td style="border: 1px solid black;">Delhi</td>
|
||||||
|
<td style="border: 1px solid black;">9310596976</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="border: 1px solid black;">Chennai</td>
|
||||||
|
<td style="border: 1px solid black;">9381819501</td>
|
||||||
|
<td style="border: 1px solid black;">Mumbai</td>
|
||||||
|
<td style="border: 1px solid black;">9320373542</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="border: 1px solid black;">Hyderabad</td>
|
||||||
|
<td style="border: 1px solid black;">9390838023</td>
|
||||||
|
<td style="border: 1px solid black;">Pune</td>
|
||||||
|
<td style="border: 1px solid black;">9371644536</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="border: 1px solid black;">Bangalore</td>
|
||||||
|
<td style="border: 1px solid black;">9341555665</td>
|
||||||
|
<td style="border: 1px solid black;">Kolkata</td>
|
||||||
|
<td style="border: 1px solid black;">9333441389</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h6 style="margin: 5px;">TERMS AND CONDITIONS</h6>
|
||||||
|
<ol style="font-size: 11px;padding-left: 15px;margin-top: 0px;">
|
||||||
|
<li>Pre authorisation is compulsary from tpa prior to planned admission within 24hours for
|
||||||
|
emergencies.</li>
|
||||||
|
<li>Admission for Investigation/Evaluation Not covered.</li>
|
||||||
|
<li>All terms and conditions of the policy would be applicable</li>
|
||||||
|
<li>cashless hospitalisation in network hospitals can be obtained in conjunction with this card.an
|
||||||
|
authorisation letter issued by tpa and photo identification and such as Voters ID,Driver
|
||||||
|
Licence,Passport,etc.</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||