HEX
Server: Apache/2.4.46 (Ubuntu)
System: Linux localhost 5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022 x86_64
User: root (0)
PHP: 7.4.16
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/hrms-production/storage/framework/views/6fdadf3f9e6d4c35fc8862a3eb3c9c28c1ddfed9.php

<?php $__env->startSection('content'); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1 id="page-title">Employee PayMatrix</h1>
                </div>
                <div class="col-sm-6 text-right">
                    <button type="button" class="btn btn-sm btn-outline-info mx-1" data-toggle="modal"
                        data-target="#addEmpPayMatrix">Add New</button>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="container-fluid">
            
            <div class="row">
                <div class="col-12">
                    <div class="card">
                        <div class="card-header">
                            <a href="<?php echo e(url('employee-pay-matrix')); ?>" class="btn btn-info btn-sm card-title px-2 mx-1">All <span class="badge badge-light"><?php echo e($AllPayMatrix->count()); ?></span></a>
                            <a href="<?php echo e(url('employee-cancelled-pay-matrix')); ?>" class="btn btn-default btn-sm card-title px-2 mx-1">Cancelled <span class="badge badge-info"><?php echo e($CancelledPayMatrix->count()); ?></span></a>
                            
                          </div>
                        <!-- /.card-header -->
                        <div class="card-body">
                            <table id="emplaoyeeTable" class="table table-bordered table-striped table-sm">
                                <thead>
                                    <tr>
                                        <th>S.No.</th>
                                        <th>Employee Code</th>
                                        <th>Name</th>
                                        <th>Pay Scale</th>
                                        <th>PayBand/PayLevel</th>
                                        <th>GradePay</th>
                                        <th>Basic Pay</th>
                                        <th>Pay Fixation</th>
                                        <th>Status</th>
                                        <th>W.e.f.</th>
                                        
                                        <th>Action</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php $__currentLoopData = $AllPayMatrix; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $AllPayMatrix): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td><?php echo e($loop->iteration); ?></td>
                                        <td><a href="<?php echo e(url('view-employee', $AllPayMatrix->EmployeeId)); ?>"
                                                target="blank"><?php echo e($AllPayMatrix->EmployeeCode); ?></a></td>
                                        <td><?php echo e($AllPayMatrix->EmployeeName); ?></td>
                                        <td><?php echo e($AllPayMatrix->PayScale); ?></td>
                                        <td>
                                            <?php if($AllPayMatrix->PayBand): ?>
                                            <?php echo e($AllPayMatrix->PayBand); ?>

                                            <?php else: ?>
                                            <?php echo e($AllPayMatrix->PayLevel); ?>

                                            <?php endif; ?>
                                        </td>
                                        <td>
                                            <?php if($AllPayMatrix->GradePay): ?>
                                            <?php echo e($AllPayMatrix->GradePay); ?>

                                            <?php else: ?>
                                            --
                                            <?php endif; ?>
                                        </td>
                                        <td>
                                            <?php if($AllPayMatrix->PayLevelAmount): ?>
                                            <?php echo e($AllPayMatrix->PayLevelAmount); ?>

                                            <?php else: ?>
                                            <?php echo e($AllPayMatrix->LevelAmount); ?>

                                            <?php endif; ?>
                                        </td>
                                        <td><?php echo e($AllPayMatrix->PayFixation); ?></td>
                                        <td>    
                                            

                                                    <?php if($AllPayMatrix->IsCancelled == "1"): ?>
                                                        <button class="btn btn-xs btn-warning" style="cursor: not-allowed">Cancelled</button>
                                                    <?php elseif($AllPayMatrix->IsHold == "1" && $AllPayMatrix->IsReleased == "0"): ?>
                                                        <button class="btn btn-xs btn-warning" style="cursor: not-allowed">Hold on <?php echo e(date('d-M-y', strtotime($AllPayMatrix->HoldFromDate))); ?></button>
                                                    <?php elseif($AllPayMatrix->Status == "1"): ?>
                                                        <button class="btn btn-xs btn-success" data-id="<?php echo e($AllPayMatrix->PayMatrixId); ?>" onclick="changeStatusEmpPayMatrix('<?php echo e($AllPayMatrix->PayMatrixId); ?>');" title="De-Activate">Active</button>
                                                    <?php else: ?>
                                                        <button class="btn btn-xs btn-danger" data-id="<?php echo e($AllPayMatrix->PayMatrixId); ?>" onclick="changeStatusEmpPayMatrix('<?php echo e($AllPayMatrix->PayMatrixId); ?>')" title="Activate">InActivate</button>
                                                    <?php endif; ?>
                                        </td>
                                        <td>
                                            <?php if($AllPayMatrix->EffectiveDate): ?>
                                            <?php echo e(date('d-M-y', strtotime($AllPayMatrix->EffectiveDate))); ?>


                                            <?php else: ?>
                                            --
                                            <?php endif; ?>
                                        </td>
                                        
                                        
                                        <td>
                                            <div class="btn-group">
                                                <button type="button"
                                                    class="btn btn-default btn-sm dropdown-toggle dropdown-icon"
                                                    data-toggle="dropdown" aria-expanded="false">
                                                </button>
                                                <div class="dropdown-menu dropdown-menu-right" role="menu">
                                                    <button type="button" class="dropdown-item btn btn-default"
                                                        onclick="editEmpPayMatrix('<?php echo e($AllPayMatrix->PayMatrixId); ?>')">Edit</button>

                                                    <?php if($AllPayMatrix->IsReleased == '1' && $AllPayMatrix->IsHold ==
                                                    '0' && $AllPayMatrix->IsReleased == '1' && $AllPayMatrix->IsCancelled ==
                                                    '0'): ?>
                                                    <button type="button" class="dropdown-item btn btn-default"
                                                        onclick="holdEmpPayMatrix('<?php echo e($AllPayMatrix->PayMatrixId); ?>')">Hold</button>
                                                    <?php endif; ?>

                                                    <?php if($AllPayMatrix->IsReleased == '0' && $AllPayMatrix->IsHold ==
                                                    '1'): ?>
                                                    <button type="button" class="dropdown-item btn btn-default" onclick="releaseEmpPayMatrix('<?php echo e($AllPayMatrix->PayMatrixId); ?>')">Release</button>
                                                    <?php endif; ?>
                                                    
                                                    <?php if($AllPayMatrix->IsCancelled == '0' && $AllPayMatrix->IsHold == '0'): ?>
                                                    <button type="button" class="dropdown-item btn btn-default" onclick="cencelEmpPayMatrix('<?php echo e($AllPayMatrix->PayMatrixId); ?>')">Cancel</button>
                                                    <?php endif; ?>

                                                    <button type="button" class="dropdown-item btn btn-default" onclick="deleteEmpPayMatrix('<?php echo e($AllPayMatrix->PayMatrixId); ?>')" data-id="'<?php echo e($AllPayMatrix->PayMatrixId); ?>'">Delete</button>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                </tbody>
                            </table>
                        </div>
                        <!-- /.card-body -->
                    </div>
                    <!-- /.card -->
                    </form>
                </div>
                <!-- /.col -->
            </div>
            <!-- /.row -->

        </div>
        <!-- /.container-fluid -->
    </section>
    <!-- /.content -->
</div>

<script>
    $(function() {
            $("#emplaoyeeTable").DataTable({
                "responsive": true,
                "lengthChange": true,
                "autoWidth": false,
                "lengthMenu": [10, 20, 50, 100, 250, 500],
                "buttons": ["csv", "excel", "pdf", "print", "colvis"]
            }).buttons().container().appendTo('#emplaoyeeTable_wrapper .col-md-6:eq(0)');
        });
</script>
<!-- /.content-wrapper -->
<?php if (isset($component)) { $__componentOriginalb11d937036a8bcfe06c071bac1cf71c6b5c62f20 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\EmployeePayMatrixModal::class, []); ?>
<?php $component->withName('EmployeePayMatrixModal'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalb11d937036a8bcfe06c071bac1cf71c6b5c62f20)): ?>
<?php $component = $__componentOriginalb11d937036a8bcfe06c071bac1cf71c6b5c62f20; ?>
<?php unset($__componentOriginalb11d937036a8bcfe06c071bac1cf71c6b5c62f20); ?>
<?php endif; ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.include.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/hrms-production/resources/views/admin/EmployeeProfile/employee-pay-matrix.blade.php ENDPATH**/ ?>