<!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>

 <style type="text/css">
     @media print
{
  .button
  {
    display: none;
  }
}

 </style>

<div class="row">
                    <div class="col-lg-12">

                        <div class="card mt-3">
                            
                            <div class="card-header"><img src="<?php echo base_url();?>assets/logo.png" style="width:145px;"/><br/>
                                <span class="float-right">
                                    <strong>Code #:</strong> <?php if(!empty($get_machine_data)) { echo $get_machine_data[0]['code']; }?><br/>
                                   
                                      <strong>Date: </strong><?php if(!empty($get_machine_data)) {echo date("d-m-Y", strtotime($get_machine_data[0]['created']) ); } ?></span>
                                </div>
                            <div class="card-body">
                                
                                <div class="table-responsive">
                                    <table class="table table-striped">
                                        <thead>
                                            <tr>

                                                <th class="center">Description</th>
                                                <th>Manufacturer</th>
                                                <th class="center">Vendor</th>
                                                <th class="center">Machine Cost</th>
                                                <th class="center">Depreciation Amount</th>
                                                <th class="center">Depreciation Hrs</th>
                                                <th class="center">Depreciation Cost/hrs</th>
                                                <th class="center">Rental Cost</th>
                                                <th class="center">Maintenance Cost</th>
                                                 <th class="center">Supervisor & QC Cost</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <?php 
                                            $sum =0;
                                            if(!empty($get_machine_data)) {?>
                                                
                                            <tr>
                                                <td class="center"><?php echo $get_machine_data[0]['machine_name']; ?></td>
                                                <td class="left strong"><?php echo $get_machine_data[0]['manufacture']; ?></td>
                                                <td class="center"><?php echo vendor($get_machine_data[0]['vendor']); ?></td>
                                                <td class="center"><?php echo $get_machine_data[0]['cost']; ?></td>
                                                
                                                <td class="center"><?php echo $get_machine_data[0]['dept_amount']; ?></td>
                                                <td class="center"><?php echo $get_machine_data[0]['dept_hrs']; ?>
                                                <td class="center"><?php echo $get_machine_data[0]['dept_cost_hrs']; ?>
                                                <td class="center"><?php echo $get_machine_data[0]['rental']; ?>
                                                <td class="center"><?php echo $get_machine_data[0]['maintainance']; ?> </td>
                                                <td class="center"><?php echo $get_machine_data[0]['supervisor']; ?> </td>
                                            </tr>
                                            <?php  }?>
                                            
                                        </tbody>
                                    </table>
                                </div>

                                <div class="table-responsive">
                                    <table class="table table-striped">
                                        <thead>
                                            <tr>

                                                <th class="center">Labour Cost</th>
                                                <th>Electricity Cost(Unit)</th>
                                                <th class="right">Electricity Consumed(Unit)</th>
                                                <th class="center">Electricity Cost/hr</th>
                                                <th class="right">Water Cost/hr</th>
                                                <th class="right">Profit(%)</th>
                                                <th class="right">Total Machine Cost</th>
                                                <th class="right">Profit Rate</th>
                                                <th class="right">Machine Cost / day</th>
                                                <th class="right">Working Hours</th>
                                                <th class="right">Machine Cost/hr</th>
                                                
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <?php 
                                            $sum =0;
                                            if(!empty($get_machine_data)) {?>
                                                
                                            <tr>
                                                <td class="center"><?php echo $get_machine_data[0]['labour']; ?></td>
                                                <td class="left strong"><?php echo $get_machine_data[0]['electricity_cost']; ?></td>
                                                <td class="left"><?php echo $get_machine_data[0]['electricity_consume']; ?></td>
                                                <td class="right"><?php echo $get_machine_data[0]['electricity_cost_hr']; ?></td>
                                                
                                                <td class="right"><?php echo $get_machine_data[0]['water_cost']; ?></td>
                                                <td class="right"><?php echo $get_machine_data[0]['profit']; ?>
                                                <td class="right"><?php echo $get_machine_data[0]['total_machine_cost']; ?>
                                                <td class="right"><?php echo $get_machine_data[0]['profit_rate']; ?>
                                                <td class="right"><?php echo $get_machine_data[0]['machine_cost_hr']; ?> </td>
                                                <td class="right"><?php echo $get_machine_data[0]['whrs']; ?> </td>
                                                <td class="right"><?php echo $get_machine_data[0]['machine_cost_day']; ?> </td>
                                            </tr>
                                            <?php  }?>
                                            
                                        </tbody>
                                    </table>
                                </div>
                                 <input style="padding:5px;" value="Print Document" type="button" onclick="myFunction()" class="button"></input>
                               
                            </div>
                                
                            </div>
                        
                    </div>
                </div>
               
           
       <?php  $this->load->view('footer'); ?>
        
</body>
<script type="text/javascript">
    function myFunction()
        {
             var mywindow = window.open('', 'PRINT', 'height=400,width=600');
            window.print();
        }
     </script>
<!-- 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> 