ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 13.58.21.119 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/grp.nicn.gov.ng/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('pageTitle'); ?> <?php echo e(strtoupper("E-PAYMENT : Update all Beneficiary Details")); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="box-body"> <div class="row"> <div class="col-md-12"> <?php if(count($errors) > 0): ?> <div class="alert alert-danger alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span> </button> <strong>Error!</strong> <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <p><?php echo e($error); ?></p> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php endif; ?> <?php if(session('msg')): ?> <div class="alert alert-success alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span> </button> <strong>Success!</strong> <?php echo session('msg'); ?> </div> <?php endif; ?> <?php if(session('err')): ?> <div class="alert alert-danger alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span> </button> <strong>Error Occured!</strong> <?php echo session('err'); ?> </div> <?php endif; ?> </div> </div><!-- /.col --> <form method="post" action="<?php echo e(url('/report/e-payment')); ?>"> <?php echo e(csrf_field()); ?> <div class="row"> <div class="col-md-6"> <!--include('layouts._searchByDatePatialView')--> </div> </div> </form> <hr> <!--//start search record--> <div class="box-body" style="background-color: white;"> <div align="center" class="alert" style="font-size: 20px; background: #f9f9f9;"> <strong><?php echo e(strtoupper('Search for voucher')); ?></strong> </div> <hr /> <div style="background: #fcfcfc; padding: 5px;"> <Form id="submitForm" method="post" action="<?php echo e(route('searchCommittedV')); ?>"> <?php echo e(csrf_field()); ?> <div class="row"> <div class="col-md-1"></div> <div class="col-md-8"> <input type="text" class="form-control" autofocus name="voucherNo" placeholder="Enter Voucher Number Only. Eg 222,8888,3444, ...." /> </div> <div class="col-md-3"> <button type="submit" form="submitForm" class="btn btn-success" onsubmit>Search</button> </div> </div> </Form> <br /> <Form method="post" action="<?php echo e(route('addCommittedToList')); ?>"> <?php echo e(csrf_field()); ?> <table class="table table-hover table-striped table-responsive table-condensed table-bordered input-sm"> <thead> <tr> <th>S/N</th> <th><input type="checkbox" tabindex="1" name="globalCheckbox2" id="globalCheckbox2"></th> <th><?php echo e(strtoupper("V-ID")); ?></th> <th><?php echo e(strtoupper("Beneficiary's Name")); ?></th> <th><?php echo e(strtoupper("Bank")); ?></th> <th><?php echo e(strtoupper("Account No.")); ?></th> <th><?php echo e(strtoupper('Sort Code')); ?></th> <th><?php echo e(strtoupper('Voucher TYpe')); ?></th> <th><?php echo e(strtoupper('Amount')); ?> ₦</th> <th><?php echo e(strtoupper('Description')); ?></th> <th><?php echo e(strtoupper('Date')); ?></th> <th>STATUS</th> <th>VIEW</th> </tr> </thead> <tbody> <?php if(($companyList)): ?> <?php $key = 1; $countNull = 1; ?> <?php $__currentLoopData = $companyList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $bl): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td> <?php echo e($key ++); ?> </td> <td> <?php if($bl->mandate_status == 1): ?> <span class="beneficiaryArray fa fa-check-square-o"></span> <?php else: ?> <input type="checkbox" tabindex="1" name="beneficiaryCompany[]" id="<?php echo e($bl->transactionID); ?>" value="<?php echo e($bl->transactionID); ?>" class="checkBox1"> <?php endif; ?> </td> <td> <?php echo e($bl->transactionID); ?> <br /> <br /> <?php echo $bl->mandate_status == 1 ? '<span class="btn btn-sm btn-success">Paid</span>' : ''; ?> </td> <td> <?php echo e($bl->beneficiary); ?> </td> <td> <?php echo e($bl->bankListName); ?> </td> <td> <?php echo e(($bl->companyID == 13 ? $bl->accountNo : $bl->AccountNo)); ?> </td> <td> <?php echo e($bl->bankSortCode); ?> </td> <td> <?php echo e($bl->contractType); ?> </td> <td> <?php echo e(($bl->amtPayable ? number_format($bl->amtPayable, 2, '.', ',') : 0)); ?> </td> <td> <?php echo e($bl->paymentDescription); ?> </td> <td> <?php echo e($bl->dateCreated); ?> </td> <td> <?php echo ($bl->accept_voucher_status ? '<span class="text-success">Approved</span>' : '<span class="text-danger">Pending</span>'); ?> <a href="javascript:;" class="text-danger" data-toggle="modal" data-target="#rejectBackToFunds<?php echo e($bl->transactionID); ?>">Reject To Funds</a> </td> <td> <a href="<?php echo e(url('/display/voucher/' . $bl->transactionID)); ?>" title="View Voucher" target="_black" class="btn btn-default"><i class="fa fa-eye fa-x2"></i></a> </td> </tr> <!--confirm rejection--> <div class="modal fade" id="rejectBackToFunds<?php echo e($bl->transactionID); ?>" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header" style="background: gray; color: white; border: 1px solid white;"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button> <h4 class="modal-title">Reject Voucher</h4> </div> <div class="modal-body col-sm-12" style="padding: 10px;"> <div class="row" style="background: #FFFFFF; margin: 5px;"> <div class="row" style="background: #ddd; margin: 5px 10px; padding: 5px;"> <div align="center" class="col-md-12 text-success"> <b><?php echo e($bl->beneficiary); ?></b> </div> <div align="center" class="col-md-12"> <span class="text-danger">Are you sure you want to reject this voucher?</span> </div> </div> </div> <hr /> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> <a href="<?php echo e(route('cpoReject', [$bl->transactionID])); ?>" class="btn btn-danger btn-sm">Reject Now</a> </div> </div> </div> </div> <!-- // end confirm reject --> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php if($companyList->hasPages()): ?> <div align="right" class="hidden-print"> Showing <?php echo e(($companyList->currentpage()-1)*$companyList->perpage()+1); ?> to <?php echo e($companyList->currentpage()*$companyList->perpage()); ?> of <?php echo e($companyList->total()); ?> entries </div> <div class="hidden-print"><?php echo e($companyList->links()); ?></div> <?php endif; ?> <?php else: ?> <tr> <td colspan="11"><div align="center" class="text-danger">No record found !</div></td> </tr> <?php endif; ?> </tbody> </table> <div class="row"> <div class="col-md-6" align="center"> <button type="submit" class="btn btn-success">Add to schedule</button> </div> <div align="center" class="col-md-6"> <a href="<?php echo e(route('viewMergedVoucher')); ?>" class="btn btn-default">View All Merged Vouchers <i class="fa fa-file"></i></a> </div> </div> <hr > </form> </div> <!--//end search record--> <!-- /.row --> <br /> <br /> <div class="row"> <div align="center" class="col-md-12"> <div align="center"> <a href="<?php echo e(route('viewEpaymentAdded')); ?>" class="btn btn-info" target="blank_" title="View schedule and generate epayment"> VIEW SCHEDULE AND GENERATE YOUR E-PAYMENT <i class="fa fa-file"></i> <span class="text-danger">(Total Added: <?php echo e(count($getTotalAdded)); ?>)</span></a> </div> </div> </div> </div> <!-- //Confirmation For Merging of Voucher --> <br /> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script src="<?php echo e(asset('assets/js/jquery-ui.min.js')); ?>"></script> <script type="text/javascript"> //SELECT/DESELECT ALL CHECKBOX $(document).ready(function () { $('#globalCheckbox').click(function(){ if($(this).prop("checked")) { $(".checkBox").prop("checked", true); } else { $(".checkBox").prop("checked", false); } }); }); //SELECT/DESELECT ALL CHECKBOX $(document).ready(function () { $('#globalCheckbox2').click(function(){ if($(this).prop("checked")) { $(".checkBox1").prop("checked", true); } else { $(".checkBox1").prop("checked", false); } }); }); //EDIT STAFF BANK DETAILS BY CPO $(document).ready(function() { $(".editBankDetailsButton").click(function () { var id = this.id; var bankName = $('#bankName'+id).val(); var accountNumber = $('#accountNumber'+id).val(); var sortCode = $('#sortCode'+id).val(); var staffAmount = $('#staffAmount'+id).val(); var description = $('#description'+id).val(); var beneficiary = $('#beneficiary'+id).val(); var companyID = $('#companyID'+id).val(); $.ajax({ url: murl + '/update/e-payment-details-JSON', type: "post", data: {'id': id, 'companyID': companyID, 'beneficiary': beneficiary, 'description': description, 'bankName': bankName, 'accountNumber': accountNumber, 'sortCode': sortCode, 'staffAmount': staffAmount, '_token': $('input[name=_token]').val()}, success: function(data){ location.reload(); } }) }); }); //CPO //Table search and pagination function myFunction() { // Declare variables var input, filter, table, tr, td, i; input = document.getElementById("myInput"); filter = input.value.toUpperCase(); table = document.getElementById("myTable"); tr = table.getElementsByTagName("tr"); // Loop through all table rows, and hide those who don't match the search query for (i = 0; i < tr.length; i++) { td = tr[i].getElementsByTagName("td")[2]; if (td) { if (td.innerHTML.toUpperCase().indexOf(filter) > -1) { tr[i].style.display = ""; } else { tr[i].style.display = "none"; } } } } //ends here //Count The number of voucher selected $(document).ready(function() { var countChecked = function() { var n = $( "input:checked" ).length; var nValue = $( "input:checked" ).val(); //alert(nValue); //return false; //JSON Request for SUM Amount if($.isNumeric(this.id)) { $.ajax({ url: murl + '/get-voucher-sum-amount-via-json', type: "post", data: { 'transactionID': this.id, '_token': $('input[name=_token]').val() }, success: function (data) { $("#newAmount").val((parseFloat($("#newAmount").val()) + parseFloat(data)).toFixed(2)); }//end success }) } if(n === 0 ){ $("#newBeneficiary").val(''); $("#newDescription").val(''); $("#newBankName").val(''); $("#newAccountNumber").val(''); $("#newSortCode").val(''); $("#newAmount").val('0.00'); }//end if // if($.isNumeric(nValue)) { $.ajax({ url: murl + '/get-voucher-details-via-json', type: "post", data: { 'transactionID': nValue, '_token': $('input[name=_token]').val() }, success: function (data) { $("#newBeneficiary").val(''); $("#newDescription").val(''); $("#newBankName").val(''); $("#newAccountNumber").val(''); $("#newSortCode").val(''); //assign details $("#newBeneficiary").val(data.beneficiary); $("#newDescription").val(data.paymentDescription); $("#newBankName").val(data.Banker); $("#newAccountNumber").val(data.AccountNo); $("#newSortCode").val(data.sortCode); }//end success }) } //End JSON calls if(n == 0) { $("#newAmount").val(0); $( "#getVoucherSelected" ).html( "No Voucher Selected !" ); }else{ $( "#getVoucherSelected" ).html( n + (n === 1 ? " voucher was" : " vouchers were") + " selected?" ); } }; countChecked(); $( "input[type=checkbox]" ).on( "click", countChecked ); }); //ends counting //MERGE === Submit All Voucher Form $(document).ready(function() { //Generate E-Payment $("#generateEpayment").click(function () { $("#mergeVoucher").val(0); $("#allVoucherForm").submit(); }); $("#generateEpayment2").click(function () { $("#mergeVoucher").val(0); $("#allVoucherForm").submit(); }); //Merge voucher $("#startMergin").click(function () { $("#newBeneficiaryPost").val($("#newBeneficiary").val()); $("#newDescriptionPost").val($("#newDescription").val()); $("#newBankNamePost").val($("#newBankName").val()); $("#newAccountNumberPost").val($("#newAccountNumber").val()); $("#newSortCodePost").val($("#newSortCode").val()); $("#newAmountPost").val($("#newAmount").val()); $("#mergeVoucher").val(1); var newBeneficiary = $("#newBeneficiary").val(); var newDescription = $("#newDescription").val(); var newBankName = $("#newBankName").val(); var newAccountNumber = $("#newAccountNumber").val(); var newSortCode = $("#newSortCode").val(); var newAmount = $("#newAmount").val(); // var beneficiaryArray = []; $('input.beneficiaryArray:checkbox:checked').each(function () { beneficiaryArray.push(this.value); }); if(beneficiaryArray == ''){ alert('you have not selected any voucher to be merged'); return false; } // if($("#newBeneficiaryPost").val() == '' || $("#newBankNamePost").val() == '' || $("#newAccountNumber").val() == '' ) { alert('Please, add reference name and account details'); return false; } //START MERGE POST if(confirm("Are you sure you want to merge these records?")) { $.ajax({ url: "<?php echo e(url('/')); ?>" + '/merge-voucher-json', type: "post", data: { 'beneficiaryArray': beneficiaryArray, 'newBeneficiary': newBeneficiary, 'newDescription': newDescription, 'newBankName': newBankName, 'newAccountNumber': newAccountNumber, 'newSortCode': newSortCode, 'newAmount': newAmount, '_token': $('input[name=_token]').val() }, success: function (data) { $("#newBeneficiary").val(''); $("#newDescription").val(''); $("#newBankName").val(''); $("#newAccountNumber").val(''); $("#newSortCode").val(''); $("#newAmount").val(0); alert(data); location.reload(); }//end success }) } }); }); //Remove voucher from Schedule $(document).ready(function() { $(".removeVoucher").click(function () { var id = this.id; if(confirm('Are you sure you want to remove this voucher?')) { $.ajax({ url: murl + '/remove-voucher-from-schedule-JSON', type: "post", data: {'removeID': id, '_token': $('input[name=_token]').val()}, success: function (data) { alert(data); location.reload(); } }) } }); }); //ends removing //Edit Voucher before E-payment $(document).ready(function() { $(".updateVoucherForEpayment").click(function () { var id = this.id; var getDescription = $('#description' + id).val(); var getAmount = $('#amount' + id).val(); var getSortCode = $('#sortCode' + id).val(); var getAccountNumber = $('#accountNumber' + id).val(); var getBankName = $('#bankName' + id).val(); var getEpaymentID = id //$('#ePaymentID' + id).val(); var beneficiaryName = $('#beneficiaryName' + id).val(); if(getEpaymentID == ''){ alert('Sorry, we are having issue while try to update your record! Refresh this page and try again.'); return false } $.ajax({ url: murl + '/update-voucher-for-epayment-JSON', type: "post", data: { 'description': getDescription, 'amount': getAmount, 'sortCode': getSortCode, 'accountNumber': getAccountNumber, 'bankName': getBankName, 'ePaymentID': getEpaymentID, 'beneficiaryName': beneficiaryName, '_token': $('input[name=_token]').val() }, success: function(data){ //Successful location.reload(); } }) }); }); // </script> <!--include ('layouts._searchByDatePatialCpo')--> <?php $__env->stopSection(); ?> <?php $__env->startSection('styles'); ?> <style type="text/css"> </style> <!-- Include Required Prerequisites --> <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/bootstrap/3/css/bootstrap.css" /> <!-- Include Date Range Picker --> <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/bootstrap.daterangepicker/2/daterangepicker.css" /> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\nicngrp\resources\views/nicnModuleViews/epaymentShedule/generateEpaymentReport.blade.php ENDPATH**/ ?>