<!DOCTYPE html>
<html>
<head>
<style>
.flex-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content:center;
}

.flex-container > div {
    /*border:solid 1px;*/
    margin-left: 0px;
    margin-right: 15px;
    
    margin-top: 0px;
    margin-bottom: 0px;
    
    width: 100%;
    text-align: center;
    line-height: 70px;
    font-size: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    page-break-after:always;
}
.flex-container > div>label {
  text-align: center;
  line-height: normal;
  font-size:1ch;
}
.flex-container > div > img{
	width:100%;
}
</style>
</head>
<body>
<?php 

 
 $price = $batch_data->retail_cash;
 $price = $price*1.1;
 
for($i=0;$i<$row_count;$i++)
{
?>
<div class="flex-container">
  <div>
  	<label><?php echo substr($batch_data->product_name, 0,15);?></label>
  	<img src="<?php echo base_url().'products/gen_barcode/'.$batch_data->batch_ref_number.'/30'; ?>">
    <label><?php echo "RS ".number_format($price, 2, '.', ','); ?></label>
  </div>
  <div>
  	<label><?php echo substr($batch_data->product_name, 0,15);?></label>
  	<img src="<?php echo base_url().'products/gen_barcode/'.$batch_data->batch_ref_number.'/30'; ?>">
    <label><?php echo "RS ".number_format($price, 2, '.', ','); ?></label>
  </div>
  <div>
  	<label><?php echo substr($batch_data->product_name, 0,15);?></label>
  	<img src="<?php echo base_url().'products/gen_barcode/'.$batch_data->batch_ref_number.'/30'; ?>">
    <label><?php echo "RS ".number_format($price, 2, '.', ','); ?></label>
  </div>
</div>
<?php
}
?>
<script>
    window.print();
</script>
</body>
</html>
