/
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') !!} @endpush @section('content') <div class="row"> <div class="col-lg-12 grid-margin"> <div class="card"> <div class="card-body"> <div class="row"> <div class="col-lg-9"> <h4 class="card-title">List Stock Received From Engineer </h4> </div> <div class="col-lg-3"> <select class="form-control mr" id="warehouse" onchange="get_warehouse(this)"> <option value=""> -- Select Warehouse --</option> @foreach($warehouses as $warehouse) <option value="{{$warehouse}}" {{$current_warehouse == $warehouse ? 'selected':''}}>{{$warehouse}}</option> @endforeach </select> </div> </div> <div class="table-responsive"> <table class="table table-striped myTable"> <thead> <tr> <th> Engineer Name ( code ) </th> <th> Receving Date </th> <th> Spare Code </th> <th> Fresh Qty </th> <th> Repaired Qty </th> <th> Faulty Qty </th> </tr> </thead> <tbody id="challan_list"> @foreach($allsr as $sr) <tr> <td class="font-weight-medium">{{$sr->StaffName}} ( {{$sr->engineer_id}} )</td> <td>{{$sr->receiving_date}}</td> <td>{{$sr->spare_code}}</td> <td>{{$sr->fresh_qty}}</td> <td>{{$sr->repaired_qty}}</td> <td>{{$sr->faulty_qty}}</td> </tr> @endforeach </tbody> </table> </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 () { var myTable = $('.myTable').dataTable(); } ); </script> <script type="text/javascript"> function get_warehouse(t) { var warehouse = $(t).val(); if(warehouse != ""){ window.location.href = window.location.origin+'/circle-store/all-sr?warehouse='+warehouse; }else{ swal('Please Select Warehouse', { icon: "error", }); } } </script> @endpush