File: /var/www/html/hrms-production/storage/framework/views/75216a269ef4a5256c0a27bb00a9d834d4f161a9.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 Deputation Details</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="#AddDeputationDetail">New Deputation</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-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>Order No.</th>
<th>Order Date</th>
<th>Order File</th>
<th>Status</th>
<th>Created By</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $EmpDeputationList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $EmpDeputationList): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($loop->iteration); ?></td>
<td><a href="<?php echo e(url('view-employee',$EmpDeputationList->EmployeeId )); ?>"
target="blank"><?php echo e($EmpDeputationList->EmployeeCode); ?></a></td>
<td><?php echo e($EmpDeputationList->EmployeeName); ?></td>
<td><?php echo e($EmpDeputationList->DeputationOrderNo); ?></td>
<td>
<?php if($EmpDeputationList->DeputationOrderDate): ?>
<?php echo e(date('d-M-y', strtotime($EmpDeputationList->DeputationOrderDate))); ?>
<?php else: ?>
--
<?php endif; ?>
</td>
<td>
<?php if($EmpDeputationList->DeputationOrderPath): ?>
<a href="<?php echo e(asset($EmpDeputationList->DeputationOrderPath)); ?>"
class="btn btn-success btn-xs"
download="<?php echo e($EmpDeputationList->EmployeeCode.'_deputation_order'); ?>"><i
class="fas fa-download"></i></a>
<?php else: ?>
--
<?php endif; ?>
</td>
<td>
<?php if($EmpDeputationList->IsRevised == '1'): ?>
<span class="badge bg-danger">Revised</span>
<?php elseif($EmpDeputationList->IsReturned == '1'): ?>
<span class="badge bg-success">Returned</span>
<?php else: ?>
<span class="badge bg-warning">Awaiting Update</span>
<?php endif; ?>
</td>
<td><?php echo e($EmpDeputationList->Created_by); ?>, <?php echo e(date('d-M-y h:m a', strtotime($EmpDeputationList->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">
<button type="button" class="dropdown-item btn btn-default"
onclick="editDeputationDetail('<?php echo e($EmpDeputationList->DeputationDetailId); ?>')">Edit</button>
<?php if($EmpDeputationList->IsRevised == '0' &&
$EmpDeputationList->IsReturned == '0'): ?>
<button type="button" class="dropdown-item btn btn-default"
onclick="reviseDeputationDetail('<?php echo e($EmpDeputationList->DeputationDetailId); ?>')">Revise</button>
<button type="button" class="dropdown-item btn btn-default"
onclick="returnDeputationDetail('<?php echo e($EmpDeputationList->DeputationDetailId); ?>')">Return</button>
<?php endif; ?>
<?php if($EmpDeputationList->IsRevised == '1' &&
$EmpDeputationList->IsReturned == '0'): ?>
<button type="button" class="dropdown-item btn btn-default"
onclick="cancelReviseDeputationDetail('<?php echo e($EmpDeputationList->DeputationDetailId); ?>')">Cancel
Revised</button>
<?php endif; ?>
<button type="button" class="dropdown-item btn btn-default"
onclick="deleteDeputationDetail('<?php echo e($EmpDeputationList->DeputationDetailId); ?>')"
data-id="'<?php echo e($EmpDeputationList->DeputationDetailId); ?>'">Delete</button>
</div>
</div>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</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)) { $__componentOriginal572d874aecbf6c2feed0e738ee02aa5340b8a55a = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\EmployeeDeputationModal::class, []); ?>
<?php $component->withName('EmployeeDeputationModal'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal572d874aecbf6c2feed0e738ee02aa5340b8a55a)): ?>
<?php $component = $__componentOriginal572d874aecbf6c2feed0e738ee02aa5340b8a55a; ?>
<?php unset($__componentOriginal572d874aecbf6c2feed0e738ee02aa5340b8a55a); ?>
<?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-deputation-list.blade.php ENDPATH**/ ?>