 
   <div class="form-group" >
                             
 	<?php if(!empty($all_data)){ 

 		foreach ($all_data as $value) { 


 		$get_type = get_for_bom_type($value['product_id']);

 		if($get_type ==1){

 		 $p_name = product_name($value['product_id']);
 		 $p_id = $value['product_id'];
 		?>

        <label class="form-label"><b>Semi Finish:</b></label>
          <input type="text" id="product_id" name="product_id[]" required="required" value="<?php echo $p_name;  ?>" class="form-control">
      <label class="form-label"><b>IN Stock:</b></label>
           <input type="text" id="in_stock" name="in_stock[]"  required="required" value="<?php echo get_in_balance($p_id)-get_out_balance($p_id);?>" class="form-control">

<?php } } } ?>
       
     
         </div>
                               

 <div class="col-lg-12 col-md-6 col-sm-12">
                            <div class="form-group">
                                <label class="form-label">Remarks:</label>
                                <textarea  class="form-control remarks" name="remarks" id="remarks"></textarea>  
                             </div>
                         </div>

