

<!--onLoad="window.print()"-->

<body >

	<?php $this->load->view("common/header"); ?>

	<style type="text/css">

.report_view_th{

	color:#000 !important;

	font-size:12px;	

}



.table-responsive td{

	font-size:11px;

	background-color:#fff !important;
		

}

h4{

	font-size:13px;

}

body{

	background-color:#fff !important;

}



table{
	
	font-size:12px;
	
}


</style>

</style>

		



<div class="">



         



         

            <div class="modal-body">



 <div style="top:2px;" class="panel-tools open">

<button data-toggle="dropdown" class="btn btn-blue dropdown-toggle" onClick="window.print()">

<i class="fa fa-print"></i>

</button>

</div>

<div class="row">

<div class="col-xs-12 text-center">





  <?php $this->load->view("common/report_header.php"); ?>

  

   </div><!--col-xs-12-->

</div><!--row-->   





<div style="margin-bottom:15px;" class="row">



<div class="col-xs-7 pull-left">



<h4 style="margin-top:10px;">Report : Daily Cash Collect Note</h4>
<br>
<br>
Summary

 <table  class="table table-bordered table-hover table-striped print-table order-table" border="1" id="" width="50%" >
   <!--<tr>
    <td></td>
    <td class="text-right">  <span id="f-date-txt"></span> <span id="t-date-txt"></span></td>
  </tr>
  <tr>-->
    <td width="50%" align="left">Cash Collector Name</td>
    <td width="50%"><div id="sale_rep_name">   <?php echo $summary['user_first_name']; ?></div></td>
  </tr>
  <tr>
    <td align="left">Route</td>
    <td><div id="rout">   <?php echo $summary['route_name']; ?></div></td>
  </tr>
  
  
 
  <tr>
    <td align="left">Total Collected Payments</td>
    <td><div id="total-payment-tbl">  <?php echo $summary['all_sale_pymnt_amount']; ?></div></td>
  </tr>
</table>
</div>

</div>          





<div class="table-responsive col-sm-4" style="display:none" >





<table class="table table-bordered table-hover table-striped print-table order-table" border="1" >

<thead>

<tr class="report_view_th">

<th class="col-sm-1 text-center">No</th>



<th>Referance No</th>


<th>Cash</th>




</tr>

</thead>

<tbody>

 <?php 

 

 $tmpcount=0;
 $tot_qty=0;

  foreach ($cash_list as $row)

 

 {

	 $tmpcount++;

	
?>
		
<td><?php echo $tmpcount; ?></td>
	
<td> <?php echo $row['card_ref_number']." / ".$row['sale_reference_no']; ?></td>



<td><?php echo $row['sale_pymnt_amount']; ?></td>







</tr>

<?php } ?>

<tr>

<td style="text-align:right; width:40px; vertical-align:middle;"></td>

<td style="vertical-align:middle;">

</td>

<td class="text-right"> <?php echo number_format($summary['all_sale_pymnt_amount'], 2, '.', ','); ?></td>














</tr>

</tbody>

<tfoot>



</tfoot>

</table>

</div>

<?php $count =count($cash_list);   ?>

<table class="table table-bordered table-hover table-striped print-table order-table" border="1">

<?   if ($count==1)

	{ ?>
		
 <th></th>
<th>Referance No</th>
<th>Cash</th>       
        
		
<?php 	}
?>

<?   if ($count==2)

	{ ?>
		
 <th></th>
<th>Referance No</th>
<th>Cash</th>   
<th></th>
<th>Referance No</th>
<th>Cash</th>    
        
		
<?php 	}
?>

<?   if ($count==3)

	{ ?>
		
 <th></th>
<th>Referance No</th>
<th>Cash</th>   
<th></th>
<th>Referance No</th>
<th>Cash</th>    
<th></th>
<th>Referance No</th>
<th>Cash</th>      
		
<?php 	}
?>

<?   if ($count>=4)

	{ ?>
    
    <th></th>
<th>Referance No</th>
<th>Cash</th>
		
 <th></th>
<th>Referance No</th>
<th>Cash</th>   
<th></th>
<th>Referance No</th>
<th>Cash</th>    
<th></th>
<th>Referance No</th>
<th>Cash</th>      
		
<?php 	}
?>





<?php
    $tab = $cash_list;
    $i=1;
    
    foreach($tab as $row){
        if ($i==1) echo '<tr> ';
        if($i%4==0){ $i=0; echo " <td></td> <td>".$row['card_ref_number']."</td> <td>".$row['sale_pymnt_amount']."</td> </tr>";}
        else {
          echo " <td> </td> <td>".$row['card_ref_number']."</td>" ." <td>".$row['sale_pymnt_amount']."</td>";
        }
        $i++;
    }
    
?>

</table>







<div class="row">

<div class="col-xs-12">

</div>

<div class="col-xs-5 pull-left">

<div class="well-sm">

<p>
<br>

Cash Handover By : ........................  </p> <p>
<br>

Cash Received By     : ........................ </p>
<br>
<p>

Check By             : ........................ </p>

</div>

</div>

<div class="col-xs-5 pull-right">

<div class="well-sm">

<p>

Created by:  <?php echo $this->session->userdata('ss_user_first_name'); ?> (<?php echo $this->session->userdata('ss_user_group_name'); ?>)</p> <p>

Date: <?php echo display_date_time_format(date("Y-m-d H:i:s")); ?> </p>

</div>

</div>

</div>



             

                 <!--/.col-md-12-->



</body>



