<?php $__env->startSection('title', 'Salary Tax Slabs List'); ?>

<?php $__env->startSection('content'); ?>
    <div class="page-header">
        <div class="page-title">
            <h4>Salary Tax Slabs List</h4>
            <h6>Manage your salary tax slabs</h6>
        </div>
        <?php if(auth()->user()->hasPermission('Salary Tax Slabs Create')): ?>
        <div class="page-btn">
            <a href="<?php echo e(route('tax-slabs.create')); ?>" class="btn btn-added">
                <img src="<?php echo e(asset('assets/img/icons/plus.svg')); ?>" alt="img" class="me-1">Add Salary Tax Slab
            </a>
        </div>
        <?php endif; ?>
    </div>

    <div class="card">
        <div class="card-body">
            <div class="table-top">
                <div class="search-set">
                    <div class="search-input">
                        <a class="btn btn-searchset">
                            <img src="<?php echo e(asset('assets/img/icons/search-white.svg')); ?>" alt="img">
                        </a>
                    </div>
                </div>
            </div>
            <div class="table-responsive">
                <table class="table datanew dataTable no-footer table-striped">
                    <thead>
                        <tr>
                            <th>#</th>
                            <?php if (\Illuminate\Support\Facades\Blade::check('role', 'Superadmin')): ?>
                            <th>Company</th>
                            <?php endif; ?>    
                            <?php if(auth()->user()->hasPermission('Salary Tax Slabs Update') || auth()->user()->hasPermission('Salary Tax Slabs View')): ?>
                            <th>Action</th>
                            <?php endif; ?>
                            <th>Slab Start</th>
                            <th>Slab End</th>
                            <th>Tax Value</th>
                            @                       
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $taxSlabs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $slab): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($loop->iteration); ?></td>
                                <?php if (\Illuminate\Support\Facades\Blade::check('role', 'Superadmin')): ?>
                                    <td><?php echo e($slab->company->name); ?></td>
                                <?php endif; ?>
                                <?php if(auth()->user()->hasPermission('Salary Tax Slabs Update') || auth()->user()->hasPermission('Salary Tax Slabs View')): ?>
                                <td>
                                    <a class="me-3" href="<?php echo e(route('tax-slabs.view', $slab->id)); ?>">
                                        <img src="<?php echo e(asset('assets/img/icons/eye.svg')); ?>" alt="Edit">
                                    </a>
                                    <a class="me-3" href="<?php echo e(route('tax-slabs.edit', $slab->id)); ?>">
                                        <img src="<?php echo e(asset('assets/img/icons/edit.svg')); ?>" alt="Edit">
                                    </a>
                                </td>
                                <?php endif; ?>
                                <td><?php echo e(number_format($slab->slab_start, 2)); ?></td>
                                <td><?php echo e(number_format($slab->slab_end, 2)); ?></td>
                                <td><?php echo e($slab->tax_value); ?>%</td>         
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/aligkrwp/public_html/resources/views/admin/salary_tax_slabs/index.blade.php ENDPATH**/ ?>