FEAT_CLAIM_FEADBACK_FORM : RV

This commit is contained in:
VENKATESHWARAN 2025-04-02 11:35:23 +05:30
parent 28eda66847
commit 77426aaff6
3 changed files with 18 additions and 2 deletions

View File

@ -52,6 +52,8 @@ $routes->get('/update-emp-policy-status', 'ClientController::updateEmpAndPolicyS
$routes->get('download-e-card/(:any)', 'EmployeeController::generateIDCardForEmployee/$1');
$routes->get('download-kyc-docs/(:segment)', 'ClientController::downloadKYCDocument/$1');
$routes->get('claim-form-download/(:any)', 'TicketController::downloadClaimForm/$1');
$routes->get("claims-feedback-form/(:any)", "TicketController::viewClaimFeedbackForm/$1");
$routes->group("/user", ["filter" => "authMVC"], function ($routes) {
$routes->post("create", "UserController::create");

View File

@ -120,6 +120,7 @@ class TicketController extends BaseController
'((POLICY_TYPE))' => 'policy_type',
'((AUTO_QUERY_CONTENT))' => 'auto_query_content',
'((CLAIM_FORM_LINK))' => 'claim_form_link',
'((CLAIM_FEEDBACK_FORM))' => 'claim_feedback_form',
];
$this->extraFields = [
1 => ['non_id_reason'],
@ -869,6 +870,8 @@ class TicketController extends BaseController
$replaceData = str_replace("Claim-", "", $this->ticketType[$ticket_data['ticket_type_id']] ?? "");
} else if ($value == "claim_form_link"){
$replaceData = '<a href="' . base_url('claim-form-download/' . md5($ticket_data['insurer_id'])) . '" target="_blank">Click here to download Claim Form</a>';
} else if ($value == "claim_feedback_form"){
$replaceData = '<a href="' . base_url('claims-feedback-form/' . md5($ticket_data['id'])) . '" target="_blank">Click to open Claim Feedback Form</a>';
}else {
$replaceData = isset($ticket_data[$value]) ? $ticket_data[$value] : '';
}
@ -1371,7 +1374,8 @@ class TicketController extends BaseController
}
}
public function getPoliciesbyEmpID() {
public function getPoliciesbyEmpID()
{
$received_data = $this->request->getPost();
$emp_id = $received_data['emp_id'];
@ -1443,5 +1447,15 @@ class TicketController extends BaseController
return $this->response->setStatusCode(500)->setBody('An error occurred while downloading the file.');
}
}
// -------------------------------------------------------------------------------------------------------------------------
public function viewClaimFeedbackForm($md5_ticket_id)
{
$ticket_id = $this->ticketMasterModel->where('MD5(id)', $md5_ticket_id)->where('is_active', 1)->first();
$data['ticket_id'] = $ticket_id['id'];
return view('ticket_feedback_form', $data);
}
}

View File