131 lines
4.2 KiB
PHP
131 lines
4.2 KiB
PHP
<?php $this->load->view('front/includes/header'); ?>
|
|
<link rel="stylesheet" href="<?=base_url();?>fassets/css/magnific-popup.css" type="text/css" />
|
|
<?php $primaryid=$this->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");
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<style>
|
|
.fbox-center .fbox-icon {
|
|
margin-bottom: 1rem!important;
|
|
}
|
|
.fbox-bg.fbox-center {
|
|
|
|
padding: 0 1rem 1rem !important;
|
|
|
|
}
|
|
.form-error{ text-align:end!important; }
|
|
.product-rating {
|
|
color: #f08627!important;
|
|
}
|
|
</style>
|
|
<section id="page-title" style="background-image: url('<?=base_url();?>fassets/images/about/333.jpg');">
|
|
|
|
<div class="container clearfix">
|
|
<h1 style="text-align:center"> User Profile</h1>
|
|
<span style="text-align:center;font-weight:500">Hi <?=ucwords($loggedusername);?> , Welcome to policybot</span>
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section id="content">
|
|
<div class="content-wrap ">
|
|
<div class="container clearfix">
|
|
<div class="row" >
|
|
<div class="col-md-4 col-lg-3">
|
|
<?php $this->load->view('front/includes/leftmenu'); ?>
|
|
</div>
|
|
<div class="col-md-8 col-lg-9">
|
|
<div class="row col-sm-12 ">
|
|
<h3 >Response From Agents</h3>
|
|
<?php if(isset($user_req) && $user_req->num_rows()>0){
|
|
foreach($user_req->result() as $urq){
|
|
$agentname=$urq->agentname;
|
|
$quote_id=$urq->quote_id;
|
|
$user_id=$urq->user_id;
|
|
$agency_id=$urq->agency_id;
|
|
$mobile=$urq->mobile;
|
|
$email=$urq->email;
|
|
$message=$urq->message;
|
|
$status=$urq->status;
|
|
$profilepic=$urq->profilepic;
|
|
$agency_id=$urq->agency_id;
|
|
$revw=$CI->frontend_model->agent_review_from_user($agency_id);
|
|
if($revw->num_rows()>0)
|
|
{
|
|
$rw=$revw->row();
|
|
$rating=$rw->rating;
|
|
$text=$rw->text;
|
|
$emptystar=5-$rating;
|
|
}
|
|
else {$rating="0";$emptystar=5-$rating;}
|
|
?>
|
|
<div class="col-sm-6 col-lg-4" >
|
|
<div class="feature-box fbox-center fbox-bg fbox-plain">
|
|
<div class="fbox-icon">
|
|
<?php if($profilepic==""){ ?> <i class="icon-user"></i> <?php }
|
|
else{ ?> <img src="<?=base_url();?><?=$profilepic;?>" style="border-radius: 35px!important;"> <?php } ?>
|
|
</div>
|
|
|
|
<div class="fbox-content" style="margin-bottom:10px">
|
|
<a href="<?=base_url();?>view-agent-profile/<?=$agency_id;?>/<?=$quote_id;?>" title="View Agent Profile"><h3> <?=ucwords($agentname);?><div class="counter counter-small" style="color: #1abc9c;"> </div></h3></a>
|
|
</div>
|
|
<div class="product-rating" style="color: #ed2727;">
|
|
<?php for($i=1;$i<=$rating;$i++) { ?>
|
|
<i class="icon-star3"></i>
|
|
<?php } ?>
|
|
<?php for($j=1;$j<=$emptystar;$j++) { ?>
|
|
<i class="icon-star-empty"></i>
|
|
<?php } ?>
|
|
|
|
|
|
</div>
|
|
<p style="margin-bottom:2px;text-decoration:underline; font-weight: 900;">Message </p> <?=$message;?><br>
|
|
<?php if($status=="0"){?>
|
|
<a href="<?=base_url();?>frontend/user_reply_to_quote/<?=$agency_id;?>/<?=$user_id;?>/<?=$quote_id;?>/1" class="button button-mini button-border button-rounded button-green " ><i class="icon-ok"></i>Accept</a>
|
|
<a href="<?=base_url();?>frontend/user_reply_to_quote/<?=$agency_id;?>/<?=$user_id;?>/<?=$quote_id;?>/7" class="button button-mini button-border button-rounded button-red " ><i class="icon-remove"></i>Not Interest</a>
|
|
<?php } if($status=="1"){?>
|
|
<a class="button button-mini button-border button-rounded button-green "><i class="icon-ok"></i>Accepted</a>
|
|
<?php } if($status=="2"){ ?>
|
|
<a class="button button-mini button-border button-rounded button-red " ><i class="icon-remove"></i>Cancelled</a>
|
|
|
|
<?php } ?>
|
|
</div>
|
|
</div>
|
|
<?php } } else{ ?>
|
|
No Response..!
|
|
<?php } ?>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
|
|
<?php $this->load->view('front/includes/footer'); ?>
|
|
|