CHANGE_CLIENT_ONBOARDING_DEPOSIT : AADHAVAN
This commit is contained in:
parent
f0e0ab160e
commit
c12f134062
@ -118,7 +118,10 @@ $routes->group("/master", ["filter" => "authMVC"], function($routes){
|
|||||||
|
|
||||||
|
|
||||||
$routes->group("insurer", ["filter" => "authMVC"], function($routes){
|
$routes->group("insurer", ["filter" => "authMVC"], function($routes){
|
||||||
|
|
||||||
|
|
||||||
$routes->get("list", "MasterController::insurerList");
|
$routes->get("list", "MasterController::insurerList");
|
||||||
|
$routes->get("remove/(:any)", "MasterController::insurerRemove/$1");
|
||||||
$routes->get("create", "MasterController::insurerOnboarding");
|
$routes->get("create", "MasterController::insurerOnboarding");
|
||||||
$routes->post("createpost", "MasterController::createInsurerGeneralInfo");
|
$routes->post("createpost", "MasterController::createInsurerGeneralInfo");
|
||||||
$routes->post("edit", "MasterController::editInsurerGeneralInfo");
|
$routes->post("edit", "MasterController::editInsurerGeneralInfo");
|
||||||
|
|||||||
@ -154,6 +154,7 @@ class ClientController extends AdminController
|
|||||||
{
|
{
|
||||||
$headerData['page_name'] = 'Client Deposit';
|
$headerData['page_name'] = 'Client Deposit';
|
||||||
|
|
||||||
|
$data['clientName'] = $this->clientModel->where('id',$id)->find();
|
||||||
$data['clientData'] = $this->clientPolicyModel->getinsurerswithclientid($id);
|
$data['clientData'] = $this->clientPolicyModel->getinsurerswithclientid($id);
|
||||||
$data['depositsummary'] = $this->clientPolicyModel->getDepositlistsummary($id);
|
$data['depositsummary'] = $this->clientPolicyModel->getDepositlistsummary($id);
|
||||||
|
|
||||||
|
|||||||
@ -85,7 +85,31 @@ class MasterController extends AdminController
|
|||||||
// $this->loadLayout('insurer_onboarding', $data);
|
// $this->loadLayout('insurer_onboarding', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function insurerRemove($id = null)
|
||||||
|
{
|
||||||
|
$this->myLogger->logme('error','Insurer Remove function called');
|
||||||
|
// $id = $this->request->getPost('PrimaryKey');
|
||||||
|
$data = $this->request->getPost();
|
||||||
|
$data['updated_by'] = get_session_userid();
|
||||||
|
$data['is_active'] = 0;
|
||||||
|
$update = $this->insurerModel->update($id,$data);
|
||||||
|
if($update){
|
||||||
|
echo "<script>";
|
||||||
|
echo "toastr.warning('Please Add the Client!', 'warning',{timeOut: 2000});";
|
||||||
|
echo "</script>";
|
||||||
|
// echo json_encode(array("status" => true , 'data' => $data));
|
||||||
|
// exit();
|
||||||
|
}else{
|
||||||
|
echo "<script>";
|
||||||
|
echo "toastr.warning('Please Add the Client!', 'warning',{timeOut: 2000});";
|
||||||
|
echo "</script>";
|
||||||
|
// toastr.warning('Please Add the Client!', 'warning',{timeOut: 2000});
|
||||||
|
|
||||||
|
// echo json_encode(array("status" => false));
|
||||||
|
// exit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function editInsurerOnboarding($id = null)
|
public function editInsurerOnboarding($id = null)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
<div class="row" style="margin-bottom:1rem;">
|
<div class="row" style="margin-bottom:1rem;">
|
||||||
<div class="col-6" style="align-self: center;">
|
<div class="col-6" style="align-self: center;">
|
||||||
|
|
||||||
<h4 class="header-title" style="position: relative;">Client Deposit - <?php print_r($clientData[0]->client_name);?></h4>
|
<h4 class="header-title" style="position: relative;">Client Deposit - <?php echo $clientName[0]['client_name'];?></h4>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="col-6" style="text-align: right; position: relative;top: 53px;">
|
<!-- <div class="col-6" style="text-align: right; position: relative;top: 53px;">
|
||||||
|
|||||||
@ -30,7 +30,7 @@
|
|||||||
<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("master/insurer/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("master/insurer/list/"); ?><?= $row['id'];?>"><i class="mdi mdi-pencil mr-2 text-muted font-18 vertical-middle"></i>Edit</a>
|
||||||
<a class="dropdown-item" href="#"><i class="mdi mdi-delete mr-2 text-muted font-18 vertical-middle"></i>Delete</a>
|
<a class="dropdown-item" href="<?= base_url("master/insurer/remove/"); ?><?= $row['id'];?>"><i class="mdi mdi-delete mr-2 text-muted font-18 vertical-middle"></i>Delete</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user