ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.17.173.90 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/consolidated/newpayroll/resources/views/compute/ |
Upload File : |
@extends('layouts.layout') @section('pageTitle') Compute Retirement @endsection @section('content') <form method="post" action="{{ url('/compute/retirement') }}" id="form"> {{ csrf_field() }} <div class="box-body"> <div class="row"> <div class="col-md-12"> @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">×</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">×</span> </button> <strong>Success!</strong> {{ session('msg') }}</div> @endif @if(session('err')) <div class="alert alert-error alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span> </button> <strong>Error!</strong> {{ session('err') }}</div> @endif </div> <!-- 1st column --> <div class="col-md-4"> <div class="form-group"> <label>Select staff to edit</label> <select name="staffList" id="staffList" class="form-control"> <option value="" selected>Select staff to edit</option> @foreach ($staffList as $staff) <option value="{{ $staff->fileNo }}" {{ (old("staffList") == $staff->fileNo ? "selected":"") }}> {{ $staff->surname." ".$staff->first_name." ".$staff->othernames }}</option> @endforeach </select> </div> <div class="form-group"> <label>Grade</label> <input type="text" class="form-control" id="grade" name="grade" value="{{ old('grade') }}" disabled /> </div> <div class="form-group"> <label>Step</label> <input type="text" class="form-control" id="step" name="step" value="{{ old('step') }}" disabled /> </div> <div class="form-group"> <label>Retirement Date</label> <input type="text" class="form-control" id="retirementDate" name="retirementDate" value="{{ old('retirementDate') }}" /> </div> <div class="form-group"> <label for="month">Month</label> <input type="Text" name="month" class="form-control" value="{{ session('activeMonth') }}" readonly> </div> </div> <!-- /.col --> <!-- 2nd column --> <div class="col-md-4"> <div class="form-group"> <label>File Number</label> <input type="text" class="form-control" id="fileNo" name="fileNo" value="{{ old('fileNo') }}" disabled /> </div> <div class="form-group"> <label>Surname</label> <input type="text" name="surname" id="surname" class="form-control" value="{{ old('surname') }}" disabled /> </div> <div class="form-group"> <label>First name</label> <input type="text" name="firstName" id="firstName" class="form-control" value="{{ old('firstName') }}" disabled /> </div> <div class="form-group"> <label>Other Names</label> <input type="text" name="otherNames" id="otherNames" class="form-control" value="{{ old('otherNames') }}" disabled /> </div> <div class="form-group"> <label for="year">Year</label> <input type="Text" name="year" class="form-control" value="{{ session('activeYear') }}" readonly> </div> </div> <!-- /.col --> <!-- 3rd column --> <div class="col-md-4"> <div class="form-group"> <img id="image" src="{{asset('passport/0.png')}}" height="208" /> </div> <div class="form-group"> <label>Appointment Date</label> <input type="text" name="appointmentDate" id="appointmentDate" class="form-control" value="{{old('appointmentDate')}}" disabled /> </div> <div class="form-group" style="padding-top:25px"> <input type="submit" class="btn btn-success" name="button" value="Compute"> <button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample"> Details </button> <!-- <input type="submit" class="btn btn-success" name="button" value="Update staff"> <input type="reset" class="btn btn-info" name="reset" value="clear form"> --> </div> </div> <!-- end of col-md-4 --> <div class="col-md-12"> <div class="collapse" id="collapseExample"> <div class="well"> @if(session('details')) {!! session('details') !!} @endif </div> </div> </div> <!-- /.col --> </div> <!-- /.row --> </div> </form> @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 () { $('#staffList').change( function(){ if($('#staffList').val() == "") $('#form')[0].reset(); if($('#staffList').val() != "") { $('#processing').text('Processing. Please wait...'); $.ajax({ url: murl +'/per/findStaff', type: "post", data: {'staffList': $('#staffList').val(), '_token': $('input[name=_token]').val()}, success: function(data){ $('#processing').text(''); $('#image').attr('src', murl+'/passport/'+data.fileNo+'.jpg'); $('#surname').val(data.surname); $('#fileNo').val(data.fileNo); $('#title').val(data.title); $('#firstName').val(data.first_name); $('#otherNames').val(data.othernames); $('#designation').val(data.Designation); $('#grade').val(data.grade); $('#step').val(data.step); $('#appointmentDate').val(data.appointment_date); }, }) }//end if });}) (); $( function() { $( "#retirementDate" ).datepicker({changeMonth: true,changeYear: true,dateFormat: 'yy-mm-dd'}); } ); </script> @endsection