/
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 echo Html::style('//cdn.datatables.net/1.10.23/css/jquery.dataTables.min.css'); ?> <style type="text/css"> .table th, .table td { white-space: break-spaces !important; } .table-responsive{ margin: 20px 0; } </style> <?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-9"> <h4 class="card-title">List Of Goods Receipt Notes </h4> </div> <div class="col-lg-3"> <select class="form-control mr" id="warehouse" onchange="get_grn_of_warehouse(this)"> <option value=""> -- Select Warehouse --</option> <option value="all">All</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> <div class="table-responsive"> <table class="table table-striped myTable"> <thead> <tr> <th> GR No </th> <th> Reference No </th> <th> Invoice No </th> <th> Invoice Date </th> <th style="float: right;"> Amount </th> <th> Satus </th> <th> action </th> </tr> </thead> <tbody id="grn_list"> <?php $__currentLoopData = $all_grn; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $grn): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td class="font-weight-medium"><?php echo e($grn->grn_no); ?></td> <td><?php echo e($grn->reference_number); ?></td> <td><?php echo e($grn->invoice_number); ?></td> <td><?php echo e($grn->invoice_date); ?></td> <td style="float: right;"><?php echo e($grn->grand_total); ?> Rs</td> <td> <label class="badge badge-danger"></label> </td> <td><a href="<?php echo e(url('circle-store/view-grn/'.$grn->id)); ?>">View</a> | <a target="_blank" href="<?php echo e(url('circle-store/print-grn/'.$grn->id)); ?>">Print Note</a></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'); ?> <?php echo Html::script('//cdn.datatables.net/1.10.23/js/jquery.dataTables.min.js'); ?> <script type="text/javascript"> $(document).ready( function () { $('.myTable').DataTable(); } ); </script> <script type="text/javascript"> function get_grn_of_warehouse(t) { var warehouse = $(t).val(); var url = window.location.origin+"/circle-store/get-grn-of-warehouse" var data = {}; data._token = "<?php echo e(csrf_token()); ?>"; data.warehouse = warehouse; // $('#loaderAction').show(); $.ajax({ type: "POST", url: url, data: data, success:function(res){ //console.log(res); if(res.success == true){ var html = ""; $.each(res.grns,function(k,grn){ html +=`<tr> <td class="font-weight-medium">`+grn.grn_no+`</td> <td>`+grn.reference_number+`</td> <td>`+grn.invoice_number+`</td> <td>`+grn.invoice_date+`</td> <td style="float: right;">`+grn.grand_total+` Rs</td> <td> <label class="badge badge-danger"></label> </td> <td><a href="`+window.location.origin+`/circle-store/print-grn/`+grn.id+`">Print Note</a></td> </tr>`; }); $('#grn_list').html(html); // $('.myTable').DataTable(); }else{ swal(res.msg, { icon: "error", }); } // $('#loaderAction').hide(); }, error:function(error){ console.log(error); }, dataType: 'json' }); } </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/grn.blade.php ENDPATH**/ ?>