/
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'); ?> <?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 Delivery Transactions </h4> </div> <div class="col-lg-3"> <select class="form-control mr" id="warehouse" onchange="get_warehouse(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(); ?> </select> </div> </div> <div class="table-responsive"> <table class="table table-striped myTable"> <thead> <tr> <th> Transaction No </th> <th> Old Transaction No </th> <th> Transaction Date </th> <th> <?php echo e($column); ?> </th> <th> Status </th> <th> action </th> </tr> </thead> <tbody id="challan_list"> <?php $__currentLoopData = $all_challan; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $challan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td class="font-weight-medium"><?php echo e($challan->delivery_challan_no); ?></td> <td class="font-weight-medium"><?php echo e($challan->delivery_challan_no_old); ?></td> <td><?php echo e($challan->created_at); ?></td> <td><?php echo e($challan->engineer_id); ?></td> <td><?php echo e($challan->status); ?></td> <td><a target="_blank" href="<?php echo e(url('circle-store/print-challan/'.$challan->id.'/type/'.$challan->type)); ?>">Print Delivery Challan</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 () { // var myTable = $('.myTable').dataTable(); // } ); console.log('inside script '); </script> <script type="text/javascript"> console.log('inside script '); function get_warehouse(t) { var warehouse = $(t).val(); if(warehouse != ""){ var url = window.location.origin+"/circle-store/get-delivery-challan-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.all_challan,function(k,challan){ html +=`<tr> <td class="font-weight-medium">`+challan.delivery_challan_no+`</td> <td>`+challan.delivery_challan_no_old+`</td> <td>`+challan.created_at+`</td> <td>`+challan.engineer_id+`</td> <td>`+challan.status+`</td> <td><a target="_blank" href="`+window.location.origin+`/circle-store/print-challan/`+challan.id+`/type/`+challan.type+`">Print Delivery Challan</a></td> </tr>`; }); $("#challan_list tr").remove(); $('#challan_list').html(html); }else{ swal(res.msg, { icon: "error", }); } // $('#loaderAction').hide(); }, error:function(error){ console.log(error); }, dataType: 'json' }); }else{ swal('Please Select Warehouse', { icon: "error", }); } } </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/all-delivery-challan.blade.php ENDPATH**/ ?>