MERGE_CODE : RV

This commit is contained in:
VENKATESHWARAN 2025-01-08 15:38:19 +05:30
commit f53e8f970e
27 changed files with 851 additions and 1033 deletions

View File

@ -862,21 +862,21 @@ class ClientController extends AdminController
$data['created_by'] = get_session_userid(); $data['created_by'] = get_session_userid();
$insert = $this->clientBranchModel->insert($data); $insert = $this->clientBranchModel->insert($data);
if ($insert) { // if ($insert) {
for ($i = 0; $i < count($this->request->getPost('name')); $i++) { // for ($i = 0; $i < count($this->request->getPost('name')); $i++) {
// Prepare data to insert // // Prepare data to insert
$data = [ // $data = [
'contact_type' => 'client', // 'contact_type' => 'client',
'ref_id' => $insert, // 'ref_id' => $insert,
'created_by' => get_session_userid(), // 'created_by' => get_session_userid(),
'name' => $this->request->getPost('name')[$i], // 'name' => $this->request->getPost('name')[$i],
'email' => $this->request->getPost('email')[$i], // 'email' => $this->request->getPost('email')[$i],
'mobile' => $this->request->getPost('mobile')[$i], // 'mobile' => $this->request->getPost('mobile')[$i],
'designation' => $this->request->getPost('designation')[$i] // 'designation' => $this->request->getPost('designation')[$i]
]; // ];
$contacts = $this->levelContactModel->insert($data); // $contacts = $this->levelContactModel->insert($data);
} // }
} // }
if ($insert) { if ($insert) {
$branchData = $this->clientBranchModel->where('client_id', $this->request->getPost('client_id'))->findAll(); $branchData = $this->clientBranchModel->where('client_id', $this->request->getPost('client_id'))->findAll();
@ -965,22 +965,22 @@ class ClientController extends AdminController
$this->myLogger->logme('error', 'Client branch EDITED by {data}', ['data' => get_session_userid()]); $this->myLogger->logme('error', 'Client branch EDITED by {data}', ['data' => get_session_userid()]);
if ($insert) { // if ($insert) {
$this->levelContactModel->where('ref_id', $id)->where('contact_type', 'client')->delete(); // $this->levelContactModel->where('ref_id', $id)->where('contact_type', 'client')->delete();
for ($i = 0; $i < count($this->request->getPost('name')); $i++) { // for ($i = 0; $i < count($this->request->getPost('name')); $i++) {
$data = [ // $data = [
'contact_type' => 'client', // 'contact_type' => 'client',
'ref_id' => $id, // 'ref_id' => $id,
'updated_by' => get_session_userid(), // 'updated_by' => get_session_userid(),
'name' => $this->request->getPost('name')[$i], // 'name' => $this->request->getPost('name')[$i],
'email' => $this->request->getPost('email')[$i], // 'email' => $this->request->getPost('email')[$i],
'mobile' => $this->request->getPost('mobile')[$i], // 'mobile' => $this->request->getPost('mobile')[$i],
'designation' => $this->request->getPost('designation')[$i] // 'designation' => $this->request->getPost('designation')[$i]
]; // ];
$contacts = $this->levelContactModel->insert($data); // $contacts = $this->levelContactModel->insert($data);
} // }
} // }
if ($insert) { if ($insert) {
$branchData = $this->clientBranchModel->where('client_id', $client_id)->findAll(); $branchData = $this->clientBranchModel->where('client_id', $client_id)->findAll();
@ -1151,18 +1151,18 @@ class ClientController extends AdminController
$base_policy = $this->request->getPost('base_policy'); $base_policy = $this->request->getPost('base_policy');
$insurerValue = (string) $this->request->getPost('insurer'); // $insurerValue = (string) $this->request->getPost('insurer');
list($insurerBranchId, $insurerId) = explode('-', $insurerValue); // list($insurerBranchId, $insurerId) = explode('-', $insurerValue);
$data['insurer_branch_id'] = $insurerBranchId; // $data['insurer_branch_id'] = $insurerBranchId;
$data['insurer_id'] = $insurerId; // $data['insurer_id'] = $insurerId;
$tpaValue = (string) $this->request->getPost('tpa'); // $tpaValue = (string) $this->request->getPost('tpa');
list($tpaBranchId, $tpaId) = explode('-', $tpaValue); // list($tpaBranchId, $tpaId) = explode('-', $tpaValue);
$data['tpa_branch_id'] = $tpaBranchId; // $data['tpa_branch_id'] = $tpaBranchId;
$data['client_id'] = $client_id; $data['client_id'] = $client_id;
$data['tpa_id'] = $tpaId; // $data['tpa_id'] = $tpaId;
$data['policy_type_id'] = $this->request->getPost('policy_type_id'); $data['policy_type_id'] = $this->request->getPost('policy_type_id');
$data['policy_no'] = $this->request->getPost('policy_no'); $data['policy_no'] = $this->request->getPost('policy_no');
// $data['policy_start_date'] = change_date_format($this->request->getPost('policy_start_date'), 'd-m-Y', 'Y-m-d'); // $data['policy_start_date'] = change_date_format($this->request->getPost('policy_start_date'), 'd-m-Y', 'Y-m-d');
@ -1185,12 +1185,12 @@ class ClientController extends AdminController
$data['inception_type'] = $this->request->getPost('inception_type') ? 2 : 1; $data['inception_type'] = $this->request->getPost('inception_type') ? 2 : 1;
$data['enrolment_visibility'] = $this->request->getPost('enrolment_visibility') ? 1 : 0; $data['enrolment_visibility'] = $this->request->getPost('enrolment_visibility') ? 1 : 0;
$data['client_branch_id'] = $this->request->getPost('client_branch_id'); $data['client_branch_id'] = $this->request->getPost('client_branch_id');
$data['cd_ac_pk'] = $this->request->getPost('cd_ac_no'); // $data['cd_ac_pk'] = $this->request->getPost('cd_ac_no');
$data['gst'] = $this->request->getPost('gst'); $data['gst'] = $this->request->getPost('gst');
$data['disclaimer'] = $this->request->getPost('disclaimer'); $data['disclaimer'] = $this->request->getPost('disclaimer');
$data['policy_start_date'] = change_date_format($this->request->getPost('policy_start_date'), 'd-m-Y', 'Y-m-d'); $data['policy_start_date'] = change_date_format($this->request->getPost('policy_start_date'), 'd-m-Y', 'Y-m-d');
$data['policy_end_date'] = change_date_format($this->request->getPost('policy_end_date'), 'd-m-Y', 'Y-m-d'); $data['policy_end_date'] = change_date_format($this->request->getPost('policy_end_date'), 'd-m-Y', 'Y-m-d');
$data['is_member_modify_allowed'] = $this->request->getPost('is_member_modify_allowed') ? 1 : 0; // $data['is_member_modify_allowed'] = $this->request->getPost('is_member_modify_allowed') ? 1 : 0;
if ($data['inception_type'] == 2) { if ($data['inception_type'] == 2) {
$data['open_date'] = change_date_format($this->request->getPost('open_date'), 'd-m-Y', 'Y-m-d'); $data['open_date'] = change_date_format($this->request->getPost('open_date'), 'd-m-Y', 'Y-m-d');
$data['close_date'] = change_date_format($this->request->getPost('close_date'), 'd-m-Y', 'Y-m-d'); $data['close_date'] = change_date_format($this->request->getPost('close_date'), 'd-m-Y', 'Y-m-d');

View File

@ -111,12 +111,12 @@ class DashboardController extends AdminController
->join('auth_history', 'employees.id = auth_history.user_id AND "employee" = auth_history.user_type', 'left') ->join('auth_history', 'employees.id = auth_history.user_id AND "employee" = auth_history.user_type', 'left')
->findAll(); ->findAll();
$pendingActionsController = new PendingActionsController; // $pendingActionsController = new PendingActionsController;
$pendingActionsData = $pendingActionsController->getPendingActionsForDashBoard(); // $pendingActionsData = $pendingActionsController->getPendingActionsForDashBoard();
$businessTeamData = $this->policyTransactionModel->getBusinessReportList(); // $businessTeamData = $this->policyTransactionModel->getBusinessReportList();
$financeTeamData = $this->policyTransactionModel->getFinanceReportList(); // $financeTeamData = $this->policyTransactionModel->getFinanceReportList();
$businessTeamStatusData = $this->data_construct_for_bds($businessTeamData); // $businessTeamStatusData = $this->data_construct_for_bds($businessTeamData);
$financeTeamStatusData = $this->data_construct_for_bds($financeTeamData); // $financeTeamStatusData = $this->data_construct_for_bds($financeTeamData);
$groupedData = []; $groupedData = [];
@ -207,14 +207,14 @@ class DashboardController extends AdminController
$session = \Config\Services::session(); $session = \Config\Services::session();
$session->set('enrollment_data', json_encode($data)); $session->set('enrollment_data', json_encode($data));
// echo "<pre>"; // echo "<pre>";
$data['pendingActionsData'] = $pendingActionsData; // $data['pendingActionsData'] = $pendingActionsData;
$data['businessTeamCount'] = count($businessTeamData) ?? 0; // $data['businessTeamCount'] = count($businessTeamData) ?? 0;
$data['financeTeamCount'] = count($financeTeamData) ?? 0; // $data['financeTeamCount'] = count($financeTeamData) ?? 0;
$data['businessTeamStatusData'] = $businessTeamStatusData; // $data['businessTeamStatusData'] = $businessTeamStatusData;
$data['financeTeamStatusData'] = $financeTeamStatusData; // $data['financeTeamStatusData'] = $financeTeamStatusData;
$data['policyStatus'] = $this->policyStatus; // $data['policyStatus'] = $this->policyStatus;
$data['colorShades'] = $this->colorShades; // $data['colorShades'] = $this->colorShades;
// print_r($data);die; // dd($data);die;
$data['page_name'] = 'Dashboard'; $data['page_name'] = 'Dashboard';

View File

@ -291,7 +291,8 @@ class EmployeeController extends AdminController
//for TPA/insurer upload //for TPA/insurer upload
$data['events'] = ['inception' => 'Inception (Employee + Dependents)', 'missed_inception' => 'Missed Inception (Employee + Dependents)', 'addition' => 'Addition (Employee + Dependents)', 'dependent_addition' => 'Dependent Addition (Only Dependents)', 'deletion' => 'Deletion', 'correction' => 'Correction', 'si_enhancement' => 'SI Enhancement']; $data['events'] = ['inception' => 'Inception (Employee + Dependents)', 'missed_inception' => 'Missed Inception (Employee + Dependents)', 'addition' => 'Addition (Employee + Dependents)', 'dependent_addition' => 'Dependent Addition (Only Dependents)', 'deletion' => 'Deletion', 'correction' => 'Correction', 'si_enhancement' => 'SI Enhancement'];
//for inception upload //for inception upload
$data['actions'] = ['inception' => 'Inception (Employee + Dependents)', 'missed_inception' => 'Missed Inception (Employee + Dependents)', 'addition' => 'Addition (Employee + Dependents)', 'dependent_addition' => 'Dependent Addition (Only Dependents)', 'deletion' => 'Deletion', 'correction' => 'Correction', 'si_enhancement' => 'SI Enhancement','enrollment' => 'Enrolment']; // $data['actions'] = ['inception' => 'Inception (Employee + Dependents)', 'missed_inception' => 'Missed Inception (Employee + Dependents)', 'addition' => 'Addition (Employee + Dependents)', 'dependent_addition' => 'Dependent Addition (Only Dependents)', 'deletion' => 'Deletion', 'correction' => 'Correction', 'si_enhancement' => 'SI Enhancement','enrollment' => 'Enrolment'];
$data['actions'] = ['enrollment' => 'Enrolment'];
$data['import_or_export'] = ['import' => 'Import', 'export' => 'Export']; $data['import_or_export'] = ['import' => 'Import', 'export' => 'Export'];
$data['insurer_or_tpa'] = ['insurer' => 'Insurer', 'tpa' => 'TPA']; $data['insurer_or_tpa'] = ['insurer' => 'Insurer', 'tpa' => 'TPA'];

View File

@ -19,8 +19,8 @@ class LoginController extends BaseController
// set_session_data($session_data); // set_session_data($session_data);
// $isLoggedIn = check_session(); // $isLoggedIn = check_session();
$isLoggedIn = check_session(); $isLoggedIn = check_session();
$hasCookie = check_cookie();
if ($isLoggedIn) { if ($isLoggedIn || $hasCookie) {
return redirect()->to(base_url('/dashboard/view')); return redirect()->to(base_url('/dashboard/view'));
} }
return view('login'); return view('login');
@ -29,7 +29,6 @@ class LoginController extends BaseController
public function receiveGoogleOAuthResponse() public function receiveGoogleOAuthResponse()
{ {
$UserModel = new UserModel(); $UserModel = new UserModel();
//echo 'DONE';die(); //echo 'DONE';die();
if ($this->request->getGet('code')) { if ($this->request->getGet('code')) {
@ -52,7 +51,10 @@ class LoginController extends BaseController
'userProfile' => $value->picture, 'userProfile' => $value->picture,
'user_team' => $user_team, 'user_team' => $user_team,
]; ];
$path = getenv('cookie.Path');
$domain = getenv('cookie.Domain');
$https = getenv('ccokie.secure');
setcookie('session_data', json_encode($session_data), time() + 12 * 60 * 60, $path, $domain, $https, true);
set_session_data($session_data); set_session_data($session_data);
log_message('error', 'Set The UserId : `'. $user->id .'` in Session'); log_message('error', 'Set The UserId : `'. $user->id .'` in Session');
@ -87,7 +89,9 @@ class LoginController extends BaseController
public function logout() public function logout()
{ {
$path = getenv('cookie.Path');
session()->destroy(); session()->destroy();
setcookie('session_data', '', time() - 3600, $path);
return redirect()->to(base_url('login')); return redirect()->to(base_url('login'));
} }

View File

@ -9,8 +9,7 @@ class AuthMVC implements FilterInterface
{ {
public function before(RequestInterface $request, $arguments = null) public function before(RequestInterface $request, $arguments = null)
{ {
if (!check_session()) { if (!check_session() && !check_cookie()) {
return redirect()->to(base_url('/login')); return redirect()->to(base_url('/login'));
} }

View File

@ -1,6 +1,6 @@
<?php <?php
// File: app/Helpers/oauth_helper.php // File: app/Helpers/oauth_helper.php
// require 'vendor/autoload.php';
use Google\Client as GoogleClient; use Google\Client as GoogleClient;
use Google\Service\Oauth2; use Google\Service\Oauth2;

View File

@ -1,5 +1,40 @@
<?php <?php
use App\Models\UserModel;
if(!function_exists('check_cookie')){
function check_cookie(){
$UserModel = new UserModel();
if(isset($_COOKIE['session_data'])){
$value = (array)json_decode($_COOKIE['session_data']);
$user = $UserModel->getUserByEmail($value['userData']->email);
if($user){
if($user->is_active !== '0'){
$user_team = $UserModel->getUserTeamsByUserID($user->id);
// dd($user_team);
$session_data = [
'isLoggedIn' => True,
'userid' => $user->id,
'userData' => $user,
'userProfile' => $value['userProfile'],
'user_team' => $user_team,
];
set_session_data($session_data);
// $this->getUserDeviceInfo($user->id, 'NhanceUser');
// return redirect()->to(base_url('/dashboard/view'));
return true;
}
// $session_data = (array)json_decode($_COOKIE['session_data']);
// set_session_data($session_data);
}
}else{
return false;
}
}
}
if (!function_exists('check_session')) { if (!function_exists('check_session')) {
function check_session() function check_session()
@ -148,9 +183,3 @@ if (!function_exists('user_team')) {
return $session->get('user_team'); return $session->get('user_team');
} }
} }

View File

@ -188,35 +188,36 @@ body {
<br> <br>
<ul class="nav nav-pills navtab-bg"> <ul class="nav nav-pills navtab-bg">
<li class="nav-item"> <!-- <li class="nav-item">
<a href="#pending-actions-dash-tab" data-toggle="tab" aria-expanded="false" <a href="#pending-actions-dash-tab" data-toggle="tab" aria-expanded="false"
class="nav-link px-3 py-2 active" id="pending_actions_tab"> class="nav-link px-3 py-2 active" id="pending_actions_tab">
<span class="mr-1"><i class="mdi mdi-contacts"></i></span> <span class="mr-1"><i class="mdi mdi-contacts"></i></span>
<span class="d-none d-sm-inline-block">Pending Actions</span> <span class="d-none d-sm-inline-block">Pending Actions</span>
</a> </a>
</li> </li> -->
<li class="nav-item"> <li class="nav-item">
<a href="#enrollment-dash-tab" data-toggle="tab" aria-expanded="true" class="nav-link px-3 py-2" id="enrollemnt_tab"> <a href="#enrollment-dash-tab" data-toggle="tab" aria-expanded="true"
class="nav-link px-3 py-2 active" id="enrollemnt_tab">
<span class="mr-1"><i class="fa fa-file"></i></span> <span class="mr-1"><i class="fa fa-file"></i></span>
<span class="d-none d-sm-inline-block">Enrolment</span> <span class="d-none d-sm-inline-block">Enrolment</span>
</a> </a>
</li> </li>
<?php if(get_role_id() == 1 || get_role_id() == 5 && (in_array(FINANCE_TEAM_ID, user_team()) || in_array(MANAGEMENT_TEAM_ID, user_team()) || in_array(MANAGEMENT_TEAM_ID, user_team()))) { ?> <?php // if(get_role_id() == 1 || get_role_id() == 5 && (in_array(FINANCE_TEAM_ID, user_team()) || in_array(MANAGEMENT_TEAM_ID, user_team()) || in_array(MANAGEMENT_TEAM_ID, user_team()))) { ?>
<li class="nav-item"> <!-- <li class="nav-item">
<a href="#bds-dash-tab" data-toggle="tab" aria-expanded="true" class="nav-link px-3 py-2" id="bds_tab"> <a href="#bds-dash-tab" data-toggle="tab" aria-expanded="true" class="nav-link px-3 py-2" id="bds_tab">
<span class="mr-1"><i class="fa fa-file"></i></span> <span class="mr-1"><i class="fa fa-file"></i></span>
<span class="d-none d-sm-inline-block">BDS</span> <span class="d-none d-sm-inline-block">BDS</span>
</a> </a>
</li> </li> -->
<?php } ?> <?php //} ?>
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
<?php include('endorsement_dash.php'); ?> <!-- <?php //include('endorsement_dash.php'); ?> -->
<?php include('bds_dash.php'); ?> <!-- <?php //include('bds_dash.php'); ?> -->
<?php include('enrollment_dash.php'); ?> <?php include('enrollment_dash.php'); ?>
</div> </div>
</div> </div>

View File

@ -70,7 +70,7 @@ input:checked + .slider:before {
<input type="hidden" name="client_id" id="client_id" /> <input type="hidden" name="client_id" id="client_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="entity_type_id">Entity Type <span <label for="entity_type_id">Entity Type <span
class="text-danger">*</span></label> class="text-danger">*</span></label>
<select class="form-control" id="entity_type" name="entity_type_id" required> <select class="form-control" id="entity_type" name="entity_type_id" required>
@ -87,14 +87,14 @@ input:checked + .slider:before {
<?php } ?> <?php } ?>
<?php } ?> <?php } ?>
</select> </select>
</div> </div> -->
<div class="form-group col-md-4"> <div class="form-group col-md-6">
<label for="client_name">Client Name<span <label for="client_name">Client Name<span
class="text-danger">*</span></label> class="text-danger">*</span></label>
<input type="text" class="form-control" id="client_name" <input type="text" class="form-control" id="client_name"
placeholder="Enter Client Name" value="<?= isset($client['client_name']) ? $client['client_name'] : '' ?>" name="client_name" required> placeholder="Enter Client Name" value="<?= isset($client['client_name']) ? $client['client_name'] : '' ?>" name="client_name" required>
</div> </div>
<div class="form-group col-md-4"> <div class="form-group col-md-6">
<label for="short_name">Client Short Name<span <label for="short_name">Client Short Name<span
class="text-danger">*</span></label> class="text-danger">*</span></label>
<input type="text" class="form-control" id="short_name" <input type="text" class="form-control" id="short_name"
@ -102,16 +102,16 @@ input:checked + .slider:before {
</div> </div>
</div> </div>
<div class="form-row"> <!-- <div class="form-row"> -->
<div class="form-group col-md-4"> <!-- <div class="form-group col-md-4">
<label for="pan">PAN<span class="text-danger">*</span></label> <label for="pan">PAN<span class="text-danger">*</span></label>
<input type="text" class="form-control" id="pan" placeholder="Enter PAN Number" data-parsley-error-message="Invalid PAN Number. Example: ABCDE1234F" value="<?= isset($client['pan']) ? $client['pan'] : '' ?>" name="pan" data-parsley-trigger="change" data-parsley-pattern="^[A-Z]{5}[0-9]{4}[A-Z]$" required> <input type="text" class="form-control" id="pan" placeholder="Enter PAN Number" data-parsley-error-message="Invalid PAN Number. Example: ABCDE1234F" value="<?= isset($client['pan']) ? $client['pan'] : '' ?>" name="pan" data-parsley-trigger="change" data-parsley-pattern="^[A-Z]{5}[0-9]{4}[A-Z]$" required>
</div> </div> -->
<!-- <div class="form-group col-md-4"> <!-- <div class="form-group col-md-4">
<label for="gst">GST<span class="text-danger">*</span></label> <label for="gst">GST<span class="text-danger">*</span></label>
<input type="text" class="form-control" id="gst" placeholder="Enter GST Number" data-parsley-error-message="Invalid GST Number. Example: 12ABCDE1234F5Z6" value="<?= isset($client['gst']) ? $client['gst'] : '' ?>" name="gst" data-parsley-trigger="change" data-parsley-pattern="^\d{2}[A-Z]{5}\d{4}[A-Z]{1}[A-Z\d]{1}[Z]{1}[A-Z\d]{1}$" required> <input type="text" class="form-control" id="gst" placeholder="Enter GST Number" data-parsley-error-message="Invalid GST Number. Example: 12ABCDE1234F5Z6" value="<?= isset($client['gst']) ? $client['gst'] : '' ?>" name="gst" data-parsley-trigger="change" data-parsley-pattern="^\d{2}[A-Z]{5}\d{4}[A-Z]{1}[A-Z\d]{1}[Z]{1}[A-Z\d]{1}$" required>
</div> --> </div> -->
</div> <!-- </div> -->
<hr> <hr>
</div> </div>
<div class="form-row"> <div class="form-row">

View File

@ -85,19 +85,24 @@
<input type="hidden" name="branch_id_primarykey" id="branch_id_primarykey" /> <input type="hidden" name="branch_id_primarykey" id="branch_id_primarykey" />
<div class="form-group"> <div class="form-group">
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-6"> <div class="form-group col-md-4">
<label for="branch_name">Branch Name<span class="text-danger">*</span></label> <label for="branch_name">Branch Name<span class="text-danger">*</span></label>
<input type="text" class="form-control" id="branch_name" placeholder="Enter Branch Name" <input type="text" class="form-control" id="branch_name" placeholder="Enter Branch Name"
name="branch_name" required> name="branch_name" required>
</div> </div>
<div class="form-group col-md-6"> <div class="form-group col-md-4">
<label for="branch_code">Branch Code<span class="text-danger">*</span></label> <label for="branch_code">Branch Code<span class="text-danger">*</span></label>
<input type="text" class="form-control" id="branch_code" placeholder="Enter Branch Code" <input type="text" class="form-control" id="branch_code" placeholder="Enter Branch Code"
name="branch_code" onchange="setDefaultUnitValue(this)" required> name="branch_code" onchange="setDefaultUnitValue(this)" required>
</div> </div>
<div class="form-group col-md-4">
<label for="state">Units<span class="text-danger"></span></label>
<select id="selected" class="form-control" multiple="multiple" name="units[]" >
</select>
</div>
</div> </div>
<div class="form-row"> <!-- <div class="form-row">
<div class="form-group col-md-6"> <div class="form-group col-md-6">
<label for="address1">Address Line 1<span class="text-danger">*</span></label> <label for="address1">Address Line 1<span class="text-danger">*</span></label>
<input type="text" class="form-control" id="address1" name="address1" placeholder="Enter Address 1" required> <input type="text" class="form-control" id="address1" name="address1" placeholder="Enter Address 1" required>
@ -106,16 +111,16 @@
<label for="address2">Address Line 2<span class="text-danger"></span></label> <label for="address2">Address Line 2<span class="text-danger"></span></label>
<input type="text" class="form-control" id="address2" placeholder="Enter Address 2" name="address2"> <input type="text" class="form-control" id="address2" placeholder="Enter Address 2" name="address2">
</div> </div>
</div> </div> -->
<div class="form-row"> <!-- <div class="form-row">
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="state">State<span class="text-danger">*</span></label> <label for="state">State<span class="text-danger">*</span></label>
<select class="form-control" id="state" name="state" required> <select class="form-control" id="state" name="state" required>
<option value="">Select State</option> <option value="">Select State</option>
<?php foreach($state as $value) { ?> <?php // foreach($state as $value) { ?>
<option value="<?= $value['id'] ?>"><?= $value['state'] ?></option> <option value="<? // echo($value['id']) ?>"><? // echo($value['state']) ?></option>
<?php } ?> <?php // } ?>
</select> </select>
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
@ -132,30 +137,30 @@
<label for="gst">Pincode<span class="text-danger">*</span></label> <label for="gst">Pincode<span class="text-danger">*</span></label>
<input type="text" class="form-control" id="pincode" placeholder="Enter Pincode" name="pincode" required> <input type="text" class="form-control" id="pincode" placeholder="Enter Pincode" name="pincode" required>
</div> </div>
</div> </div> -->
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-4"> <!-- <div class="form-group col-md-4">
<label for="gst">GST<span class="text-danger">*</span></label> <label for="gst">GST<span class="text-danger">*</span></label>
<input type="text" name="gst" class="form-control" id="gst" placeholder="Enter GST Number" data-parsley-error-message="Invalid GST Number. Example: 12ABCDE1234F5Z6" data-parsley-trigger="change" data-parsley-pattern="^\d{2}[A-Z]{5}\d{4}[A-Z]{1}[A-Z\d]{1}[Z]{1}[A-Z\d]{1}$" required> <input type="text" name="gst" class="form-control" id="gst" placeholder="Enter GST Number" data-parsley-error-message="Invalid GST Number. Example: 12ABCDE1234F5Z6" data-parsley-trigger="change" data-parsley-pattern="^\d{2}[A-Z]{5}\d{4}[A-Z]{1}[A-Z\d]{1}[Z]{1}[A-Z\d]{1}$" required>
</div> </div> -->
<div class="form-group col-md-4"> <!-- <div class="form-group col-md-4">
<label for="state">Units<span class="text-danger"></span></label> <label for="state">Units<span class="text-danger"></span></label>
<select id="selected" class="form-control" multiple="multiple" name="units[]" > <select id="selected" class="form-control" multiple="multiple" name="units[]" >
</select> </select>
</div> </div> -->
<div class="form-group col-md-4"> <!-- <div class="form-group col-md-4">
<label class="switch" style="position: relative;top: 43px;left: 20px;"> <label class="switch" style="position: relative;top: 43px;left: 20px;">
<input id="sez" type="checkbox" name="sez"> <input id="sez" type="checkbox" name="sez">
<span class="slider round" style="height: 27px;"></span> <span class="slider round" style="height: 27px;"></span>
</label> </label>
<label for="inception_type" style="position: relative;bottom: 5px;left: 85px;">Enable SEZ</label> <label for="inception_type" style="position: relative;bottom: 5px;left: 85px;">Enable SEZ</label>
</div> </div> -->
</div> </div>
<hr> <hr>
<!--
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-6"> <div class="form-group col-md-6">
<label>Contact 1</label> <label>Contact 1</label>
@ -197,7 +202,7 @@
id="remove_btn">Remove</button> id="remove_btn">Remove</button>
</div> </div>
<div id="container"></div> <div id="container"></div> -->
</div> </div>
<div class="form-group text-right m-b-0"> <div class="form-group text-right m-b-0">

View File

@ -88,7 +88,7 @@ table.dataTable thead th {
<a href="javascript: void(0);" class="dropdown-toggle arrow-none btn btn-light btn-sm" data-toggle="dropdown"aria-expanded="false"><i class="mdi mdi-dots-horizontal"></i></a> <a href="javascript: void(0);" class="dropdown-toggle arrow-none btn btn-light btn-sm" data-toggle="dropdown"aria-expanded="false"><i class="mdi mdi-dots-horizontal"></i></a>
<div class="dropdown-menu dropdown-menu-right"> <div class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item" href="<?= base_url("client/list/"); ?><?= $row->id;?>"><i class="mdi mdi-pencil mr-2 text-muted font-18 vertical-middle"></i>Edit</a> <a class="dropdown-item" href="<?= base_url("client/list/"); ?><?= $row->id;?>"><i class="mdi mdi-pencil mr-2 text-muted font-18 vertical-middle"></i>Edit</a>
<a class="dropdown-item" href="<?= base_url("client/deposit/{$row->id}"); ?>"><i class="mdi mdi-cash mr-2 text-muted font-18 vertical-middle"></i>CD Transactions</a> <!-- <a class="dropdown-item" href="<?= base_url("client/deposit/{$row->id}"); ?>"><i class="mdi mdi-cash mr-2 text-muted font-18 vertical-middle"></i>CD Transactions</a> -->
<?php if(get_role_id() != 3 && get_role_id() != 4) { ?> <?php if(get_role_id() != 3 && get_role_id() != 4) { ?>
<a class="dropdown-item" data-id="<?= $row->id;?>" onclick="removeClient(this)"><i class="mdi mdi-delete mr-2 text-muted font-18 vertical-middle"></i>Delete</a> <a class="dropdown-item" data-id="<?= $row->id;?>" onclick="removeClient(this)"><i class="mdi mdi-delete mr-2 text-muted font-18 vertical-middle"></i>Delete</a>
<?php } ?> <?php } ?>

View File

@ -58,18 +58,18 @@ body {
<span class="d-none d-sm-inline-block">General</span> <span class="d-none d-sm-inline-block">General</span>
</a> </a>
</li> </li>
<li class="nav-item"> <!-- <li class="nav-item">
<a href="#KYC-DOC-tab" data-toggle="tab" aria-expanded="true" class="nav-link px-3 py-2" id="kyc_tab"> <a href="#KYC-DOC-tab" data-toggle="tab" aria-expanded="true" class="nav-link px-3 py-2" id="kyc_tab">
<span class="mr-1"><i class="fa fa-file"></i></span> <span class="mr-1"><i class="fa fa-file"></i></span>
<span class="d-none d-sm-inline-block">KYC Docs</span> <span class="d-none d-sm-inline-block">KYC Docs</span>
</a> </a>
</li> </li> -->
<li class="nav-item"> <!-- <li class="nav-item">
<a href="#RM-tab" data-toggle="tab" aria-expanded="true" class="nav-link px-3 py-2" id="RM_tab"> <a href="#RM-tab" data-toggle="tab" aria-expanded="true" class="nav-link px-3 py-2" id="RM_tab">
<span class="mr-1"><i class="mdi mdi-account-switch"></i></span> <span class="mr-1"><i class="mdi mdi-account-switch"></i></span>
<span class="d-none d-sm-inline-block"> Relationship Manager</span> <span class="d-none d-sm-inline-block"> Relationship Manager</span>
</a> </a>
</li> </li> -->
<li class="nav-item"> <li class="nav-item">
<a href="#branch-tab" data-toggle="tab" aria-expanded="false" class="nav-link px-3 py-2" id="branch_tab"> <a href="#branch-tab" data-toggle="tab" aria-expanded="false" class="nav-link px-3 py-2" id="branch_tab">
<span class="mr-1"><i class="mdi mdi-source-branch"></i></span> <span class="mr-1"><i class="mdi mdi-source-branch"></i></span>
@ -99,8 +99,8 @@ body {
<?php include('client_others_tab.php'); ?> <?php include('client_others_tab.php'); ?>
<?php include('notification.php'); ?> <?php include('notification.php'); ?>
<?php include('client_basic_info.php'); ?> <?php include('client_basic_info.php'); ?>
<?php include('client_kyc.php'); ?> <!-- <?php // include('client_kyc.php'); ?> -->
<?php include('client_rm.php'); ?> <!-- <?php // include('client_rm.php'); ?> -->
<?php include('client_branch.php'); ?> <?php include('client_branch.php'); ?>
<?php include('client_policy.php'); ?> <?php include('client_policy.php'); ?>
</div> </div>

View File

@ -1,12 +1,8 @@
<div class="tab-pane fade" id="police-tab"> <div class="tab-pane fade" id="police-tab">
<div class="row float-right" style="padding-bottom: 10px; position: relative;right: 13px;"> <div class="row float-right" style="padding-bottom: 10px; position: relative;right: 13px;">
<button type="button" id="BtnAdd" class="btn btn-primary waves-effect waves-light btnAdd btn-sm" <button type="button" id="BtnAdd" class="btn btn-primary waves-effect waves-light btnAdd btn-sm" style="position: relative;right: 10px;"><span class="fa fa-plus-square" aria-hidden="true" style="padding: 5px 10px;"></span>Add Policy</button>
style="position: relative;right: 10px;"><span class="fa fa-plus-square" aria-hidden="true" <!-- <button type="button" id="BtnAddSuccess" class="btn btn-success waves-effect waves-light BtnAddSuccess btn-sm" onclick="showModal()"><span class="fa fa-plus-square" aria-hidden="true" style="padding: 5px 10px;"></span>Add Policy From Lead</button> -->
style="padding: 5px 10px;"></span>Add Policy</button>
<button type="button" id="BtnAddSuccess" class="btn btn-success waves-effect waves-light BtnAddSuccess btn-sm"
onclick="showModal('lead_modal')"><span class="fa fa-plus-square" aria-hidden="true"
style="padding: 5px 10px;"></span>Add Policy From Lead</button>
</div> </div>
<div class="table-responsive" id="table_list"> <div class="table-responsive" id="table_list">
@ -80,12 +76,16 @@
<option value="" selected>Select Base Policy</option> <option value="" selected>Select Base Policy</option>
</select> </select>
</div> </div>
<div class="form-group col-md-4">
<label for="policy_no">Policy No<span class="text-danger">*</span></label>
<input value="" type="text" class="form-control" placeholder="Enter Policy Number " name="policy_no" id="policy_no" required>
</div>
</div> </div>
<div class="form-row" id="first" style="display: none;"> <div class="form-row" id="first" style="display: none;">
<div class="form-group col-md-4"> <!-- <div class="form-group col-md-4">
<label for="insurer">Insurer<span class="text-danger">*</span></label> <label for="insurer">Insurer<span class="text-danger">*</span></label>
<select class="form-control" id="insurer" name="insurer" required> <select class="form-control" id="insurer" name="insurer" required>
<option value="">Select Insurer</option> <option value="">Select Insurer</option>
@ -105,7 +105,7 @@
<?= $value['tpa_short_name'] . '-' . $value['branch_code'] ?></option> <?= $value['tpa_short_name'] . '-' . $value['branch_code'] ?></option>
<?php } ?> <?php } ?>
</select> </select>
</div> </div> -->
<div class="form-group col-md-4"> <div class="form-group col-md-4">
<label for="policy_no">Policy No<span class="text-danger">*</span></label> <label for="policy_no">Policy No<span class="text-danger">*</span></label>
@ -136,13 +136,12 @@
<div class="form-row" id="third" style="display: none; position: relative;top: 22px;"> <div class="form-row" id="third" style="display: none; position: relative;top: 22px;">
<div class="form-group col-md-4"> <!-- <div class="form-group col-md-4">
<label for="cd_ac_no">CD Account Number<span id="tpa_danger" <label for="cd_ac_no">CD Account Number<span id="tpa_danger" class="text-danger">*</span></label>
class="text-danger">*</span></label>
<select class="form-control" id="cd_ac_no" name="cd_ac_no" required> <select class="form-control" id="cd_ac_no" name="cd_ac_no" required>
<option value="">Select CD Account Number</option> <option value="">Select CD Account Number</option>
</select> </select>
</div> </div> -->
<div class="form-group col-md-4"> <div class="form-group col-md-4">
<label for="gst_no">GST ( % )<span id="tpa_danger" class="text-danger">*</span></label> <label for="gst_no">GST ( % )<span id="tpa_danger" class="text-danger">*</span></label>
@ -159,7 +158,7 @@
<label for="inception_type" style="position: relative;bottom: 5px;left: 85px;">Enable <label for="inception_type" style="position: relative;bottom: 5px;left: 85px;">Enable
Employee Enrolment Process</label> Employee Enrolment Process</label>
</div> </div>
<div class="form-row">
<div class="form-group col-md-4"> <div class="form-group col-md-4">
<label for="open_date">Open Date<span class="text-danger">*</span></label> <label for="open_date">Open Date<span class="text-danger">*</span></label>
<input value="" type="text" class="form-control dateofdata" <input value="" type="text" class="form-control dateofdata"
@ -178,22 +177,21 @@
placeholder="Enter Remainder Dates( eg, 28,29,30 )" name="reminder_date" placeholder="Enter Remainder Dates( eg, 28,29,30 )" name="reminder_date"
id="reminder_date"> id="reminder_date">
</div> </div>
</div>
<div class="form-group col-md-12"> <div class="form-group col-md-12">
<label for="disclaimer">Disclaimer<span class="text-danger">*</span></label> <label for="disclaimer">Disclaimer<span class="text-danger">*</span></label>
<textarea class="form-control" placeholder="Enter Disclaimer" name="disclaimer" <textarea class="form-control" placeholder="Enter Disclaimer" name="disclaimer"
id="disclaimer"></textarea> id="disclaimer"></textarea>
</div> </div>
<div class="form-group col-md-4"> <!-- <div class="form-group col-md-4">
<label class="switch" style="position: relative;top: 43px;left: 20px;"> <label class="switch" style="position: relative;top: 43px;left: 20px;">
<input id="policy_visibility" type="checkbox" name="enrolment_visibility" checked> <input id="policy_visibility" type="checkbox" name="enrolment_visibility" checked>
<span class="slider round" style="height: 27px;"></span> <span class="slider round" style="height: 27px;"></span>
</label> </label>
<label for="policy_visibility" style="position: relative;bottom: 5px;left: 85px;">Policy <label for="policy_visibility" style="position: relative;bottom: 5px;left: 85px;">Policy Visibilty in Enrollment App</label>
Visibilty in Enrollment App</label> </div> -->
</div>
<!-- <div class="form-group col-md-4"> <!-- <div class="form-group col-md-4">
<label class="switch" style="position: relative;top: 43px;left: 20px;"> <label class="switch" style="position: relative;top: 43px;left: 20px;">
@ -407,7 +405,7 @@ $(document).ready(function() {
let auto_si_menu = ''; let auto_si_menu = '';
if(item.policy_type_id == 2){ if(item.policy_type_id == 2){
auto_si_menu = `<a href="#" data-id="${item.id}" data-typeid="${item.policy_type_id}" class="dropdown-item" onclick="showModal('rack_rate_auto_si_modal'); checkCDAmountForBasePremium('${item.id}')"><i class="mdi mdi-autorenew mr-2 text-muted font-18 vertical-middle"></i>Auto SI</a>`; auto_si_menu = `<a href="#" data-id="${item.id}" data-typeid="${item.policy_type_id}" class="dropdown-item" onclick="showModal('rack_rate_auto_si_modal'); getRackRateSIAmountAndAutoSiDataForAutoSI('${item.id}')"><i class="mdi mdi-autorenew mr-2 text-muted font-18 vertical-middle"></i>Auto SI</a>`;
} }
@ -659,7 +657,7 @@ $("#policy_form").submit(function(event) {
let auto_si_menu = ''; let auto_si_menu = '';
if(item.policy_type_id == 2){ if(item.policy_type_id == 2){
auto_si_menu = `<a href="#" data-id="${item.id}" data-typeid="${item.policy_type_id}" class="dropdown-item" onclick="showModal('rack_rate_auto_si_modal'); checkCDAmountForBasePremium('${item.id}')"><i class="mdi mdi-autorenew mr-2 text-muted font-18 vertical-middle"></i>Auto SI</a>`; auto_si_menu = `<a href="#" data-id="${item.id}" data-typeid="${item.policy_type_id}" class="dropdown-item" onclick="showModal('rack_rate_auto_si_modal'); getRackRateSIAmountAndAutoSiDataForAutoSI('${item.id}')"><i class="mdi mdi-autorenew mr-2 text-muted font-18 vertical-middle"></i>Auto SI</a>`;
} }
policyTable += policyTable +=
@ -680,7 +678,6 @@ $("#policy_form").submit(function(event) {
<a href="#" data-id="${item.id}" id="${item.policy_id}" class="dropdown-item btnPolicyEdit"><i class="mdi mdi-lead-pencil mr-2 text-muted font-18 vertical-middle"></i>Edit</a> <a href="#" data-id="${item.id}" id="${item.policy_id}" class="dropdown-item btnPolicyEdit"><i class="mdi mdi-lead-pencil mr-2 text-muted font-18 vertical-middle"></i>Edit</a>
<a href="#" data-id="${item.id}" id="${search_term}" data-typeid="${item.policy_type_id}" class="dropdown-item btnPolicyMaster" data-toggle="modal"><i class="mdi mdi-wrench mr-2 text-muted font-18 vertical-middle"></i>Terms</a> <a href="#" data-id="${item.id}" id="${search_term}" data-typeid="${item.policy_type_id}" class="dropdown-item btnPolicyMaster" data-toggle="modal"><i class="mdi mdi-wrench mr-2 text-muted font-18 vertical-middle"></i>Terms</a>
<a href="#" data-id="${item.id}" id="${search_term}" data-typeid="${item.policy_type_id}" class="dropdown-item btnPolicyModel" data-toggle="modal" data-target="#bs-example-modal-lg"><i class="mdi mdi-book-open mr-2 text-muted font-18 vertical-middle"></i>Rack Rate</a> <a href="#" data-id="${item.id}" id="${search_term}" data-typeid="${item.policy_type_id}" class="dropdown-item btnPolicyModel" data-toggle="modal" data-target="#bs-example-modal-lg"><i class="mdi mdi-book-open mr-2 text-muted font-18 vertical-middle"></i>Rack Rate</a>
<a href="#" data-id="${item.id}" data-typeid="${item.policy_type_id}" class="dropdown-item" onclick="showModal('rack_rate_auto_si_modal'); checkCDAmountForBasePremium('${item.id}')"><i class="mdi mdi-autorenew mr-2 text-muted font-18 vertical-middle"></i>Auto SI</a>
${auto_si_menu}`; ${auto_si_menu}`;
// Conditionally render the delete option based on the role // Conditionally render the delete option based on the role

View File

@ -58,13 +58,14 @@ option:disabled {
<label>Event</label> <br /> <label>Event</label> <br />
<select name="upload-action-type" class="form-control" <select name="upload-action-type" class="form-control"
id="upload-action-type" required> id="upload-action-type" required>
<option value="">Select</option> <!-- <option value="">Select</option> -->
<?php <?php
if(isset($actions) && count($actions)) if(isset($actions) && count($actions))
{ {
foreach($actions as $key => $action) foreach($actions as $key => $action)
{ {
echo "<option value='$key'" . ($key == "si_enhancement" ? " class='si-enhancement-option'" : "") . ">$action</option>"; // echo "<option value='$key'" . ($key == "si_enhancement" ? " class='si-enhancement-option'" : "") . ">$action</option>";
echo "<option selected value='$key'>$action</option>";
} }
} }
?> ?>
@ -97,7 +98,7 @@ option:disabled {
</div> </div>
<div class="form-group col-md-2" <!-- <div class="form-group col-md-2"
style="margin-top: 26px;position: relative;left: 65px;"> OR </div> style="margin-top: 26px;position: relative;left: 65px;"> OR </div>
<div class="form-group col-md-4" style="margin-top: 18px;"> <div class="form-group col-md-4" style="margin-top: 18px;">
@ -105,7 +106,7 @@ option:disabled {
id="fetch_enrolled_data" data-toggle="modal" id="fetch_enrolled_data" data-toggle="modal"
data-target="#full-width-modal" title="Download Sample Excel">Fetch data-target="#full-width-modal" title="Download Sample Excel">Fetch
Enrolled Data</a> Enrolled Data</a>
</div> </div> -->
</div> </div>
@ -345,14 +346,15 @@ $(window).on("load", function() {
client_id_param = params.get('client_id'); client_id_param = params.get('client_id');
client_policy_param = params.get('client_policy_id'); client_policy_param = params.get('client_policy_id');
client_branch_id_param = params.get('client_branch_id'); client_branch_id_param = params.get('client_branch_id');
inception_param = params.get('actions'); // inception_param = params.get('actions');
inception_param = $('#upload-action-type').val()
// console.log('client_id:', client_id_param); // console.log('client_id:', client_id_param);
// console.log('client_policy_id:', client_policy_param); // console.log('client_policy_id:', client_policy_param);
// console.log('inception_param:', inception_param); console.log('inception_param:', inception_param);
if(inception_param != null){ if(inception_param != null){
$('#upload-action-type').val('inception').change() // $('#upload-action-type').val('inception').change()
var selectedValue = inception_param; var selectedValue = inception_param;
if (selectedValue !== '') { if (selectedValue !== '') {
@ -870,92 +872,90 @@ $('#fetch_enrolled_data').click(function()
}) })
$(document).ready(function() { // $(document).ready(function() {
// $('#policy_id').change(function(){
$('#policy_id').change(function(){ // var selectedpolicy = $(this).val();
// console.log('selectedpolicy',selectedpolicy)
// $('#upload-action-type').val('').change();
// $('#file_upload').hide();
// $('#excel_download').removeAttr('href');
var selectedpolicy = $(this).val(); // var apiURL = '<?php echo base_url();?>' + 'util/fetch-emp-count/' + selectedpolicy;
console.log('selectedpolicy',selectedpolicy) // // console.log(apiURL);
$('#upload-action-type').val('').change(); // $.ajax({
$('#file_upload').hide(); // url: apiURL,
$('#excel_download').removeAttr('href'); // method: 'GET',
// headers: {
// "Content-Type": "application/json",
// "X-Requested-With": "XMLHttpRequest"
// },
// success: function(response) {
var apiURL = '<?php echo base_url();?>' + 'util/fetch-emp-count/' + selectedpolicy; // console.log('responce data emp_count', response);
// console.log(apiURL);
$.ajax({
url: apiURL,
method: 'GET',
headers: {
"Content-Type": "application/json",
"X-Requested-With": "XMLHttpRequest"
},
success: function(response) {
console.log('responce data emp_count', response); // if (response.code === 200 && response.dataStatus === true && response.data !== "") {
// try {
// console.log(response.emp_count.length)
// if(response.emp_count > 0){
if (response.code === 200 && response.dataStatus === true && response.data !== "") { // var select = document.getElementById("upload-action-type");
try { // for (var i = 0; i < select.options.length; i++) {
console.log(response.emp_count.length) // select.options[i].disabled = false;
if(response.emp_count > 0){ // if (select.options[i].value === "inception") {
// select.options[i].disabled = true;
// // break;
// }
// }
// }else {
var select = document.getElementById("upload-action-type"); // var select = document.getElementById("upload-action-type");
for (var i = 0; i < select.options.length; i++) { // for (var i = 0; i < select.options.length; i++) {
select.options[i].disabled = false; // select.options[i].disabled = true;
if (select.options[i].value === "inception") { // if (select.options[i].value === "inception" || select.options[i].value === "enrollment") {
select.options[i].disabled = true; // select.options[i].disabled = false;
// break; // }
} // if (select.options[i].value === "" || select.options[i].value === "enrollment") {
} // select.options[i].disabled = false;
}else { // }
// }
// }
var select = document.getElementById("upload-action-type"); // } catch (error) {
for (var i = 0; i < select.options.length; i++) { // console.error('Error parsing API response data:', error);
select.options[i].disabled = true; // }
if (select.options[i].value === "inception" || select.options[i].value === "enrollment") { // } else if (response.code === 404 && response.dataStatus === false) {
select.options[i].disabled = false;
}
if (select.options[i].value === "" || select.options[i].value === "enrollment") {
select.options[i].disabled = false;
}
}
}
} catch (error) { // console.error('no data found', response);
console.error('Error parsing API response data:', error);
}
} else if (response.code === 404 && response.dataStatus === false) {
console.error('no data found', response); // } else {
// console.error('Something went wrong!');
// }
// },
// error: function(xhr, status, error) {
// console.error('Error fetching data from API:', error);
// var select = document.getElementById("upload-action-type");
// for (var i = 0; i < select.options.length; i++) {
// if (select.options[i].value === "inception" || select.options[i].value === "enrollment" ) {
// select.options[i].disabled = false;
// break;
// }
// }
// }
// });
} else { // if($('#policy_id').val() == 0){
console.error('Something went wrong!');
}
},
error: function(xhr, status, error) {
console.error('Error fetching data from API:', error);
var select = document.getElementById("upload-action-type");
for (var i = 0; i < select.options.length; i++) {
if (select.options[i].value === "inception" || select.options[i].value === "enrollment" ) {
select.options[i].disabled = false;
break;
}
}
}
});
if($('#policy_id').val() == 0){ // var select = document.getElementById("upload-action-type");
// console.log('select', select)
// for (var i = 0; i < select.options.length; i++) {
// select.options[i].disabled = false;
// console.log(select.options[i])
// }
// }
var select = document.getElementById("upload-action-type"); // })
console.log('select', select) // })
for (var i = 0; i < select.options.length; i++) {
select.options[i].disabled = false;
console.log(select.options[i])
}
}
})
})
function checkPolicyTermsAndRackRatesHasDefiend(event) function checkPolicyTermsAndRackRatesHasDefiend(event)

View File

@ -1,5 +1,5 @@
<div class="tab-pane fade" id="enrollment-dash-tab"> <div class="tab-pane active show" id="pending-actions-dash-tab" style="/*padding-left: 35px;*/padding-right: 35px;">
<div class="row visa_status_count_view"> <div class="row visa_status_count_view">
<div class="col-12"> <div class="col-12">
<div class="card" style="border: 0px;height: 470px;"> <div class="card" style="border: 0px;height: 470px;">

View File

@ -19,16 +19,16 @@
<span class="d-none d-sm-inline-block">Data From Client</span> <span class="d-none d-sm-inline-block">Data From Client</span>
</a> </a>
</li> </li>
<li class="nav-item"> <!-- <li class="nav-item">
<a href="#KYC-DOC-tab" data-toggle="tab" aria-expanded="true" class="nav-link px-3 py-2" id="kyc_tab"> <a href="#KYC-DOC-tab" data-toggle="tab" aria-expanded="true" class="nav-link px-3 py-2" id="kyc_tab">
<span class="mr-1"><i class="fa fa-file"></i></span> <span class="mr-1"><i class="fa fa-file"></i></span>
<span class="d-none d-sm-inline-block">Insurer or TPA Data</span> <span class="d-none d-sm-inline-block">Insurer or TPA Data</span>
</a> </a>
</li> </li> -->
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
<?php include('employee_upload.php'); ?> <?php include('employee_upload.php'); ?>
<?php include('insurer_or_tpa_data.php'); ?> <?php //include('insurer_or_tpa_data.php'); ?>
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,29 +1,24 @@
<style> <style>
custom-dropdown-menu {
.custom-dropdown-menu {
display: none; display: none;
position: fixed; position: absolute;
background-color: #ffffff !important; background-color: #ffffff !important;
border: 1px solid rgba(0,0,0,.15); border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem; border-radius: 0.25rem;
padding: 0.5rem 0; padding: 0.5rem 0;
min-width: 10rem; min-width: 10rem;
z-index: 9999; z-index: 9999;
box-shadow: 0 0 10px rgba(0,0,0,0.1); box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
} }
.custom-dropdown-menu .dropdown-item { .custom-dropdown-menu .dropdown-item {
display: block !important; display: block !important;
width: 100% !important; width: 100% !important;
padding: 0.5rem 1rem !important; padding: 0.5rem 1rem !important;
clear: both !important;
font-weight: 400 !important;
color: #212529 !important; color: #212529 !important;
text-align: inherit !important;
white-space: nowrap !important;
background-color: transparent !important;
border: 0 !important;
text-decoration: none !important; text-decoration: none !important;
position: relative !important; background-color: transparent !important;
} }
.custom-dropdown-menu .dropdown-item:hover { .custom-dropdown-menu .dropdown-item:hover {
@ -31,40 +26,6 @@ custom-dropdown-menu {
color: #16181b !important; color: #16181b !important;
cursor: pointer !important; cursor: pointer !important;
} }
.custom-dropdown-menu .dropdown-item i {
margin-right: 8px !important;
vertical-align: middle !important;
}
.table tbody tr {
cursor: pointer;
}
/* Ensure the dropdown menu has a solid background */
.custom-dropdown-menu::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #ffffff;
z-index: -1;
}
/* Add a subtle backdrop effect */
.custom-dropdown-menu::after {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.05);
z-index: -2;
pointer-events: none;
}
</style> </style>
<div class="row" id="insurer_list"> <div class="row" id="insurer_list">
<div class="col-12"> <div class="col-12">

View File

@ -108,31 +108,25 @@ table.dataTable tbody td {
color: gray; color: gray;
} }
custom-dropdown-menu { .custom-dropdown-menu {
display: none; display: none;
position: fixed; position: absolute;
background-color: #ffffff !important; background-color: #ffffff !important;
border: 1px solid rgba(0,0,0,.15); border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem; border-radius: 0.25rem;
padding: 0.5rem 0; padding: 0.5rem 0;
min-width: 10rem; min-width: 10rem;
z-index: 9999; z-index: 9999;
box-shadow: 0 0 10px rgba(0,0,0,0.1); box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
} }
.custom-dropdown-menu .dropdown-item { .custom-dropdown-menu .dropdown-item {
display: block !important; display: block !important;
width: 100% !important; width: 100% !important;
padding: 0.5rem 1rem !important; padding: 0.5rem 1rem !important;
clear: both !important;
font-weight: 400 !important;
color: #212529 !important; color: #212529 !important;
text-align: inherit !important;
white-space: nowrap !important;
background-color: transparent !important;
border: 0 !important;
text-decoration: none !important; text-decoration: none !important;
position: relative !important; background-color: transparent !important;
} }
.custom-dropdown-menu .dropdown-item:hover { .custom-dropdown-menu .dropdown-item:hover {
@ -140,43 +134,6 @@ custom-dropdown-menu {
color: #16181b !important; color: #16181b !important;
cursor: pointer !important; cursor: pointer !important;
} }
.custom-dropdown-menu .dropdown-item i {
margin-right: 8px !important;
vertical-align: middle !important;
}
.table tbody tr {
cursor: pointer;
}
/* Ensure the dropdown menu has a solid background */
.custom-dropdown-menu::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #ffffff;
z-index: -1;
}
/* Add a subtle backdrop effect */
.custom-dropdown-menu::after {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.05);
z-index: -2;
pointer-events: none;
}
</style> </style>
<div class="row" id="inception_list"> <div class="row" id="inception_list">

View File

@ -1,29 +1,24 @@
<style> <style>
custom-dropdown-menu {
.custom-dropdown-menu {
display: none; display: none;
position: fixed; position: absolute;
background-color: #ffffff !important; background-color: #ffffff !important;
border: 1px solid rgba(0,0,0,.15); border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem; border-radius: 0.25rem;
padding: 0.5rem 0; padding: 0.5rem 0;
min-width: 10rem; min-width: 10rem;
z-index: 9999; z-index: 9999;
box-shadow: 0 0 10px rgba(0,0,0,0.1); box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
} }
.custom-dropdown-menu .dropdown-item { .custom-dropdown-menu .dropdown-item {
display: block !important; display: block !important;
width: 100% !important; width: 100% !important;
padding: 0.5rem 1rem !important; padding: 0.5rem 1rem !important;
clear: both !important;
font-weight: 400 !important;
color: #212529 !important; color: #212529 !important;
text-align: inherit !important;
white-space: nowrap !important;
background-color: transparent !important;
border: 0 !important;
text-decoration: none !important; text-decoration: none !important;
position: relative !important; background-color: transparent !important;
} }
.custom-dropdown-menu .dropdown-item:hover { .custom-dropdown-menu .dropdown-item:hover {
@ -31,40 +26,6 @@
color: #16181b !important; color: #16181b !important;
cursor: pointer !important; cursor: pointer !important;
} }
.custom-dropdown-menu .dropdown-item i {
margin-right: 8px !important;
vertical-align: middle !important;
}
.table tbody tr {
cursor: pointer;
}
/* Ensure the dropdown menu has a solid background */
.custom-dropdown-menu::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #ffffff;
z-index: -1;
}
/* Add a subtle backdrop effect */
.custom-dropdown-menu::after {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.05);
z-index: -2;
pointer-events: none;
}
</style> </style>
<div class="row" id="kyc_list"> <div class="row" id="kyc_list">
<div class="col-12"> <div class="col-12">

File diff suppressed because it is too large Load Diff

View File

@ -339,7 +339,7 @@
<div class="container-fluid"> <div class="container-fluid">
<ul class="list-unstyled topnav-menu float-right mb-0"> <ul class="list-unstyled topnav-menu float-right mb-0">
<li class="d-none d-lg-block"> <!-- <li class="d-none d-lg-block">
<form class="app-search"> <form class="app-search">
<div class="app-search-box dropdown"> <div class="app-search-box dropdown">
<div class="input-group"> <div class="input-group">
@ -349,7 +349,7 @@
<i class="fe-search"></i> <i class="fe-search"></i>
</button> </button>
</div> </div>
</div> </div> -->
<!-- <div class="dropdown-menu dropdown-lg" id="search-dropdown"> <!-- <div class="dropdown-menu dropdown-lg" id="search-dropdown">
<div class="dropdown-header noti-title"> <div class="dropdown-header noti-title">
<h5 class="text-overflow mb-2">Found <span class="text-danger">09</span> results</h5> <h5 class="text-overflow mb-2">Found <span class="text-danger">09</span> results</h5>
@ -397,16 +397,16 @@
</div> </div>
</div> --> </div> -->
</div> <!-- </div>
</form> </form>
</li> </li> -->
<li class="dropdown notification-list topbar-dropdown"> <!-- <li class="dropdown notification-list topbar-dropdown">
<a class="nav-link dropdown-toggle right-bar-toggle waves-effect waves-light"> <a class="nav-link dropdown-toggle right-bar-toggle waves-effect waves-light">
<i class="fe-bell noti-icon"></i> <i class="fe-bell noti-icon"></i>
<span class="badge badge-danger rounded-circle noti-icon-badge" id="notification_count">0</span> <span class="badge badge-danger rounded-circle noti-icon-badge" id="notification_count">0</span>
</a> </a>
</li> </li> -->
<li class="dropdown notification-list topbar-dropdown"> <li class="dropdown notification-list topbar-dropdown">
<a class="nav-link dropdown-toggle nav-user mr-0 waves-effect waves-light" data-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false"> <a class="nav-link dropdown-toggle nav-user mr-0 waves-effect waves-light" data-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false">
@ -447,8 +447,8 @@
<span>Logout</span> <span>Logout</span>
</a> </a>
</div>--> </div>
</li> <!-- </li> -->
<!-- <li class="dropdown notification-list"> <!-- <li class="dropdown notification-list">
<a href="javascript:void(0);" class="nav-link right-bar-toggle waves-effect waves-light"> <a href="javascript:void(0);" class="nav-link right-bar-toggle waves-effect waves-light">
@ -466,7 +466,7 @@
<!-- LOGO --> <!-- LOGO -->
<div class="logo-box"> <div class="logo-box">
<a href="https://localhost/nhance/dashboard/view" class="logo logo-dark text-center"> <a href="https://localhost/nhance-enrollment/dashboard/view" class="logo logo-dark text-center">
<span class="logo-sm"> <span class="logo-sm">
<img src="<?= base_url() . "public"; ?>/assets/images/Nhance_Favi.svg" alt="" height="24"> <img src="<?= base_url() . "public"; ?>/assets/images/Nhance_Favi.svg" alt="" height="24">
<!-- <span class="logo-lg-text-light">NHANCE</span> --> <!-- <span class="logo-lg-text-light">NHANCE</span> -->
@ -477,7 +477,7 @@
</span> </span>
</a> </a>
<a href="https://localhost/nhance/dashboard/view" class="logo logo-light text-center"> <a href="https://localhost/nhance-enrollment/dashboard/view" class="logo logo-light text-center">
<span class="logo-sm"> <span class="logo-sm">
<img src="<?= base_url() . "public"; ?>/assets/images/Nhance_Favi.svg" alt="" height="24"> <img src="<?= base_url() . "public"; ?>/assets/images/Nhance_Favi.svg" alt="" height="24">
</span> </span>
@ -575,9 +575,9 @@
<li> <li>
<a href="<?= base_url('/employee/list') ?>">View Members</a> <a href="<?= base_url('/employee/list') ?>">View Members</a>
</li> </li>
<li> <!-- <li>
<a href="<?= base_url('/employee/endorsement-list') ?>">View Endorsement</a> <a href="<?= base_url('/employee/endorsement-list') ?>">View Endorsement</a>
</li> </li> -->
<li> <li>
<a href="<?= base_url('/employee/enrollment-list') ?>">View Enrolment</a> <a href="<?= base_url('/employee/enrollment-list') ?>">View Enrolment</a>
</li> </li>
@ -598,7 +598,7 @@
</a> </a>
<div class="collapse" id="sidebarDashboards"> <div class="collapse" id="sidebarDashboards">
<ul class="nav-second-level"> <ul class="nav-second-level">
<li> <!-- <li>
<a href="<?= base_url('/master/insurer/list') ?>">Insurer</a> <a href="<?= base_url('/master/insurer/list') ?>">Insurer</a>
</li> </li>
<li> <li>
@ -615,7 +615,7 @@
</li> </li>
<li> <li>
<a href="<?= base_url('/master/vehicle/list') ?>">Vehicle Master</a> <a href="<?= base_url('/master/vehicle/list') ?>">Vehicle Master</a>
</li> </li> -->
<li> <li>
<a href="<?= base_url('/user/list') ?>"> Users </a> <a href="<?= base_url('/user/list') ?>"> Users </a>
</li> </li>
@ -625,20 +625,20 @@
<?php } ?> <?php } ?>
<li> <!-- <li>
<?php <?php /*
$sessionData = get_session_userdata(); $sessionData = get_session_userdata();
$currentUrl = base_url(); $currentUrl = base_url();
$parsedUrl = parse_url($currentUrl); $parsedUrl = parse_url($currentUrl);
$baseUrl = $parsedUrl['scheme'] . '://' . $parsedUrl['host'] . '/'; $baseUrl = $parsedUrl['scheme'] . '://' . $parsedUrl['host'] . '/';
$hashedEmail = hash('sha256', $sessionData->email); $hashedEmail = hash('sha256', $sessionData->email);
$redirectUrl = getenv('helpdeskURL') .'/staff/login?' . http_build_query(['token' => $hashedEmail]); $redirectUrl = getenv('helpdeskURL') .'/staff/login?' . http_build_query(['token' => $hashedEmail]);
?> */?>
<a href="<?php echo $redirectUrl; ?>" target="_blank"> <a href="<?php //echo $redirectUrl; ?>" target="_blank">
<i class="mdi mdi-lifebuoy"></i> <i class="mdi mdi-lifebuoy"></i>
<span> Tickets </span> <span> Tickets </span>
</a> </a>
</li> </li> -->
<li> <li>
<a id="app_content_management" href="#sidebarDashboardsmenu" data-toggle="collapse" class="waves-effect" style="color: grey;"> <a id="app_content_management" href="#sidebarDashboardsmenu" data-toggle="collapse" class="waves-effect" style="color: grey;">
@ -659,12 +659,12 @@
</li> </li>
<!-- leads --> <!-- leads -->
<li> <!-- <li>
<a href="<?= base_url('/leads/list') ?>"> <a href="<?= base_url('/leads/list') ?>">
<i class="mdi mdi-chart-bar"></i> <i class="mdi mdi-chart-bar"></i>
<span> Leads </span> <span> Leads </span>
</a> </a>
</li> </li> -->
<?php if((get_role_id() == 1 || get_role_id() == 5) && (in_array(BUSINESS_TEAM_ID, user_team()) || in_array(FINANCE_TEAM_ID, user_team()) || in_array(MANAGEMENT_TEAM_ID, user_team()))) { ?> <?php if((get_role_id() == 1 || get_role_id() == 5) && (in_array(BUSINESS_TEAM_ID, user_team()) || in_array(FINANCE_TEAM_ID, user_team()) || in_array(MANAGEMENT_TEAM_ID, user_team()))) { ?>
@ -689,9 +689,9 @@
<a href="<?= base_url('/policy_tranction/statement/list') ?>">Statement upload</a> <a href="<?= base_url('/policy_tranction/statement/list') ?>">Statement upload</a>
</li> </li>
<li> <!-- <li>
<a href="<?= base_url('/policy_tranction/report/list') ?>">BDS</a> <a href="<?= base_url('/policy_tranction/report/list') ?>">BDS</a>
</li> </li> -->
<li> <li>
<a href="<?= base_url('/policy_tranction/report/report-varience-list') ?>">Variance</a> <a href="<?= base_url('/policy_tranction/report/report-varience-list') ?>">Variance</a>
</li> </li>

View File

@ -37,31 +37,26 @@ table.dataTable tbody td {
margin-bottom: 10px; margin-bottom: 10px;
} }
custom-dropdown-menu {
.custom-dropdown-menu {
display: none; display: none;
position: fixed; position: absolute;
background-color: #ffffff !important; background-color: #ffffff !important;
border: 1px solid rgba(0,0,0,.15); border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem; border-radius: 0.25rem;
padding: 0.5rem 0; padding: 0.5rem 0;
min-width: 10rem; min-width: 10rem;
z-index: 9999; z-index: 9999;
box-shadow: 0 0 10px rgba(0,0,0,0.1); box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
} }
.custom-dropdown-menu .dropdown-item { .custom-dropdown-menu .dropdown-item {
display: block !important; display: block !important;
width: 100% !important; width: 100% !important;
padding: 0.5rem 1rem !important; padding: 0.5rem 1rem !important;
clear: both !important;
font-weight: 400 !important;
color: #212529 !important; color: #212529 !important;
text-align: inherit !important;
white-space: nowrap !important;
background-color: transparent !important;
border: 0 !important;
text-decoration: none !important; text-decoration: none !important;
position: relative !important; background-color: transparent !important;
} }
.custom-dropdown-menu .dropdown-item:hover { .custom-dropdown-menu .dropdown-item:hover {
@ -69,40 +64,6 @@ custom-dropdown-menu {
color: #16181b !important; color: #16181b !important;
cursor: pointer !important; cursor: pointer !important;
} }
.custom-dropdown-menu .dropdown-item i {
margin-right: 8px !important;
vertical-align: middle !important;
}
.table tbody tr {
cursor: pointer;
}
/* Ensure the dropdown menu has a solid background */
.custom-dropdown-menu::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #ffffff;
z-index: -1;
}
/* Add a subtle backdrop effect */
.custom-dropdown-menu::after {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.05);
z-index: -2;
pointer-events: none;
}
</style> </style>

View File

@ -73,10 +73,10 @@
</div> </div>
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-6"> <!-- <div class="form-group col-md-6">
<label for="mail_domain">Mail Domain<span class="text-danger"></span></label> <label for="mail_domain">Mail Domain<span class="text-danger"></span></label>
<input type="text" name="" id="mail_domain" class="form-control" placeholder="Only one Domain Name. Example: nhance.com" value="<?php echo isset($client['mail_domain']) ? $client['mail_domain'] : ''; ?>"> <input type="text" name="" id="mail_domain" class="form-control" placeholder="Only one Domain Name. Example: nhance.com" value="<?php echo isset($client['mail_domain']) ? $client['mail_domain'] : ''; ?>">
</div> </div> -->
<div class="form-group col-md-6"> <div class="form-group col-md-6">
<label for="reply_to">Reply To Mail<span class="text-danger"></span></label> <label for="reply_to">Reply To Mail<span class="text-danger"></span></label>
<input type="text" name="" id="reply_to" class="form-control" placeholder="Only one Reply-to mail. Example: jhon@gmail.com" value="<?php echo isset($client['reply_to']) ? $client['reply_to'] : ''; ?>"> <input type="text" name="" id="reply_to" class="form-control" placeholder="Only one Reply-to mail. Example: jhon@gmail.com" value="<?php echo isset($client['reply_to']) ? $client['reply_to'] : ''; ?>">
@ -114,7 +114,7 @@
</div> </div>
</div> </div>
<div class="form-row"> <!-- <div class="form-row">
<div class="form-group col-md-6"> <div class="form-group col-md-6">
<label for="branch_name">Member ECard mail</label> <label for="branch_name">Member ECard mail</label>
<label class="switch"> <label class="switch">
@ -127,7 +127,7 @@
<div class="form-group col-md-5"> <div class="form-group col-md-5">
<textarea style="display:none;" name="" id="" class="form-control "></textarea> <textarea style="display:none;" name="" id="" class="form-control "></textarea>
</div> </div>
</div> </div> -->
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-6"> <div class="form-group col-md-6">
@ -144,7 +144,7 @@
</div> </div>
</div> </div>
<div class="form-row"> <!-- <div class="form-row">
<div class="form-group col-md-6"> <div class="form-group col-md-6">
<label for="branch_name">Account Maneger summary mail</label> <label for="branch_name">Account Maneger summary mail</label>
<label class="switch"> <label class="switch">
@ -172,7 +172,7 @@
<div class="form-group col-md-5"> <div class="form-group col-md-5">
<textarea style="display:none;" name="" id="" class="form-control "></textarea> <textarea style="display:none;" name="" id="" class="form-control "></textarea>
</div> </div>
</div> <!-- <!-- </div> -->
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-6"> <div class="form-group col-md-6">

View File

@ -45,31 +45,25 @@ table.dataTable tbody td {
.addbtnStyle{ .addbtnStyle{
margin-left: 20px !important; margin-left: 20px !important;
} }
custom-dropdown-menu { .custom-dropdown-menu {
display: none; display: none;
position: fixed; position: absolute;
background-color: #ffffff !important; background-color: #ffffff !important;
border: 1px solid rgba(0,0,0,.15); border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem; border-radius: 0.25rem;
padding: 0.5rem 0; padding: 0.5rem 0;
min-width: 10rem; min-width: 10rem;
z-index: 9999; z-index: 9999;
box-shadow: 0 0 10px rgba(0,0,0,0.1); box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
} }
.custom-dropdown-menu .dropdown-item { .custom-dropdown-menu .dropdown-item {
display: block !important; display: block !important;
width: 100% !important; width: 100% !important;
padding: 0.5rem 1rem !important; padding: 0.5rem 1rem !important;
clear: both !important;
font-weight: 400 !important;
color: #212529 !important; color: #212529 !important;
text-align: inherit !important;
white-space: nowrap !important;
background-color: transparent !important;
border: 0 !important;
text-decoration: none !important; text-decoration: none !important;
position: relative !important; background-color: transparent !important;
} }
.custom-dropdown-menu .dropdown-item:hover { .custom-dropdown-menu .dropdown-item:hover {
@ -77,41 +71,6 @@ custom-dropdown-menu {
color: #16181b !important; color: #16181b !important;
cursor: pointer !important; cursor: pointer !important;
} }
.custom-dropdown-menu .dropdown-item i {
margin-right: 8px !important;
vertical-align: middle !important;
}
.table tbody tr {
cursor: pointer;
}
/* Ensure the dropdown menu has a solid background */
.custom-dropdown-menu::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #ffffff;
z-index: -1;
}
/* Add a subtle backdrop effect */
.custom-dropdown-menu::after {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.05);
z-index: -2;
pointer-events: none;
}
</style> </style>
<style> <style>

View File

@ -87,6 +87,27 @@
color: #16181b !important; color: #16181b !important;
cursor: pointer !important; cursor: pointer !important;
} }
th, td {
text-align: center; /* Or left/right depending on your preference */
vertical-align: middle; /* Ensures content is vertically centered */
}
input[type="checkbox"] {
width: 16px; /* Standard checkbox size */
height: 16px;
margin: 0; /* Remove default margin */
vertical-align: middle; /* Align with text or other elements */
}
th:first-child, td:first-child {
width: 50px; /* Adjust width as needed */
}
.table-responsive {
overflow-x: auto;
}
.table {
table-layout: fixed; /* Prevent columns from resizing dynamically */
}
</style> </style>
@ -156,12 +177,13 @@
<td><?php echo $employee['relationship']; ?></td> <td><?php echo $employee['relationship']; ?></td>
<td><?php echo $employee['gender']; ?></td> <td><?php echo $employee['gender']; ?></td>
<td><?php echo date('d/M/Y', strtotime($employee['dob'])); ?></td> <td><?php echo date('d/M/Y', strtotime($employee['dob'])); ?></td>
<?php /*
<!-- <td><?php //echo isset($employee['policy_type']) ? $employee['policy_type'] : ''; ?> - <?php echo isset($employee['policy_no']) ? $employee['policy_no'] : ''; ?></td> <!-- <td><?php //echo isset($employee['policy_type']) ? $employee['policy_type'] : ''; ?> - <?php echo isset($employee['policy_no']) ? $employee['policy_no'] : ''; ?></td>
<td><?php //echo isset($employee['insurer_short_name'])?$employee['insurer_short_name']:''; ?></td> <td><?php //echo isset($employee['insurer_short_name'])?$employee['insurer_short_name']:''; ?></td>
<td><?php // echo isset($employee['tpa_id'])?$employee['tpa_id']:''; ?></td> <td><?php // echo isset($employee['tpa_id'])?$employee['tpa_id']:''; ?></td>
<td><?php //echo isset($employee['uhid'])?$employee['uhid']: ""; ?></td> <td><?php //echo isset($employee['uhid'])?$employee['uhid']: ""; ?></td>
<td> <td>
<?php /*
if(isset($employee['status'])){ if(isset($employee['status'])){
switch ($employee['status']) { switch ($employee['status']) {
@ -185,13 +207,14 @@
break; break;
} }
}*/ }
?>
</td> </td>
<td><?php // if(isset($employee['basic_cover_si'])) {echo (format_indian_number($employee['basic_cover_si']))?format_indian_number($employee['basic_cover_si']):''; }?></td> <td><?php // if(isset($employee['basic_cover_si'])) {echo (format_indian_number($employee['basic_cover_si']))?format_indian_number($employee['basic_cover_si']):''; }?></td>
<td><?php //if(isset($employee['premium'])) { echo null!=(format_indian_number($employee['premium']))? format_indian_number($employee['premium']):''; } ?></td> <td><?php //if(isset($employee['premium'])) { echo null!=(format_indian_number($employee['premium']))? format_indian_number($employee['premium']):''; } ?></td>
<td><?php //if(isset($employee['rata_premimum'])){$pro_rata_total += $employee['rata_premimum']; echo format_indian_number($employee['rata_premimum']);} ?></td> <td><?php //if(isset($employee['rata_premimum'])){$pro_rata_total += $employee['rata_premimum']; echo format_indian_number($employee['rata_premimum']);} ?></td>
<td><?php // if(isset($employee['gst'])){$gst_total += $employee['gst']; echo format_indian_number($employee['gst']); }?></td> --> <td><?php // if(isset($employee['gst'])){$gst_total += $employee['gst']; echo format_indian_number($employee['gst']); }?></td> -->
*/
?>
<td><?= $employee['policy_count'] ?></td> <td><?= $employee['policy_count'] ?></td>
<td> <td>
<div class="btn-group dropdown"> <div class="btn-group dropdown">
@ -209,7 +232,7 @@
</tbody> </tbody>
<tfoot> <tfoot>
<tr> <tr><?php /*
<th></th> <th></th>
<?php if (isset($getData)) { <?php if (isset($getData)) {
if ($getData['client_id'] == '0' && $getData['policy_id'] == '0' && $getData['branch_id'] == '0' && ($getData['emp_code'] != "" || $getData['emp_name'] != "" || $getData['status'] != "")) { ?> if ($getData['client_id'] == '0' && $getData['policy_id'] == '0' && $getData['branch_id'] == '0' && ($getData['emp_code'] != "" || $getData['emp_name'] != "" || $getData['status'] != "")) { ?>
@ -233,7 +256,7 @@
<th><?php echo format_indian_number($pro_rata_total); ?></th> <th><?php echo format_indian_number($pro_rata_total); ?></th>
<th><?php echo format_indian_number($gst_total); ?></th> --> <th><?php echo format_indian_number($gst_total); ?></th> -->
<th></th> <th></th>
</tr> </tr> */ ?>
</tfoot> </tfoot>
</table> </table>
</div> </div>
@ -392,7 +415,7 @@
</div><!-- /.modal --> </div><!-- /.modal -->
<script> <script>
document.addEventListener("DOMContentLoaded", function () { document.addEventListener("DOMContentLoaded", function () {
const table = document.getElementById("tickets-table"); const table = document.getElementById("tickets-table");
// Create custom dropdown // Create custom dropdown
@ -421,8 +444,8 @@
document.body.appendChild(customDropdown); document.body.appendChild(customDropdown);
row.addEventListener("click", function(event) { row.addEventListener("click", function(event) {
// Ignore clicks on the action column // Ignore clicks on the first column (td:first-child)
if (event.target.closest('td:last-child')) { if (event.target.closest('td:first-child')) {
return; return;
} }

View File

@ -1,71 +1,31 @@
<style> <style>
custom-dropdown-menu {
.custom-dropdown-menu {
display: none; display: none;
position: fixed; position: absolute;
background-color: #ffffff !important; background-color: #ffffff !important;
border: 1px solid rgba(0,0,0,.15); border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem; border-radius: 0.25rem;
padding: 0.5rem 0; padding: 0.5rem 0;
min-width: 10rem; min-width: 10rem;
z-index: 9999; z-index: 9999;
box-shadow: 0 0 10px rgba(0,0,0,0.1); box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
} }
.custom-dropdown-menu .dropdown-item { .custom-dropdown-menu .dropdown-item {
display: block !important; display: block !important;
width: 100% !important; width: 100% !important;
padding: 0.5rem 1rem !important; padding: 0.5rem 1rem !important;
clear: both !important;
font-weight: 400 !important;
color: #212529 !important; color: #212529 !important;
text-align: inherit !important;
white-space: nowrap !important;
background-color: transparent !important;
border: 0 !important;
text-decoration: none !important; text-decoration: none !important;
position: relative !important; background-color: transparent !important;
} }
.custom-dropdown-menu .dropdown-item:hover { .custom-dropdown-menu .dropdown-item:hover {
background-color: #f8f9fa !important; background-color: #f8f9fa !important;
color: #16181b !important; color: #16181b !important;
cursor: pointer !important; cursor: pointer !important;
} } </style>
.custom-dropdown-menu .dropdown-item i {
margin-right: 8px !important;
vertical-align: middle !important;
}
.table tbody tr {
cursor: pointer;
}
/* Ensure the dropdown menu has a solid background */
.custom-dropdown-menu::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #ffffff;
z-index: -1;
}
/* Add a subtle backdrop effect */
.custom-dropdown-menu::after {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.05);
z-index: -2;
pointer-events: none;
}
</style>
<div class="row" id="tpa_list"> <div class="row" id="tpa_list">
<div class="col-12"> <div class="col-12">
<div class="card"> <div class="card">

View File

@ -16,7 +16,7 @@
"ext-mbstring": "*", "ext-mbstring": "*",
"dompdf/dompdf": "^2.0", "dompdf/dompdf": "^2.0",
"firebase/php-jwt": "^6.10", "firebase/php-jwt": "^6.10",
"google/apiclient": "^2.15.0", "google/apiclient": "^2.18",
"kreait/firebase-php": "^7.0", "kreait/firebase-php": "^7.0",
"laminas/laminas-escaper": "^2.9", "laminas/laminas-escaper": "^2.9",
"php-amqplib/php-amqplib": "^2.8", "php-amqplib/php-amqplib": "^2.8",