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/d84af67f49179ff6462dc2f4359a31c975bce965.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><!-- /.container-fluid -->
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="container-fluid">
            <!-- / .card-->
            
            <div class="row">
                <div class="col-12">
                    <form action="" method="post" id="">
                        <?php echo csrf_field(); ?>
                        <div class="card">
                            <div class="card-header" id="page-title">
                                List of Employees
                            </div>
                            <!-- /.card-header -->
                            <div class="card-body">
                                <table id="emplaoyeeTable" class="table table-bordered table-striped table-sm">
                                    <thead>
                                        <tr>
                                            <th>S.No.</th>
                                            <th>Employee Code (M)</th>
                                            <th>Employee Name</th>
                                            <th>Controlling Officer</th>
                                            <th>Department</th>
                                            <th>Designation</th>
                                            <th>Created By</th>
                                            <th>Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php $__currentLoopData = $AllEmployee; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $AllEmployee): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><?php echo e($loop->iteration); ?></td>
                                            <td><a href="<?php echo e(url('view-employee', $AllEmployee->EmployeeId)); ?>" target="blank"><?php echo e($AllEmployee->EmployeeCode); ?></a></td>
                                            <td>
                                                <?php echo e($AllEmployee->EmployeeName); ?>

                                                <?php if($AllEmployee->ChangeOfName): ?>
                                                (<?php echo e($AllEmployee->ChangeOfName); ?>)
                                                <?php endif; ?>
                                            </td>
                                            <td><?php echo e($AllEmployee->ControllingOfficer); ?></td>
                                            <td><?php echo e($AllEmployee->DepartmentName); ?></td>
                                            <td><?php echo e($AllEmployee->DesignationName); ?></td>
                                            <td><?php echo e($AllEmployee->Created_by); ?>, <?php echo e(date('d-M-y h:m a', strtotime($AllEmployee->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">
                                                        
                                                        <a href="<?php echo e(url("/view-employee", $AllEmployee->EmployeeId )); ?>"
                                                            class="dropdown-item btn btn-default" target="blank">Employee Detail</a>

                                                        <a href="<?php echo e(url("/employee-service-book", $AllEmployee->EmployeeId )); ?>"
                                                                class="dropdown-item btn btn-default" target="blank">Service Book</a>
                                                        
                                                        

                                                        
                                                    </div>
                                                </div>
                                            </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() {
            $("#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>

<script>
    function deleteEmployeeDetail(EmployeeId) {
        var EmployeeId = EmployeeId;
                Swal.fire({
                    title: "Delete Employee?",
                    text: "Are you sure you want to delete this Employee?",
                    icon: "warning",
                    icon: "warning",
                    showCancelButton: true,
                    confirmButtonColor: "#3085d6",
                    cancelButtonColor: "#d33",
                    confirmButtonText: "Yes, delete it!",
                }).then((result) => {
                    if (result.isConfirmed) {
                        $.ajax({
                            type: "post",
                            url: "<?php echo e(url('/')); ?>/delete-employee-detail",
                            dataType: "json",
                            data: {
                                _token: "<?php echo e(csrf_token()); ?>",
                                EmployeeId: EmployeeId,
                            },
                            success: function (response) {
                                Swal.fire({
                                    icon: "success",
                                    title: "Employee has been deleted!",
                                    showConfirmButton: false,
                                    timer: 1500,
                                }).then(function () {
                                    location.reload();
                                });
                            },
                        });
                    }
                });
    }
</script>
<!-- /.content-wrapper -->
<?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/all-employee.blade.php ENDPATH**/ ?>