<?php $__env->startSection('title', 'Payment Types List'); ?>

<?php $__env->startSection('content'); ?>
    <div class="page-header">
        <div class="page-title">
            <h4>Payment Types List</h4>
            <h6>Manage your payment types</h6>
        </div>
        <?php if(auth()->user()->hasPermission('Payment Types Create')): ?>
        <div class="page-btn">
            <a href="<?php echo e(route('payment_types.create')); ?>" class="btn btn-added">
                <img src="<?php echo e(asset('assets/img/icons/plus.svg')); ?>" alt="img" class="me-1"> Add Payment Type
            </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>
                            <th>Name</th>
                            <?php if(auth()->user()->hasPermission('Payment Types Update')): ?>
                            <th>Action</th>
                            <?php endif; ?>
                            <th>Description</th>
                            <?php if (\Illuminate\Support\Facades\Blade::check('role', 'Superadmin')): ?>
                            <th>Company</th>
                            <?php endif; ?>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $paymentTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $paymentType): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($loop->iteration); ?></td>
                                <td><a class="link-primary" href="<?php echo e(route('payment_types.view', $paymentType->id)); ?>"><?php echo e($paymentType->name); ?></a></td>
                                <?php if(auth()->user()->hasPermission('Payment Types Update')): ?>
                                <td>
                                    <a class="me-3" href="<?php echo e(route('payment_types.edit', $paymentType->id)); ?>">
                                        <img src="<?php echo e(asset('assets/img/icons/edit.svg')); ?>" alt="Edit">
                                    </a>
                                </td>
                                <?php endif; ?>
                                <td><?php echo e($paymentType->description); ?></td>
                                <?php if (\Illuminate\Support\Facades\Blade::check('role', 'Superadmin')): ?>
                                <td><?php echo e($paymentType->company->name); ?></td>
                                <?php endif; ?>
                                
                            </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/payment_types/index.blade.php ENDPATH**/ ?>