/
home
/
sjslayjy
/
public_html
/
olddevlok
/
storage
/
framework
/
views
/
Upload File
HOME
<?php $__env->startSection('title','Returned Products'); ?> <?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"> Returned Products</li> </ul> </div> <div class="page-content"> <h3 class="header smaller lighter blue"> Returned Products</h3> <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="dealer_id"> Dealer </label> <select class="form-control select2" name="dealer_id" id="dealer_id"> <option value=""> Select Dealer</option> <?php $__currentLoopData = $dealers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $dealer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($dealer->id); ?>" <?php echo e(isset($dealer_id) && $dealer_id == $dealer->id ? "selected":""); ?>><?php echo e($dealer->name); ?>(<?php echo e($dealer->address1); ?>)</option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php if($errors->has('dealer_id')): ?> <span class="label label-danger"><?php echo e($errors->first('dealer_id')); ?></span> <?php endif; ?> </div> </div> <div class="col-md-3"> <div class="form-group"> <label for="receiving_warehouse_id"> Receiving <?php echo e(__('messages.Warehouses')); ?></label> <select class="form-control select2" name="receiving_warehouse_id" id="receiving_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($receiving_warehouse_id) && $receiving_warehouse_id == $warehouse->id ? "selected":""); ?>><?php echo e($warehouse->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php if($errors->has('receiving_warehouse_id')): ?> <span class="label label-danger"><?php echo e($errors->first('receiving_warehouse_id')); ?></span> <?php endif; ?> </div> </div> <div class="col-md-3"> <div class="form-group"> <label for="product_brand_id"> Product 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_company_id) && $product_company_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_company_id')): ?> <span class="label label-danger"><?php echo e($errors->first('product_company_id')); ?></span> <?php endif; ?> </div> </div> <div class="col-md-3"> <div class="form-group"> <label for="product_id"> Product</label> <select class="form-control select2" name="product_id" id="product_id"> <option value=""> 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"> <button type="submit" class="btn btn-primary">Submit</button> </div> </div> </div> </form> </div> </div> <div class="row"> <div class="col-xs-12"> <div class="clearfix"> <div class="pull-right tableTools-container"> </div> </div> <?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 class="table-header"> Results for "Latest Generated Records" </div> <div class="table-responsive"> <div class="dataTables_borderWrap"> <table id="dynamic-table" class="table table-striped table-bordered table-hover"> <thead> <tr> <th>Return Date</th> <th>Retailer</th> <th>Receiving <br> Warehouse</th> <th>Brand</th> <th>Product</th> <th>Quantity</th> <th>Transporter</th> <th>Truck #</th> <th>Freight</th> <th>Freight Payment <br>Status</th> <th>Freight <br>Paid <br>Amount</th> <th>Freight <br>Paid <br>Date</th> <th>Labour</th> <th>Labour <br>Rate</th> <th>Labour Payment <br>Status</th> <th>Labour <br>Paid <br>Amount</th> <th>Labour <br>Paid <br>Date</th> <th></th> </tr> </thead> <tbody> <?php $__currentLoopData = $returned_products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $returned_product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e(date('d/m/Y',strtotime($returned_product->created_at))); ?></td> <td><?php echo e(getModelById('Retailer',$returned_product->retailer_id)->name); ?> <br> <b><?php echo e(getModelById('Dealer',$returned_product->dealer_id)->name); ?></b> </td> <td><?php echo e($returned_product->warehouse->name); ?></td> <td><?php echo e($returned_product->product_brand->name); ?></td> <td><?php echo e($returned_product->product->name); ?></td> <td><?php echo e($returned_product->returned_quantity); ?> <?php echo e($returned_product->unit->unit_name); ?></td> <td><?php if(!is_null($returned_product->transporter)): ?> <?php echo e($returned_product->transporter->name); ?> <?php endif; ?> </td> <td><?php echo e($returned_product->vehicle_number); ?></td> <td><?php echo e($returned_product->freight); ?></td> <td> <?php if($returned_product->is_freight_paid): ?> <span class="label label-success">Paid</span> <?php else: ?> <span class="label label-warning">Not Paid</span> <?php endif; ?> </td> <td><?php echo e($returned_product->freight_paid_amount); ?></td> <td> <?php if($returned_product->is_freight_paid): ?> <?php echo e(date('d/m/Y',strtotime($returned_product->freight_payment_date))); ?> <?php endif; ?> </td> <td><?php echo e($returned_product->labour_name); ?></td> <td><?php echo e($returned_product->labour_rate); ?></td> <td> <?php if($returned_product->is_labour_paid): ?> <span class="label label-success">Paid</span> <?php else: ?> <span class="label label-warning">Not Paid</span> <?php endif; ?> </td> <td><?php echo e($returned_product->paid_labour_amount); ?></td> <td> <?php if($returned_product->is_labour_paid): ?> <?php echo e(date('d/m/Y',strtotime($returned_product->labour_payment_date))); ?> <?php endif; ?> </td> <td><a href="<?php echo e(URL('/user/print-returned-product-slip/'.$returned_product->id)); ?>"><i class="fa fa-print fa-2x"></i></a></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </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($) { $('.date-picker').datepicker({ autoclose: true, todayHighlight: true }) //initiate dataTables plugin 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') ); //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> <?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/returned_products/index.blade.php ENDPATH**/ ?>