<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('app-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\AppLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php $__env->startSection('title', $page . ' | ' . get_setting('site_name')); ?>
  <div class="mt-4 grid grid-cols-12 gap-4 sm:mt-5 sm:gap-5 lg:mt-6 lg:gap-6">
    <div class="col-span-12 lg:col-span-8">
        <?php if(!empty(get_setting('faucet_top_ad'))): ?>
          <div align="center" class="py-3">
              <?php echo get_setting('faucet_top_ad'); ?>

          </div>
        <?php endif; ?>
        <div class="rounded-lg bg-gradient-to-r from-blue-500 p-1">
            <div class="rounded-lg bg-slate-50 px-4 py-4 dark:bg-navy-900 sm:px-5">
                <div class="grid grid-cols-1 gap-4 sm:col-span-2 sm:grid-cols-2 sm:gap-5 lg:gap-6">
                    <div class="card justify-center p-4.5">
                      <div class="flex items-center justify-between">
                        <div>
                          <p class="text-base font-semibold text-slate-700 dark:text-navy-100" id="timer">
                            <?php
                                $seconds = get_setting('faucet_timer');
                                $formattedTime = \Carbon\CarbonInterval::seconds($seconds)->cascade()->forHumans();
                            ?>
                            <?php echo e($formattedTime); ?>

                          </p>
                          <p class="text-xs+ line-clamp-1">Timer</p>
                        </div>
                        <div class="mask is-star flex size-10 shrink-0 items-center justify-center bg-info">
                          <svg xmlns="http://www.w3.org/2000/svg" class="size-5 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                          </svg>
                        </div>
                      </div>
                    </div>
                    <div class="card justify-center p-4.5">
                      <div class="flex items-center justify-between">
                        <div>
                          <p class="text-base font-semibold text-slate-700 dark:text-navy-100">
                            <?php echo e($remainingClaims); ?>/<?php echo e(get_setting('faucet_limit')); ?>

                          </p>
                          <p class="text-xs+ line-clamp-1">Limit</p>
                        </div>
                        <div class="mask is-star flex size-10 shrink-0 items-center justify-center bg-warning">
                          <svg class="size-5 text-white" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
                            <path d="M12.5293 18L20.9999 8.40002" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                            <path d="M3 13.2L7.23529 18L17.8235 6" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                          </svg>
                        </div>
                      </div>
                    </div>
                  </div>
                <?php if($remainingTime == 0): ?>
                <div>
                    <form method="POST" action="/faucet/claim">
                        <div class="flex justify-center">
                            <?php echo csrf_field(); ?>
                            <label for="captcha">
                                <?php echo load_captcha(); ?>

                            </label>
                        </div>
                        <?php if(!empty(get_setting('faucet_middle_ad'))): ?>
                          <div align="center" class="py-3">
                              <?php echo get_setting('faucet_middle_ad'); ?>

                          </div>
                        <?php endif; ?>
                        <div class="flex justify-center">
                            <button class="btn mt-4 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">Claim</span> <?php echo balanceAndSymbol(get_setting('faucet_reward')); ?>

                            </button>
                        </div>
                    </form>
                </div>
                <?php endif; ?>
            </div>
        </div>
        <?php if(!empty(get_setting('faucet_bottom_ad'))): ?>
          <div align="center" class="py-3">
              <?php echo get_setting('faucet_bottom_ad'); ?>

          </div>
        <?php endif; ?>
    </div>
    <div class="col-span-12 gap-4 sm:gap-5 lg:col-span-4 lg:gap-6">
        <div class="overflow-x-auto">
          <table class="is-hoverable w-full text-left">
            <thead>
              <tr>
                <th class="whitespace-nowrap rounded-tl-lg bg-slate-200 px-4 py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-5"> # </th>
                <th class="whitespace-nowrap bg-slate-200 px-4 py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-5"> IP </th>
                <th class="whitespace-nowrap bg-slate-200 px-4 py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-5"> Balance </th>
                <th class="whitespace-nowrap bg-slate-200 px-4 py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-5">Date</th>
              </tr>
            </thead>
            <tbody id="faucet-history">
              <tr>
                <td colspan="5" class="text-center py-4"><div class="w-full px-6 py-4"><div class="skeleton animate-wave h-3 w-full rounded bg-slate-150 dark:bg-navy-500"></div><div class="skeleton animate-wave mt-4 h-3 w-8/12 rounded bg-slate-150 dark:bg-navy-500"></div></div></td>
              </tr>
            </tbody>
          </table>
        </div>
        
        <!-- Pagination -->
        <div id="pagination" class="mt-4 flex justify-center"></div>

    </div>
  </div>
  <?php $__env->startPush('scripts'); ?>
  <script>
    let remainingTime = <?php echo e($remainingTime); ?>;
  </script>
  <script src="/dist/js/fau.js?v=<?php echo e(config('app.version')); ?>"></script>
  <?php $__env->stopPush(); ?>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php /**PATH /home/bitcoscript/public_html/resources/views/faucet.blade.php ENDPATH**/ ?>