 
 <?php $material_type = material_type_po($get_qc_view[0]['material_id']); ?>

 <?php if($material_type==1){?>
<div class="col-xl-12 col-xxl-12 col-lg-12">
                        <div class="card">
                            <div class="card-header">
                                <p>Remarks by QC: Please refer to the product/material specifications provided by the supplier.</p>
                            </div>

                            
                              <?php echo form_open(base_url(''),array('class'=>"form-horizontal add_dc_raw_material", 'id'=>"add_dc_raw_material")); ?>
                            <div class="card-body">
                           
                            <h3>Raw Material</h3>
                                <div class="basic-form">
                                    <?php if($this->session->flashdata('add_raw_material_success')){ ?>
                            <div class="alert alert-success solid" style='text-align:center;'><?php echo $this->session->flashdata('add_raw_material_success'); ?></div>
                        <?php } ?>
                                    <div id='add_raw_material_success' class='alert alert-success solid' style="display: none;">
                                      
                                    </div>  

                                        
                                        <div class="form-row">
                                            <div class="form-group col-md-3">
                                                <label><strong>Size</strong></label>
                                                <div class="">
                                                	<select id="size" name="size" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Weight</strong></label>
                                                <div class=""><select id="weight" name="weight" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Color</strong></label>
                                                <div class=""><select id="color" name="color" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Brand /Grade</strong></label>
                                                <div class=""><select id="brand_grade" name="brand_grade" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>
                                           
                                        </div>
                                        

                                         <div class="form-row">
                                            <div class="form-group col-md-3">
                                                <label><strong>Bag Condition</strong></label>
                                                <div class=""><select id="bag_condition" name="bag_condition" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Oil,Grease,Stains</strong></label>
                                                <div class=""><select name="oil_grease" id="oil_grease" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Insects</strong></label>
                                                <div class=""><select id="insects" name="insects" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Quantity</strong></label>
                                                <div class=""><select id="quantity" name="quantity" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>
                                           
                                        </div>
                                        <div class="form-row">
                                            <div class="form-group col-md-8">
                                                <label><strong>Consignment:</strong></label>
                                            </div>
                                                
                                        </div>

                                        <div class="form-row">
                                         <div class="form-group col-md-4">
                                           
                                                    <div class="">
                                                        <select id="consignment" name="consignment" required="required" class="form-control" tabindex="-98">
                                                    <option value="">Choose Option</option>
                                                    <option value="1">OK</option>
                                                    <option value="3">Reject</option>
                                                    <!-- <option value="4">Hold</option> -->
                                                    </select>
                                            </div>
                                            </div>
                                        </div>

                                        <div class="form-row">
                                            <div class="form-group col-md-8">
                                                <label>The Products conform to the Specification:</label>
                                            </div>
                                                
                                        </div>
                                        <div class="form-row">
                                         <div class="form-group col-md-4">
                                           
                                                    <div class="">
                                                        <select id="conform_spec" name="conform_spec" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Yes</option>
                                                    <option value="2">No</option>
                                                    </select>
                                            </div>
                                            </div>
                                        </div>
                                        <div class="form-row">
                                            <div class="form-group col-md-8">
                                                <label>Weight:</label>
                                             <input type="text" name="weight_w" id="weight_w" class="form-control">
                                        </div>
                                    </div>

                                        <div class="form-row">
                                            <div class="form-group col-md-8">
                                                <label>Remarks:</label>
                                            <textarea class="form-control" name="remarks" rows="4" id="remarks"></textarea>
                                        </div>
                                    </div>
                                    <input type="hidden" name="po_id" id="po_id" value="<?php echo $get_qc_view[0]['po_id']; ?>">
                                    <input type="hidden" name="dc_id" id="dc_id" value="<?php echo $get_qc_view[0]['dc_id']; ?>">
                                    <input type="hidden" name="material_id" id="material_id" value="<?php echo $get_qc_view[0]['material_id']; ?>">
                                    <input type="hidden" name="qty" id="qty" value="<?php echo $get_qc_view[0]['qty']; ?>">
                                    <input type="hidden" name="user_id" id="user_id" value="<?php echo $this->session->userdata('id');?>">
                                    
                                        <input type="hidden" name="created" id="created" value="<?php echo date('Y-m-d H:i:s'); ?>" class="form-control required">
                                         <input type="hidden" value="<?php echo date('Y-m-d H:i:s'); ?>" name="modified" id="modified" class="form-control required">
                                        <button type="submit" id="dis_raw" class="btn btn-primary">Submit QC & Print</button>
                                    
                                       
                                </div>
                             <?php form_close();?>
                            </div>
                        </div>
                    </div>

                    <?php }else if($material_type==2){?> 

                        

                    	<div class="col-xl-12 col-xxl-12 col-lg-12">
                        <div class="card">
                            <div class="card-header">
                                <p>Remarks by QC: Please refer to the product/material specifications provided by the supplier.</p>
                            </div>
                            
                            <div class="card-body">
                              <?php echo form_open(base_url(''),array('class'=>"form-horizontal add_dc_packing_material", 'id'=>"add_dc_packing_material")); ?>
                                        
                            <h3>Packing Material</h3>
                                <div class="basic-form">
                                 
                             <?php if($this->session->flashdata('add_dc_packing_material123')){ ?>
                            <div class="alert alert-success solid" style='text-align:center;'><?php echo $this->session->flashdata('add_dc_packing_material123'); ?></div>
                                <?php } ?>
                                    <div id='add_dc_packing_material123' class='alert alert-success solid' style="display: none;">
                                      
                                    </div>  
                                        <div class="form-row">
                                            <div class="form-group col-md-3">
                                                <label><strong>Dimensions</strong></label>
                                                <div class="">
                                                	<select id="dimensions" name="dimensions" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Thickness</strong></label>
                                                <div class=""><select id="thickness" name="thickness" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Printing</strong></label>
                                                <div class=""><select id="printing" name="printing" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Burst Strength</strong></label>
                                                <div class=""><select id="burst_strength" name="burst_strength" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>
                                           
                                        </div>
                                        

                                         <div class="form-row">
                                            <div class="form-group col-md-3">
                                                <label><strong>Crush Strength</strong></label>
                                                <div class=""><select id="crush_strength" name="crush_strength" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Oil,Grease,Stain</strong></label>
                                                <div class=""><select id="oil_grease" name="oil_grease" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Insects</strong></label>
                                                <div class=""><select id="insects" name="insects" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Smell</strong></label>
                                                <div class=""><select id="smell" name="smell" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>
                                           
                                        </div>
                                        <div class="form-row">
                                            <div class="form-group col-md-8">
                                                <label><strong>Consignment:</strong></label>
                                            </div>
                                                
                                        </div>

                                        <div class="form-row">
                                         <div class="form-group col-md-4">
                                           
                                                    <div class=""><select id="consignment" required="required" name="consignment" class="form-control" tabindex="-98">
                                                    <option value="">Choose Option</option>
                                                    <option value="1">OK</option>
                                                    <option value="3">Reject</option>
                                                    <!-- <option value="4">Hold</option> -->
                                                    </select>
                                            </div>
                                            </div>
                                        </div>

                                        <div class="form-row">
                                            <div class="form-group col-md-8">
                                                <label>The Products conform to the Specification:</label>
                                            </div>
                                                
                                        </div>
                                        <div class="form-row">
                                         <div class="form-group col-md-4">
                                           
                                                    <div class=""><select id="conform_spec" name="conform_spec" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Yes</option>
                                                    <option value="2">No</option>
                                                    </select>
                                            </div>
                                            </div>
                                        </div>
                                        <div class="form-row">
                                            <div class="form-group col-md-8">
                                                <label>Weight:</label>
                                             <input type="text" name="weight_w" id="weight_w" class="form-control">
                                        </div>
                                    </div>

                                        <div class="form-row">
                                            <div class="form-group col-md-8">
                                                <label>Remarks:</label>
                                            <textarea class="form-control" rows="4" id="remarks" name="remarks"></textarea>
                                        </div>
                                    </div>
                                        <input type="hidden" name="po_id" id="po_id" value="<?php echo $get_qc_view[0]['po_id']; ?>">
                                    <input type="hidden" name="dc_id" id="dc_id" value="<?php echo $get_qc_view[0]['dc_id']; ?>">
                                    <input type="hidden" name="material_id" id="material_id" value="<?php echo $get_qc_view[0]['material_id']; ?>">
                                    <input type="hidden" name="qty" id="qty" value="<?php echo $get_qc_view[0]['qty']; ?>">
                                    <input type="hidden" name="user_id" id="user_id" value="<?php echo $this->session->userdata('id');?>">
                                    
                                        <input type="hidden" name="created" id="created" value="<?php echo date('Y-m-d H:i:s'); ?>" class="form-control required">
                                         <input type="hidden" value="<?php echo date('Y-m-d H:i:s'); ?>" name="modified" id="modified" class="form-control required">

                                        <button type="submit" id="dis_pack" class="btn btn-primary">Submit QC & Print</button>
                                    <?php form_close();?>
                                </div>
                            
                            </div>
                        </div>
                    </div>


                    <?php }else if($material_type==3){?>
                                    <div class="col-xl-12 col-xxl-12 col-lg-12">
                        <div class="card">
                            <div class="card-header">
                                <p>Remarks by QC: Please refer to the product/material specifications provided by the supplier.</p>
                            </div>

                            
                              <?php echo form_open(base_url(''),array('class'=>"form-horizontal add_dc_color_material", 'id'=>"add_dc_color_material")); ?>
                            <div class="card-body">
                           
                            <h3>Color Material</h3>
                                <div class="basic-form">
                                    <?php if($this->session->flashdata('add_raw_material_success')){ ?>
                            <div class="alert alert-success solid" style='text-align:center;'><?php echo $this->session->flashdata('add_raw_material_success'); ?></div>
                        <?php } ?>
                                    <div id='add_raw_material_success' class='alert alert-success solid' style="display: none;">
                                      
                                    </div>  

                                        
                                        <div class="form-row">
                                            <div class="form-group col-md-3">
                                                <label><strong>Size</strong></label>
                                                <div class="">
                                                    <select id="size" name="size" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Weight</strong></label>
                                                <div class=""><select id="weight" name="weight" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Color</strong></label>
                                                <div class=""><select id="color" name="color" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Brand /Grade</strong></label>
                                                <div class=""><select id="brand_grade" name="brand_grade" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>
                                           
                                        </div>
                                        

                                         <div class="form-row">
                                            <div class="form-group col-md-3">
                                                <label><strong>Bag Condition</strong></label>
                                                <div class=""><select id="bag_condition" name="bag_condition" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Oil,Grease,Stains</strong></label>
                                                <div class=""><select name="oil_grease" id="oil_grease" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Insects</strong></label>
                                                <div class=""><select id="insects" name="insects" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Quantity</strong></label>
                                                <div class=""><select id="quantity" name="quantity" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>
                                           
                                        </div>
                                        <div class="form-row">
                                            <div class="form-group col-md-8">
                                                <label><strong>Consignment:</strong></label>
                                            </div>
                                                
                                        </div>

                                        <div class="form-row">
                                         <div class="form-group col-md-4">
                                           
                                                    <div class=""><select id="consignment" required="required" name="consignment" class="form-control" tabindex="-98">
                                                    <option value="">Choose Option</option>
                                                    <option value="1">OK</option>
                                                    <option value="3">Reject</option>
                                                    <!-- <option value="4">Hold</option> -->
                                                    </select>
                                            </div>
                                            </div>
                                        </div>

                                        <div class="form-row">
                                            <div class="form-group col-md-8">
                                                <label>The Products conform to the Specification:</label>
                                            </div>
                                                
                                        </div>
                                        <div class="form-row">
                                         <div class="form-group col-md-4">
                                           
                                                    <div class="">
                                                        <select id="conform_spec" name="conform_spec" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Yes</option>
                                                    <option value="2">No</option>
                                                    </select>
                                            </div>
                                            </div>
                                        </div>
                                        <div class="form-row">
                                            <div class="form-group col-md-8">
                                                <label>Weight:</label>
                                             <input type="text" name="weight_w" id="weight_w" class="form-control">
                                        </div>
                                    </div>

                                        <div class="form-row">
                                            <div class="form-group col-md-8">
                                                <label>Remarks:</label>
                                            <textarea class="form-control" name="remarks" rows="4" id="remarks"></textarea>
                                        </div>
                                    </div>
                                    <input type="hidden" name="po_id" id="po_id" value="<?php echo $get_qc_view[0]['po_id']; ?>">
                                    <input type="hidden" name="dc_id" id="dc_id" value="<?php echo $get_qc_view[0]['dc_id']; ?>">
                                    <input type="hidden" name="material_id" id="material_id" value="<?php echo $get_qc_view[0]['material_id']; ?>">
                                    <input type="hidden" name="qty" id="qty" value="<?php echo $get_qc_view[0]['qty']; ?>">
                                    <input type="hidden" name="user_id" id="user_id" value="<?php echo $this->session->userdata('id');?>">
                                    
                                        <input type="hidden" name="created" id="created" value="<?php echo date('Y-m-d H:i:s'); ?>" class="form-control required">
                                         <input type="hidden" value="<?php echo date('Y-m-d H:i:s'); ?>" name="modified" id="modified" class="form-control required">
                                        <button type="submit" id="dis_raw" class="btn btn-primary">Submit QC & Print</button>
                                    
                                       
                                </div>
                             <?php form_close();?>
                            </div>
                        </div>
                    </div>

                    <?php }else { ?>

                         <div class="col-xl-12 col-xxl-12 col-lg-12">
                        <div class="card">
                            <div class="card-header">
                                <p>Remarks by QC: Please refer to the product/material specifications provided by the supplier.</p>
                            </div>
                            
                            <div class="card-body">
                           <?php echo form_open(base_url(''),array('class'=>"form-horizontal add_dc_product", 'id'=>"add_dc_product")); ?>
                                   
                            <h3>Products</h3>
                                <div class="basic-form">
                                   <?php if($this->session->flashdata('add_dc_product123')){ ?>
                            <div class="alert alert-success solid" style='text-align:center;'><?php echo $this->session->flashdata('add_dc_product123'); ?></div>
                                <?php } ?>
                                    <div id='add_dc_product123' class='alert alert-success solid' style="display: none;">
                                      
                                    </div>  
                                        
                                       <div class="form-row">
                                            <div class="form-group col-md-3">
                                                <label><strong>Dimensions</strong></label>
                                                <div class="">
                                                    <select id="dimensions" name="dimensions" required="required" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Thickness</strong></label>
                                                <div class=""><select id="thickness" name="thickness" required="required" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Printing</strong></label>
                                                <div class=""><select id="printing" name="printing" required="required" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Burst Strength</strong></label>
                                                <div class=""><select id="burst_strength" required="required" name="burst_strength" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>
                                           
                                        </div>
                                        

                                         <div class="form-row">
                                            <div class="form-group col-md-3">
                                                <label><strong>Crush Strength</strong></label>
                                                <div class=""><select id="crush_strength" required="required" name="crush_strength" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Oil,Grease,Stain</strong></label>
                                                <div class=""><select id="oil_grease" required="required" name="oil_grease" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Insects</strong></label>
                                                <div class=""><select id="insects" name="insects" required="required" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>

                                            <div class="form-group col-md-3">
                                                <label><strong>Smell</strong></label>
                                                <div class=""><select id="smell" name="smell" required="required" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Conform</option>
                                                    <option value="2">Not Conform</option>
                                                    </select>
                                            </div>
                                            </div>
                                           
                                        </div>
                                        <div class="form-row">
                                            <div class="form-group col-md-8">
                                                <label><strong>Consignment:</strong></label>
                                            </div>
                                                
                                        </div>

                                        <div class="form-row">
                                         <div class="form-group col-md-4">
                                           
                                                    <div class=""><select id="consignment" required="required" name="consignment" class="form-control" tabindex="-98">
                                                    <option value="">Choose Option</option>
                                                    <option value="1">OK</option>
                                                    <option value="3">Reject</option>
                                                   
                                                    </select>
                                            </div>
                                            </div>
                                        </div>

                                        <div class="form-row">
                                            <div class="form-group col-md-8">
                                                <label>The Products conform to the Specification:</label>
                                            </div>
                                                
                                        </div>
                                        <div class="form-row">
                                         <div class="form-group col-md-4">
                                           
                                                    <div class=""><select id="conform_spec" required name="conform_spec" class="form-control" tabindex="-98">
                                                    <option selected="">Choose Option</option>
                                                    <option value="1">Yes</option>
                                                    <option value="2">No</option>
                                                    </select>
                                            </div>
                                            </div>
                                        </div>

                                         <div class="form-row">
                                            <div class="form-group col-md-8">
                                                <label>Weight:</label>
                                             <input type="text" name="weight_w" id="weight_w" class="form-control">
                                        </div>
                                    </div>


                                        <div class="form-row">
                                            <div class="form-group col-md-8">
                                                <label>Remarks:</label>
                                            <textarea class="form-control" rows="4" id="remarks" name="remarks"></textarea>
                                        </div>
                                    </div>
                                     <input type="hidden" name="po_id" id="po_id" value="<?php echo $get_qc_view[0]['po_id']; ?>">
                                    <input type="hidden" name="dc_id" id="dc_id" value="<?php echo $get_qc_view[0]['dc_id']; ?>">
                                    <input type="hidden" name="product_id" id="product_id" value="<?php echo $get_qc_view[0]['product_id']; ?>">
                                    <input type="hidden" name="qty" id="qty" value="<?php echo $get_qc_view[0]['qty']; ?>">
                                    <input type="hidden" name="user_id" id="user_id" value="<?php echo $this->session->userdata('id');?>">
                                    
                                        <input type="hidden" name="created" id="created" value="<?php echo date('Y-m-d H:i:s'); ?>" class="form-control required">
                                         <input type="hidden" value="<?php echo date('Y-m-d H:i:s'); ?>" name="modified" id="modified" class="form-control required">

                                        <button type="submit" id="dis_pro" class="btn btn-primary">Submit QC & Print</button>
                                   <?php form_close();?>
                                </div>
                            
                            </div>
                        </div>
                    </div>

                        <?php } ?>

                        <script type="text/javascript">
                 
             

                           var add_dc_raw_material = $('#add_dc_raw_material');   
                
                                add_dc_raw_material.on('submit',function(e){
                                     $("#dis_raw").attr('disabled', true);
       
                                    e.preventDefault();
                                    var dc_id = $("#dc_id").val();
                                    var add_dc_raw_materialdata = add_dc_raw_material.serialize();
                                    $.ajax({
                                            type:'POST',
                                            url:'<?php echo base_url('order_qc/add_qc_dc_check_raw_material'); ?>',
                                            data:add_dc_raw_materialdata,
                                            dataType:'json',
                                            success:function(data){
                                                console.log('first'+data);
                                                  if(data.status === 'true'){
                                                    console.log('second'+data.id);
                                                    $('#add_raw_material_success').show().html('Check List added Successfully');
                                                   setTimeout(function(){location.href="<?php echo base_url('order_qc/active_in_store_print/'); ?>"+dc_id} , 3000);
                                                }else{
                                                    console.log('third'+data);          
                                                }
                                            },
                                            error:function(data){console.log(data.responseText);}
                                        });
                                    //}
                                });


                                

                                var add_dc_color_material = $('#add_dc_color_material');   
                
                                add_dc_color_material.on('submit',function(e){
                                     $("#dis_raw").attr('disabled', true);
       
                                    e.preventDefault();
                                    var dc_id = $("#dc_id").val();
                                    var add_dc_color_materialdata = add_dc_color_material.serialize();
                                    $.ajax({
                                            type:'POST',
                                            url:'<?php echo base_url('order_qc/add_qc_dc_check_raw_material'); ?>',
                                            data:add_dc_color_materialdata,
                                            dataType:'json',
                                            success:function(data){
                                                console.log('first'+data);
                                                  if(data.status === 'true'){
                                                    console.log('second'+data.id);
                                                    $('#add_raw_material_success').show().html('Check List added Successfully');
                                                   setTimeout(function(){location.href="<?php echo base_url('order_qc/active_in_store_print/'); ?>"+dc_id} , 3000);
                                                }else{
                                                    console.log('third'+data);          
                                                }
                                            },
                                            error:function(data){console.log(data.responseText);}
                                        });
                                    //}
                                });



                           var add_dc_packing_material = $('#add_dc_packing_material');   
    
                                add_dc_packing_material.on('submit',function(e){
                                     $("#dis_pack").attr('disabled', true);
       
                                    e.preventDefault();
                                    var dc_id = $("#dc_id").val();
                                    var add_dc_packing_materialdata = add_dc_packing_material.serialize();
                                  
                                        $.ajax({
                                            type:'POST',
                                            url:'<?php echo base_url('order_qc/add_dc_packing_material'); ?>',
                                            data:add_dc_packing_materialdata,
                                            dataType:'json',
                                            success:function(data){
                                                console.log('first'+data.status);
                                                if(data.status === 'true'){
                                                    console.log('second'+data.id);
                                                    $('#add_dc_packing_material123').show().html('Check List added Successfully');
                                                   setTimeout(function(){location.href="<?php echo base_url('order_qc/active_in_store_print/'); ?>"+dc_id} , 3000);
                                                }else{
                                                    console.log('third'+data);          
                                                }
                                            },
                                            error:function(data){console.log(data.responseText);}
                                        });
                                    //}
                                });



                                var add_dc_product = $('#add_dc_product');   
    
                                add_dc_product.on('submit',function(e){
                                     $("#dis_pro").attr('disabled', true);
                                
                                    e.preventDefault();
                                    var dc_id = $("#dc_id").val();
                                    var add_dc_productdata = add_dc_product.serialize();
                                  
                                        $.ajax({
                                            type:'POST',
                                            url:'<?php echo base_url('order_qc/add_dc_product'); ?>',
                                            data:add_dc_productdata,
                                            dataType:'json',
                                            success:function(data){
                                                if(data.status =='true'){
                                                    console.log('second'+data.id);
                                                    $('#add_dc_product123').show().html('Check List added Successfully');
                                                    setTimeout(function(){location.href="<?php echo base_url('order_qc/active_in_store_print/'); ?>"+dc_id} , 3000);
                                                }else{
                                                    console.log('third'+data);          
                                                }
                                            },
                                            error:function(data){console.log(data.responseText);}
                                        });
                                    //}
                                });

                                
             </script>
