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/6f81c171d4d4af36b52968865fe58315d77c2fbf.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">List of Probation Period Employee</h1>
                </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">
                        
                        <!-- /.card-header -->
                        <div class="card-body">
                            <table id="emplaoyeeTable" class="table table-bordered table-striped table-sm">
                                <thead>
                                    <tr>
                                        <th>S.N.</th>
                                        <th>Employee Code</th>
                                        <th>Employee Name</th>
                                        <th>Joining Date</th>
                                        <th>Probation Clear</th>
                                        <th>Status</th>
                                        <th>Created By</th>
                                        <th>Action</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php $__currentLoopData = $GetPendingProbationPeriod; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ProbationPeriod): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td><?php echo e($loop->iteration); ?></td>
                                        <td><a href="<?php echo e(url('view-employee', $ProbationPeriod->EmployeeId)); ?>"
                                                target="blank"><?php echo e($ProbationPeriod->EmployeeCode); ?></a></td>
                                        <td><?php echo e($ProbationPeriod->EmployeeName); ?></td>
                                        <td><?php echo e(date('d-M-y', strtotime($ProbationPeriod->JoiningDate))); ?></td>
                                        <td><?php echo e(date('d-M-y', strtotime($ProbationPeriod->ProbationPeriodClearDate))); ?>

                                        </td>
                                        <td>
                                            <?php if($ProbationPeriod->IsRevised == '1'): ?>
                                            <span class="badge bg-danger">Revised on
                                                <?php echo e(date('d-M-y', strtotime($ProbationPeriod->ClearReviseDate))); ?>

                                            </span>

                                            <?php elseif($ProbationPeriod->IsCleared == '1'): ?>
                                            <span class="badge bg-success">Cleared on
                                                <?php echo e(date('d-M-y', strtotime($ProbationPeriod->ClearReviseDate))); ?></span>

                                            <?php elseif($ProbationPeriod->ProbationPeriodClearDate < date('Y-m-d')): ?> <span
                                                class="badge bg-warning">Awaiting updates</span>
                                                <?php else: ?>
                                                <span class="badge bg-info">Upcoming clear date</span>
                                                <?php endif; ?>
                                        </td>
                                        <td><?php echo e($ProbationPeriod->Created_by); ?>, <?php echo e(date('d-M-y h:m a', strtotime($ProbationPeriod->Created_at))); ?></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">
                                                    
                                                    <?php if($ProbationPeriod->IsCleared == '1' &&
                                                    $ProbationPeriod->IsRevised == '0'): ?>
                                                        <a href="<?php echo e(url("/view-employee-probation", $ProbationPeriod->ProbationPeriodId )); ?>"
                                                    class="dropdown-item btn btn-default" target="blank">View</a>
                                                    <?php endif; ?>

                                                    <?php if($ProbationPeriod->IsCleared == '0' &&
                                                    $ProbationPeriod->IsRevised == '0'): ?>
                                                        <button type="button" class="dropdown-item btn btn-default"
                                                        onclick="editProbationPeriod('<?php echo e($ProbationPeriod->ProbationPeriodId); ?>')">Edit
                                                        Record</button>
                                                    <?php endif; ?>

                                                    <?php if($ProbationPeriod->IsCleared == '1' ||
                                                    $ProbationPeriod->IsRevised == '1'): ?>
                                                        <button type="button" class="dropdown-item btn btn-default"
                                                        onclick="editClearReviseProbationPeriod('<?php echo e($ProbationPeriod->ProbationPeriodId); ?>')">Edit
                                                        Record</button>
                                                    <?php endif; ?>

                                                    <?php if($ProbationPeriod->IsCleared == '0' &&
                                                    $ProbationPeriod->IsRevised == '0'): ?>
                                                    <button type="button" class="dropdown-item btn btn-default"
                                                        onclick="clearProbationPeriod('<?php echo e($ProbationPeriod->ProbationPeriodId); ?>')">Clear
                                                        Probation</button>

                                                    <button type="button" class="dropdown-item btn btn-default"
                                                        onclick="reviseProbationPeriod('<?php echo e($ProbationPeriod->ProbationPeriodId); ?>')">Revise
                                                        Probation</button>
                                                    <?php endif; ?>

                                                    <?php if($ProbationPeriod->IsCleared == '0' &&
                                                    $ProbationPeriod->IsRevised == '0'): ?>
                                                        <button type="button" class="dropdown-item btn btn-default"
                                                        onclick="deleteProbationPeriod('<?php echo e($ProbationPeriod->ProbationPeriodId); ?>')"
                                                        data-id="'<?php echo e($ProbationPeriod->ProbationPeriodId); ?>'">Delete
                                                        Record</button>
                                                    <?php endif; ?>
                                                </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>

<?php if (isset($component)) { $__componentOriginal4135557d5ba2aa71d6c59e4cc46443e144f59433 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\EmployeeProbationPeriodModal::class, []); ?>
<?php $component->withName('EmployeeProbationPeriodModal'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal4135557d5ba2aa71d6c59e4cc46443e144f59433)): ?>
<?php $component = $__componentOriginal4135557d5ba2aa71d6c59e4cc46443e144f59433; ?>
<?php unset($__componentOriginal4135557d5ba2aa71d6c59e4cc46443e144f59433); ?>
<?php endif; ?>
<!-- /.content-wrapper -->
<?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-probation-period.blade.php ENDPATH**/ ?>