 <table border="1" style="min-width: 685px">
                                        <thead>
                                            <tr style="text-align: center;">
                                                <th >Code</th>
                                                <th >Item</th>
                                                <th>Color</th>
                                                <th>B-QTY</th>
                                                <th>Mould</th>
                                                <th>Machine</th>
                                               
                                            </tr>
                                        </thead>
                                        <tbody >
                                                         
                                            <?php 

                                            if(!empty($get_view))
                                            {

                                           

                                            foreach ($get_view as $value) {
                                           
                                              $material_id = get_material_id($value['material_id']);
                                               ?>
                                            <tr style="text-align: center;">
                                               <td><?php echo material_codess($material_id); ?></td>
                                                <td><?php echo material_name($material_id); ?></td>
                                                <td><?php echo $value['color']; ?></td>
                                                <td><?php echo $value['qty']; ?></td>
                                                <td><?php echo mold_name($value['mold']); ?></td>
                                               <td><?php echo machine_name($value['machine']); ?></td>
                                               
                                           </tr>
                                       <?php
                                             //}
                                           }
                                           } 
                                       ?>

                                       </tbody>
                                    </table>