load->view('front/includes/header'); ?> session->userdata('primaryid'); $userrole=$this->session->userdata('userrole'); $loggedname=$this->session->userdata('loggedname'); $tables="users"; $wheres=array("id"=>$primaryid); $shows=("*"); $userdet=$this->commonsql_model->selectTable($tables,$wheres,$shows); if($userdet->num_rows()>0) { $u=$userdet->row(); $loggedusername=$u->name; } $CI=&get_instance(); $CI->load->model("frontend_model"); ?>

User Profile

Hi , Welcome to policybot
load->view('front/includes/leftmenu'); ?>

Your Request

num_rows()>0) { $i=1; foreach($user_req->result() as $gq){ $quoteid=$gq->id; $user_id=$gq->user_id; $category=$gq->category; $cdate=$gq->cdate; $policy_id=$gq->policy_id; $policyname=$gq->policyname; $status=$gq->status; $agency_id=$gq->agency_id; //get response given or not $tables="quote_response"; $wheres=array("quote_id"=>$quoteid); $shows=("*"); $get_respo_sts=$this->commonsql_model->selectTable($tables,$wheres,$shows); if ($get_respo_sts->num_rows()>0){ $response_status="1";//response given } else{$response_status="0"; // response notgiven } $tables="categories"; $wheres=array("id"=>$category); $shows=("*"); $categ=$this->commonsql_model->selectTable($tables,$wheres,$shows); if ($categ->num_rows()>0){ $ca=$categ->row(); $ategoryname=$ca->name; } if($agency_id!=0){ $tables="users"; $wheres=array("id"=>$agency_id); $shows=("*"); $agename=$this->commonsql_model->selectTable($tables,$wheres,$shows); if ($agename->num_rows()>0){ $a=$agename->row(); $agency_name=$a->name; $agency_name=$a->name; $a_color="#fd653b"; } } else { $agency_name="Not Assigned"; $a_color="#dc3545"; } ?>
S.No Policy Name Category Assigned Agent Date Action Response
Canceled
Accepted
Process Closed
Document Collected
Waiting For Policy Issuance
Waiting For Completion
load->view('front/includes/footer'); ?>