/
home
/
sjslayjy
/
public_html
/
olddevlok
/
storage
/
framework
/
views
/
Upload File
HOME
<?php $__env->startSection('title','Warehouse Manager'); ?> <?php $__env->startSection('content'); ?> <div class="main-content"> <div class="main-content-inner"> <div class="breadcrumbs ace-save-state" id="breadcrumbs"> <ul class="breadcrumb"> <lui> <i class="ace-icon fa fa-home home-icon"></i> <a href="#"><?php echo e(__('messages.Home')); ?></a> </lui> <li class="active">Arrived Stock</li> </ul> </div> <div class="page-content"> <div class="row"> <div class="col-xs-12"> <h3 class="header smaller lighter blue"> Arrived Stock </h3> <?php if(session('success')): ?> <div class="alert alert-success"> <?php echo e(session('success')); ?> </div> <?php endif; ?> <?php if(session('error')): ?> <div class="alert alert-danger"> <?php echo e(session('error')); ?> </div> <?php endif; ?> </div> </div> <div class="clearfix"> <div class="pull-right tableTools-container"> </div> </div> <div class="table-header"> Stock Arrived in Warehouse </div> <form action="<?php echo e(URL('/user/arrived-stock')); ?>" method="POST" role="form" id="recievedQuanityForm"> <?php echo e(csrf_field()); ?> <div class="table-responsive"> <div class="dataTables_borderWrap"> <div class="table-responsive"> <table id="dynamic-table" class="table table-striped table-bordered table-hover"> <thead> <tr> <th> <?php echo e(__('messages.LoadingSlip')); ?> #</th> <th> <?php echo e(__('messages.Token')); ?>#</th> <th> <?php echo e(__('messages.Date')); ?> </th> <th> <?php echo e(__('messages.Party')); ?> <br/> <?php echo e(__('messages.Name')); ?></th> <th> <?php echo e(__('messages.Product')); ?><br/><?php echo e(__('messages.Name')); ?> </th> <th> <?php echo e(__('messages.TruckNumber')); ?> </th> <th> <?php echo e(__('messages.Transporter')); ?><br/> <?php echo e(__('messages.Name')); ?></th> <th>Freight</th> <th>Payment Mode</th> <th> <?php echo e(__('messages.Quantity')); ?></th> <th>Recieved Quantity</th> </tr> </thead> <tbody> <?php if(isset($product_loadings)): ?> <?php $__currentLoopData = $product_loadings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product_loading): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr id="tr_<?php echo e($product_loading->id); ?>"> <td><?php echo e($product_loading->id); ?></td> <td><?php echo e($product_loading->token_id); ?></td> <td><?php echo e(date('d-m-Y',strtotime($product_loading->created_at))); ?></td> <td> <?php if(!is_null($product_loading->warehouse_id)): ?> <b> <?php echo e(getModelById('Warehouse',$product_loading->warehouse_id)->name); ?> </b> <br> <?php echo e(getModelById('Warehouse',$product_loading->warehouse_id)->location); ?> <?php else: ?> <b> <?php echo e(getModelById('Dealer',$product_loading->dealer_id)->name); ?> </b> <br> <?php echo e(getModelById('Dealer',$product_loading->dealer_id)->address1); ?> <?php endif; ?> </td> <td><?php echo e($product_loading->product_name); ?> </td> <td><?php echo e($product_loading->truck_number); ?> </td> <td><?php echo e($product_loading->transporter_name); ?> </td> <td><?php echo e($product_loading->freight); ?></td> <td><?php echo e(is_null(getModelById('Token', $product_loading->token_id))?"":getModelById('Token', $product_loading->token_id)->delivery_payment_mode); ?> </td> <td><?php echo e($product_loading->quantity); ?></td> <?php if($product_loading->recieved_quantity==0): ?> <td></td> <?php else: ?> <td><?php echo e($product_loading->recieved_quantity); ?></td> <?php endif; ?> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </tbody> </table> </div> </div> </div> </form> <div class="modal fade" id="QuantityDetailsModal"> <div class="modal-dialog modal-sm"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title">Recieved Quantity</h4> </div> <div class="modal-body"> <div class="table-responsive"> <table class="table table-hover"> <thead> <tr> <th>Quantity</th> <td id="payment_amount"></td> </tr> </thead> </table> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div> <div class="modal fade" id="QuantityModal"> <form action="<?php echo e(URL('/user/arrived-stock')); ?>" method="post" id="quantityForm"> <?php echo e(csrf_field()); ?> <input type="hidden" name="id" id="id" > <input type="hidden" name="dealer_id" id="dealer_id" > <input type="hidden" name="unit_id" id="unit_id" > <input type="hidden" name="product_company_id" id="product_company_id" > <input type="hidden" name="warehouse_id" id="warehouse_id" > <input type="hidden" name="product_id" id="product_id"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title">Quantity</h4> </div> <div class="modal-body" id="quantityModalBody"> <div class="form-group"> <label for="">Quantity</label> <input type="text" class="form-control" name="quantity" id="quantity"> <span class="label label-danger" id="qty_error" style="display: none;"></span> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="submit" class="btn btn-primary " id="saveQuantity">Save changes</button> </div> </div> </form> </div> </div> </div> </div> </div> <?php $__env->startSection('script'); ?> <?php echo e(Html::script("assets/js/jquery.dataTables.min.js")); ?> <?php echo e(Html::script("assets/js/jquery.dataTables.bootstrap.min.js")); ?> <?php echo e(Html::script("assets/js/dataTables.buttons.min.js")); ?> <?php echo e(Html::script("assets/js/buttons.flash.min.js")); ?> <?php echo e(Html::script("assets/js/buttons.html5.min.js")); ?> <?php echo e(Html::script("assets/js/buttons.print.min.js")); ?> <?php echo e(Html::script("assets/js/buttons.colVis.min.js")); ?> <?php echo e(Html::script("assets/js/dataTables.select.min.js")); ?> <?php echo e(Html::script("assets/js/ace-elements.min.js")); ?> <?php echo e(Html::script("assets/js/ace.min.js")); ?> <script type="text/javascript"> function quantityDetails(product_id,product_company_id,dealer_id,unit_id,warehouse_id,quantity,id){ $('#id').prop('value',id); $('#product_id').prop('value',product_id); $('#product_company_id').prop('value',product_company_id); $('#dealer_id').prop('value',dealer_id); $('#unit_id').prop('value',unit_id); $('#quantity').prop('value',quantity); $('#warehouse_id').prop('value',warehouse_id); $('#QuantityModal').modal('toggle'); } $('#saveQuantity').click(function(e){ e.preventDefault(); $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') } }); // $('.loading-bg').show(); $.ajax({ url: $('#quantityForm').attr('action'), method: 'POST', data: $('#quantityForm').serialize(), success: function(data){ $('.loading-bg').hide(); if(data.flag){ swal({ title: "Success!", text: data.message, type: "success" }, function() { window.location.reload(); }); }else{ showError('qty_error',data.errors.quantity); } } }); }); function showError(id,error){ if(typeof(error) === "undefined"){ $('#'+id).hide(); }else{ $('#'+id).show(); $('#'+id).text(error); } } </script> <?php $__env->stopSection(); ?> <?php $__env->stopSection(); ?> <?php echo $__env->make('dashboard.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/pmmsanvp/public_html/srt/resources/views/dashboard/warehouse_management/arrived-stock.blade.php ENDPATH**/ ?>