%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/ugotscom/public_html/dg/application/modules/bdashboard/views/
Upload File :
Create Path :
Current File : /home/ugotscom/public_html/dg/application/modules/bdashboard/views/bdash1.php

<script src="https://cdn.jsdelivr.net/npm/chart.js@2.9.3/dist/Chart.min.js"></script>
<div class="content-wrapper">
     <section class="content-header">
          <h1>Dashboard</h1>
     </section>

     <section class="content">
          <div class="row">

        
               <div class="col-lg-4 col-xs-6">
                    <div class="small-box bg-yellow">
                         <div class="inner">
                              <h3><?=$details;?></h3>
                              <p>Leads</p>
                         </div>
                         <div class="icon">
                              <i class="ion ion-person-add"></i>
                         </div>
                         
                              <a href="<?=base_url();?>emp/" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>    
                         
                    </div>
               </div>
        
               <div class="col-lg-4 col-xs-6">
                    <div class="small-box bg-green">
                         <div class="inner">
                              <h3><?=$hot_leads;?></h3>
                              <p>Hot Leads</p>
                         </div>
                         <div class="icon">
                              <i class="fa fa-tag"></i>
                         </div>
                          
                              <a href="<?=base_url();?>user" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>  
                    </div>
               </div>
          
               <div class="col-lg-4 col-xs-6">
                    <div class="small-box bg-blue">
                         <div class="inner">
                              <h3><?=$todaysfollowup;?></h3>
                              <p>Followup Today</p>
                         </div>
                         <div class="icon">
                              <i class="fa fa-shopping-cart"></i>
                         </div>
                            <a href="<?=base_url();?>followup" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>  
                    </div>
               </div>
          </div>
         
          <div class="row">
<div class="col-md-4">
  <p>Total Leads Generated by Each Staff</p>
       <table id="example1" class="table table-bordered table-striped">
                            <thead>
                                <tr>
                                  
                            <th class="text-center">Name</th>
                                  <th class="text-center">Leads Generated</th>
                                                              
                                </tr>
                            </thead>
                            <tbody>
                                <?php $i=1;
                                foreach ($totalno as $value) { ?>
                                <tr>
                                  
                                    <td class="text-center"><?=$value['name'];?></td>
                            <td class="text-center"><?=$value['total'];?></td>
                       
                            </tr>
                          <?php } ?>
                            </tbody>
                        </table>
</div>
<div class="col-md-4">
  <p>Total Leads Closed by Each Staff</p>
       <table id="example1" class="table table-bordered table-striped">
                            <thead>
                                <tr>
                                  
                            <th class="text-center">Name</th>
                                  <th class="text-center">Leads Closed</th>
                                                              
                                </tr>
                            </thead>
                            <tbody>
                                <?php $i=1;
                                foreach ($closedtotalno as $value) { ?>
                                <tr>
                                  
                                    <td class="text-center"><?=$value['name'];?></td>
                            <td class="text-center"><?=$value['total'];?></td>
                       
                            </tr>
                          <?php } ?>
                            </tbody>
                        </table>
</div>
<div class="col-md-4">
  <p>Most Leads Generated</p>
       <table id="example1" class="table table-bordered table-striped">
                            <thead>
                                <tr>
                                  
                            <th class="text-center">Enquiry Source</th>
                                  <th class="text-center">Leads Generated</th>
                                                              
                                </tr>
                            </thead>
                            <tbody>
                                <?php $i=1;
                                foreach ($enquirytotal as $value) { ?>
                                <tr>
                                  
                                    <td class="text-center"><?=$value['source'];?></td>
                            <td class="text-center"><?=$value['total'];?></td>
                       
                            </tr>
                          <?php } ?>
                            </tbody>
                        </table>
</div>
          </div>
        
       
           <div class="row">

        
               <div class="col-md-6">
  <canvas id="myChart" width="400" height="400"></canvas>
</div>
 <div class="col-md-6">
  <canvas id="myChart" width="400" height="400"></canvas>
</div>
</div>

<script>
 var data_click = <?php echo $chart_data; ?>;
alert(dd);
var ctx = document.getElementById('myChart').getContext('2d');
var xlabels=[];

xlabels.push(dd); 
var myChart = new Chart(ctx, {
    type: 'bar',
    data: {
        labels: [12, 19, 3, 5, 2, 3],
        datasets: [{
            label: '# of Votes',
            data: xlabels,
            backgroundColor: [
                'rgba(255, 99, 132)',
                'rgba(54, 162, 235)',
                'rgba(255, 206, 86, 0.2)',
                'rgba(75, 192, 192, 0.2)',
                'rgba(153, 102, 255, 0.2)',
                'rgba(255, 159, 64, 0.2)'
            ],
            borderColor: [
                'rgba(255, 99, 132, 1)',
                'rgba(54, 162, 235, 1)',
                'rgba(255, 206, 86, 1)',
                'rgba(75, 192, 192, 1)',
                'rgba(153, 102, 255, 1)',
                'rgba(255, 159, 64, 1)'
            ],
            borderWidth: 1
        }]
    },
    options: {
        scales: {
            yAxes: [{
                ticks: {
                    beginAtZero: true
                }
            }]
        }
    }
});
</script>
        
     </section>
</div>
 

   

Zerion Mini Shell 1.0