<?php $__env->startSection('title', 'Payment Methods'); ?>
<?php $__env->startSection('content'); ?>
<div class="action-bar">
    <span><?php echo e($paymentMethods->total()); ?> payment methods</span>
    <a href="<?php echo e(route('admin.payment-methods.create')); ?>" class="btn btn-primary">+ New Payment Method</a>
</div>
<div class="card">
    <table>
        <tr><th>Logo</th><th>Name</th><th>Slug</th><th>Order</th><th>Active</th><th>Actions</th></tr>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $paymentMethods; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pm): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
        <tr>
            <td>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($pm->logo): ?>
                    <img src="<?php echo e(asset('storage/'.$pm->logo)); ?>" style="width:40px;height:auto;border-radius:4px" alt="<?php echo e($pm->name); ?>">
                <?php else: ?>
                    <span class="text-muted">—</span>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </td>
            <td><strong><?php echo e($pm->name); ?></strong></td>
            <td class="text-muted"><?php echo e($pm->slug); ?></td>
            <td><?php echo e($pm->order); ?></td>
            <td><?php echo $pm->is_active ? '<span style="color:#6fcf97">Yes</span>' : '<span style="color:#e74c3c">No</span>'; ?></td>
            <td class="inline-flex">
                <a href="<?php echo e(route('admin.payment-methods.edit', $pm)); ?>" class="btn btn-primary btn-sm">Edit</a>
                <form action="<?php echo e(route('admin.payment-methods.destroy', $pm)); ?>" method="POST" onsubmit="return confirm('Delete this payment method?')">
                    <?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?>
                    <button type="submit" class="btn btn-danger btn-sm">Delete</button>
                </form>
            </td>
        </tr>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
    </table>
    <div class="pagination"><?php echo e($paymentMethods->links()); ?></div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\diag\autodiag\resources\views/admin/payment-methods/index.blade.php ENDPATH**/ ?>