<?php 
	include_once("../view/header-footer/InnerHeader.php");   
	include_once("leftMenu.php");   
?>
 
<div id="main-content">
    <div class="container-fluid">
        <div class="block-header">
            <div class="row">
                <div class="col-lg-5 col-md-8 col-sm-12">                        
                    <h2><a href="javascript:void(0);"  class="btn btn-xs btn-link btn-toggle-fullwidth"><i class="fa fa-arrow-left"></i></a>Joining Income</h2>
                      <ul class="breadcrumb">  
                        <li style="color:green;font-style:bold"> <?php if(isset($_SESSION['Regis']))  echo $_SESSION['Regis'];?></li>
                    </ul>
                </div>            
            </div>
        </div>
        <div class="row clearfix">
            <div class="col-lg-12 col-md-12 col-sm-12">
                <div class="card">  
                    <div class="body">
                        <div class="table-responsive">
                            <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper dt-bootstrap4 no-footer">
                                <div class="row"><div class="col-sm-12 col-md-6">
                                    
                                        </div>
                                        
                                            </div><div class="row">
                                                <div class="col-sm-12">
                                                    <table class="table table-hover js-basic-example  " >
                                <thead>
                                    <tr role="row">
                                            <th>S No.</th>
                                            <th>By</th> 
                                            <th>Name</th> 
                                            <th>Genarated Date</th> 
                                            
                                            <th>Auto Withdraw</th> 
                                            <th>Received</th> 
                                            <th>Bank</th> 
                                            <th>Account</th> 
                                            <th>IFSC</th> 
                                            <th>Date</th>  
                                            <th>Paid/Unpaid</th> 
									</tr>
                                </thead>
                                <tbody>
                                
                                <?php 
                                $sr = 1;
                                //foreach($UI__DailyROIGene as $dmm) 
                                {
                                
                                $stmt=$conn->prepare("select *  from UI__Rgst  where cuurentId=:Rid  ");   
                                $stmt->bindValue(':Rid',  $_SESSION['userId'] , PDO::PARAM_INT);  
                                $stmt->execute(); 
                                $nm = $stmt->fetch(PDO::FETCH_OBJ);   
                                ?>
                                <tr>
                                <td><?php echo $sr++;?></td>
                                <td><?php echo $dmm->refId ;?></td>  
                                <td><?php echo $dmm->nm;?></td>
                                <td><?php echo $dmm->RegOn;?></td>
                                <td><?php echo 50;?></td> 
                                <td><?php echo (50)-((50*10)/100);?></td> 
                                <td><?php echo $dmm->Bname;?></td>  
                                <td><?php echo $dmm->Bnumber;?></td>  
                                <td><?php echo $dmm->Bifsc;?></td>
                                <td><?php echo $dmm->PaidDate;?></td>    
                                <td><?php if($dmm->paidStatus==1) echo "Paid";else echo "Unpaid";?></td>  
                                
                                </tr>
                                <?php } ?>

                    	
                    	
                    	    					
							</tbody>
                            </table></div></div>
                             
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php
    unset($_SESSION['Regis']);
	include_once("../view/header-footer/footer.php");    
?>