<?php
/*refill_history
///////////////////////////////////////////////////////////////////////
/  Project Name 	: Gurudev
/  File Name 		: admin_type_list.php  
/  Created on  		: 18/08/2017
/  Created by       : Pintu
/  Last Changed By 	: 
/  Updated On		: 
/  Purpose			: To view list of admin type
/  ---------
/  
////////////////////////////////////////////////////////////////////////
*/
?>
<?php
	include('common/header.php');
?>
<!-- <div class="row">
	<div class="input-group" style="width: 460px; float: right; margin-right: 20px;">
				<input type="text" class="form-control search-query" placeholder="Search" />
					<span class="input-group-btn">
						<button type="button" class="btn btn-inverse btn-white">
							<span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
							 Search
						</button>
					</span>
		</div>
</div> -->
<br>
<br>
<div class="row">
	<div class="col-xs-12">
		<div class="table-header">
			
		</div>
		<div class="widget-body">
					<div class="widget-main">
						<div class="row">
							<div class="col-sm-12">
								<form class="form-horizontal" role="form" name="module_form" id="module_form">
								<div class="">
									<!-- PAGE CONTENT BEGINS -->
									<?php if($dis_country_name!=""){?>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Country';?> </label>
										<div class="col-sm-7">	
											<?php echo $dis_country_name?>
										</div>
									</div>
									<?php }
									 if($dis_state_name!=""){
									?>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'State';?> </label>
										<div class="col-sm-7">	
											<?php echo $dis_state_name?>
										</div>
									</div>
									<?php }
									 if($dis_city_name!=""){
									?>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'City';?> </label>
										<div class="col-sm-7">	
											<?php echo $dis_city_name?>
										</div>
									</div>	
									<?php }
									 if($dis_customer_name!=""){
									?>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Customer Name ';?> </label>
										<div class="col-sm-7">	
											<?php echo $dis_customer_name;?>
										</div>
									</div>
									<?php }
									 if($dis_product_name!=""){
									?>
									<div class="form-group">  
                                        <label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Dispenser';?> </label>
                                        <div class="col-sm-7">  
                                          <?php echo $dis_product_name;?>
                                        </div>
                                    </div>
									 <?php }?>
								</div>
								</form>	
							</div>
						</div>
					</div>	
				</div>
		<div class="table-responsive">
		<table cellspacing="0" width="100%" class="table table-bordered table-condensed">
			<thead>
				<tr>
					<th>Sr No</th>					
					<th>Refill Name</th>
					<th>Quantity</th>
					<th>Duration</th>
					<th>Refilling Date</th>
					<th>Next Due Date</th>
					<th>Location</th>
					<th>Comment</th>
				</tr>	
			</thead>
			 <tbody>
				<?php 
				$srno=1;
                 foreach ($refill_history as $value) {
                 $dispenser_sales_id=$value['dispenser_sales_id'];
                // $id= $this->encrypt->encode($dispenser_sales_id);
                 //$dispenser_refill_details_id= $this->encrypt->encode($dispenser_refill_details_id);

				 ?>
				<tr>
					<td><?php echo $srno; ?></td>
					
					<td><?php echo $value['refill']; ?></td>
					<td><?php echo $value['quantity']; ?></td>
					<td><?php echo $value['duration_days']; ?></td>		
					<?php 
                     if ($value['refill_date']=='0000-00-00') {?>
					<td><?php echo $value['refill_date']; ?></td><?php }else{?>
					<td><?php echo get_date_dmy_format_wo_time($value['refill_date']); ?></td>
					<?php } ?>
					<?php 
                     if ($value['installation_date']=='0000-00-00') {?>
					<td><?php echo $value['next_refill_date']; ?></td><?php }else{?>
					<td><?php echo get_date_dmy_format_wo_time($value['next_refill_date']); ?></td>
					<?php } ?>	
					<td><?php echo $value['refill_location']; ?></td>	
					<td><?php echo $value['comments']; ?></td>
				</tr>
			<?php 
			$srno=$srno+1;
		     } 
		     ?>
               
            </tbody>
		</table>
		</div>

		<div class="clearfix form-actions">
			<div class="col-md-offset-5 col-md-5">
				<button class="btn btn-info" type="button" onclick="javascript:window.location='<?php echo base_url();?>index.php/gc/refill_history/'">
					Back
				</button>
			</div>
		</div>
		
	</div>
</div>
<div>
	<!-- /.page-row -->
    <!-- /.page-content --> 
</div>
<!-- /.main-content --> 
</div>
<!-- /#ace-settings-container --> 
</div>
<!-- /.main-container-inner --> 
<?php
	include('common/footer.php');
?>