/
home
/
sjslayjy
/
public_html
/
olddevlok
/
storage
/
framework
/
views
/
Upload File
HOME
<?php $__env->startSection('title','Godown Register'); ?> <?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">Godown Register</li> </ul> </div> <div class="page-content"> <div class="row"> <div class="col-xs-12"> <h3 class="header smaller lighter blue"> Godown Register </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="row"> <div class="col-xs-12"> <form action="" method="POST" role="form"> <div class="row"> <?php echo e(csrf_field()); ?> <div class="col-md-3"> <div class="form-group"> <label for="warehouse_id"> <?php echo e(__('messages.Warehouses')); ?></label> <select class="form-control select2" name="warehouse_id" id="warehouse_id"> <option value=""> <?php echo e(__('messages.Warehouses')); ?> <?php echo e(__('messages.Select')); ?></option> <?php $__currentLoopData = $warehouses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $warehouse): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($warehouse->id); ?>" <?php echo e(isset($warehouse_id) && $warehouse_id==$warehouse->id ? "selected":""); ?>><?php echo e($warehouse->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php if($errors->has('warehouse_id')): ?> <span class="label label-danger"><?php echo e($errors->first('warehouse_id')); ?></span> <?php endif; ?> </div> </div> <div class="col-md-2"> <div class="form-group"> <label for="product_id"> Product</label> <select class="form-control select2" name="product_id" id="product_id"> <option value=""> <?php echo e(__('messages.Select')); ?> Product </option> <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($product->id); ?>" <?php echo e(isset($product_id) && $product_id==$product->id ? "selected":""); ?>><?php echo e($product->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php if($errors->has('product_id')): ?> <span class="label label-danger"><?php echo e($errors->first('product_id')); ?></span> <?php endif; ?> </div> </div> <div class="col-md-3"> <div class="form-group"> <label for="product_brand_id"> Brand</label> <select class="form-control select2" name="product_brand_id" id="product_brand_id"> <option value=""> Select Brand</option> <?php $__currentLoopData = $product_companies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product_company): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($product_company->id); ?>" <?php echo e(isset($product_brand_id) && $product_brand_id==$product_company->id ? "selected":""); ?>><?php echo e($product_company->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php if($errors->has('product_brand_id')): ?> <span class="label label-danger"><?php echo e($errors->first('product_brand_id')); ?></span> <?php endif; ?> </div> </div> <div class="col-md-1"> <div class="form-group"> <button type="submit" class="btn btn-primary">Submit</button> </div> </div> </div> </form> </div> </div> <div class="clearfix"> <div class="pull-right tableTools-container"> </div> </div> <div class="table-header"> Godown Register </div> <div class="table-responsive"> <div class="dataTables_borderWrap"> <table class="table table-striped table-bordered table-hover"> <thead> <tr> <th>Product Loading</th> <th>Product Unloading</th> <th>Standard(Open)</th> <th>Standard(Packed)</th> <th>Warehouse DI(In)</th> <th>Warehouse DI(Out)</th> <th>Dealer Returned</th> <th>Retailer Returned</th> <th>Warehouse Transfer Loading</th> <th>Warehouse Transfer Unloading</th> </tr> </thead> <tbody> <td><?php echo e($total_loading); ?></td> <td><?php echo e($total_unloading); ?></td> <td><?php echo e($standard_open); ?></td> <td><?php echo e($standard_closed); ?></td> <td><?php echo e($total_in_warehouse_di); ?></td> <td><?php echo e($total_out_warehouse_di); ?></td> <td><?php echo e($total_dealer_returned); ?></td> <td><?php echo e($total_retailer_returned); ?></td> <td><?php echo e($total_wt_unloading); ?></td> <td><?php echo e($total_wt_unloading); ?></td> </tbody> </table> </div> </div> <div class="table-responsive"> <div class="dataTables_borderWrap"> <table id="dynamic-table" class="table table-striped table-bordered table-hover"> <thead> <tr> <th> Date</th> <th> Party <br>Name</th> <th> Type</th> <th> Godown</th> <th> <?php echo e(__('messages.Product')); ?> </th> <th> <?php echo e(__('messages.Truck')); ?>#</th> <th>IN</th> <th>OUT</th> <th>Balance</th> </tr> </thead> <tbody> <?php if(isset($registers)): ?> <tr> <td></td> <td></td> <td><b>Opening Stock</b></td> <td></td> <td></td> <td></td> <td>-</td> <td>-</td> <td><?php echo e($opening_stock); ?></td> </tr> <?php $__currentLoopData = $registers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $register): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e(date('d/m/Y',strtotime($register['date']))); ?></td> <td><?php echo $register['party']; ?></td> <td><?php echo $register['source']; ?></td> <td><?php echo e($register['godown']); ?></td> <td><?php echo e($register['product']); ?></td> <td><?php echo e($register['truck_number']); ?></td> <td><?php echo e($register['in']); ?></td> <td><?php echo e($register['out']); ?></td> <td><?php echo e($register['balance']); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </tbody> </table> </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"> jQuery(function($) { var myTable = $('#dynamic-table').DataTable( { bAutoWidth: false, "aaSorting": [], } ); $.fn.dataTable.Buttons.defaults.dom.container.className = 'dt-buttons btn-overlap btn-group btn-overlap'; new $.fn.dataTable.Buttons( myTable, { buttons: [ { "extend": "colvis", "text": "<i class='fa fa-search bigger-110 blue'></i> <span class='hidden'>Show/hide columns</span>", "className": "btn btn-white btn-primary btn-bold", columns: ':not(:first):not(:last)' }, { "extend": "copy", "text": "<i class='fa fa-copy bigger-110 pink'></i> <span class='hidden'>Copy to clipboard</span>", "className": "btn btn-white btn-primary btn-bold" }, { "extend": "csv", "text": "<i class='fa fa-database bigger-110 orange'></i> <span class='hidden'>Export to CSV</span>", "className": "btn btn-white btn-primary btn-bold" }, { "extend": "excel", "text": "<i class='fa fa-file-excel-o bigger-110 green'></i> <span class='hidden'>Export to Excel</span>", "className": "btn btn-white btn-primary btn-bold" }, { "extend": "pdf", "text": "<i class='fa fa-file-pdf-o bigger-110 red'></i> <span class='hidden'>Export to PDF</span>", "className": "btn btn-white btn-primary btn-bold" }, { "extend": "print", "text": "<i class='fa fa-print bigger-110 grey'></i> <span class='hidden'>Print</span>", "className": "btn btn-white btn-primary btn-bold", autoPrint: true, message: 'IManager', exportOptions: { columns: ':visible' } } ] } ); myTable.buttons().container().appendTo( $('.tableTools-container') ); var defaultCopyAction = myTable.button(1).action(); myTable.button(1).action(function (e, dt, button, config) { defaultCopyAction(e, dt, button, config); $('.dt-button-info').addClass('gritter-item-wrapper gritter-info gritter-center white'); }); var defaultColvisAction = myTable.button(0).action(); myTable.button(0).action(function (e, dt, button, config) { defaultColvisAction(e, dt, button, config); if($('.dt-button-collection > .dropdown-menu').length == 0) { $('.dt-button-collection') .wrapInner('<ul class="dropdown-menu dropdown-light dropdown-caret dropdown-caret" />') .find('a').attr('href', '#').wrap("<li />") } $('.dt-button-collection').appendTo('.tableTools-container .dt-buttons') }); }) 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/srtdev/resources/views/dashboard/inventory/godown-register.blade.php ENDPATH**/ ?>