/
home
/
sjslayjy
/
public_html
/
assets
/
storage
/
framework
/
views
/
Upload File
HOME
<?php $__env->startPush('plugin-styles'); ?> <!-- <?php echo Html::style('/assets/plugins/plugin.css'); ?> --> <?php echo Html::style('//cdn.datatables.net/1.10.23/css/jquery.dataTables.min.css'); ?> <style type="text/css"> .table th, .table td { white-space: break-spaces !important; } .table-responsive{ margin: 20px 0; } .no-results { color: red; } </style> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-lg-12 grid-margin"> <div class="card"> <div class="card-body"> <div class="row grid-margin"> <div class="col-lg-8"> <h4 class="card-title">Spares in Circle Stocks</h4> </div> <div class="col-lg-2"> <select class="form-control mr select2" onchange="get_spare_of_warehouse(this)"> <?php $__currentLoopData = $warehouses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $warehouse): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($warehouse); ?>" <?php echo e($current_warehouse == $warehouse ? 'selected' : ''); ?>><?php echo e($warehouse); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="col-lg-2" > </div> </div> <div class="row"> <div class="col-lg-12"> <ul class="nav nav-tabs" id="myTab" role="tablist"> <li class="nav-item waves-effect waves-light"> <a class="nav-link active" id="fresh_qty" data-toggle="tab" href="#fresh" role="tab" aria-controls="fresh" aria-selected="false">Fresh Spares</a> </li> <li class="nav-item waves-effect waves-light"> <a class="nav-link" id="repaired_qty" data-toggle="tab" href="#repaired" role="tab" aria-controls="repaired" aria-selected="false">Repaired Spares</a> </li> <li class="nav-item waves-effect waves-light"> <a class="nav-link " id="faulty_qty" data-toggle="tab" href="#faulty" role="tab" aria-controls="faulty" aria-selected="true">Faulty Spares</a> </li> </ul> <div class="tab-content" id="myTabContent"> <div class="tab-pane active show fade" id="fresh" role="tabpanel" aria-labelledby="fresh_qty"> <div class="table-responsive"> <table class="table myTable" > <thead> <tr> <th> Item Code </th> <th > Item Description </th> <th> Qty</th> <th> Rate</th> <th> Fresh Value</th> </tr> </thead> <tbody> <?php $__currentLoopData = $fresh_stocks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $fresh_stock): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td> <?php echo e($fresh_stock->spare_code); ?> </td> <td ><?php echo e($fresh_stock->description); ?></td> <td> <?php echo e($fresh_stock->available_qty); ?></td> <td> <?php echo e($fresh_stock->rate); ?></td> <td> <?php echo e($fresh_stock->rate*$fresh_stock->available_qty); ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> <div class="tab-pane fade" id="repaired" role="tabpanel" aria-labelledby="repaired_qty"> <div class="table-responsive"> <table class="table myTable" > <thead> <tr> <th> Item Code </th> <th> Item Description </th> <th> Qty</th> <th> Rate</th> <th> Repaired Value</th> </tr> </thead> <tbody> <?php $__currentLoopData = $repaired_stocks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $repaired_stock): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td> <?php echo e($repaired_stock->spare_code); ?> </td> <td ><?php echo e($repaired_stock->description); ?></td> <td> <?php echo e($repaired_stock->available_qty); ?></td> <td> <?php echo e($repaired_stock->rate); ?></td> <td> <?php echo e($repaired_stock->rate*$repaired_stock->available_qty); ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> <div class="tab-pane fade " id="faulty" role="tabpanel" aria-labelledby="faulty_qty"> <div class="table-responsive"> <table class="table myTable" > <thead> <tr> <th> Item Code </th> <th> Item Description </th> <th> Qty</th> <th> Rate</th> <th> Faulty Value</th> </tr> </thead> <tbody> <?php $__currentLoopData = $faulty_stocks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $faulty_stock): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td> <?php echo e($faulty_stock->spare_code); ?> </td> <td ><?php echo e($faulty_stock->description); ?></td> <td> <?php echo e($faulty_stock->available_qty); ?></td> <td> <?php echo e($faulty_stock->rate); ?></td> <td> <?php echo e($faulty_stock->rate*$faulty_stock->available_qty); ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> <div class="col-lg-12 grid-margin"> <div class="card"> <div class="card-body"> <h3 class="card-title">Spare Quantity in Circle Stocks</h3> <div class="table-responsive"> <table class="table myTable"> <thead> <tr> <th> Item Code </th> <th > Item Description </th> <th> Fresh</th> <th> Repaird </th> <th> Faulty </th> <th> Total </th> </tr> </thead> <tbody id="stock_list"> <?php $__currentLoopData = $stocks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $part_in_stock): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td class="font-weight-medium"><?php echo e($part_in_stock->spare_code); ?></td> <td ><?php echo e($part_in_stock->description); ?></td> <td><label class="badge badge-success"><?php echo e($part_in_stock->fresh_qty); ?></label></td> <td><label class="badge badge-warning"><?php echo e($part_in_stock->repaired_qty); ?></label></td> <td><label class="badge badge-danger"><?php echo e($part_in_stock->faulty_qty); ?></label></td> <td style="text-align: right !important;"><?php echo e($part_in_stock->fresh_qty + $part_in_stock->repaired_qty + $part_in_stock->faulty_qty); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('plugin-scripts'); ?> <?php echo Html::script('/assets/plugins/chartjs/chart.min.js'); ?> <?php echo Html::script('/assets/plugins/jquery-sparkline/jquery.sparkline.min.js'); ?> <?php $__env->stopPush(); ?> <?php $__env->startPush('custom-scripts'); ?> <?php echo Html::script('/assets/js/dashboard.js'); ?> <?php echo Html::script('//cdn.datatables.net/1.10.23/js/jquery.dataTables.min.js'); ?> <script type="text/javascript"> $(document).ready( function () { $('.myTable').DataTable(); } ); function get_spare_of_warehouse(t) { var warehouse = $(t).val(); console.log('Warehouse is', warehouse); var url = window.location.origin+'/circle-store/spares-in-stock/?circle='+warehouse; window.location.replace(url); } function downloadNow(){ var warehouse = $(t).val(); var url = window.location.origin+'/circle-store/export-spare-stock/?circle='+warehouse; window.location.href = url; } </script> <script> $(document).ready(function() { // Initialize Select2 with custom placeholder and no cross sign $('.select2').select2({ placeholder: 'Search Warehouses', // Custom placeholder text allowClear: false, // Remove the cross (clear) sign language: { noResults: function() { return '<span class="no-results">No results found!</span>'; } }, escapeMarkup: function (markup) { return markup; // Allows HTML markup to be rendered } }); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layout.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/sjslayjy/public_html/assets/resources/views/circle-store/spare-in-stock.blade.php ENDPATH**/ ?>