<?php $__env->startSection('panel'); ?>
<div class="row">
    <div class="col-lg-12 mb-3">
        <div class="card">
            <div class="card-header">
                <div class="col-sm-3">
                    <span>IP Server : <?php echo e($ip); ?></span>
                </div>
            </div>
            <div class="card-datatable table-responsive">
                <table id="default-datatable" class="table table-bordered table-sm">
                    <thead>
                        <tr>
                            <th class="text-center" style="vertical-align: middle;">#</th>
                            <th class="text-center" style="vertical-align: middle;">Provider</th>
                            <th class="text-center" style="vertical-align: middle;">Apikey</th>
                            <th class="text-center" style="vertical-align: middle;">Secretkey</th>
                            <th class="text-center" style="vertical-align: middle;">Endpoint</th>
                            <th class="text-center" style="vertical-align: middle;">Type</th>
                            <th class="text-center" style="vertical-align: middle;">Aksi</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $apiss; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <th class="text-center" style="vertical-align: middle; font-size: 13px;">
                                <?php echo e($loop->iteration); ?>

                            </th>
                            <th class="text-center" style="vertical-align: middle; font-size: 13px;">
                                <?php echo e($item->provider); ?>

                            </th>
                            <td class="text-center"
                                style="vertical-align: middle; white-space: normal; font-size: 13px;">
                                <?php echo e($item->apikey); ?>

                            </td>
                            <td class="text-center"
                                style="vertical-align: middle; white-space: normal; font-size: 13px;">
                                <?php echo e($item->secretkey); ?>

                            </td>
                            <td class="text-center"
                                style="vertical-align: middle; white-space: normal; font-size: 13px;">
                                <?php echo e($item->url); ?>

                            </td>
                            <td class="text-center"
                                style="vertical-align: middle; white-space: normal; font-size: 13px;">
                                <?php echo e($item->type); ?>

                            </td>
                            <td class="text-center" style="vertical-align: middle; font-size: 13px;">
                                <button type="button" class="btn btn-xs btn-primary" data-bs-toggle="offcanvas"
                                    data-bs-target="#offcanvasEditAP<?php echo e($item->id); ?>">
                                    <span class="mdi mdi-pencil">
                                </button>
                            </td>
                        </tr>
                        <div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasEditAP<?php echo e($item->id); ?>"
                            aria-labelledby="offcanvasAddUserLabel">
                            <div class="offcanvas-header">
                                <h5 id="offcanvasAddUserLabel" class="offcanvas-title">Edit Api <?php echo e($item->provider); ?></h5>
                                <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas"
                                    aria-label="Close"></button>
                            </div>
                            <div class="offcanvas-body mx-0 flex-grow-0 h-100">
                                <form class="add-new-user pt-0" action="<?php echo e(route('admin.website.api.update', $item->id)); ?>" method="POST">
                                    <?php echo csrf_field(); ?>
                                    <div class="form-floating form-floating-outline mb-4">
                                        <input type="text" class="form-control" value="<?php echo e($item->provider); ?>" disabled required/>
                                        <label for="add-user-fullname">Provider</label>
                                    </div>
                                    <div class="form-floating form-floating-outline mb-4">
                                        <input type="text" class="form-control" name="apikey" value="<?php echo e($item->apikey); ?>" required/>
                                        <label for="add-user-email">Apikey</label>
                                    </div>
                                    <div class="form-floating form-floating-outline mb-4">
                                        <input type="text" class="form-control" name="secretkey" value="<?php echo e($item->secretkey); ?>" required/>
                                        <label for="add-user-contact">Secretkey</label>
                                    </div>
                                    <div class="form-floating form-floating-outline mb-4">
                                        <input type="url" class="form-control" name="endpoint" value="<?php echo e($item->url); ?>" required/>
                                        <label for="add-user-company">Endpoint</label>
                                    </div>
                                    <button type="submit"
                                        class="btn btn-primary me-sm-3 me-1">Submit</button>
                                    <button type="reset" class="btn btn-outline-secondary"
                                        data-bs-dismiss="offcanvas">Cancel</button>
                                </form>
                            </div>
                        </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/website/sewa/9win2api/resources/views/backend/api.blade.php ENDPATH**/ ?>