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


<!-- Mirrored from edumin.dexignlab.com/xhtml/index-2.html by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 19 Nov 2020 03:05:22 GMT -->
<head>
    <style>
      .highcharts-figure, .highcharts-data-table table {
    min-width: 310px; 
    max-width: 800px;
    margin: 1em auto;
}

#container {
    height: 400px;
}

.highcharts-data-table table {
    font-family: Verdana, sans-serif;
    border-collapse: collapse;
    border: 1px solid #EBEBEB;
    margin: 10px auto;
    text-align: center;
    width: 100%;
    max-width: 500px;
}
.highcharts-data-table caption {
    padding: 1em 0;
    font-size: 1.2em;
    color: #555;
}
.highcharts-data-table th {
    font-weight: 600;
    padding: 0.5em;
}
.highcharts-data-table td, .highcharts-data-table th, .highcharts-data-table caption {
    padding: 0.5em;
}
.highcharts-data-table thead tr, .highcharts-data-table tr:nth-child(even) {
    background: #f8f8f8;
}
.highcharts-data-table tr:hover {
    background: #f1f7ff;
}



.highcharts-figure, .highcharts-data-table table {
    min-width: 320px; 
    max-width: 660px;
    margin: 1em auto;
}

.highcharts-data-table table {
    font-family: Verdana, sans-serif;
    border-collapse: collapse;
    border: 1px solid #EBEBEB;
    margin: 10px auto;
    text-align: center;
    width: 100%;
    max-width: 500px;
}
.highcharts-data-table caption {
    padding: 1em 0;
    font-size: 1.2em;
    color: #555;
}
.highcharts-data-table th {
    font-weight: 600;
    padding: 0.5em;
}
.highcharts-data-table td, .highcharts-data-table th, .highcharts-data-table caption {
    padding: 0.5em;
}
.highcharts-data-table thead tr, .highcharts-data-table tr:nth-child(even) {
    background: #f8f8f8;
}
.highcharts-data-table tr:hover {
    background: #f1f7ff;
}



    </style>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/data.js"></script>
<script src="https://code.highcharts.com/modules/drilldown.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<script src="https://code.highcharts.com/modules/accessibility.js"></script>


    <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 Associates Dashboard </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">
   

<script>
window.onload = function() {
 
 
var chart = new CanvasJS.Chart("chartContainer", {
    theme: "light2",
    animationEnabled: true,
    title: {
        text: "World Energy Consumption by Sector - 2020"
    },
    data: [{
        type: "pie",
        indexLabel: "{y}",
        yValueFormatString: "#,##0.00\"%\"",
        indexLabelPlacement: "inside",
        indexLabelFontColor: "#36454F",
        indexLabelFontSize: 18,
        indexLabelFontWeight: "bolder",
        showInLegend: true,
        legendText: "{label}",
        dataPoints: <?php echo json_encode($dataPoints, JSON_NUMERIC_CHECK); ?>
    }]
});
chart.render();
 
}
</script>
</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'); ?>
       
        <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>Hi, welcome back! <h3><?php echo $this->session->userdata('name');?></h3></h4>
                            <span class="ml-1"><?php echo $this->session->userdata('username');?></</span>
                            <span><a href="#" class="badge badge-primary" data-toggle="modal" data-target=".bd-example-modal-lg" class="dropdown-item ai-icon">
                                        Reset Password
                                    </a></span>
                        </div>
                    </div>
                    <div class="col-sm-6 p-md-0 justify-content-sm-end mt-2 mt-sm-0 d-flex">
                        
                          <img src="<?php echo base_url();?>assets/logo.png" style="width:25%;"/>

                    </div>
                </div>

                <div class="row">
                   
                    <div class="col-xl-3 col-xxl-3 col-sm-6">
                        <div class="widget-stat card">
                            <div class="card-body">
                                <div class="media ai-icon">
                                    <span class="mr-3">
                                        <!-- <i class="ti-user"></i> -->
                                        <svg id="icon-customers" width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user">
                                            
                                            <circle cx="12" cy="7" r="4">
                                                <img src="<?php echo base_url(); ?>/assets/image/emp.png" style="width: 45px;"></circle>
                                        </svg>
                                    </span>
                                    <div class="media-body">
                                        <p class="mb-1">Empolyees</p>
                                        <h4 class="mb-0">68</h4>
                                        <span class="badge badge-primary">Total Empolyees</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>


                     <div class="col-xl-3 col-xxl-3 col-sm-6">
                        <div class="widget-stat card">
                            <div class="card-body">
                                <div class="media ai-icon">
                                    <span class="mr-3">
                                         <svg id="icon-customers"  width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user">
                                            <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
                                            <circle cx="12" cy="7" r="4"><img src="<?php echo base_url(); ?>/assets/image/party.png" style="width: 45px;"></circle>
                                        </svg>
                                    </span>
                                    <div class="media-body">
                                        <p class="mb-1">Parties</p>
                                        <h4 class="mb-0"><?php echo $count_parties[0]['party_count']; ?></h4>
                                        <span class="badge badge-primary">Total Parties</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>



                     <div class="col-xl-3 col-xxl-3 col-sm-6">
                        <div class="widget-stat card">
                            <div class="card-body">
                                <div class="media ai-icon">
                                    <span class="mr-3">
                                       <svg id="icon-customers"  width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user">
                                            <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
                                            <circle cx="12" cy="7" r="4"><img src="<?php echo base_url(); ?>/assets/image/vendor.png" style="width: 45px;"></circle>
                                        </svg>
                                    </span>
                                    <div class="media-body">
                                        <p class="mb-1">Vendors</p>
                                        <h4 class="mb-0"><?php echo $count_vendor[0]['vendor_count']; ?></h4>
                                        <span class="badge badge-danger">Total Vendors</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>


                     <div class="col-xl-3 col-xxl-3 col-sm-6">
                        <div class="widget-stat card">
                            <div class="card-body">
                                <div class="media ai-icon">
                                    <span class="mr-3">
                                        <svg id="icon-customers"  width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user">
                                            <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
                                            <circle cx="12" cy="7" r="4"><img src="<?php echo base_url(); ?>/assets/image/machine.png" style="width: 45px;"></circle>
                                        </svg>
                                    </span>
                                    <div class="media-body">
                                        <p class="mb-1">Machines</p>
                                        <h4 class="mb-0"><?php echo $machines[0]['count_machines']; ?></h4>
                                        <span class="badge badge-success">Total Machines</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>


                    <div class="col-xl-3 col-xxl-3 col-sm-6">
                        <div class="widget-stat card">
                            <div class="card-body">
                                <div class="media ai-icon">
                                    <span class="mr-3">
                                        <svg id="icon-customers"  width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user">
                                            <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
                                            <circle cx="12" cy="7" r="4"><img src="<?php echo base_url(); ?>/assets/image/mold.png" style="width: 45px;"></circle>
                                        </svg>
                                    </span>
                                    <div class="media-body">
                                        <p class="mb-1">Molds</p>
                                          <h4 class="mb-0"><?php echo $molds[0]['count_molds']; ?></h4>
                                        <span class="badge badge-success">Total Molds</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>


                      <div class="col-xl-3 col-xxl-3 col-sm-6">
                        <div class="widget-stat card">
                            <div class="card-body">
                                <div class="media ai-icon">
                                    <span class="mr-3">
                                         <svg id="icon-customers"  width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user">
                                            <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
                                            <circle cx="12" cy="7" r="4"><img src="<?php echo base_url(); ?>/assets/image/materials.png" style="width: 45px;"></circle>
                                        </svg>
                                    </span>
                                    <div class="media-body">
                                        <p class="mb-1">Materials</p>
                                        <h4 class="mb-0"><?php echo $materials[0]['materials']; ?></h4>
                                        <span class="badge badge-primary">Total Materials</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>


                    <div class="col-xl-3 col-xxl-3 col-sm-6">
                        <div class="widget-stat card">
                            <div class="card-body">
                                <div class="media ai-icon">
                                    <span class="mr-3">
                                          <svg id="icon-customers"  width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user">
                                            <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
                                            <circle cx="12" cy="7" r="4"><img src="<?php echo base_url(); ?>/assets/image/products.png" style="width: 45px;"></circle>
                                        </svg>
                                    </span>
                                    <div class="media-body">
                                        <p class="mb-1">Products</p>
                                        <h4 class="mb-0"><?php echo $products[0]['products']; ?></h4>
                                        <span class="badge badge-primary">Total Products</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>


                     <div class="col-xl-3 col-xxl-3 col-sm-6">
                        <div class="widget-stat card">
                            <div class="card-body">
                                <div class="media ai-icon">
                                    <span class="mr-3">
                                         <svg id="icon-customers" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user">
                                            <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
                                            <circle cx="12" cy="7" r="4"></circle>
                                        </svg>
                                    </span>
                                    <div class="media-body">
                                        <p class="mb-1">Users</p>
                                        <h4 class="mb-0">16</h4>
                                        <span class="badge badge-primary">Total Users</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                      <?php if($this->session->userdata('role')==3){ ?>
                    <div class="col-xl-12 col-lg-12 col-xxl-12 col-md-12">
                        <div class="card profile-tab">
                            
                            <div class="card-body custom-tab-1">
                                <ul class="nav nav-tabs mb-3">
                                    <li class="nav-item"><a href="#my-pos" data-toggle="tab" class="nav-link pb-2 ">Pending Requisition</a></li>
                                   <!--  <li class="nav-item"><a href="#my-posts" data-toggle="tab" class="nav-link pb-2 ">Pending Orders</a></li>
                                    <li class="nav-item"><a href="#about-me" data-toggle="tab" class="nav-link pb-2">Requsitions</a></li> -->
                                   <!--  <li class="nav-item"><a href="#profile-settings" data-toggle="tab" class="nav-link pb-2">Sales Orders</a></li> -->
                                </ul>
                                <div class="tab-content">

                                    <div id="my-pos" class="tab-pane fade active show">
                                        <div class="table-responsive">
                                            

                                    <table id="example5" class="display" style="min-width: 1100px;font-size: 11px;">
                                        <thead>
                                                <tr>
                                                 <th>SO#</th>
                                                 <th>Product</th>
                                                  <th>SO Date</th>
                                                 
                                                 <th>Party Name</th>
                                                 <th>Status</th>
                                                <th>Action</th>
                                                
                                            </tr>
                                                </thead>
                                                <tbody>
                                                <?php
                                                    if(!empty($get_all_confirm_so)){
                                                 foreach ($get_all_confirm_so as $value) {
                                                   
                                                 ?>
                                            <tr>
                                                <td><?php echo $value['so_no']; ?></td>
                                                 <td><?php echo product_name($value['product_id']); ?></td>
                                                 <td><?php //$aa = date_format('d-m-y',);
                                                echo date("d-m-Y", strtotime($value['so_date']) );
                                                ?></td>
                                                <td><?php echo $value['party_name']; ?></td>
                                                
                                                
                                                <?php if($value['finish_requisition']==0){ ?>
                                             
                                                       <td><span class="badge badge-danger">Approve Pending</span></td>
                                                    <?php }else if($value['finish_requisition']==1){ ?>
                                                   <td><span class="badge badge-success">Approved</span></td>

                                            <?php } ?> 
                                                <td>
                                                <a href="<?php echo base_url ('Sales_order/view_boms/'); echo $value['sales_order_id']; ?>" class="badge badge-primary">View Requisition</a>

                                                 <?php if($value['finish_requisition']==1){ ?>
                                                 <button onclick="po_approved(<?php echo $value['so_id']; ?>)" class="badge badge">Closed</button>
                                             <?php }else{ ?>

                                             <?php } ?>

                                               <!--  <button type="button" class="badge badge-primary" data-toggle="modal" data-target=".bd-example-modal-lg" onclick="bom_destroye('<?php  //echo $value['product_id']; ?>')">Load Bom</button> -->
                                                </td>
                                               
                                            </tr>
                                        <?php 
                                              }
                                            }
                                         ?>
                                                   
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                 <?php }else if($this->session->userdata('role')==7){ ?>
                                 
                                 <div class="col-xl-12 col-lg-12 col-xxl-12 col-md-12">
                        <div class="card profile-tab">
                            
                            <div class="card-body custom-tab-1">
                                <ul class="nav nav-tabs mb-3">
                                    <li class="nav-item"><a href="#my-pos" data-toggle="tab" class="nav-link pb-2 ">Packing Request</a></li>
                                   <!--  <li class="nav-item"><a href="#my-posts" data-toggle="tab" class="nav-link pb-2 ">Pending Orders</a></li>
                                    <li class="nav-item"><a href="#about-me" data-toggle="tab" class="nav-link pb-2">Requsitions</a></li> -->
                                   <!--  <li class="nav-item"><a href="#profile-settings" data-toggle="tab" class="nav-link pb-2">Sales Orders</a></li> -->
                                </ul>
                                <div class="tab-content">

                                    <div id="my-pos" class="tab-pane fade active show">
                                        <div class="table-responsive">
                                            

                                    <table id="example5" class="display" style="min-width: 1100px;font-size: 11px;">
                                        <tr>
                                                <th>So #</th>
                                                <th>Product</th>
                                                <th>Qty</th>
                                                <th>Date</th>
                                                <th>Status</th>
                                                <th>Shift</th>
                                                <th>Created</th>
                                                <th>Action</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <?php if(!empty($packing_fg_line)){ ?>
                                                <?php foreach ($packing_fg_line as $value) {

                                                        // $condition = batch_condition_sealed($value['batch']);
                                                   
                                                        //if($condition=='1'){
                                                 ?>
                                                    <tr>
                                                         <td><?php echo so_number_dc($value['so_id']); ?></td>
                                                        <td><?php echo product_name($value['product_id']); ?></td>
                                                        <td><?php echo $value['qty']; ?></td>
                                                        <td><?php echo date("d-m-Y", strtotime($value['insert_date']) ); ?></td>
                                                        <td><?php if($value['moving_to']==1){ ?>
                                                            <span class="badge badge-danger">Pending</span>
                                                            <?php } ?>
                                                        </td>

                                                        <td><?php if($value['moving_to']==1){ ?>
                                                            <span class="badge badge-success">Morning</span>
                                                            <?php }else{ ?>

                                                                 <span class="badge badge-warning">Night</span>
                                                            <?php } ?>
                                                        </td>
                                                        <td><?php echo $value['created']; ?></td>
                                                        <td><button type="button" class="badge badge-warning" data-toggle="modal" data-target=".bd-example-modal-lg1" onclick="view_emp('<?php  echo $value['id']; ?>')">Action</button></td>
                                                    </tr>
                                            <?php } } //} ?>
                                        </tbody>
                                            </table>
                                        </div>
                                    </div>
                                <?php }else{ 
                                
                                } ?>                                   
                                    
                                </div>
                            </div>
                        </div>
                    </div> 
                

                    </div> 

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


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

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

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


    </div>
    
    
    <div class="modal fade bd-example-modal-lg1" tabindex="-1" role="dialog" aria-hidden="true">
                                        <div class="modal-dialog modal-lg">
                                            <div class="modal-content">
                                                <div class="modal-header">
                                                  
                                                    <button type="button" class="close" data-dismiss="modal"><span>&times;</span>
                                                    </button>
                                                </div>
                                                <div class="modal-body">
                                              
                                            <div class="col-xl-10 col-xxl-10 col-sm-10">
                                                <div class="card">
                                                    <div class="card-header">
                                                  <h5 class="card-title">Packing Depart</h5>
                                                    </div>
                                                   
                                                   <div class="card-body" id="emp_details">
                                              
                                                    </div>
                                                </div>
                                            </div>



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


    <div class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true">
                                        <div class="modal-dialog modal-lg">
                                            <div class="modal-content">
                                                <div class="modal-header">
                                                  
                                                    <button type="button" class="close" data-dismiss="modal"><span>&times;</span>
                                                    </button>
                                                </div>
                                                <div class="modal-body">
                                              
                         <?php echo form_open(base_url(''),array('class'=>"form-horizontal add_fg_rates_success", 'id'=>"add_fg_rates_success")); ?>
                                     <fieldset class="content-group">
                                                                   
                                      <?php if($this->session->flashdata('fg_rates_success')){ ?>
                                                            <div class="alert alert-success solid" style='text-align:center;'><?php echo $this->session->flashdata('fg_rates_success'); ?></div>
                                                        <?php } ?>  

                                            <div class="col-xl-12 col-xxl-12 col-sm-12">
                                                <div class="card">
                                                    <div class="card-header">
                                                        <h5 class="card-title">Reset Password</h5>
                                                    </div>
                                                   
                                                   <div class="card-body">
                                                         <div id='fg_rates_success' class='alert alert-success solid' style='display:none;'></div>
                                                            

                                                            <div id='fg_rates_danger' class='alert alert-danger solid' style='display:none;'></div>


                                                            <div class="row">

                                                                

                                                               
                                                                <div class="col-lg-6 col-md-6 col-sm-12">
                                                                    <div class="form-group">
                                                                        <label class="form-label"> Old Password::</label>
                                                                        <input type="text" required="required" name="password" id="password" class="form-control required">
                                                                    </div>
                                                                </div>

                                                                <div class="col-lg-6 col-md-6 col-sm-12">
                                                                    <div class="form-group">
                                                                        <label class="form-label"> New Password::</label>
                                                                        <input type="password" name="n_password" id="n_password" class="form-control ">
                                                                    </div>
                                                                </div>

                                                                <div class="col-lg-6 col-md-6 col-sm-12">
                                                                    <div class="form-group">
                                                                        <label class="form-label"> Conform Password::</label>
                                                                        <input type="password"  name="c_password" id="c_password" class="form-control ">
                                                                    </div>
                                                                </div>
                                                              
                                                               <input type="hidden" name="user_id" id="user_id" value="<?php echo $this->session->userdata('id');?>">
                                                                
                                                                 
                                                            </div>
                                                       
                                                    </div>
                                                </div>
                                            </div>



                                                </div>
                                                <div class="modal-footer">
                                                    <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                                                    <button type="submit" id="dis_submit" class="btn btn-primary">Submit <i class="icon-arrow-right14 position-right"></i></button>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
    <!--**********************************
        Main wrapper end
    ***********************************-->

    <!--**********************************
        Scripts
    ***********************************-->
    <!-- Required vendors -->

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

<script type="text/javascript">
var lcount = <?php echo $leasecount; ?>;
Highcharts.chart('container', {

    chart: {
        type: 'column'
    },
    title: {
        text: 'Sales Orders 2021'
    },
    subtitle: {
        text: ''
    },
    accessibility: {
        announceNewData: {
            enabled: true
        }
    },
    xAxis: [{
            categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun','Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
            crosshair: true
        }],
    yAxis: {
        title: {
            text: 'Monthly Sales Orders'
        }

    },
    legend: {
        enabled: true
    },
    plotOptions: {
        series: {
            borderWidth: 0,
            dataLabels: {
                enabled: true,
                format: ''
            }
        }
    },

    tooltip: {
        //headerFormat: '<span style="font-size:11px">{series.name}</span><br>',
       // pointFormat: '<span style="color:{point.color}">{point.name}</span>: <b>{point.y:.2f}%</b> of total<br/>'
    },

    series: [
        {
            name: "Total Sales Order",
            colorByPoint: true,
            data: lcount
        }
    ],
    drilldown: {
        series: [
            {
                name: "Chrome",
                id: "Chrome",
                data: lcount
            }
            
        ]
    }
});


///Purchase Orders

var lcount1 = <?php echo $leasecount1; ?>;
Highcharts.chart('Purchase_orders', {

    chart: {
        type: 'column'
    },
    title: {
        text: 'Purchase Orders 2021'
    },
    subtitle: {
        text: ''
    },
    accessibility: {
        announceNewData: {
            enabled: true
        }
    },
    xAxis: [{
            categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun','Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
            crosshair: true
        }],
    yAxis: {
        title: {
            text: 'Monthly Purchase Orders'
        }

    },
    legend: {
        enabled: true
    },
    plotOptions: {
        series: {
            borderWidth: 0,
            dataLabels: {
                enabled: true,
                format: ''
            }
        }
    },

    tooltip: {
        //headerFormat: '<span style="font-size:11px">{series.name}</span><br>',
       // pointFormat: '<span style="color:{point.color}">{point.name}</span>: <b>{point.y:.2f}%</b> of total<br/>'
    },

    series: [
        {
            name: "Total Purchase Order",
            colorByPoint: true,
            data: lcount1
        }
    ],
    drilldown: {
        series: [
            {
                name: "PO",
                id: "PO",
                data: lcount1
            }
            
        ]
    }
});




// Build the chart
Highcharts.chart('po_orders', {
    chart: {
        plotBackgroundColor: null,
        plotBorderWidth: null,
        plotShadow: false,
        type: 'pie'
    },
    title: {
        text: 'Purchase Orders 2021'
    },
    tooltip: {
        pointFormat: ''
    },
    accessibility: {
        point: {
            valueSuffix: ''
        }
    },
    plotOptions: {
        pie: {
            allowPointSelect: true,
            cursor: 'pointer',
            dataLabels: {
                enabled: false
            },
            showInLegend: true
        }
    },
    series: [{
        name: 'Brands',
        colorByPoint: true,
        data: [{
            name: 'Chrome',
            y: 61.41,
            sliced: true,
            selected: true
        }]
    }]
});




</script>


<script type='text/javascript'>
        
    var fg_rates_success = $('#add_fg_rates_success');   
    
    fg_rates_success.on('submit',function(e){
    //$("#dis_submit").attr('disabled', true);
        e.preventDefault();
        
        var fg_rates_successdata = fg_rates_success.serialize();
        
      
            $.ajax({
                type:'POST',
                url:'<?php echo base_url('Admin/reset_pass'); ?>',
                data:fg_rates_successdata,
                dataType:'json',
                success:function(data){
                    console.log('first'+data.status);
                    if(data.status === 'true'){
                         $('#fg_rates_danger').hide();
                        console.log('second'+data.status);
                        $('#fg_rates_success').show().html('Password Reset Successfully').hide(3000);
                       setTimeout(function(){location.href="<?php echo base_url(''); ?>"} , 3000);
                    }else if(data.status === 'false'){

                        $('#fg_rates_danger').show().html('Mismatch Password...!');

                    }else{
                        console.log('third'+data);          
                    }
                },
                error:function(data){console.log(data.responseText);}
            });
       // }
    });



    function po_approved(id) { 
        var id = id;

        
         //var po_id = $('#po_id').val();
        if (confirm('Are you sure you want to Create P.O Status Will Update..?')) {
  
         $.ajax({
                type:'POST',
                url:'<?php echo base_url('Purchase_order/finish_requisition/'); ?>'+id,
                data:id,
                dataType:'json',
                success:function(data){
                    console.log('first'+data.status);
                    
                        console.log('second'+data.status);
                        //debugger;
                       // $('#material_bom_danger').show().html('Component Deleted Successfully');
                       setTimeout(function(){location.href="<?php echo base_url('Admin/dashboard1/'); ?>"} ,);
                    
                },
                error:function(data){console.log(data.responseText);}
            });

     }
 }

function view_emp(id) { 
      var id =  id;
      //alert(id);

      $.ajax({
                type:'POST',
                url:'<?php echo base_url('Requisition/update_packing'); ?>',
                data:{id:id},
                dataType:'json',
                success:function(data){
                    //console.log('first'+data.status);
                    //if(data.status === 'true'){
                     $('#emp_details').show().html(data.html);
                       //$('#bom_details').show(data);
                   /* }else{
                        //console.log('third'+data);          
                    }*/
                },
                error:function(data){console.log(data.responseText);}
            });
       
        } 


</script>

<!-- Mirrored from edumin.dexignlab.com/xhtml/index-2.html by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 19 Nov 2020 03:05:25 GMT -->
</html>