<?php $__env->startSection('content'); ?>
<style>
.cmpadding-6
{
padding:0px;
margin:0px;
padding:7px;
}
</style>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
</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-header">
<div class="row">
<div class="col-8">
<h5>Employee Application Details</h5>
</div>
<div class="col-4 text-right">
<a class=" btn btn-outline-secondary" href="<?php echo url('/employee-leaves'); ?>">Back</a>
</div>
</div>
</div>
<!-- /.card-header -->
<div class="card-body">
<div class="row">
<div class="col-md-6">
<div class="form-group row mb-0">
<label for="EmployeeCode"
class="col-sm-4 col-form-label text-right">Employee Code:</label>
<div class="col-sm-8"><p class="cmpadding-6"><?php echo e($EmployeeData->EmployeeCode); ?></p>
</div>
</div>
<div class="form-group row mb-0">
<label for="Department"
class="col-sm-4 col-form-label text-right">Department:</label>
<div class="col-sm-8">
<p class="cmpadding-6" id="employeeDepartment"><?php echo e($EmployeeData->DepartmentName); ?></p>
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group row mb-0">
<label for="EmployeeName"
class="col-sm-4 col-form-label text-right">Employee Name:</label>
<div class="col-sm-8">
<p class="cmpadding-6" id="employeeName"><?php echo e($EmployeeData->EmployeeName); ?></p>
</div>
</div>
<div class="form-group row mb-0">
<label for="Designation"
class="col-sm-4 col-form-label text-right">Designation:</label>
<div class="col-sm-8">
<p class="cmpadding-6" id="employeeDesignation"><?php echo e($EmployeeData->DesignationName); ?></p>
</div>
</div>
</div>
</div>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
<!-- Employee leave list -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<div class="row">
<div class="col-8">
<?php if($LeaveDetails != ''): ?>
<h5>Leave Details For <b><?php echo e(date('d-M-Y', strtotime($LeaveDetails->FromDate))); ?></b> To <b><?php echo e(date('d-M-Y', strtotime($LeaveDetails->ToDate))); ?></b></h5>
<?php else: ?>
<h5>Leave Details</h5>
<?php endif; ?>
</div>
<div class="col-4 text-right">
<a class="btn btn-outline-secondary" data-toggle="modal" data-target="#AddLeaveDetail" data-employee-id="<?php echo e($EmployeeId); ?>" onclick="showModalAddLeave('<?php echo e($EmployeeId); ?>','<?php echo e($EmployeeData->EmployeeName); ?>','<?php echo e($EmployeeData->JoiningDate); ?>')">Credit Leave</a>
</div>
</div>
</div>
<!-- /.card-header -->
<div class="card-body">
<div class="table-responsive">
<table id="emplaoyeeLeaveTable" class="table">
<thead>
<tr>
<th>Type</th>
<th>Earned Leave</th>
<th>Half Pay Leave</th>
<th>Commuted Leave</th>
<th>Leave Not Due</th>
<th>Extraordinary leave</th>
<th>Leave Preparatory To Retirement</th>
<th>Maternity Leave</th>
<th>Abortion Leave</th>
<th>Special Leave</th>
<th>Special Dissability Leave</th>
<th>Hospital Leave</th>
<th>T.B. / CancerLeprosy / Paralysis / AidsLeave</th>
<th>Study Leave</th>
<th>Special Casual Leave</th>
<th>Casual Leave</th>
<th>Compensation Leave</th>
<th>Leave For Vipassana</th>
<th>Leave For Dissable Offspring</th>
<th>Mountaineering Expedition Leave</th>
<th>Bal Snagopan Leave</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>Opening</strong></td>
<?php if($LeaveDetails != ''): ?>
<td><?php echo e($LeaveDetails->EarnedLeave); ?></td>
<td><?php echo e($LeaveDetails->HalfPayLeave); ?></td>
<td><?php echo e($LeaveDetails->CommutedLeave); ?></td>
<td><?php echo e($LeaveDetails->LeaveNotDue); ?></td>
<td><?php echo e($LeaveDetails->Extraordinaryleave); ?></td>
<td><?php echo e($LeaveDetails->LeavePreparatoryToRetirement); ?></td>
<td><?php echo e($LeaveDetails->MaternityLeave); ?></td>
<td><?php echo e($LeaveDetails->AbortionLeave); ?></td>
<td><?php echo e($LeaveDetails->SpecialLeave); ?></td>
<td><?php echo e($LeaveDetails->SpecialDissabilityLeave); ?></td>
<td><?php echo e($LeaveDetails->HospitalLeave); ?></td>
<td><?php echo e($LeaveDetails->TBOrCancerLeprosyOrParalysisOrAidsLeave); ?></td>
<td><?php echo e($LeaveDetails->StudyLeave); ?></td>
<td><?php echo e($LeaveDetails->SpecialCasualLeave); ?></td>
<td><?php echo e($LeaveDetails->CasualLeave); ?></td>
<td><?php echo e($LeaveDetails->CompensationLeave); ?></td>
<td><?php echo e($LeaveDetails->LeaveForVipassana); ?></td>
<td><?php echo e($LeaveDetails->LeaveForDissableOffspring); ?></td>
<td><?php echo e($LeaveDetails->MountaineeringExpeditionLeave); ?></td>
<td><?php echo e($LeaveDetails->BalSnagopanLeave); ?></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="EditLeaveDetail('<?php echo e($LeaveDetails->EmployeeLeaveId); ?>','<?php echo e($EmployeeData->EmployeeName); ?>')"
class="dropdown-item btn btn-default">Edit</a>
<a onclick="DeleteLeaveDetail('<?php echo e($LeaveDetails->EmployeeLeaveId); ?>')"
class="dropdown-item btn btn-default">Delete</a>
</div>
</div>
</td>
<?php else: ?>
<td><?php echo e('0'); ?></td>
<td><?php echo e('0'); ?></td>
<td><?php echo e('0'); ?></td>
<td><?php echo e('0'); ?></td>
<td><?php echo e('0'); ?></td>
<td><?php echo e('0'); ?></td>
<td><?php echo e('0'); ?></td>
<td><?php echo e('0'); ?></td>
<td><?php echo e('0'); ?></td>
<td><?php echo e('0'); ?></td>
<td><?php echo e('0'); ?></td>
<td><?php echo e('0'); ?></td>
<td><?php echo e('0'); ?></td>
<td><?php echo e('0'); ?></td>
<td><?php echo e('0'); ?></td>
<td><?php echo e('0'); ?></td>
<td><?php echo e('0'); ?></td>
<td><?php echo e('0'); ?></td>
<td><?php echo e('0'); ?></td>
<td><?php echo e('0'); ?></td>
<?php endif; ?>
</tr>
</tbody>
</table>
</div>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
<!-- Employee leave list end -->
</div>
<!-- /.container-fluid -->
</section>
<!-- /.content -->
</div>
<?php if (isset($component)) { $__componentOriginal9f9b7f3c37b525506582a5d1e91f4927664c9305 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\LeaveManagementModal::class, []); ?>
<?php $component->withName('LeaveManagementModal'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9f9b7f3c37b525506582a5d1e91f4927664c9305)): ?>
<?php $component = $__componentOriginal9f9b7f3c37b525506582a5d1e91f4927664c9305; ?>
<?php unset($__componentOriginal9f9b7f3c37b525506582a5d1e91f4927664c9305); ?>
<?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>
<?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-application-details.blade.php ENDPATH**/ ?>