/
home
/
sjslayjy
/
public_html
/
assets
/
storage
/
framework
/
views
/
Upload File
HOME
<?php $__env->startPush('plugin-styles'); ?> <?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; } </style> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <?php if(Session::has('error')): ?> <div class="alert alert-danger alert-block"> <button type="button" class="close" data-dismiss="alert">×</button> <strong><?php echo e(Session::get('error')); ?></strong> </div> <?php endif; ?> <div class="col-lg-12 grid-margin"> <div class="card"> <div class="card-body"> <div class="row grid-margin"> <div class="col-lg-6"> <h4 class="card-title">All Spare Parts</h4> </div> <div class="col-lg-6 top-tab text-right"> <a href="<?php echo e(url('admin/export-all-spares')); ?>" class="btn btn-success btn-fw">Export All Spares</a> </div> </div> <div class="table-responsive"> <table class="table table-striped" id="myTable"> <thead> <tr> <th> Spare Code </th> <th> Description </th> <th> UOM</th> <th> Type </th> <th> Category</th> </tr> </thead> <tbody> <?php $__currentLoopData = $all_spare_parts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $spare_part): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr id="sp_<?php echo e($spare_part->id); ?>"> <td class="font-weight-medium"><?php echo e($spare_part->code); ?></td> <td><?php echo e($spare_part->description); ?></td> <td> <?php if($spare_part->uom == 1): ?> PCS <?php elseif($spare_part->uom == 2): ?> LTR <?php elseif($spare_part->uom == 3): ?> SET <?php elseif($spare_part->uom == 4): ?> KG <?php elseif($spare_part->uom == 5): ?> SQM <?php elseif($spare_part->uom == 6): ?> MTR <?php elseif($spare_part->uom == 7): ?> ROLL <?php elseif($spare_part->uom == 8): ?> NOs <?php elseif($spare_part->uom == 9): ?> Km <?php elseif($spare_part->uom == 10): ?> Site <?php elseif($spare_part->uom == 11): ?> Pair <?php elseif($spare_part->uom == 12): ?> LS <?php elseif($spare_part->uom == 13): ?> Pack <?php elseif($spare_part->uom == 14): ?> Monthly <?php elseif($spare_part->uom == 15): ?> Quarterly <?php elseif($spare_part->uom == 16): ?> Half Yearly <?php elseif($spare_part->uom == 17): ?> Yearly <?php else: ?> <?php echo e($spare_part->uom); ?> <?php endif; ?> </td> <td><?php echo e($spare_part->type); ?></td> <td><?php echo e($spare_part->category); ?></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({ "order": [[ 1, "desc" ]] // Sort by the second column (stn_date) in descending order initially }); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layout.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/assets/resources/views/master/view-all-spare.blade.php ENDPATH**/ ?>