ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.144.40.182 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'); ?> NHF Reports <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="box-body" style="background:#FFF;"> <div class="row"> <?php echo e(csrf_field()); ?> <h2 class="text-center">COURT OF APPEAL</h2> <h3 class="text-center">ADDRESS:................................................</h3> <h3 class="text-center">NHF PAYMENT SCHEDULE FOR THE MONTH OF <?php echo e($month ? $month : ''); ?>, <?php echo e($year ? $year : ''); ?>. </h3> <?php if(Auth::user()->is_global == 1): ?> <?php if($division !=''): ?> <h3 class="text-center">DIVISION: <?php $__currentLoopData = $division; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $division): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php echo e($division->division); ?></h3> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> <?php if($division ==''): ?> <h3 class="text-center">ALL DIVISIONS</h3> <?php endif; ?> <?php else: ?> <h3 class="text-center">DIVISION: <?php $__currentLoopData = $division; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $division): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php echo e($division->division); ?></h3> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> <div class="col-md-12"> <div class="" style="margin-bottom:20px;"> </div> <div class="table-responsive"> <table class="table table-striped table-condensed table-bordered" id="tableData"> <thead class="text-gray-b"> <tr> <th colspan="11" align="center"> <p class="text-center" style="padding-top:15px; font-size:20px;">NHF SCHEDULE TEMPLATE </p></th> </tr> <tr> <th>S/N</th> <th>EMPLOYER NAME</th> <?php if($division ==''): ?> <th>Division</th> <?php endif; ?> <th>EMPLOYER NUMBER</th> <th>LAST NAME</th> <th>FIRST NAME</th> <th>MIDDLE NAME</th> <th>NHF NUMBER</th> <th>AMOUNT</th> </thead> <tbody> <?php $i=1; $totalNHF = 0; $count = 0; $subTotal = 0; $divID = ''; ?> <?php $__currentLoopData = $nhf; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $i=1; $count ++; $basicSalary = DB::table('basicsalaryconsolidated')->where('employee_type','=',$list->employee_type)->where('grade','=',$list->grade)->where('step','=',$list->step)->value('amount'); ?> <?php if($divID != $list->divisionID && $divID != ''): ?> <tr> <td colspan="8" class="tblborder"><strong> Sub Total: </strong> </td> <td colspan="1" class="tblborder"><strong> <?php echo e(number_format($subTotal, 2)); ?> </strong></td> </tr> <?php $subTotal = 0; ?> <?php endif; ?> <?php $divID = $list->divisionID; $subTotal += $list->NHF; ?> <tr> <td><?php echo e($count); ?></td> <td>Court of Appeal</td> <?php if($division ==''): ?> <td class="text-uppercase"><?php echo e($list->division); ?></td> <?php endif; ?> <td>020001146-6</td> <td class="text-uppercase" ><?php echo e($list->surname); ?></td> <td class="text-uppercase"><?php echo e($list->first_name); ?></td> <td class="text-uppercase"><?php echo e($list->othernames); ?></td> <td id="<?php echo e($list->ID); ?>" onclick="getAccountDetailsFunction('<?php echo e($list->ID); ?>', '<?php echo e($list->nhfNo); ?>')" data-toggle="modal" data-target="#updateAccountModal"> <a> <?php echo e($list->nhfNo); ?></a> </td> <td><?php $totalNHF += $list->NHF; ?><?php echo e(number_format($list->NHF,2)); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php if($divID != ''): ?> <tr class="tblborder"> <td colspan="8" class="tblborder"><strong> Sub Total:</strong> </td> <td colspan="1" class="tblborder"><strong> <?php echo e(number_format($subTotal, 2)); ?> </strong></td> </tr> <?php $subTotal = 0; ?> <?php endif; ?> <tr> <td colspan="8"><strong>TOTAL:</strong></td> <td class=""><strong><?php echo e(number_format($totalNHF,2)); ?></strong></td> <td colspan="3"></td> </tr> <tr> <td colspan="2"> <div class="no-print" align="center"> <input type="button" class="hidden-print" id="btnExport" value="Export to Excel" onclick="Export();" /> </div> </td> </tbody> <div id="updateAccountModal" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">Update NHF Number</h4> </div> <div class="modal-body"> <br /> <div class="row"> <form > <div class="col-md-6"> <label>NHF number</label> <input type="hidden" name="nhfID" id="nhfID" class="form-control" /> <input type="text" name="nhfnumber" id="nhf" class="form-control" /> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" id="close" data-dismiss="modal">Close</button> <button type="button" name="submit" id="submitButton" class="btn btn-success" >Update</button> </div> </form> </div> </div> </div> </table> </div> </div> </div> </div><!-- /.col --> </div><!-- /.row --> <?php $__env->stopSection(); ?> <?php $__env->startSection('styles'); ?> <style> .init { line-height:30px; } </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/table2excel.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); } }); }); }); function getAccountDetailsFunction(a, b) { $('#nhfID').val(a); $('#nhf').val(b); }; // $("#submitButton").click(function() { // var ID = $("#nhfID").val(); // var nhf = $("#nhf").val(); // $.ajax({ // headers: { // 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') // }, // url: `/update-nhf`, // type: "post", // data: { // 'ID': ID, // 'nhf': nhf, // }, // success: function(data) { // location.reload(true); // } // }); // }); $(document).ready(function() { $("#submitButton").click(function() { var ID = $("#nhfID").val(); var nhf = $("#nhf").val(); $('#submitButton').html('Please wait...') $('#submitButton').prop('disable',true) $.ajax({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, url: '/update-nhf/'+ID+'/'+nhf, method: "GET", success: function(data) { location.reload(true); // $("#"+ID).html(nhf); $('#submitButton').html('Update') $('#submitButton').prop('disable',false) $('#close').click() alert("Record Updated successfully."); }, error: function(xhr, status, error) { alert("Error sending record: " + error); $('#submitButton').html('Update') $('#submitButton').prop('disable',false) } }); }); }); </script> <script type="text/javascript"> function Export() { $("#tableData").table2excel({ filename: "<?php echo e($month); ?>_<?php echo e($year); ?>_StaffNHF.xls" }); } </script> <?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/nhfReport/detailReport.blade.php ENDPATH**/ ?>