/
home
/
sjslayjy
/
public_html
/
assets
/
storage
/
framework
/
views
/
Upload File
HOME
<?php $__env->startPush('plugin-styles'); ?> <!-- <?php echo Html::style('/assets/plugins/plugin.css'); ?> --> <?php $__env->stopPush(); ?> <?php $__env->startSection('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-2"> <h4 class="card-title">STR 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> <?php $__currentLoopData = $warehouses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $warehouse): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($warehouse); ?>" <?php echo e($current_warehouse ==$warehouse ? 'selected':''); ?>><?php echo e($warehouse); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php if($userInfo->fieldUserCodes == 'PNT'): ?> <option value="SUPPNT">SUPPNT</option> <?php endif; ?> </select> </div> <div class="col-lg-2"> <small>From Date</small> <input class="form-control mr" type="date" name="fromdate" value="<?php echo e($fromdate); ?>" id="fromdate"> </div> <div class="col-lg-2"> <small>To Date</small> <input class="form-control mr" type="date" name="todate" value="<?php echo e($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>Circle Name</th> <th>From WareHouse</th> <th>WareHouse</th> <th>STN Invoice No.</th> <th>STN Ref. N</th> <th>STN Invoice Date</th> <th>STR No.</th> <th>STR Date</th> <th>Item Code</th> <th>Description</th> <th>UOM</th> <th>Fresh Qty</th> <th>Repaired Qty</th> <th>Faulty Qty</th> <th>Basic Rate</th> <th>Total Value</th> <th>Type</th> </tr> </thead> <tbody> <?php $__currentLoopData = $strs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$str): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($str->warehouse); ?></td> <td><?php echo e($str->from_warehouse); ?></td> <td><?php echo e($str->warehouse); ?></td> <td><?php echo e($str->invoice_no); ?></td> <td><?php echo e($str->stn_no); ?></td> <td><?php echo e(date('d-m-Y', strtotime($str->stn_date))); ?></td> <td><?php echo e($str->str_no); ?></td> <td><?php echo e(date('d-m-Y', strtotime($str->created_at))); ?></td> <td><?php echo e($str->spare_code); ?></td> <td><?php echo e($str->description); ?></td> <td><?php echo e($str->uom); ?></td> <td><?php echo e($str->fresh_qty); ?></td> <td><?php echo e($str->repaired_qty); ?> </td> <td><?php echo e($str->faulty_qty); ?></td> <td><?php echo e($str->rate); ?></td> <td><?php echo e(($str->rate*$str->repaired_qty)+($str->rate*$str->fresh_qty)); ?></td> <td><?php echo e($str->type); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('plugin-scripts'); ?> <?php echo Html::script('/assets/plugins/chartjs/chart.min.js'); ?> <?php echo Html::script('/assets/plugins/jquery-sparkline/jquery.sparkline.min.js'); ?> <?php $__env->stopPush(); ?> <?php $__env->startPush('custom-scripts'); ?> <?php echo 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/str-report?warehouse="+warehouse+"&fromdate="+fromdate+"&todate="+todate+"&action_type="+action_type; window.location.href= url; } } </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layout.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/assets/resources/views/circle-store/reports/str-report.blade.php ENDPATH**/ ?>