ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.129.73.174 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/signatory/ |
Upload File : |
@extends('layouts.layout') @section('pageTitle') Edit Signatory @endsection @section('content') <form method="post" action="{{ url('/signatory/update') }}"> <div class="box-body"> <div class="row"> <div class="col-md-12"><!--1st col--> <div style="margin: 10px 20px;"> @if(session('err')) <div class="alert alert-warning alert-dismissible hidden-print" 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> @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 </div> {{ csrf_field() }} <input type="hidden" name="codeID" id="codeID"> <div class="col-md-12"><!--2nd col--> <div class="row"> <input type="hidden" name="month" id="month" class="form-control" value="{{ $month }}"> <input type="hidden" name="year" id="year" class="form-control" value="{{ $year}}"> <div class="col-md-6"> <div class="form-group"> <label for="reportType">Signatory 1</label> <select name="signatory1" id="signatory1" required="true" class="form-control" > <option value="">Select</option> @foreach($getSignatory1 as $list) @if($list->fullname == $signatory1->name) <option value="{{$list->signatoryID}}" selected="selected">{{ $list->fullname }}</option> @else <option value="{{$list->signatoryID}}">{{ $list->fullname }}</option> @endif @endforeach </select> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="month">Phone</label> <input type="text" name="phone1" id="phone1" class="form-control" value="{{ $signatory1->phone }}"> <input type="hidden" name="name1" id="name1" class="form-control" value="{{ $signatory1->name }}"> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="year">Signatory 2</label> <select name="signatory2" id="signatory2" class="form-control"> <option value="">Select</option> @foreach($getSignatory2 as $list) @if($list->fullname == $signatory2->name) <option value="{{$list->signatoryID}}" selected="selected">{{ $list->fullname }}</option> @else <option value="{{$list->signatoryID}}">{{ $list->fullname }}</option> @endif @endforeach </select> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="bank">Phone</label> <input type="text" name="phone2" id="phone2" class="form-control" value="{{$signatory2->phone}}"> <input type="hidden" name="name2" id="name2" class="form-control" value="{{$signatory2->name}}"> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="bankGroup">Signatory 3</label> <select name="signatory3" id="signatory3" class="form-control"> <option value="">Select</option> @foreach($getSignatory3 as $list) @if($list->fullname == $signatory3->name) <option value="{{$list->signatoryID}}" selected="selected">{{ $list->fullname }}</option> @else <option value="{{$list->signatoryID}}">{{ $list->fullname }}</option> @endif @endforeach </select> </div> </div> <div class="col-md-6"> <div class="form-group" id="workingstatehide"> <label for="workingState">Phone</label> <input type="text" name="phone3" id="phone3" class="form-control" value="{{$signatory3->phone}}"> <input type="hidden" name="name3" id="name3" class="form-control" value="{{$signatory3->name}}"> </div> </div> </div> <div class="col-md-12"> <div align="right" class="form-group"> <button name="action" id="action" class="btn btn-success" type="submit">UPDATE</button> </div> </div> </div> </div><!-- /.col --> </div><!-- /.row --> </form> @endsection @section('scripts') <script src="{{asset('assets/js/jquery-ui.min.js')}}"></script> <script type="text/javascript"> (function () { $('#reportType').change( function(){ if ($('#reportType').val() != 'tax'){ //$('#workingstatehide').val(); //$("#workingstatehide").prepend("<option value='' selected='selected'></option>"); $('#workingstatehide').hide(); } if ($('#reportType').val() == 'tax'){ $('#workingstatehide').show(); } });}) (); </script> <script> var murl = "{{ url('/')}}"; </script> <script type="text/javascript"> $( function() { $("#signatory1").on('change', function(){ var id = $(this).val(); //alert(id); $token = $("input[name='_token']").val(); $.ajax({ headers: {'X-CSRF-TOKEN': $token}, url: murl +'/signatory/retrieve', type: "post", data: {'signid': id}, success: function(datas){ console.log(datas.phoneno); //alert(datas.phoneno); $('#phone1').val(datas.phoneno); $('#name1').val(datas.fullname); } }); }); $("#signatory2").on('change', function(){ var id = $(this).val(); //alert(id); $token = $("input[name='_token']").val(); $.ajax({ headers: {'X-CSRF-TOKEN': $token}, url: murl +'/signatory/retrieve', type: "post", data: {'signid': id}, success: function(datas){ console.log(datas.phoneno); //alert(datas.phoneno); $('#phone2').val(datas.phoneno); $('#name2').val(datas.fullname); } }); }); $("#signatory3").on('change', function(){ var id = $(this).val(); //alert(id); $token = $("input[name='_token']").val(); $.ajax({ headers: {'X-CSRF-TOKEN': $token}, url: murl +'/signatory/retrieve', type: "post", data: {'signid': id}, success: function(datas){ console.log(datas.phoneno); //alert(datas.phoneno); $('#phone3').val(datas.phoneno); $('#name3').val(datas.fullname); } }); }); }); </script> @endsection