/
home
/
sjslayjy
/
public_html
/
olddevlok
/
storage
/
framework
/
views
/
Upload File
HOME
<?php $__env->startSection('title','Outstanding Amount Details'); ?> <?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">Outstanding Amount Details</li> </ul></div> <div class="page-content"> <h3 class="header smaller lighter blue">Outstanding Amount Details</h3> <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"> <?php echo e($dealer->name); ?> (<?php echo e($dealer->address1); ?>) </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 Name</th> <th>Product</th> <th>Total Amount</th> </tr> </thead> <?php $total = 0; ?> <?php $__currentLoopData = $invoices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $invoice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e(date('d-m-Y',strtotime($invoice->created_at))); ?></td> <td> <b><?php echo e(getModelById('Retailer',$invoice->retailer_id)->name); ?> <br> <?php echo e(getModelById('Retailer',$invoice->retailer_id)->address); ?></b> </td> <td><?php echo e($invoice->product); ?></td> <td><a target="_blank" onclick="showInvoiceDetails( '<?php echo e($invoice->invoice_number); ?>', '<?php echo e($invoice->invoice_date); ?>', '<?php echo e($dealer->name); ?>', '<?php echo e($invoice->retailer_name); ?>', '<?php echo e($invoice->destination); ?>', '<?php echo e(($invoice->rate - $invoice->freight_discount) * $invoice->quantity); ?>', '<?php echo e($invoice->product); ?>', '<?php echo e($invoice->cgst); ?>', '<?php echo e($invoice->sgst); ?>', '<?php echo e($invoice->remaining_amount); ?>', '<?php echo e($invoice->product_hsn); ?>', '<?php echo e($invoice->quantity); ?>', '<?php echo e($dealer->address1); ?>')"> <?php echo e($invoice->total); ?></a></td> <?php $total = $total + ($invoice->total); ?> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <tr> <td></td> <td><b>Total Amount</b></td> <td></td> <td><b><?php echo e($total); ?></b></td> </tr> <tbody> </tbody> </table> </div> </div> </div> </div> <div class="modal fade" id="invoiceDetailsModal"> <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">Invoice Details</h4> </div> <div class="modal-body"> <div class="table-responsive"> <table class="table table-hover"> <thead> <tr> <th>Invoice Number</th> <td id="invoice_number"></td> </tr> <tr> <th>Product</th> <td id="product"></td> </tr> <tr> <th>Retailer</th> <td id="retailer"></td> </tr> <tr> <th>Dealer</th> <td id="dealer"></td> </tr> <tr> <th>Product HSN</th> <td id="product_hsn"></td> </tr> <tr> <th>CGST</th> <td id="cgst"></td> </tr> <tr> <th>SGST</th> <td id="sgst"></td> </tr> <tr> <th>Total Amount</th> <td id="total"></td> </tr> <tr> <th>Quantity</th> <td id="quantity"></td> </tr> <tr> <th>Destination</th> <td id="destination"></td> </tr> <tr> <th>Remaining Amount</th> <td id="remaining_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> </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 showInvoiceDetails(invoice_number,invoice_date,dealer,retailer,destination,total,product,cgst,sgst,remaining_amount,product_hsn,quantity,address){ $('.loading-bg').show(); dealer =dealer+" ("+address+")"; $('#invoice_number').text(invoice_number); $('#invoice_date').text(invoice_date); $('#quantity').text(quantity); $('#dealer').text(dealer); $('#sgst').text(sgst); $('#cgst').text(cgst); $('#destination').text(destination); $('#retailer').text(retailer); $('#remaining_amount').text(remaining_amount); $('#product').text(product); $('#product_hsn').text(product_hsn); $('#total').text(total); $('#invoiceDetailsModal').modal('toggle'); $('.loading-bg').hide(); } </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/report/outstanding-total-amount-details.blade.php ENDPATH**/ ?>