HEX
Server: Apache/2.4.46 (Ubuntu)
System: Linux localhost 5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022 x86_64
User: root (0)
PHP: 7.4.16
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
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> &nbsp;&nbsp;
                                </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**/ ?>