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

<?php $__env->startSection('content'); ?>
<div class="admin-top">
    <div>
        <h1>Payment gateways</h1>
        <p class="sub">Enable providers, set sandbox or live keys, and configure webhooks.</p>
    </div>
</div>

<div class="card">
    <table class="admin-table">
        <thead>
            <tr>
                <th>Gateway</th>
                <th>Environment</th>
                <th>Status</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            <?php $__currentLoopData = $gateways; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $g): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td><strong><?php echo e($g->display_name); ?></strong><br><small class="pill-no"><?php echo e($g->name); ?></small></td>
                    <td><?php echo e($g->environment); ?></td>
                    <td>
                        <?php if($g->status): ?>
                            <span class="pill-yes">Enabled</span>
                        <?php else: ?>
                            <span class="pill-no">Disabled</span>
                        <?php endif; ?>
                    </td>
                    <td><a href="<?php echo e(route('admin.payments.edit', $g)); ?>" class="btn btn-ghost btn-sm">Edit</a></td>
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
    </table>
</div>

<p class="sub" style="margin-top:1rem;">Webhook URLs (register in each provider dashboard):</p>
<ul class="sub" style="color:var(--admin-muted); font-size:0.9rem;">
    <li><code><?php echo e(url('/webhooks/stripe')); ?></code></li>
    <li><code><?php echo e(url('/webhooks/paypal')); ?></code></li>
    <li><code><?php echo e(url('/webhooks/square')); ?></code></li>
</ul>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\projects\honey b\backend\resources\views\admin\payments\index.blade.php ENDPATH**/ ?>