/
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 Of Stock Transfer Receipts Of Circle Store </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> STR No </th> <th> STN No </th> <th> STR Date </th> <th></th> </tr> </thead> <tbody id="all_str"> @foreach($all_str as $str) <tr> <td class="font-weight-medium">{{$str->str_no}}</td> <td>{{$str->stn_no}}</td> <td>{{$str->created_at}}</td> <td><a href="{{url('circle-store/str-view/'.$str->id)}}">View STR</a></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() { $('.myTable').dataTable({ "order": [[ 2, "desc" ]] // Sort by the third column (STR Date) in descending order initially }); }); function get_warehouse(t) { var warehouse = $(t).val(); if(warehouse != ""){ window.location.href = window.location.origin+'/circle-store/all-str?warehouse='+warehouse; }else{ swal('Please Select Warehouse', { icon: "error", }); } } </script> @endpush