<?php if (isset($component)) { $__componentOriginal39e85e718a6a7aad7fa67fd9c873e34c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal39e85e718a6a7aad7fa67fd9c873e34c = $attributes; } ?>
<?php $component = App\View\Components\FullLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('full-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\FullLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php $__env->startSection('title', $page . ' | ' . get_setting('site_name')); ?>
<?php if(!empty(get_setting('ptcred_top_ad'))): ?>
    <div align="center" class="py-3 view-ad px-2">
        <?php echo get_setting('ptcred_top_ad'); ?>

    </div>
<?php endif; ?>
    <div class="mt-4 grid place-items-center px-2" id="ptc-container">
        <div class="card mt-20 w-full max-w-xl p-4 sm:p-5" id="ptc-form-container">
            <!-- Captcha Form -->
            <form id="ptc-form">
                <?php echo csrf_field(); ?>
                <div class="relative mx-auto -mt-20 h-40 w-72 rounded-lg text-white transition-transform hover:scale-110 lg:h-48 lg:w-80">
                    <div class="absolute top-0 flex w-full flex-col justify-between">
                        <label for="captcha">
                            <?php echo load_captcha(); ?>

                        </label>
                    </div>
                </div>
                <div class="w-full py-4 mt-5">
                    <button type="submit" id="submit-btn" class="btn mt-10 h-10 w-full bg-primary font-medium text-white hover:bg-primary-focus focus:bg-primary-focus active:bg-primary-focus/90 dark:bg-accent dark:hover:bg-accent-focus dark:focus:bg-accent-focus dark:active:bg-accent/90">
                        <span class="mr-1">View Ad</span>
                    </button>
                </div>
            </form>
        </div>
        <div id="ptc-content" class="hidden">
            <?php if($ptc->type == 0): ?>
            <iframe src="<?php echo e($ptc->url); ?>" class="w-full border-0" sandbox="allow-scripts allow-forms allow-popups-to-escape-sandbox" style="height: 95vh; max-height: 95vh; overflow: hidden;"></iframe>
            <div id="progress" style="position: fixed; bottom: 0; left: 0; width: 100%;" class="bg-transparent p-3 shadow-lg">
                <div class="progress h-2 bg-slate-150 dark:bg-navy-500">
                    <div id="progress-bar" class="is-active relative w-0 overflow-hidden rounded-full bg-primary dark:bg-accent"></div>
                </div>
                <p class="rounded-full text-center mt-2 text-sm font-medium bg-slate-150 dark:bg-navy-500">
                    Please wait <span id="timer"><?php echo e($ptc->timer); ?></span> seconds...
                </p>
            </div>
            <?php endif; ?>    
        </div>
    </div>
<?php if(!empty(get_setting('ptcred_bottom_ad'))): ?>
    <div align="center" class="py-3 view-ad px-2">
        <?php echo get_setting('ptcred_bottom_ad'); ?>

    </div>
<?php endif; ?>
<?php $__env->startPush('scripts'); ?>
<script>
var ptcid = <?php echo e($ptc->id); ?>;
var timer = <?php echo e($ptc->timer); ?>;
var token = `<?php echo csrf_field(); ?>`;
var ptctype = <?php echo e($ptc->type); ?>;
</script>
<script src="/dist/js/ptc_view.js?v=<?php echo e(config('app.version')); ?>"></script>
<?php $__env->stopPush(); ?>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal39e85e718a6a7aad7fa67fd9c873e34c)): ?>
<?php $attributes = $__attributesOriginal39e85e718a6a7aad7fa67fd9c873e34c; ?>
<?php unset($__attributesOriginal39e85e718a6a7aad7fa67fd9c873e34c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal39e85e718a6a7aad7fa67fd9c873e34c)): ?>
<?php $component = $__componentOriginal39e85e718a6a7aad7fa67fd9c873e34c; ?>
<?php unset($__componentOriginal39e85e718a6a7aad7fa67fd9c873e34c); ?>
<?php endif; ?>



<?php /**PATH /home/bitcoscript/public_html/resources/views/ptc/view.blade.php ENDPATH**/ ?>