File: /var/www/html/hrms-production/storage/framework/views/6158490e571dcb95dc65052673c05fed2ce671d2.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 Resignation</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="#AddResignation">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">
<!-- /.card-header -->
<div class="card-body">
<table id="empResignationTable" class="table table-bordered table-striped table-sm">
<thead>
<tr>
<th>S.No.</th>
<th>Employee Code</th>
<th>Employee Name</th>
<th>Order No.</th>
<th>Order Date</th>
<th>Resignation Date</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $EmpResignation; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $EmpResignation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($loop->iteration); ?></td>
<td><a href="<?php echo e(url('view-employee', $EmpResignation->EmployeeId)); ?>" target="blank"><?php echo e($EmpResignation->EmployeeCode); ?></a></td>
<td><?php echo e($EmpResignation->EmployeeName); ?></td>
<td>
<?php if($EmpResignation->ResignationOrderNo): ?>
<?php echo e($EmpResignation->ResignationOrderNo); ?>
<?php else: ?>
--
<?php endif; ?>
</td>
<td>
<?php if($EmpResignation->ResignationOrderDate): ?>
<?php echo e(date('d-M-y', strtotime($EmpResignation->ResignationOrderDate))); ?>
<?php else: ?>
--
<?php endif; ?>
</td>
<td><?php echo e(date('d-M-y', strtotime($EmpResignation->ResignationDate))); ?></td>
<td>
<?php if($EmpResignation->ApprovalLock == 0): ?>
<button type="button" title="Edit"
onclick="editEmpResignation('<?php echo e($EmpResignation->ResignationId); ?>')" ;
class="btn btn-xs btn-outline-info" data-id=""><i
class="fas fa-edit"></i></button>
<button type="button" title="Delete"
onclick="deleteEmpResignation('<?php echo e($EmpResignation->ResignationId); ?>')" ;
class="btn btn-xs btn-outline-danger"
data-id="'<?php echo e($EmpResignation->ResignationId); ?>'"><i
class="fas fa-trash-alt"></i></button>
<?php endif; ?>
</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() {
$("#empResignationTable").DataTable({
"responsive": true,
"lengthChange": true,
"autoWidth": false,
"lengthMenu": [10, 20, 50, 100, 250, 500],
"buttons": ["csv", "excel", "pdf", "print", "colvis"]
}).buttons().container().appendTo('#empResignationTable_wrapper .col-md-6:eq(0)');
});
</script>
<!-- /.content-wrapper -->
<?php if (isset($component)) { $__componentOriginal343af26501a104f8b96431e25cea4f681e346364 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\EmployeeResignationModal::class, []); ?>
<?php $component->withName('EmployeeResignationModal'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal343af26501a104f8b96431e25cea4f681e346364)): ?>
<?php $component = $__componentOriginal343af26501a104f8b96431e25cea4f681e346364; ?>
<?php unset($__componentOriginal343af26501a104f8b96431e25cea4f681e346364); ?>
<?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-resignation.blade.php ENDPATH**/ ?>