

<?php $__env->startSection('content'); ?>
<div class="container">
    <div class="container-header">
        <h1><?php echo e($pageTitle); ?></h1>
        <a href="<?php echo e(route('backend.otp-api.create')); ?>" class="btn btn-primary"><i class="las la-plus"></i> Add API</a>
    </div>
    <div class="card table-card">
        <div class="table-responsive">
            <table class="table">
                <thead>
                    <tr>
                        <th>#</th>
                        <th>API Name</th>
                        <th>API URL</th>
                        <th>Servers</th>
                        <th>Status</th>
                        <th>Action</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__empty_1 = true; $__currentLoopData = $apis; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $api): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                    <tr>
                        <td><?php echo e($loop->iteration); ?></td>
                        <td><?php echo e($api->api_name); ?></td>
                        <td><?php echo e($api->api_url); ?></td>
                        <td><?php echo e($api->otp_servers_count); ?></td>
                        <td><?php echo e($api->status ? 'Active' : 'Inactive'); ?></td>
                        <td>
                            <a href="<?php echo e(route('backend.otp-api.edit', $api->id)); ?>" class="btn btn-sm btn-primary">Edit</a>
                            <form action="<?php echo e(route('backend.otp-api.destroy', $api->id)); ?>" method="post" class="d-inline" onsubmit="return confirm('Delete?');">
                                <?php echo csrf_field(); ?>
                                <?php echo method_field('DELETE'); ?>
                                <button type="submit" class="btn btn-sm btn-danger">Delete</button>
                            </form>
                        </td>
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <tr><td colspan="6" class="text-center">No data found</td></tr>
                    <?php endif; ?>
                </tbody>
            </table>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('backend.layout.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\HP\Desktop\nbverify\mine\resources\views/backend/otp-apis/index.blade.php ENDPATH**/ ?>