<!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:1.2ch;
}
.flex-container > div > img{
	width:100%;
}
</style>
</head>
<body>
<?php 
 $price = $product_details->retail_cash;
 $price = $price*1.1;
 
 
?>
<div class="flex-container">
  <div>
  	<label><?php echo substr($product_details->product_name, 0,15);?></label>
  	<img src="<?php echo base_url().'products/gen_barcode/'.$product_details->product_code.'/30'; ?>">
    <label><?php echo "RS ".number_format($price, 2, '.', ','); ?></label>
  </div>
  <div>
  	<label><?php echo substr($product_details->product_name, 0,15);?></label>
  	<img src="<?php echo base_url().'products/gen_barcode/'.$product_details->product_code.'/30'; ?>">
    <label><?php echo "RS ".number_format($price, 2, '.', ','); ?></label>
  </div>
  <div>
  	<label><?php echo substr($product_details->product_name, 0,15);?></label>
  	<img src="<?php echo base_url().'products/gen_barcode/'.$product_details->product_code.'/30'; ?>">
    <label><?php echo "RS ".number_format($price, 2, '.', ','); ?></label>
  </div>
</div>
<script>
    window.print();
</script>
</body>
</html>
