/
home
/
sjslayjy
/
public_html
/
assets
/
resources
/
views
/
circle-store
/
Upload File
HOME
@extends('layout.master') @push('plugin-styles') <!-- {!! Html::style('/assets/plugins/plugin.css') !!} --> {!! 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; } </style> @endpush @section('content') <div class="row"> <div class="col-lg-12 grid-margin"> <div class="card"> <div class="card-body"> <h3 class="card-title">Spare Quantity in Scrap Zone</h3> <div class="table-responsive"> <table class="table myTable"> <thead> <tr> <th> Item Code </th> <th > Item Description </th> <th> Faulty </th> </tr> </thead> <tbody id="stock_list"> @foreach($stocks as $part_in_stock) <tr> <td class="font-weight-medium">{{$part_in_stock->spare_code}}</td> <td >{{$part_in_stock->description}}</td> <td><label class="badge badge-success">{{$part_in_stock->faulty_qty}}</label></td> </tr> @endforeach </tbody> </table> </div> </div> </div> </div> <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 Scrap Zone </h4> </div> <div class="col-lg-2" > </div> </div> <div class="row"> <div class="col-lg-12"> <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> Faulty Value</th> </tr> </thead> <tbody> @foreach($faulty_stocks as $faulty_stock) <tr> <td> {{ $faulty_stock->spare_code }} </td> <td >{{ $faulty_stock->description}}</td> <td> {{ $faulty_stock->available_qty }}</td> <td> {{ $faulty_stock->rate }}</td> <td> {{ $faulty_stock->rate*$faulty_stock->available_qty }} </td> </tr> @endforeach </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> @endsection @push('plugin-scripts') {!! Html::script('/assets/plugins/chartjs/chart.min.js') !!} {!! Html::script('/assets/plugins/jquery-sparkline/jquery.sparkline.min.js') !!} @endpush @push('custom-scripts') {!! Html::script('/assets/js/dashboard.js') !!} {!! 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(); 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> @endpush