policybot/application/views/admin/dashboard-not-response.php

254 lines
8.4 KiB
PHP
Raw Normal View History

2021-11-30 10:56:55 +00:00
<?php $this->load->view('admin/includes/header');?>
<!-- start page container -->
<div class="page-container">
<?php $this->load->view('admin/includes/sidebar');?>
<!-- start page content -->
<div class="page-content-wrapper">
<div class="page-content">
<div class="page-bar">
<div class="page-title-breadcrumb">
<div class=" pull-left">
<div class="page-title">Dashboard</div>
</div>
<ol class="breadcrumb page-breadcrumb pull-right">
<li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="index.html">Home</a>&nbsp;<i class="fa fa-angle-right"></i>
</li>
<li class="active">Dashboard</li>
</ol>
</div>
</div>
<?php $this->load->view('admin/includes/msg');?>
<div class="state-overview">
<div class="row">
<?php if($quo->num_rows()>0){
$q=$quo->row();
$get_quotes=$q->quotecount;
} ?>
<!-- /.col -->
<div class="col-xl-4 col-md-6 col-12">
<a href="javascript:;" class="show_quotes_details" id="1"><div class="info-box bg-warning">
<span class="info-box-icon "><i class="material-icons">offline_pin</i></span>
<div class="info-box-content">
<span class="info-box-text">Total Quotes</span>
<span class="info-box-number"><?=$get_quotes;?></span>
</div>
<!-- /.info-box-content -->
</div></a>
<!-- /.info-box -->
</div>
<?php if($req->num_rows()>0){
$r=$req->row();
$requestcount=$r->requestcount;
} ?>
<!-- /.col -->
<div class="col-xl-4 col-md-6 col-12">
<a href="javascript:;" class="show_quotes_details" id="2" ><div class="info-box bg-blue">
<span class="info-box-icon "><i class="material-icons">redo</i></span>
<div class="info-box-content">
<span class="info-box-text">Open Requests</span>
<span class="info-box-number"><?=$requestcount;?></span>
</div>
<!-- /.info-box-content -->
</div></a>
<!-- /.info-box -->
</div>
<?php if($res->num_rows()>0){
$responsecount=$res->num_rows();
} ?>
<!-- /.col -->
<div class="col-xl-4 col-md-6 col-12">
<a href="javascript:;" class="show_quotes_details" id="3" ><div class="info-box bg-orange">
<span class="info-box-icon "><i class="material-icons">reply</i></span>
<div class="info-box-content">
<span class="info-box-text">Responsed quotes</span>
<span class="info-box-number"><?=$responsecount;?></span>
</div>
<!-- /.info-box-content -->
</div></a>
<!-- /.info-box -->
</div>
<?php $not_rspon=$get_quotes-$responsecount;?>
<!-- /.col -->
<div class="col-xl-4 col-md-6 col-12">
<a href="javascript:;" class="show_quotes_details" id="4"><div class="info-box bg-purple">
<span class="info-box-icon "><i class="material-icons">close</i></span>
<div class="info-box-content">
<span class="info-box-text">Not Responding quotes</span>
<span class="info-box-number"><?=$not_rspon;?></span>
</div>
<!-- /.info-box-content -->
</div></a>
<!-- /.info-box -->
</div>
<?php if($ongo->num_rows()>0){
$o=$ongo->row();
$oncount=$o->oncount;
} ?>
<!-- /.col -->
<div class="col-xl-4 col-md-6 col-12">
<a href="javascript:;" class="show_quotes_details" id="5" ><div class="info-box bg-success">
<span class="info-box-icon "><i class="material-icons">arrow_forward</i></span>
<div class="info-box-content">
<span class="info-box-text">Current Onboard</span>
<span class="info-box-number"><?=$oncount;?></span>
</div>
<!-- /.info-box-content -->
</div></a>
<!-- /.info-box -->
</div>
<?php if($com->num_rows()>0){
$c=$com->row();
$comcount=$c->comcount;
} ?>
<div class="col-xl-4 col-md-6 col-12">
<a href="javascript:;" class="show_quotes_details" id="6" ><div class="info-box bg-danger">
<span class="info-box-icon "><i class="material-icons">check</i></span>
<div class="info-box-content">
<span class="info-box-text">Total Completion </span>
<span class="info-box-number"><?=$comcount;?></span>
</div>
<!-- /.info-box-content -->
</div></a>
<!-- /.info-box -->
</div>
<!-- /.col -->
</div>
</div>
<!-- end widget -->
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-12">
<div class="card card-box">
<div class="card-head">
<header> Received Quotes</header>
<div class="tools">
<a class="fa fa-repeat btn-color box-refresh" href="javascript:;"></a>
<a class="t-collapse btn-color fa fa-chevron-down" href="javascript:;"></a>
<a class="t-close btn-color fa fa-times" href="javascript:;"></a>
</div>
</div>
<div class="card-body ">
<div class="table-wrap viewdashboarddetails">
<div class="table-scrollable">
<table class="table table-hover table-checkable order-column full-width" id="example4">
<thead>
<tr >
<th >S no</th>
<th > Customer Name </th>
<th > Agent Name </th>
<th > Category </th>
<th > Policy </th>
<th > Date </th>
</tr>
</thead>
<tbody>
<?php
if(isset($quo_det)&& $quo_det->num_rows()>0)
{ $i=1;
foreach($quo_det->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;
$a_color="#fd653b";
}
}
else
{
$agency_name="Not Assigned"; $a_color="#dc3545";
}
//customer details
$tables="users";
$wheres=array("id"=>$user_id);
$shows=("*");
$custname=$this->commonsql_model->selectTable($tables,$wheres,$shows);
if ($custname->num_rows()>0){
$c=$custname->row();
$custname_name=$c->name;
}
?>
<tr>
<td><?=$i;?></td>
<td style="font-weight: 900;"> <?=ucwords($custname_name);?></td>
<td style="color:<?=$a_color;?>;font-weight: 900;"> <?=ucwords($agency_name);?></td>
<td> <?=$ategoryname;?></td>
<td><a style="font-weight:900;color: #fd6003;" href="<?=base_url();?>policy-detail/<?=$policy_id;?>"><?=$policyname;?></a></td>
<td><?=date("d-m-Y H:i:s",strtotime($cdate)); ?></td>
</tr>
<?php $i++;} } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end page content -->
</div>
<!-- end page container -->
<?php $this->load->view('admin/includes/footer');?>