/
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">Consumption Report TRC</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 </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" style="max-height:500px;"> <table class="table table-striped"> <thead> <tr> <th>Circle Name</th> <th>Warehouse TRC-Engineer</th> <th>TRC Assigned Date</th> <th>Repaired date</th> <th>Item Code</th> <th>Item Description</th> <th>UOM</th> <th>Category</th> <th>Repaired Qty</th> <th>Faulty Qty</th> <th>Spare Component Code</th> <th>Component Description</th> <th>Qty</th> <th>Component Rate</th> <th>Is Component</th> </tr> </thead> <tbody> @php $trc_id = ''; @endphp @foreach($all_trc as $key=>$trc) <tr> @if($trc_id == $trc->id) <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td>{{ $trc->component_code }}</td> <td></td> <td>{{ $trc->component_qty }}</td> <td>{{ $trc->component_rate }}</td> <td>{{ ($trc->is_component == 1)?'Yes':'No' }}</td> @else <td>{{ $trc->warehouse }}</td> <td>{{ $trc->trc_engineer }}</td> <td></td> <td>{{ $trc->created_at }}</td> <td>{{ $trc->spare_code }}</td> <td>{{ $trc->description }}</td> <td>{{ $trc->uom }}</td> <td>{{ $trc->category }}</td> <td>{{ $trc->qty }}</td> <td></td> <td>{{ $trc->component_code }}</td> <td></td> <td>{{ $trc->component_qty }}</td> <td>{{ $trc->component_rate }}</td> <td>{{ ($trc->is_component == 1)?'Yes':'No' }}</td> @endif </tr> @php $trc_id = $trc->id; @endphp @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/consumption-report-trc?warehouse="+warehouse+"&fromdate="+fromdate+"&todate="+todate+"&action_type="+action_type; window.location.href= url; } } </script> @endpush