<?php
  $page_title = 'All Article Stages';
  require_once('includes/load.php');
  // Checkin What level user has permission to view this page
  page_require_level(1);
  
  $all_units = trackiingdetailsfull();
?>
<?php include_once('layouts/header.php'); ?>

  <div class="row">
     <div class="col-md-12">
       <?php echo display_msg($msg); ?>
     </div>
  </div>
   <div class="row">
    <div class="col-md-12">
    <div class="panel panel-default">
      <div class="panel-heading">
        <strong>
          <span class="glyphicon glyphicon-th"></span>
          <span>Detailed Status</span>
       </strong>
      </div>
        <div class="panel-body">
          <table id="detailstatus" class="table table-bordered table-striped table-hover">
            <thead>
                <tr>
                    <th class="text-center" style="width: 50px;">#</th>
                    <th>Plan Name</th>
                    <th>Job No</th>
                    <th>SAPCode</th>
                    <th>Stage</th>
                    <th>Total Quantity</th>
                    <th>Quantity</th>
                    <th>Completion Date</th>
                    <th>Remarks</th>
                    <th>Vendor</th>
                    <th>Challan No</th>
                    <!--<th class="text-center" style="width: 100px;">Actions</th>---->
                </tr>
            </thead>
            <tbody>
              <?php foreach ($all_units as $uni):?>
                <tr>
                    <td class="text-center"><?php echo count_id();?></td>
                    <td><?php echo remove_junk(ucfirst($uni['PlanName'])); ?></td>
                    <td><?php echo remove_junk(ucfirst($uni['JobNo'])); ?></td>
                    <td><?php echo remove_junk(ucfirst($uni['SAPCode'])); ?></td>
                    <td><?php echo remove_junk(ucfirst($uni['StageName'])); ?></td>
                    <td><?php echo remove_junk(ucfirst($uni['TotalQty'])); ?></td>
                    <td><?php echo remove_junk(ucfirst($uni['Quantity'])); ?></td>
                    <td><?php echo remove_junk(ucfirst($uni['CompletionDate'])); ?></td>
                    <td><?php echo remove_junk(ucfirst($uni['Remarks'])); ?></td>
                    <td><?php echo remove_junk(ucfirst($uni['VendorUnit'])); ?></td>
                    <td><?php echo remove_junk(ucfirst($uni['ChallanNo'])); ?></td>
                     <!--<td class="text-center">
                      <div class="btn-group">
                        <a href="edit_articlestage.php?StageId=<?php //echo (int)$uni['Id'];?>"  class="btn btn-xs btn-warning" data-toggle="tooltip" title="Edit">
                          <span class="glyphicon glyphicon-edit"></span>
                        </a>
                        <a href="delete_articlestage.php?StageId=<?php //echo (int)$uni['Id'];?>"  class="btn btn-xs btn-danger" data-toggle="tooltip" title="Remove" onclick="return confirm('Are you sure you want to delete this item?');">
                          <span class="glyphicon glyphicon-trash"></span>
                        </a>
                      </div>
                    </td>--->

                </tr>
              <?php endforeach; ?>
            </tbody>
          </table>
       </div>
    </div>
    </div>
   </div>
  </div>
  <?php include_once('layouts/footer.php'); ?>
