/
home
/
sjslayjy
/
public_html
/
assets
/
resources
/
views
/
circle-store
/
reports
/
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-3"> <h4 class="card-title">SquareUp-RoundOff Report</h4> </div> <div class="col-lg-2"> <small>Warehouse</small> <select class="form-control mr" id="warehouse" onchange="get_ware_house(this)"> <option value=""> -- Select Warehouse --</option> @foreach($warehouses as $warehouse) <option value="{{$warehouse}}" {{$current_warehouse == $warehouse ? 'selected':''}}>{{$warehouse}}</option> @endforeach <!-- <option value="Scrap Zone" @if($current_warehouse=='Scrap Zone' ) selected @endif>Scrap Zone</option> --> </select> </div> <div class="col-lg-2"> <small>From Date</small> <input class="form-control mr" type="date" name="fromdate" value="{{$fromdate}}" id="fromdate"> </div> <div class="col-lg-2"> <small>To Date</small> <input class="form-control mr" type="date" name="todate" value="{{$todate}}" id="todate"> </div> <div class="col-lg-2"> <small>Action Type</small> <select class="form-control mr" name="action_type" id="action_type"> <option value="search">Search</option> <option value="export">Export In Excel</option> </select> </div> <div class="col-lg-1"> <a href="#" style="margin-top: 25px;" class="btn brn-sm btn-info" onclick="submit_now()">Submit</a> </div> </div> </div> </div> </div> <div class="col-lg-12 grid-margin"> <div class="card"> <div class="card-body"> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>MRN No</th> <th>MRN Date</th> <th>WareHouse Code</th> <th>Spare Code</th> <th>Spare Description</th> <th>UOM</th> <th>Type</th> <th>Fresh Qty</th> <th>Repaired Qty</th> <th>Faulty Qty</th> <th>Basic Rate</th> <th>Total Rate</th> <th>Requested By</th> <th>Approved By</th> <th>Approved Date</th> <th>Status</th> </tr> </thead> <tbody> @foreach($all_squareUp as $key=>$squareUp) <tr> <td>{{ $squareUp['mr_no'] }}</td> <td>{{ $squareUp['mr_date'] }}</td> <td>{{ $squareUp['warehouse'] }}</td> <td>{{ $squareUp['spare_code'] }}</td> <td>{{ $squareUp['description'] }}</td> <td>{{ $squareUp['uom'] }}</td> <td>{{ $squareUp['type'] }}</td> <td>{{ $squareUp['fresh_qty'] }}</td> <td>{{ $squareUp['repaired_qty'] }}</td> <td>{{ $squareUp['faulty_qty'] }}</td> <td>{{ $squareUp['basic_rate'] }}</td> <td>{{ $squareUp['total_rate'] }}</td> <td>{{ $squareUp['requested_by'] }}</td> <td>{{ $squareUp['approved_by'] }}</td> <td>{{ $squareUp['approved_date'] }}</td> <td>{{ $squareUp['status'] }}</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 submit_now() { var warehouse = $('#warehouse').val(); var fromdate = $('#fromdate').val(); var todate = $('#todate').val(); var action_type = $('#action_type').val(); if(warehouse == ""){ swal('Please Select the warehouse', { icon: "error", }); }else{ var url = window.location.origin+"/circle-store/square-up-round-off-report?warehouse="+warehouse+"&fromdate="+fromdate+"&todate="+todate+"&action_type="+action_type; window.location.href= url; } } </script> @endpush