ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.147.61.5 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 Details Comparison <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <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"> <?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"> <?php echo e(csrf_field()); ?> <div class="row"> <div class="col-md-12"> <div class="col-md-12"> <!-- /.row --> <div class="form-group"> <?php if($CourtInfo->courtstatus == 1): ?> <div class="col-md-2"> <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-2"> <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-2"> <div class="form-group"> <label>Division</label> <input type="text" class="form-control" id="division" name="division" value="<?php echo e($curDivision->division); ?>" readonly> </div> </div> <input type="hidden" id="division" name="division" value="<?php echo e(Auth::user()->divisionID); ?>"> <?php endif; ?> <div class="col-md-2"> <label class="control-label">Select Month 1</label> <select name="month1" id="month1" class="form-control"> <option value="">Select Month </option> <option value="January" <?php if(old('month') == 'January'): ?> selected <?php endif; ?>> January </option> <option value="February" <?php if(old('month') == 'February'): ?> selected <?php endif; ?>> February </option> <option value="March" <?php if(old('month') == 'March'): ?> selected <?php endif; ?>> March</option> <option value="April" <?php if(old('month') == 'April'): ?> selected <?php endif; ?>> April</option> <option value="May" <?php if(old('month') == 'May'): ?> selected <?php endif; ?>> May</option> <option value="June" <?php if(old('month') == 'June'): ?> selected <?php endif; ?>> June</option> <option value="July" <?php if(old('month') == 'July'): ?> selected <?php endif; ?>> July</option> <option value="August" <?php if(old('month') == 'August'): ?> selected <?php endif; ?>> August </option> <option value="September" <?php if(old('month') == 'September'): ?> selected <?php endif; ?>> September </option> <option value="October" <?php if(old('month') == 'October'): ?> selected <?php endif; ?>> October </option> <option value="November" <?php if(old('month') == 'November'): ?> selected <?php endif; ?>> November </option> <option value="December" <?php if(old('month') == 'December'): ?> selected <?php endif; ?>> December </option> </select> </div> <div class="col-md-2"> <label class="control-label">Select Year 1</label> <select name="year1" id="year1" class="form-control"> <option value="">Select Year</option> <?php for($i = 2020; $i <= 2050; $i++): ?> <option value="<?php echo e($i); ?>" <?php if(old('year') == $i): ?> selected <?php endif; ?>><?php echo e($i); ?> </option> <?php endfor; ?> </select> </div> <div class="col-md-2"> <label class="control-label">Select Month 2</label> <select name="month2" id="month2" class="form-control"> <option value="">Select Month </option> <option value="January" <?php if(old('month') == 'January'): ?> selected <?php endif; ?>> January </option> <option value="February" <?php if(old('month') == 'February'): ?> selected <?php endif; ?>> February </option> <option value="March" <?php if(old('month') == 'March'): ?> selected <?php endif; ?>> March</option> <option value="April" <?php if(old('month') == 'April'): ?> selected <?php endif; ?>> April</option> <option value="May" <?php if(old('month') == 'May'): ?> selected <?php endif; ?>> May</option> <option value="June" <?php if(old('month') == 'June'): ?> selected <?php endif; ?>> June</option> <option value="July" <?php if(old('month') == 'July'): ?> selected <?php endif; ?>> July</option> <option value="August" <?php if(old('month') == 'August'): ?> selected <?php endif; ?>> August </option> <option value="September" <?php if(old('month') == 'September'): ?> selected <?php endif; ?>> September </option> <option value="October" <?php if(old('month') == 'October'): ?> selected <?php endif; ?>> October </option> <option value="November" <?php if(old('month') == 'November'): ?> selected <?php endif; ?>> November </option> <option value="December" <?php if(old('month') == 'December'): ?> selected <?php endif; ?>> December </option> </select> </div> <div class="col-md-2"> <label class="control-label">Select Year 2</label> <select name="year2" id="year2" class="form-control"> <option value="">Select Year</option> <?php for($i = 2020; $i <= 2050; $i++): ?> <option value="<?php echo e($i); ?>" <?php if(old('year') == $i): ?> selected <?php endif; ?>><?php echo e($i); ?> </option> <?php endfor; ?> </select> </div> <div class="col-md-2"> <label class="control-label" style="visibility: hidden;">Search</label> <button class="form-control btn btn-success" id="search-btn"> <i class="fa fa-btn fa-search"></i> Search Record </button> </div> </div> </div> <!-- /.col --> </div> <!-- /.row --> </div> </form> <hr /> <div class="row"> <div class=" col-md-12"> <div class="table-responsive"> <table class="table table-bordered table-striped table-highlight" style="display: none;"> <thead> <tr bgcolor="#c7c7c7"> <th>S/N</th> <th id="monthHeader">September 2024</th> <th id="nextMonthHeader">Octomber 2024</th> </tr> </thead> <?php $i = 1; ?> <tbody id="table-body"> <tr></tr> </tbody> </table> </div> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('styles'); ?> <style type="text/css"> .blinking { color: red; animation: blink 1s infinite; } .modal-dialog { width: 13cm } .modal-header { background-color: #006600; color: #FFF; } #partStatus { width: 2.5cm } </style> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script src="<?php echo e(asset('assets/js/jquery-ui.min.js')); ?>"></script> <script> $(document).ready(function() { $('#search-btn').on('click', function(e) { e.preventDefault(); // Prevent default form submission // Fetch selected values var division = $('#division').val(); var month1 = $('#month1').val(); var month2 = $('#month2').val(); var year1 = $('#year1').val(); var year2 = $('#year2').val(); var _token = $('meta[name="csrf-token"]').attr('content'); // CSRF token // Perform AJAX request $.ajax({ url: '<?php echo e(route('search.staffComparison')); ?>', // Named route method: 'POST', data: { division: division, month1: month1, month2: month2, year1: year1, year2: year2, _token: _token // CSRF token }, success: function(response) { $('table').show(); console.log('------------------------------------'); console.log(response); console.log(month2); console.log('------------------------------------'); // Clear the previous table content $('#table-body').empty(); $('#monthHeader').text( `${month1} ${year1} - (${response.data1.length})`); $('#nextMonthHeader').text( `${month2} ${year2} - (${response.data2.length})`); // Check if response data is not empty if (response.data1.length || response.data2.length) { // Populate the table with response data var maxLength = Math.max(response.data1.length, response.data2 .length); for (var i = 0; i < maxLength; i++) { var row1 = response.data1[i] ? `${response.data1[i].name} - ${response.data1[i].fileNo}` : 'No Data'; var row2 = response.data2[i] ? `${response.data2[i].name} - ${response.data1[i].fileNo}` : ''; $('#table-body').append(` <tr> <td>${i + 1}</td> <td>${row1}</td> <td>${row2}</td> </tr> `); } } else { $('#table-body').append( '<tr><td colspan="3">No records found.</td></tr>'); } }, error: function(xhr, status, error) { // Handle errors console.error('An error occurred:', error); } }); }); }); </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/staffStatus/index.blade.php ENDPATH**/ ?>