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


<!-- Mirrored from edumin.dexignlab.com/xhtml/add-departments.html by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 17 Nov 2020 13:56:15 GMT -->
<head>
  
  <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>Rizwan </title>
  <!-- Favicon icon -->
    <link rel="icon" type="image/png" sizes="16x16" href="<?php echo base_url();?>assets/images/favicon.png">
    <link rel="stylesheet" href="<?php echo base_url();?>assets/vendor/bootstrap-select/dist/css/bootstrap-select.min.css">
    <link rel="stylesheet" href="<?php echo base_url();?>assets/css/style.css">
  <!-- Pick date -->
    <link rel="stylesheet" href="<?php echo base_url();?>assets/vendor/pickadate/themes/default.css">
    <link rel="stylesheet" href="<?php echo base_url();?>assets/vendor/pickadate/themes/default.date.css">
     <link href="<?php echo base_url();?>assets/vendor/datatables/css/jquery.dataTables.min.css" rel="stylesheet">
    <!-- Custom Stylesheet -->
     

</head>

<body>

    <!--*******************
        Preloader start
    ********************-->
        <div id="preloader">
        <div class="sk-three-bounce">
            <div class="sk-child sk-bounce1"></div>
            <div class="sk-child sk-bounce2"></div>
            <div class="sk-child sk-bounce3"></div>
        </div>
    </div>
    <!--*******************
        Preloader end
    ********************-->

    <!--**********************************
        Main wrapper start
    ***********************************-->
    <div id="main-wrapper">

      <?php  $this->load->view('header'); ?>
    
        <!--**********************************
            Content body start
        ***********************************-->
        <div class="content-body">
            <!-- row -->
            <div class="container-fluid">
            
                <div class="row page-titles mx-0">
                    <div class="col-sm-6 p-md-0">
                        <div class="welcome-text">
                            <h4>Daily Machine Report</h4>
                        </div>
                    </div>
                    <div class="col-sm-6 p-md-0 justify-content-sm-end mt-2 mt-sm-0 d-flex">
                        <ol class="breadcrumb">
                           
                        </ol>
                    </div>
                </div>
        
        <div class="row">


                    <div class="col-12">
                        
                            <div class="card-body">
                                
                                <h4>Daily Machine Report</h4>
                                <div class="table-responsive">
                                   
                                    <table id="example5" class="display" style="min-width: 845px;font-size: 13px;">

                                        <thead>
                                            <tr>
                                                 <th>Shift</th>
                                                <th>Machine</th>
                                                <th>Item</th>
                                                <th>Material</th>
                                               <!--  <th>10 M.R.Mould</th>
                                                <th>PCS Of Cavity</th>
                                                <th>Weight</th>
                                                <th>Finishing</th>
                                                <th>Fitting</th>
                                                <th>Color</th> -->
                                               
                                                <th>Report Date</th>
                                                <th>Action</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                           
                                           <?php
                                                if(!empty($get_machine_data)){
                                             foreach($get_machine_data as $get_qc_machines){ ?>
                                            <tr>
                                                <td>
                                            <?php 
                                                if($get_qc_machines['day_night']==1){ ?>

                                                 <img src="<?php echo base_url(); ?>/assets/image/day.png" style="width: 45px;border-radius: 23px;">
                                              <?php }else if($get_qc_machines['day_night']==2){ ?>

                                                <img src="<?php echo base_url(); ?>/assets/image/night.png" style="width: 45px;border-radius: 23px;">

                                             <?php }

                                               ?>
                                                    </td>
                                               <td><strong><?php echo @machine_name($get_qc_machines['machine_id']); ?></strong></td>
                                                <td><?php if ($get_qc_machines['product_id']=="")
                                                { echo "0";}else { 
                                                    echo product_name($get_qc_machines['product_id']);
                                                     } ?></td>
                                              
                                                <td><?php echo material_name($get_qc_machines['material_id']); ?></td>
                                                 <td><?php echo date("d-m-Y", strtotime($get_qc_machines['report_date']) ); ?></td>

                                                <!--<td><?php echo $get_qc_machines['pcs_cavity']; ?></td>
                                                <td><?php echo $get_qc_machines['weight']; ?></td>
                                                <td><?php echo $get_qc_machines['finishing']; ?></td>
                                                <td><?php echo $get_qc_machines['fitting']; ?></td>
                                                <td><?php echo $get_qc_machines['color']; ?></td> -->
                                               
                                               <!--  <td><?php echo $get_qc_machines['created']; ?></td> -->
                                                <td>
                                                    <?php $check_condition = check_condition($get_qc_machines['id']);
                                                    if($check_condition==""){
                                                     ?>
                                                    

                                                    <a href="<?php echo base_url('Admin/add_machine_report/'.$get_qc_machines['id'].'/'.$get_qc_machines['report_date']); ?>" class="btn btn-sm btn-primary">Add Machine Details</a>

                                                <?php }else{ ?>
                                                   
                                                    <a href="<?php echo base_url('Admin/add_machine_report/'.$get_qc_machines['id']); ?>" class="btn btn-sm btn-success">Add Machine Details</a>

                                                   <?php } ?>
                                                </td>                                               
                                            </tr>
                                           <?php }
                                                }
                                            ?>
                                        </tbody>
                                    </table>
                                </div>



                            </div>
                        </div>
                    </div>





          
        </div>
            </div>
        </div>
        <!--**********************************
            Content body end
        ***********************************-->


        <!--**********************************
            Footer start
        ***********************************-->
        
        <!--**********************************
            Footer end
        ***********************************-->

    <!--**********************************
           Support ticket button start
        ***********************************-->

        <!--**********************************
           Support ticket button end
        ***********************************-->


    </div>
    <!--**********************************
        Main wrapper end
    ***********************************-->

    <!--**********************************
        Scripts
    ***********************************-->
  <!-- Required vendors -->
        <script src="<?php echo base_url();?>assets/js/jjquery.min.js"></script>
        <style>
        .redborder{
            border:1px solid red;
        }
        </style>

 

     <?php  $this->load->view('footer'); ?>
        
</body>

<!-- Mirrored from edumin.dexignlab.com/xhtml/add-departments.html by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 17 Nov 2020 13:56:15 GMT -->
</html>