/
home
/
sjslayjy
/
public_html
/
olddevlok
/
storage
/
framework
/
views
/
Upload File
HOME
<div class="container" style="width:100% !important;"> <div class="row"> <div class="col-md-12"> <div class="form-group"> <span class="label label-danger" id="add_order_id_error" style="display: none;"></span> </div> </div> <div class="col-md-12"> <div class="form-group"> <label >Order information</label> <table id="dynamic-table" class="table table-striped table-bordered table-hover"> <thead> <tr> <th>Loading Slip No</th> <th>Order Id</th> <th>Rake / Godown</th> <th>Dealer</th> <th>Retailer</th> <th>Product</th> <th>Quantity</th> <th>Unit</th> <th>Transporter</th> <th>Vehicle No</th> <th>Genrated by</th> <th>Slip Status</th> <th>Action</th> </tr> </thead> <tbody> <?php $__empty_1 = true; $__currentLoopData = $loading_slips; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $loading_slip): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr id="tr_<?php echo e($loading_slip->id); ?>"> <td><?php echo e($loading_slip->id); ?></td> <td><?php echo e($loading_slip->order_id); ?></td> <td><?php echo e($loading_slip->order_from == 1 ? 'Rake' : 'Godown'); ?> <br/> (<?php if($loading_slip->order_from == 1): ?> <?php echo e($loading_slip->rake_point_name); ?> <?php else: ?> <?php echo e($loading_slip->from_warehouse_name); ?> <?php endif; ?>)</td> <td><?php echo e($loading_slip->dealer_name); ?></td> <td><?php echo e($loading_slip->retailer_name); ?></td> <td><?php echo e($loading_slip->product_name); ?></td> <td><?php echo e($loading_slip->quantity); ?></td> <td><?php echo e($loading_slip->unit_name); ?></td> <td><?php echo e($loading_slip->transporter_name); ?></td> <td><?php echo e($loading_slip->transport_mode_name); ?> <br/>( <?php echo e($loading_slip->vehicle_no); ?> )</td> <td><?php echo e($loading_slip->user_name); ?> </td> <td > <?php if($loading_slip->slip_status!='dispatched' ): ?> <a href="javascript:void(0);" onclick="createInvoice(<?php echo e($loading_slip->id); ?>)" class="btn btn-xs btn-info"> create Invoice </a> <?php endif; ?> <?php if( $loading_slip->slip_status=='dispatched'): ?> <span class="badge badge-success">Genrated Invoice</span> <?php endif; ?> <input type="hidden" name="id" id="id_<?php echo e($loading_slip->id); ?>" value="<?php echo e($loading_slip->id); ?>"> </td> <td> <a href="#" onclick="get_edit_loading_form('<?php echo e($loading_slip->id); ?>')" ><i class="ace-icon fa fa-pencil bigger-120"></i></a> <a href="/user/print-loading-slip/<?php echo e($loading_slip->id); ?>" target="_blank"> <i class="ace-icon fa fa-print bigger-120"></i> </a> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <tr> <td colspan="12" style="text-align: center">No Data Found</td> </tr> </tbody> <?php endif; ?> </div> </div> </div> </div> <script type="text/javascript"> function createInvoice(id){ // alert('hii'); var id = $('#id_'+id).val(); $.ajax({ url: "<?php echo e(url('/user/create-invoice/')); ?>", type: 'GET', data : { id : id }, success:function(data){ $('#createInvoiceModalPopupBodyLoading').html(data); $('#createInvoiceModalPopupLoading').modal('toggle'); //OnLoad(); } }); } function get_edit_loading_form(id){ // alert(id); $.ajax({ url: window.location.origin+"/user/edit-loading/"+id, type: 'GET', success:function(data){ $('#editmodalPopupBody').html(data); $('#editModalPopup').modal('toggle'); //OnLoad(); } }); } </script> <?php /**PATH E:\Laravel Datatable\devlok\resources\views/dashboard/order/show-loading.blade.php ENDPATH**/ ?>