/
home
/
sjslayjy
/
public_html
/
assets
/
resources
/
views
/
circle-store
/
Upload File
HOME
@extends('layout.master') @push('plugin-styles') <!-- {!! Html::style('/assets/plugins/plugin.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 Site </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"> <thead> <tr> <th> Site 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->Site_Name}} ( {{$sr->Site_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') !!} <script type="text/javascript"> function get_warehouse(t) { var warehouse = $(t).val(); if(warehouse != ""){ window.location.href = window.location.origin+'/circle-store/all-sr-from-site?warehouse='+warehouse; }else{ swal('Please Select Warehouse', { icon: "error", }); } } </script> @endpush