
<?php $__env->startSection('content'); ?>
<div class="body-wrapper pb-4">
    <div class="row gy-3 justify-content-center">
        <div class="col-lg-8 col-md-10 col-12">
            <div class="body-area">
                <div class="row">
                    <div class="col-lg-12 text-end">
                        <button class="btn btn--base confirmationBtn"
                            data-question="<?php echo app('translator')->get('Your current api key will removed. Are you sure to generate new api key?'); ?>"
                            data-action="<?php echo e(route('user.api.generateKey')); ?>">
                            <?php echo app('translator')->get('Generate New Key'); ?>
                        </button>
                    </div>
                    <div class="col-12">
                        <div class="form-group">
                            <label class="form-label fw-bold"><?php echo app('translator')->get('API Key'); ?></label>
                            <div class="input-group">
                                <input type="text" value="<?php echo e(auth()->user()->api_key); ?>"
                                    class="form-control form--control referralURL" readonly>
                                <button type="button" class="input-group-text copytext" id="copyBoard"> <i
                                        class="fa fa-copy"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="col-lg-8 col-md-10 col-12">
            <div class="body-area">
                <div class="row">
                    <h5><?php echo app('translator')->get('API Details'); ?></h5>
                    <div class="col-sm-6 mb-3">
                        <p class="fw-bold"><?php echo app('translator')->get('API URL'); ?></p>
                        <span><?php echo e(route('api.v1')); ?></span>
                    </div>
                    <div class="col-sm-6 mb-3">
                        <p class="fw-bold"><?php echo app('translator')->get('API Key'); ?></p>
                        <span> <?php echo e(auth()->user()->api_key); ?> </span>
                    </div>
                    <div class="col-sm-6 mb-3">
                        <p class="fw-bold"><?php echo app('translator')->get('HTTP Method'); ?></p>
                        <p><?php echo app('translator')->get('post'); ?></p>
                    </div>
                    <div class="col-sm-6 mb-3">
                        <p class="fw-bold"><?php echo app('translator')->get('Response Format'); ?></p>
                        <span><?php echo app('translator')->get('json'); ?></span>
                    </div>
                    <div class="col-lg-6">
                        <p class="fw-bold mb-3"><?php echo app('translator')->get('Example Code'); ?></p>
                        <a class="btn btn--base btn--sm" href="<?php echo e(asset('assets/php_api_example.txt')); ?>" target="_blank">
                            <i class="las la-code"></i>
                            <?php echo app('translator')->get('Example PHP Code'); ?></a>
                    </div>
                </div>
            </div>
        </div>



        <div class="col-lg-8 col-md-10 col-12">
            <div class="body-area">
                <div class="row">
                    <h5><?php echo app('translator')->get('Place New Order'); ?></h5>
                    <div class="col-sm-3 mb-3">
                        <p class="text-lowercase fw-bold"><?php echo app('translator')->get('key'); ?></p>
                        <span><?php echo app('translator')->get('Your API key'); ?></span>
                    </div>
                    <div class="col-sm-3 mb-3">
                        <p class="text-lowercase fw-bold"><?php echo app('translator')->get('action'); ?></p>
                        <span> <?php echo app('translator')->get('add'); ?></span>
                    </div>
                    <div class="col-sm-3 mb-3">
                        <p class="text-lowercase fw-bold"><?php echo app('translator')->get('service'); ?></p>
                        <span><?php echo app('translator')->get('Service ID'); ?></span>
                    </div>
                    <div class="col-sm-3 mb-3">
                        <p class="text-lowercase fw-bold"><?php echo app('translator')->get('link'); ?></p>
                        <span><?php echo app('translator')->get('Link to page'); ?></span>
                    </div>

                    <div class="col-sm-3 mb-3">
                        <p class="text-lowercase fw-bold"><?php echo app('translator')->get('quantity'); ?></p>
                        <span><?php echo app('translator')->get('Needed quantity'); ?></span>
                    </div>

                    <div class="col-sm-3 mb-3">
                        <p class="text-lowercase fw-bold"><?php echo app('translator')->get('runs'); ?>
                            <small class="text-muted"><?php echo app('translator')->get('(optional)'); ?></small>
                        </p>
                        <span><?php echo app('translator')->get('Runs to deliver'); ?></span>
                    </div>

                    <div class="col-sm-3 mb-3">
                        <p class="text-lowercase fw-bold"><?php echo app('translator')->get('interval'); ?>
                            <small class="text-muted"><?php echo app('translator')->get('(optional)'); ?></small>
                        </p>
                        <span><?php echo app('translator')->get('Interval in minutes'); ?></span>
                    </div>
                </div>
                <p class="fw-bold"><?php echo app('translator')->get('Example Response'); ?></p>
                <div class="code-pre">
                    <pre>[
    {
        "status": "success",
        "order": 4488

    }
]</pre>
                </div>
            </div>
        </div>


        <div class="col-lg-8 col-md-10 col-12">
            <div class="body-area">
                <div class="row">
                    <h5><?php echo app('translator')->get('Order Status'); ?></h5>
                    <div class="col-sm-4 mb-3">
                        <p class="text-lowercase fw-bold"><?php echo app('translator')->get('key'); ?></p>
                        <span><?php echo app('translator')->get('Your API key'); ?></span>
                    </div>
                    <div class="col-sm-4 mb-3">
                        <p class="text-lowercase fw-bold"><?php echo app('translator')->get('action'); ?></p>
                        <span> <?php echo app('translator')->get('status'); ?></span>
                    </div>
                    <div class="col-sm-4 mb-3">
                        <p class="text-lowercase fw-bold"><?php echo app('translator')->get('order'); ?></p>
                        <span><?php echo app('translator')->get('Order ID'); ?></span>
                    </div>
                </div>
                <p class="fw-bold"><?php echo app('translator')->get('Available Staus:'); ?></p>
                <div class="d-flex mb-2">
                    <span class="badge--danger"><?php echo app('translator')->get('pending'); ?></span> |
                    <span class="badge--warning"><?php echo app('translator')->get('processing'); ?></span> |
                    <span class="badge--success"><?php echo app('translator')->get('completed'); ?></span> |
                    <span class="badge--info"><?php echo app('translator')->get('cancelled'); ?></span> |
                    <span class="badge--danger"><?php echo app('translator')->get('refunded'); ?></span>
                </div>
                <p class="fw-bold"><?php echo app('translator')->get('Success Response'); ?></p>
                <div class="code-pre">
                    <pre>[
    {
        "status" : "pending",
        "start_count" : "1000",
        "remains" : "500",
        "currency" : USD

    }
]</pre>
                </div>
            </div>
        </div>


        <div class="col-lg-8 col-md-10 col-12">
            <div class="body-area">
                <div class="row">
                    <h5><?php echo app('translator')->get('Service Lists'); ?></h5>
                    <div class="col-sm-4 mb-3">
                        <p class="text-lowercase fw-bold"><?php echo app('translator')->get('key'); ?></p>
                        <span><?php echo app('translator')->get('Your API key'); ?></span>
                    </div>
                    <div class="col-sm-4 mb-3">
                        <p class="text-lowercase fw-bold"><?php echo app('translator')->get('action'); ?></p>
                        <span> <?php echo app('translator')->get('services'); ?></span>
                    </div>
                </div>
                <p class="fw-bold"><?php echo app('translator')->get('Success Response'); ?></p>
                <div class="code-pre">
                    <pre>[
    {
            "service": 1,
            "name": "🙋‍♂️ Followers [Ultra-High Quality Profiles]",
            "category": "🥇 [VIP]\r\n",
            "rate": "4.80",
            "min": 100,
            "max": 10000
        },
        {
            "service": 11,
            "name": "🧨 Instagram Power Comments (100k+ Accounts) ➡️ [3 Comments]",
            "category": "💬 Instagram - Verified / Power Comments [ Own Service ]",
            "rate": "0.60",
            "min": 500,
            "max": 5000
        },
        {
            "service": 52,
            "name": "🎙️ Facebook Live Stream Views ➡️ [ 120 Min ]",
            "category": "🔵 Facebook - Live Stream Views\r\n",
            "rate": "57.60",
            "min": 50,
            "max": 2000
        }
]</pre>
                </div>
            </div>
        </div>


        <div class="col-lg-8 col-md-10 col-12">
            <div class="body-area">
                <div class="row">
                    <h5><?php echo app('translator')->get('User Balance'); ?></h5>
                    <div class="col-sm-4 mb-3">
                        <p class="text-lowercase fw-bold"><?php echo app('translator')->get('key'); ?></p>
                        <span><?php echo app('translator')->get('Your API key'); ?></span>
                    </div>
                    <div class="col-sm-4 mb-3">
                        <p class="text-lowercase fw-bold"><?php echo app('translator')->get('action'); ?></p>
                        <span> <?php echo app('translator')->get('balance'); ?></span>
                    </div>
                </div>
                <p class="fw-bold"><?php echo app('translator')->get('Success Response'); ?></p>
                <div class="code-pre">
                    <pre>[
    {
        "status": "success",
        "balance": "0.03",
        "currency": "USD"
    }
]</pre>
                </div>
            </div>
        </div>

    </div>
</div>

<?php if (isset($component)) { $__componentOriginalbd5922df145d522b37bf664b524be380 = $component; } ?>
<?php $component = App\View\Components\ConfirmationModal::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('confirmation-modal'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\ConfirmationModal::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalbd5922df145d522b37bf664b524be380)): ?>
<?php $component = $__componentOriginalbd5922df145d522b37bf664b524be380; ?>
<?php unset($__componentOriginalbd5922df145d522b37bf664b524be380); ?>
<?php endif; ?>

<?php $__env->stopSection(); ?>

<?php $__env->startPush('script'); ?>
<script>
    (function($) {
            "use strict";
            $('#copyBoard').on('click', function() {
                var copyText = document.getElementsByClassName("referralURL");
                copyText = copyText[0];
                copyText.select();
                copyText.setSelectionRange(0, 99999);
                document.execCommand("copy");
                copyText.blur();
                this.classList.add('copied');
                setTimeout(() => this.classList.remove('copied'), 1500);
            });
        })(jQuery);
</script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make($activeTemplate.'layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/webtechscom/public_html/smm.webtechs.com.ng/application/resources/views/presets/themeTwo/user/api/index.blade.php ENDPATH**/ ?>