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"); ?>

Agent Profile

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

Request From User

num_rows()>0) $i=1; { foreach($age_req->result() as $r) { $qid=$r->id; $user_id=$r->user_id; $username=$r->name; $cdate=$r->cdate; $pincode=$r->pincode; $policy_id=$r->policy_id; $status=$r->status; $company=$r->company; $agency_id=$r->agency_id; $getquote=$CI->frontend_model->select_pincode_agentcount($pincode,$agentcount,$company); //echo $this->db->last_query(); if($status==0){ $statusreq="Requested"; } else if($status==1) { $statusreq= "Accepted"; } else if($status==2) { $statusreq= "Completed"; } else if($status==3) { $statusreq= "Cancelled"; } else if($status==4) { $statusreq= "Document Collected"; } else if($status==5) { $statusreq= "Verified"; } else if($status==6) { $statusreq= "Policy Issued"; } if($primaryid!=0){ $tables="users"; $wheres=array("id"=>$primaryid); $shows=("*"); $agename=$this->commonsql_model->selectTable($tables,$wheres,$shows); if ($agename->num_rows()>0){ $r=$agename->row(); $al_mobile=$r->mobile; $al_email=$r->email; } } foreach($getquote->result() as $gq){ $name=$gq->name; $loggeduserid=$gq->id; $tables="policies"; $wheres=array("id"=>$policy_id); $shows=("*"); $pokl=$this->commonsql_model->selectTable($tables,$wheres,$shows); if($pokl->num_rows()>0) { $p=$pokl->row(); $policyname=$p->name; $category=$p->category; } $tables="quote_response"; $wheres=array("quote_id"=>$qid,"user_id"=>$user_id,"agency_id"=>$loggeduserid); $shows=("*"); $resp=$this->commonsql_model->selectTable($tables,$wheres,$shows); //get completed or cancelled agent show $resp_det=$this->frontend_model->get_agent_det_to_show_quote($loggeduserid); //quote info wise -- completed agents if($primaryid==$loggeduserid){ if($agency_id==0){ ?>
S.No User Name Policy Name Date Status Action
num_rows()>0){ $re=$resp->row(); $mobile=$re->mobile; $email=$re->email; $message=$re->message; $response_status=$re->status; if($response_status!=7 && $status==0){?>
num_rows()>0){ $re=$resp->row(); $mobile=$re->mobile; $email=$re->email; $message=$re->message; if($status==0){?>
load->view('front/includes/footer'); ?>