

<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('hr.resign.confirm-delete', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php Fun::lang()?>
    <div class="top-header">
        <ol class="breadcrumb">
            <li><a href="#"><?php echo e(__('administrator.Dashboard')); ?></a></li>
            <li><a href="<?php echo e(route('hr-resign.index')); ?>"><?php echo e(__('administrator.resign')); ?></a></li>
        </ol>
    </div>
    <div class="page">
        <div class="top-content">
            <div class="row">
                <div class="col-sm-6 col-xs-12">
                    <div class="title-add">
                        <div class="pull-left">
                            <h3><?php echo e(__('administrator.resign')); ?> </h3>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="box-body">
            <table id="datatable_products" width="100%" class="table table-striped">
                <thead>
                    <tr>
                        <th>#</th>
                        <th><?php echo e(__('administrator.code')); ?></th>
                        <th><?php echo e(__('administrator.english_name')); ?></th>
                        <th><?php echo e(__('administrator.khmer_name')); ?></th>
                        <th><?php echo e(__('administrator.branch')); ?></th>
                        <th><?php echo e(__('administrator.department')); ?></th>
                        <th><?php echo e(__('administrator.position')); ?></th>
                        <th><?php echo e(__('administrator.resign_date')); ?></th>
                        <th><?php echo e(__('administrator.type')); ?></th>
                        <th><?php echo e(__('administrator.reason')); ?></th>
                        <th style="width: 200px;"><?php echo e(__('administrator.action')); ?></th>
                    </tr>
                </thead>
                <tbody>
            </table>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
    <script type="text/javascript">
        $(document).ready(function () {
            $(document).on('click','.btn-delete-resign', function(){
                var id = $(this).data('id');
                $('#delete-id').val(id);
                $('#form-delete').modal('show');
            });
            $('#datatable_products').DataTable({
                ordering: false,
                serverSide: true,
                ajax: "<?php echo e(route('datatable.hr-get-emp-resign')); ?>",
                lengthMenu: [[20, 30, 50, 100, 1000], [20, 30, 50, 100, 1000]],
                columns:
                [
                    {data: 'DT_RowIndex', orderable: false, searchable: false},
                    {data: 'code'},
                    {data: 'name_kh'},
                    {data: 'name'},
                    {data: 'branch'},
                    {data: 'department'},
                    {data: 'position'},
                    {data: 'resign_date'},
                    {data: 'type'},
                    {data: 'reason'},
                    {data: 'action', searchable: false},
                ],
                "initComplete": function (settings, json) {
                }
            });
            $.fn.dataTable.ext.errMode = 'throw';
        });
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app-hr', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/nsowos/public_html/shr-brand/resources/views/hr/resign/index.blade.php ENDPATH**/ ?>