File: /var/www/html/hrms-production/storage/framework/views/66519f4b024d45716b8998620406edcfd32afe27.php
<?php $__env->startSection('content'); ?>
<style>
.cmpadding-6
{
padding:0px;
margin:0px;
padding:7px;
}
</style>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<!-- Employee leave list -->
<div class="row">
<div class="col-12"><br>
<div class="card">
<div class="card-header">
<div class="row">
<div class="col-8">
<h5>Earned Commuted Leave Details</h5>
</div>
<div class="col-4 text-right">
<a class="btn btn-outline-secondary" data-toggle="modal" data-target="#AddEarnedCommutedLeaveDetail">Credit Leave</a>
</div>
</div>
</div>
<!-- /.card-header -->
<div class="card-body">
<div class="table-responsive">
<table id="employeeEarnedTable" class="table table-bordered table-striped table-sm">
<thead>
<tr>
<th>ID</th>
<th>Employee Code</th>
<th>Employee Name</th>
<th>From Date</th>
<th>To Date</th>
<th>Earned Leave</th>
<th>Balance Earned Leave</th>
<th>Commuted Leave</th>
<th>Balance Commuted Leave</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $EmployeeEarnedCommutedLeaveDetails; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $EarnedCommutedLeaves): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($loop->iteration); ?></td>
<td><?php echo e($EarnedCommutedLeaves->EmployeeCode); ?></td>
<td><?php echo e($EarnedCommutedLeaves->EmployeeName); ?></td>
<td><?php echo e(date('d-M-y', strtotime($EarnedCommutedLeaves->FromDate))); ?></td>
<td><?php echo e(date('d-M-y', strtotime($EarnedCommutedLeaves->ToDate))); ?></td>
<td><?php echo e($EarnedCommutedLeaves->EarnedLeave); ?></td>
<td><?php echo e($EarnedCommutedLeaves->BalanceEarnedLeave); ?></td>
<td><?php echo e($EarnedCommutedLeaves->CommutedLeave); ?></td>
<td><?php echo e($EarnedCommutedLeaves->BalanceCummetedLeave); ?></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">
<a onclick="EditEarnedCommutedLeave('<?php echo e($EarnedCommutedLeaves->EmployeeELCLId); ?>')"
class="dropdown-item btn btn-default">Edit</a>
<a onclick="DeleteEarnedCommutedLeave('<?php echo e($EarnedCommutedLeaves->EmployeeELCLId); ?>')"
class="dropdown-item btn btn-default">Delete</a>
</div>
</div>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
<!-- /.card-body -->
</div>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
<!-- Employee leave list end -->
</div>
<!-- /.container-fluid -->
</section>
<!-- /.content -->
</div>
<?php if (isset($component)) { $__componentOriginal40ab0014fd3a49a8f9bb53e46db7628f8f2e0868 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\EarnedCommutedLeaveModal::class, []); ?>
<?php $component->withName('EarnedCommutedLeaveModal'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal40ab0014fd3a49a8f9bb53e46db7628f8f2e0868)): ?>
<?php $component = $__componentOriginal40ab0014fd3a49a8f9bb53e46db7628f8f2e0868; ?>
<?php unset($__componentOriginal40ab0014fd3a49a8f9bb53e46db7628f8f2e0868); ?>
<?php endif; ?>
<!-- <script>
function showModalAddLeave(employee_id='',EmployeeName='',JoiningDate='')
{
$('span#ShowEmployeeName').html(EmployeeName);
$('#EmployeeId').val(employee_id);
var Jdate = moment(JoiningDate).format('DD/MM/Y');
$('#LeaveFromDate').val(Jdate);
}
</script> -->
<script>
$(function() {
$("#employeeEarnedTable").DataTable({
"responsive": true,
"lengthChange": true,
"autoWidth": false,
"lengthMenu": [10, 20, 50, 100, 250, 500],
"buttons": ["csv", "excel", "pdf", "print"]
}).buttons().container().appendTo('#employeeEarnedTable_wrapper .col-md-6:eq(0)');
});
</script>
<?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/LeaveManagement/employee-earned-commuted-details.blade.php ENDPATH**/ ?>