<!DOCTYPE html>
<html lang="en">

<head>
    
 <link rel="stylesheet" href="https://cdn.datatables.net/1.10.25/css/jquery.dataTables.min.css">
     <link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.7.1/css/buttons.dataTables.min.css">
     
    <script src="https://code.jquery.com/jquery-3.5.1.js"></script>
    <script src="https://cdn.datatables.net/1.10.25/js/jquery.dataTables.min.js"></script>
    <script src="https://cdn.datatables.net/buttons/1.7.1/js/dataTables.buttons.min.js"></script>
    <script src="https://cdn.datatables.net/buttons/1.7.1/js/buttons.print.min.js"></script>

</head>
<body>


                                    <table id="example" class="" style="min-width: 745px;font-size: 10px;" >
                                        <thead>
                                            <tr>
                                               <th>Machine</th>
                                               <th>Product</th>
                                               <th>Material</th>
                                               <th>10 M.R.Mould</th>
                                               <th>Cavity</th>
                                               <th>Weight</th>
                                               <th>Finishing</th>
                                               <th>Fitting</th>
                                               <th>Color</th>
                                               <th>Operator</th>
                                               <th>Job #</th>
                                               <th>M-Weight</th>
                                               <th>Tp-Weight</th>
                                               <th>Hrs</th>
                                               <th>Cost</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            
                                           <?php if(!empty($get_report)){
     
                              		  foreach ($get_report as $value) {  ?>
                                            <tr>
                                                <td><?php echo machine_name($value['qc_machine_id']); ?></td>
                                                 <td><?php echo product_name($value['product_id']); ?></td>
                                                  <td><?php echo material_name($value['material_id']); ?></td>
                                                  <td><?php echo $value['mr_mould']; ?></td>
                                                  <td><?php echo $value['pcs_cavity']; ?></td>
                                                  <td><?php echo $value['weight']; ?></td>
                                                  <td><?php echo $value['finishing']; ?></td>
                                                  <td><?php echo $value['fitting']; ?></td>
                                                   <td><?php echo $value['color']; ?></td>
                                                   <td><?php echo $value['emp_id']; ?></td>
                                                   <td><?php echo $value['job']; ?></td>
                                                   <td><?php echo $value['m_weight']; ?></td>
                                                   
                                                   <td><?php echo $value['tp_weight']; ?></td>
                                                   <td><?php echo $value['hrs']; ?></td>
                                                   <td><?php echo $value['cost']; ?></td>
                                            </tr>

                                            <?php }} ?>
                                        </tbody>
                                    </table>
                                
<script type="text/javascript">
    
    $(document).ready(function() {
    $('#example').DataTable( {

        dom: 'Bfrtip',
        buttons: [{
    extend: 'print',
     title:'<div style="text-align:center;"><h2>Rizwan Associates</h2></div><div style="text-align:center;font-size:15px;"><br />Color Report</div>'
   
  },
{
    extend: 'pdf',
    title: 'Production Report'
  },
  ]
    } );

} );
</script>