<?php $__env->startSection('content'); ?>
    <div class="card shadow mb-4">
        <div class="card-header py-3 d-flex">
            <h6 class="m-0 font-weight-bold text-success">
                Payment methods
            </h6>
            <div class="ml-auto">
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('payment-method-create')): ?>
                    <a href="<?php echo e(route('admin.payment_methods.create')); ?>" class="btn btn-primary">
                    <span class="icon text-white-50">
                        <i class="fa fa-plus"></i>
                    </span>
                        <span class="text"><?php echo e(__("New payment Method")); ?></span>
                    </a>
                <?php endif; ?>
            </div>
        </div>

        <?php echo $__env->make('partials.backend.filter', ['model' => route('admin.payment_methods.index')], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

        <div class="table-responsive">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th>Name</th>
                    <th>Code</th>
                    <th>Sandbox</th>
                    <th>Status</th>
                    <th class="text-center" style="width: 30px;">Action</th>
                </tr>
                </thead>
                <tbody>
                <?php $__empty_1 = true; $__currentLoopData = $paymentMethods; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $paymentMethod): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                    <tr>
                        <td><a href="<?php echo e(route('admin.payment_methods.show', $paymentMethod->id)); ?>">
                                <?php echo e($paymentMethod->name); ?>

                            </a>
                        </td>
                        <td><?php echo e($paymentMethod->code); ?></td>
                        <td><?php echo e($paymentMethod->sandbox); ?></td>
                        <td><?php echo e($paymentMethod->active); ?></td>
                        <td>
                            <div class="btn-group btn-group-sm">
                                <a href="<?php echo e(route('admin.payment_methods.edit', $paymentMethod)); ?>" class="btn btn-primary">
                                    <i class="fa fa-edit"></i>
                                </a>
                                <a href="javascript:void(0);"
                                   onclick="if (confirm('Are you sure to delete this record?'))
                                       {document.getElementById('delete-paymentMethod-<?php echo e($paymentMethod->id); ?>').submit();} else {return false;}"
                                   class="btn btn-danger">
                                    <i class="fa fa-trash"></i>
                                </a>
                            </div>
                            <form action="<?php echo e(route('admin.payment_methods.destroy', $paymentMethod)); ?>"
                                  method="POST"
                                  id="delete-paymentMethod-<?php echo e($paymentMethod->id); ?>" class="d-none">
                                <?php echo csrf_field(); ?>
                                <?php echo method_field('DELETE'); ?>
                            </form>
                        </td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <tr>
                        <td class="text-center" colspan="6">No payment Methods found.</td>
                    </tr>
                <?php endif; ?>
                </tbody>
                <tfoot>
                <tr>
                    <td colspan="6">
                        <div class="float-right">
                            <?php echo $paymentMethods->appends(request()->all())->links(); ?>

                        </div>
                    </td>
                </tr>
                </tfoot>
            </table>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/lekruu/public_html/resources/views/backend/payment_methods/index.blade.php ENDPATH**/ ?>