<?php include('common/header.php'); ?>

<div class="content">
                    
                    <!-- Start Content-->
                    <div class="container-fluid">
                        
                        <!-- start page title -->
                        <div class="row">
                            <div class="col-12">
                                <div class="page-title-box">
                                    <div class="page-title-right">
                                        <ol class="breadcrumb m-0">
                                            <li class="breadcrumb-item"><a href="javascript: void(0);"><?= $base_name;?></a></li>
                                            <li class="breadcrumb-item active">Dashboard</li>
                                        </ol>
                                    </div>
                                    <h4 class="page-title text-uppercase">Dashboard</h4>
                                </div>
                            </div>
                        </div>     
                        <!-- end page title --> 

                        <div class="row">
                            
                            
                            
                            <?php  if($result2['h']==1){ ?>
                        
                           
                            <div class="col-xl-3 col-md-6">
                                <div class="card-box tilebox-two">
                                    <i class="icon-map float-right text-info"></i>
                                    <h6 class="text-body mt-0 text-uppercase">Staff</h6>
                                    <h3><span data-plugin="counterup"><?php 
                                    	$this->db->where('vender',0);
		                                echo $result = $this->db->get('tbl_user')->num_rows();
                                    ?></span></h3>
                                </div>
                            </div>
                            <?php } if($result2['g']==1){ ?>
                            <div class="col-xl-3 col-md-6">
                                <div class="card-box tilebox-two">
                                    <i class="icon-map float-right text-danger"></i>
                                    <h6 class="text-body mt-0 text-uppercase">Total Cibil Check</h6>
                                    <h3><span data-plugin="counterup">
                                        <?php 
                                        if($_SESSION['admin']['id']!=1){
                                    	$this->db->where('user_id',$_SESSION['admin']['id']);
                                        }
		                                echo $result = $this->db->get('tbl_cibil')->num_rows();
                                    ?>
                                    </span></h3>
                                </div>
                            </div>
                            <?php } ?>
                           
                           
                        
                     
                        </div>
                        <!-- end row -->

                        
                    </div> <!-- end container-fluid -->

                </div> <!-- end content -->
                
                   
<?php include('common/footer.php'); ?>
