

<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('hr.salary-tax.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>
        </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.salary_tax')); ?> </h3>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6 col-xs-12">
                    <div class="title-add">
                        <div class="pull-right">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Salary tax Create')): ?>
                                <a href="<?php echo e(route('salary-tax.create')); ?>"
                                   class="button_primary"><?php echo e(__('administrator.add_new')); ?></a>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="box-body">
            <table id="datatable_salary_tax" width="100%" class="table table-striped">
                <thead>
                <tr>
                    <th>#</th>
                    <th><?php echo e(__('administrator.name')); ?></th>
                    <th><?php echo e(__('administrator.rate')); ?></th>
                    <th><?php echo e(__('administrator.from_salary')); ?></th>
                    <th><?php echo e(__('administrator.to_salary')); ?></th>
                    <th><?php echo e(__('administrator.add')); ?></th>
                    <th><?php echo e(__('administrator.minus')); ?></th>
                    <th style="width: 200px;"><?php echo e(__('administrator.action')); ?></th>
                </tr>
                </thead>

            </table>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
    <script type="text/javascript">
        $(document).ready(function () {

            $(document).on('click', '.btn_delete', function () {
                var id = $(this).data('id');
                $('#delete-id').val(id);
                $('#form-delete').modal('show');
            });

            $('#datatable_salary_tax').DataTable({
                ordering: false,
                serverSide: true,
                lengthMenu: [[20, 30, 50, 100, 1000], [20, 30, 50, 100, 1000]],
                ajax: "<?php echo e(route('salary-tax.index')); ?>",
                columns:
                    [
                        {data: 'DT_RowIndex'},
                        {data: 'name'},
                        {data: 'rate'},
                        {data: 'from_salary'},
                        {data: 'to_salary'},
                        {data: 'add'},
                        {data: 'minus'},
                        {data: 'action'},
                    ],
                "scrollX": true,
                "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/salary-tax/index.blade.php ENDPATH**/ ?>