ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 18.117.186.75 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 : |
<?php $__env->startSection('pageTitle'); ?> Staff Control Variable <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div id="editModal" class="modal fade"> <div class="modal-dialog box box-default" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Edit Variable</h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form class="form-horizontal" id="editpartModal" name="editpartModal" role="form" method="POST" action=""> <?php echo e(csrf_field()); ?> <div class="modal-body"> <div class="form-group" style="margin: 0 10px;"> <div class="col-sm-12"> <label class="col-sm-2 control-label">Amount</label> </div> <div class="col-sm-12"> <!--<input type="number" value="<?php echo e($amount); ?>" name="amount-edit" id="mmt" class="form-control" placeholder="e.g 11000">--> <input type="text" value="<?php echo e($amount); ?>" name="amount-edit" id="mmt" class="form-control" placeholder="e.g 11000" oninput="this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\..*?)\..*/g, '$1');"> </div> <div class="col-sm-12"> <label class="col-sm-2 control-label">Remarks</label> </div> <div class="col-sm-12"> <input type="text" name="remarks" id="remarks" required class="form-control" > </div> <input type="hidden" id="edit-hidden" name="edit-hidden" value=""> <input type="hidden" id="courtid1" name="court" value=""> <input type="hidden" id="divid1" name="division" value=""> <input type="hidden" name="fileNofordelete" value="<?php echo e($fileNo); ?>"> </div> </div> <div class="modal-footer"> <button type="Submit" class="btn btn-success">Save changes</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> </div> </form> </div> </div> </div> <div id="DeleteModal" class="modal fade"> <div class="modal-dialog box box-default" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Delete Variable</h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form class="form-horizontal" id="deletevariableModal" role="form" method="POST" action=""> <?php echo e(csrf_field()); ?> <div class="modal-body"> <div class="form-group" style="margin: 0 10px;"> <div class="col-sm-12"> <label class="col-sm-9 control-label"><b>Are you sure you want to delete this record?</b></label> </div> <input type="hidden" id="deleteid" name="deleteid" value=""> <input type="hidden" id="courtid" name="court" value=""> <input type="hidden" id="divid" name="division" value=""> <input type="hidden" name="fileNofordelete" value="<?php echo e($fileNo); ?>"> </div> </div> <div class="modal-footer"> <button type="Submit" class="btn btn-success">Yes</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">No</button> </div> </form> </div> </div> </div> <div class="box box-default"> <div class="box-body box-profile"> <div class="box-header with-border hidden-print"> <h3 class="box-title"><?php echo $__env->yieldContent('pageTitle'); ?> <span id='processing'></span></h3> </div> <div class="col-md-12"> <?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">×</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($error != ""): ?> <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> <p><?php echo e($error); ?></p> </div> <?php endif; ?> <?php if($success != ""): ?> <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> <br /> <?php echo e($success); ?></div> <?php endif; ?> <?php if(session('err')): ?> <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>Input Error!</strong> <br /> <?php echo e(session('err')); ?></div> <?php endif; ?> </div> <div class="box-body"> <div class="row"> <div class="col-md-12"><!--1st col--> <?php echo $__env->make('Share.message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <form class="form-horizontal" id="mainform" name="mainform" role="form" method="post" action=""> <?php echo e(csrf_field()); ?> <div class="col-md-12"><!--2nd col--> <!-- /.row --> <div class="form-group"> <?php if($CourtInfo->courtstatus==1): ?> <div class="col-md-4"> <label class="control-label">Court</label> <select required class="form-control" id="court" onchange="getDivisions()" name="court"> <option value="" >-select Court</option> <?php $__currentLoopData = $courtList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($list->id); ?>" <?php echo e(($court == $list->id) ? "selected":""); ?> ><?php echo e($list->court_name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <?php else: ?> <input type="hidden" id="court" name="court" value="<?php echo e($CourtInfo->courtid); ?>"> <?php endif; ?> <?php if($CourtInfo->divisionstatus==1 && Auth::user()->is_global==1): ?> <div class="col-md-4"> <label class="control-label">Division</label> <select required class="form-control" id="division" name="division" > <option value="" >-select Division </option> <?php $__currentLoopData = $courtdivision; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($list->divisionID); ?>" <?php echo e(($division) == $list->divisionID ? "selected" :""); ?>><?php echo e($list->division); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <?php else: ?> <div class="col-md-4"> <div class="form-group"> <label>Division</label> <input type="text" class="form-control" id="divisionName" name="divisionName" value="<?php echo e($curDivision->division); ?>" readonly> </div> </div> <input type="hidden" id="division" name="division" value="<?php echo e(Auth::user()->divisionID); ?>"> <!--<input type="hidden" id="division" name="division" value="<?php echo e($CourtInfo->divisionid); ?>">--> <?php endif; ?> <div class="col-md-4"> <input type="hidden" id="fileNo" name="fileNo" value="<?php echo e($fileNo); ?>"> <label class="control-label">Staff Names Search</label> <input type="text" id="userSearch" autocomplete="off" list="enrolledUsers" class="form-control" onchange="StaffSearchReload()"> <datalist id="enrolledUsers" name="userSearch"> <?php $__currentLoopData = $courtstaff; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $b): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($b->ID); ?>"><?php echo e($b->fileNo); ?>:<?php echo e($b->surname); ?> <?php echo e($b->first_name); ?> <?php echo e($b->othernames); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </datalist> </div> </div> </div> <!-- /.col --> </div> <!-- /.row --> <div class="row"> <div class="col-md-12"><!--2nd col--> <!-- /.row --> <div class="form-group"> <div class="col-md-2"> <label class="control-label">File Number</label> <input required type="text" value="<?php echo e($staff->fileNo); ?>" name="sname" readonly="readonly" class="form-control" > </div> <div class="col-md-5"> <label class="control-label">Staff name</label> <input required type="text" value="<?php echo e($staff->surname); ?> <?php echo e($staff->first_name); ?> <?php echo e($staff->othernames); ?>" name="sname" readonly="readonly" class="form-control"> </div> <?php if($staff->fileNo != ""): ?> <div class="col-md-5"> <div class="form-group"> <label for="staffBank">Staff Bank</label> <input type="Text" name="staffBank" id="staffBank" class="form-control" readonly value="<?php if($staff != ''): ?> <?php echo e($staff->bank); ?> <?php endif; ?>" /> </div> </div> <?php endif; ?> <!--<div class="col-md-3"> --> <!-- <label class="control-label">Firstname</label>--> <!-- <input required type="text" value="<?php echo e($staff->first_name); ?>" readonly="readonly" name="fname" class="form-control" >--> <!--</div>--> <!--<div class="col-md-3">--> <!-- <label class="control-label">Othername</label>--> <!-- <input require type="text" value="<?php echo e($staff->othernames); ?>" name="oname" readonly="readonly" class="form-control" > --> <!--</div>--> </div> </div> </div> <div class="row"> <div class="col-md-12"><!--2nd col--> <!-- /.row --> <div class="form-group"> <div class="col-md-2"> <label class="control-label">Variable Type</label> <select required name="cvtype" class="form-control" id="cvtype" onchange="Reload()"> <option value="">-select Description</option> <?php $__currentLoopData = $EarningDeductionType; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $desc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($desc->ID); ?>" <?php echo e(($desc->ID == $cvtype ) ? "selected" : ""); ?> ><?php echo e($desc->Particular); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="col-md-2"> <label class="control-label">Description</label> <select required name="cvdesc" class="form-control" id="cvdesc"> <option value="">-select Description</option> <?php $__currentLoopData = $cvdesc; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $desc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($desc->ID); ?>"><?php echo e($desc->description); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="col-md-2"> <label class="control-label">Amount</label> <input required type="number" step="0.01" value="<?php echo e($amount); ?>" name="amount" id="amount" class="form-control" placeholder="e.g 11000" onkeyup='TargetRevalidate()'> </div> <?php $limitcheck=""; if ($hiddenlimit==1){$limitcheck="checked";} $recyclecheck=""; if ($hiddenrecycle==1){$recyclecheck="checked";} ?> <div class="col-md-2"> <div class="checkbox" onclick="ClickLimit()"> <label><input type="checkbox" <?php echo e($limitcheck); ?> > No Limit</label> </div> <input type="hidden" id="hiddenlimit" name="hiddenlimit" value="<?php echo e($hiddenlimit); ?>"> <div id="recycle" class="checkbox" onclick="ClickRecycle()"> <label><input type="checkbox" <?php echo e($recyclecheck); ?>> One-Time</label> </div> <input type="hidden" id="hiddenrecycle" name="hiddenrecycle" value="<?php echo e($hiddenrecycle); ?>"> </div> <div class="col-md-2"> <label class="control-label">Target Amount</label> <input required type="number" step="0.01" value="<?php echo e($tamount); ?>" name="tamount" class="form-control" placeholder="e.g 11000" id="tamount"> </div> <div class="col-md-2"> <br> <button type="submit" class="btn btn-success" name="add" > <i class="fa fa-btn fa-floppy-o"></i> Add </button> </div> </div> </div> <!-- /.col --> </div> </form> <div class="table-responsive col-md-12" style="font-size: 12px; padding:10px;"> <table class="table table-bordered table-striped table-highlight" > <thead> <tr bgcolor="#c7c7c7"> <th >S/N</th> <th >CV Description</th> <th >Amount</th> <th >Target Amount</th> <th >Target Balance</th> <th >With Limit</th> <th >Last processed</th> <th >Action</th> </tr> </thead> <?php $i = 1; ?> <tbody> <?php $__currentLoopData = $tablecontent; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($i++); ?></td> <td><?php echo e($list->description); ?> <?php if($list->remarks): ?> (<?php echo e($list->remarks); ?>) <?php endif; ?></td> <td><?php echo e(number_format( $list->amount, 2, '.', ',')); ?></td> <td><?php if($list->targetAmount<>'' && $list->recycling==0): ?><?php echo e(number_format( $list->targetAmount, 2, '.', ',')); ?> <?php else: ?> Not Applicable <?php endif; ?></td> <td><?php if($list->targetAmount<>'' && $list->recycling==0): ?> <?php echo e(number_format( $list->targetAmount-$list->totaloffset, 2, '.', ',')); ?><?php else: ?> Not Applicable <?php endif; ?></td> <td><?php if($list->recycling==1): ?> No <?php else: ?> yes <?php endif; ?> </td> <td><?php if($list->lastperiod<>''): ?> <?php echo e($list->lastperiod); ?><?php else: ?> Not yet processed <?php endif; ?> </td> <td> <button class="btn btn-sm btn-primary" style="cursor: pointer;" onclick="editfunc('<?php echo e($list->ID); ?>','<?php echo e($list->description); ?>', '<?php echo e($list->courtID); ?>', '<?php echo e($list->divisionID); ?>', '<?php echo e($list->amount); ?>', '<?php echo e($list->remarks); ?>')">Edit</button> <button class="btn btn-sm btn-warning" style="cursor: pointer;" onclick="deletefunc('<?php echo e($list->ID); ?>','<?php echo e($list->description); ?>', '<?php echo e($list->courtID); ?>', '<?php echo e($list->divisionID); ?>')">Delete</button> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <hr /> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('styles'); ?> <style type="text/css"> .modal-dialog { width:13cm } .modal-header { background-color: #006600; color:#FFF; } #partStatus{ width:2.5cm } </style> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script src="<?php echo e(asset('assets/js/jquery-ui.min.js')); ?>"></script> <script> function editfunc(x,y,z,a, n, r) { document.getElementById('edit-hidden').value = x; document.getElementById('deleteid').value = null; document.getElementById('courtid1').value = z; document.getElementById('divid1').value = a; document.getElementById('mmt').value = n; document.getElementById('remarks').value = r; $("#editModal").modal('show') } function deletefunc(x,y,z,a) { //$('#deleteid').val() = x; document.getElementById('edit-hidden').value = null; document.getElementById('deleteid').value = x; document.getElementById('courtid').value = z; document.getElementById('divid').value = a; $("#DeleteModal").modal('show'); } function getDivisions() { document.getElementById('fileNo').value = ""; if($('#court').val() !== "") { $('#form1').submit(); } } function getStaff() { document.forms["mainform"].submit(); } function getTable() { if($('#fileNo').val() !== ""){ $('#form1').submit(); } } function checkForm() { var court = $('#court').val(); division = $('#division').val(); fileno = $('#fileNo').val(); fname = $('#fname').val(); oname = $('#oname').val(); sname = $('#sname').val(); desc = $('#cvdesc').val(); amount = $('#amount').val(); if(court == ""){ alert('You have empty fields!'); } else { if(division == ""){ alert('You have empty fields'); } else { if(fileno == ""){ alert('you have empty fields!'); } else { if(fname == ""){ alert('you have empty fields!'); } else { if(oname == ""){ alert('you have empty fields'); } else { if(sname == ""){ alert('you have empty fields!'); } else { if(desc == ""){ alert('you have empty fields!'); } else { if(amount == ""){ alert('you have empty fields!'); } else { $('#form1').submit(); } } } } } } } } return false; } function Reload() { document.forms["mainform"].submit(); return; } function StaffSearchReload() { document.getElementById('fileNo').value=document.getElementById('userSearch').value; document.forms["mainform"].submit(); return; } function ClickLimit() { if(document.getElementById('hiddenlimit').value==1){ document.getElementById('tamount').removeAttribute('disabled'); document.getElementById('hiddenlimit').value=0; } else { document.getElementById('tamount').setAttribute('disabled', 'disabled'); document.getElementById('hiddenlimit').value=1; //document.getElementById('recycle').setAttribute('disabled', 'disabled').off('click'); for(div of document.getElementById('recycle')) { let children = div.children; for(child of children) { child.disabled = true; } } } return; } function ClickRecycle() { if(document.getElementById('hiddenrecycle').value==1){ document.getElementById('hiddenrecycle').value=0; } else { document.getElementById('hiddenrecycle').value=1; document.getElementById('tamount').value=document.getElementById('amount').value; } return; } function TargetRevalidate() { if(document.getElementById('hiddenrecycle').value==1){ document.getElementById('tamount').value=document.getElementById('amount').value; } return; } </script> <script type="text/javascript"> $(document).ready(function() { // alert('danger') $('select[name="division"]').on('change', function () { var division_id = $(this).val(); // alert(division_id) if (division_id) { $.ajax({ url: "<?php echo e(url('/division/staff/ajax')); ?>/"+division_id, type: "GET", dataType: "json", success: function(data) { var d = $('datalist[name="userSearch"]').html(''); $.each(data, function(key, value){ $('datalist[name="userSearch"]').append(`<option value=${value.ID}> ${value.fileNo} : ${value.surname} ${value.first_name} ${value.othernames} </option>`); }); } }); }else{ alert('danger') } }); // end sub category }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/nicngo5/grp.nicn.gov.ng/resources/views/CVModule/cvmodule.blade.php ENDPATH**/ ?>