/
home
/
sjslayjy
/
public_html
/
olddevlok
/
storage
/
framework
/
views
/
Upload File
HOME
<?php $__env->startSection('title','Warehouse Daliy Report'); ?> <?php $__env->startSection('style'); ?> <?php echo e(Html::style("assets/css/bootstrap-datepicker3.min.css")); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="main-content"> <div class="main-content-inner"> <div class="breadcrumbs ace-save-state" id="breadcrumbs"> <ul class="breadcrumb"> <li> <i class="ace-icon fa fa-home home-icon"></i> <a href="#"><?php echo e(__('messages.Home')); ?></a> </li> <li class="active"> <?php echo e(__('messages.Warehouses')); ?> <?php echo e(__('messages.Daliy')); ?> <?php echo e(__('messages.Report')); ?></li> </ul> </div> <div class="page-content"> <div class="row"> <div class="col-xs-12"> <h3 class="header smaller lighter blue"> <?php echo e(__('messages.Warehouses')); ?> <?php echo e(__('messages.Daliy')); ?> <?php echo e(__('messages.Report')); ?> </h3> <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-3"> <div class="form-group"> <label for="from_date"> <?php echo e(__('messages.Date')); ?></label> <input type="text" class="form-control date-picker" name="from_date" id="" placeholder="Date" readonly="readonly" value="<?php echo e($from_date); ?>"> <?php if($errors->has('from_date')): ?> <span class="label label-danger"><?php echo e($errors->first('from_date')); ?></span> <?php endif; ?> </div> </div> <div class="col-md-3"> <div class="form-group"> <button type="submit" class="btn btn-primary">Submit</button> </div> </div> </form> </div> </div> <div class="clearfix"> <div class="pull-right tableTools-container"> </div> </div> <div class="table-header"> <?php echo e(__('messages.Warehouses')); ?> <?php echo e(__('messages.Daliy')); ?> <?php echo e(__('messages.Report')); ?> </div> <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></th> <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.ProductCompany')); ?></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> <?php echo e(__('messages.Freight')); ?></th> <th> <?php echo e(__('messages.FreightPaymentMode')); ?><br/> <br/></th> <th> <?php echo e(__('messages.Quantity')); ?></th> <th>Recieved Quantity</th> <th> <?php echo e(__('messages.Rate')); ?></th> <th>Bill(Invoice) #</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 if(is_null($product_loading->token)): ?> <?php if(is_null($product_loading->from_warehouse_id)): ?> <img src="<?php echo e(URL('/assets/images/inward1.png')); ?>" height="30"> <?php else: ?> <img src="<?php echo e(URL('/assets/images/outward.png')); ?>" height="30"> <?php endif; ?> <?php else: ?> <?php if($product_loading->token->token_type == 1): ?> <img src="<?php echo e(URL('/assets/images/inward1.png')); ?>" height="30"> <?php else: ?> <img src="<?php echo e(URL('/assets/images/outward.png')); ?>" height="30"> <?php endif; ?> <?php endif; ?> </td> <td><?php echo e($product_loading->id); ?></td> <td> <?php if(!is_null($product_loading->token)): ?> <?php echo e($product_loading->token->unique_id); ?> <?php endif; ?> </td> <td><?php echo e(date('d-m-Y',strtotime($product_loading->created_at))); ?> </td> <td> <?php if($product_loading->loading_slip_type ==1): ?> <?php if(!is_null($product_loading->retailer_id)): ?> <b> <?php echo e(getModelById('Retailer',$product_loading->retailer_id)->name); ?>(<?php echo e(getModelById('Retailer',$product_loading->retailer_id)->address); ?>) </b> <br> <?php echo e(getModelById('Dealer',$product_loading->dealer_id)->name); ?>(<?php echo e(getModelById('Dealer',$product_loading->dealer_id)->address1); ?>) <?php else: ?> <b> <?php echo e(getModelById('Dealer',$product_loading->dealer_id)->name); ?> <br>(<?php echo e(getModelById('Dealer',$product_loading->dealer_id)->address1); ?>) </b> <?php endif; ?> <?php else: ?> <b> <?php echo e(getModelById('Warehouse',$product_loading->warehouse_id)->name); ?> </b> <br> <?php echo e(getModelById('Warehouse',$product_loading->warehouse_id)->location); ?> <?php endif; ?> </td> <td><b><?php echo e(getModelById('ProductCompany',$product_loading->product_company_id)->name); ?></b></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); ?> <?php echo e($product_loading->unit_name); ?></td> <td><?php echo e($product_loading->recieved_quantity); ?></td> <td><?php echo e(is_null(getModelById('Token', $product_loading->token_id))?"":getModelById('Token', $product_loading->token_id)->rate); ?></td> <td> <?php if(!is_null($product_loading->loading_slip_invoice)): ?> <a href="<?php echo e(URL('user/loading-slip-invoices-details/'.$product_loading->loading_slip_invoice->id)); ?>" target="_blank"><?php echo e($product_loading->loading_slip_invoice->invoice_number); ?> </a> <?php endif; ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </tbody> </table> </div> </div> </div> </div> </div><!-- /.page-content --> </div> </div><!-- /.main-content --> <?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")); ?> <?php echo e(Html::script("assets/js/bootstrap-datepicker.min.js")); ?> <script type="text/javascript"> jQuery(function($) { //initiate dataTables plugin // $('.date-picker').datepicker({ autoclose: true, todayHighlight: true }) .next().on(ace.click_event, function(){ $(this).prev().focus(); }); 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: false, message: 'This print was produced using the Print button for DataTables' } ] } ); myTable.buttons().container().appendTo( $('.tableTools-container') ); //style the message box 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') }); }) </script> <script type="text/javascript"> function showProducts(id){ if(id == ""){ swal('Error','product_loading Is Missing'); }else{ $('.loading-bg').show(); $.ajax({ url: "<?php echo e(url('/user/product-loading-details/')); ?>"+"/"+id, type: 'GET', success:function(data){ $('.loading-bg').hide(); $('#details').html(data); $('#productDetailsModal').modal('toggle'); } }); } } </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/inventory/warehouse-report.blade.php ENDPATH**/ ?>