File: /var/www/html/hrms-production/storage/framework/views/2f40d48ad25fa421edaea5b8e55e4729522d0097.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 Employee Tenure Period</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>Tenure End Date</th>
<th>Status</th>
<th>Created By</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $GetPendingTenurePeriod; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $TenurePeriod): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($loop->iteration); ?></td>
<td><a href="<?php echo e(url('view-employee', $TenurePeriod->EmployeeId)); ?>"
target="blank"><?php echo e($TenurePeriod->EmployeeCode); ?></a></td>
<td><?php echo e($TenurePeriod->EmployeeName); ?></td>
<td><?php echo e(date('d-M-y', strtotime($TenurePeriod->JoiningDate))); ?></td>
<td><?php echo e(date('d-M-y', strtotime($TenurePeriod->TenurePeriodClearDate))); ?>
</td>
<td>
<?php if($TenurePeriod->IsRevised == '1'): ?>
<span class="badge bg-danger">Revised on
<?php echo e(date('d-M-y', strtotime($TenurePeriod->ClearReviseDate))); ?>
</span>
<?php elseif($TenurePeriod->IsCleared == '1'): ?>
<span class="badge bg-success">Cleared on
<?php echo e(date('d-M-y', strtotime($TenurePeriod->ClearReviseDate))); ?></span>
<?php elseif($TenurePeriod->TenurePeriodClearDate < date('Y-m-d')): ?> <span
class="badge bg-warning">Awaiting updates</span>
<?php else: ?>
<span class="badge bg-info">Upcoming reversion date</span>
<?php endif; ?>
</td>
<td><?php echo e($TenurePeriod->Created_by); ?>,
<?php echo e(date('d-M-y h:m a', strtotime($TenurePeriod->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($TenurePeriod->IsCleared == '0' &&
$TenurePeriod->IsRevised == '0'): ?>
<button type="button" class="dropdown-item btn btn-default"
onclick="editTenurePeriod('<?php echo e($TenurePeriod->TenurePeriodId); ?>')">Edit
Record</button>
<?php endif; ?>
<?php if($TenurePeriod->IsTenurePeriod == '1' &&
$TenurePeriod->IsCleared == '1' ||
$TenurePeriod->IsRevised == '1'): ?>
<button type="button" class="dropdown-item btn btn-default"
onclick="editClearReviseTenurePeriod('<?php echo e($TenurePeriod->TenurePeriodId); ?>')">Edit
Record</button>
<?php endif; ?>
<?php if($TenurePeriod->IsTenurePeriod == '1' &&
$TenurePeriod->IsCleared == '0' &&
$TenurePeriod->IsRevised == '0'): ?>
<button type="button" class="dropdown-item btn btn-default"
onclick="reversionTenurePeriod('<?php echo e($TenurePeriod->TenurePeriodId); ?>')">Reversion</button>
<button type="button" class="dropdown-item btn btn-default"
onclick="clearTenurePeriod('<?php echo e($TenurePeriod->TenurePeriodId); ?>')">Clear
Tenure</button>
<button type="button" class="dropdown-item btn btn-default"
onclick="reviseTenurePeriod('<?php echo e($TenurePeriod->TenurePeriodId); ?>')">Revise
Tenure</button>
<button type="button" class="dropdown-item btn btn-default"
onclick="deleteTenurePeriod('<?php echo e($TenurePeriod->TenurePeriodId); ?>')"
data-id="'<?php echo e($TenurePeriod->TenurePeriodId); ?>'">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)) { $__componentOriginaleb8d5c955f9b97b8c4424b11a5cd7802b208a22b = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\EmployeeTenurePeriodModal::class, []); ?>
<?php $component->withName('EmployeeTenurePeriodModal'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginaleb8d5c955f9b97b8c4424b11a5cd7802b208a22b)): ?>
<?php $component = $__componentOriginaleb8d5c955f9b97b8c4424b11a5cd7802b208a22b; ?>
<?php unset($__componentOriginaleb8d5c955f9b97b8c4424b11a5cd7802b208a22b); ?>
<?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/resources/views/admin/EmployeeProfile/employee-tenure-period.blade.php ENDPATH**/ ?>