<?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(Auth::user()->email_verified_at === null): ?>
        <?php if(session('status') === 'verification-link-sent'): ?>
            <div
            x-data="{ show: true }"
            x-show="show"
            x-transition
            x-init="setTimeout(() => show = false, 2000)"
            class="alert items-center justify-between space-y-4 rounded-lg border border-slate-300 px-4 py-3 text-center text-slate-800 dark:border-navy-450 dark:text-navy-50 sm:flex-row sm:space-y-0 sm:px-5 my-4"
            ><p><?php echo e(__('Email Sent.')); ?></p></div>
        <?php else: ?>
            <div
              x-data="{isShow:true}"
              :class="!isShow && 'opacity-0 transition-opacity duration-300'"
              class="alert items-center justify-between space-y-4 rounded-lg border border-slate-300 px-4 py-3 text-center text-slate-800 dark:border-navy-450 dark:text-navy-50 sm:flex-row sm:space-y-0 sm:px-5 my-4"
            >
              <p>Your email has not been verified. To continue using all features, you need to verify your email. If you don’t receive the email, please check your spam folder.</p>
                <form method="POST" action="<?php echo e(route('verification.send')); ?>">
                    <?php echo csrf_field(); ?>
                    <button type="submit" class="btn space-x-2 rounded-full bg-slate-150 font-medium text-slate-800 hover:bg-slate-200 focus:bg-slate-200 active:bg-slate-200/80 dark:bg-navy-500 dark:text-navy-50 dark:hover:bg-navy-450 dark:focus:bg-navy-450 dark:active:bg-navy-450/90">Send Verification Email</button>
                </form>
            </div>
        <?php endif; ?>
    <?php endif; ?>
    <?php if(!empty(get_setting('dashboard_top_ad'))): ?>
      <div align="center" class="py-3">
          <?php echo get_setting('dashboard_top_ad'); ?>

      </div>
    <?php endif; ?>
            <div class="mt-1 grid grid-cols-1 gap-4 sm:grid-cols-2">
              <div class="relative flex flex-col overflow-hidden rounded-lg bg-gradient-to-br from-sky-400 to-blue-600 p-3.5">
                <p class="text-xs uppercase text-sky-100">Account Balance</p>
                <div class="flex items-end justify-between space-x-2">
                  <p class="mt-4 text-2xl font-medium text-white"><?php echo balanceAndSymbol(Auth::user()->balance); ?></p>
                </div>
                <div
                  class="mask is-reuleaux-triangle absolute top-0 right-0 -m-3 size-16 bg-white/20"
                ></div>
              </div>
              <div class="relative flex flex-col overflow-hidden rounded-lg bg-gradient-to-br from-amber-400 to-orange-600 p-3.5">
                <p class="text-xs uppercase text-amber-50">Deposit Balance</p>
                <div class="flex items-end justify-between space-x-2">
                  <p class="mt-4 text-2xl font-medium text-white">$<?php echo e(formatUSD(Auth::user()->available_deposit)); ?></p>
                  <a
                    href="/deposit"
                    class="border-b border-dotted border-current pb-0.5 text-xs font-medium text-pink-100 outline-none transition-colors duration-300 line-clamp-1 hover:text-white focus:text-white"
                    >Deposit
                  </a>
                </div>
                <div
                  class="mask is-diamond absolute top-0 right-0 -m-3 size-16 bg-white/20"
                ></div>
              </div>
              <div class="relative flex flex-col overflow-hidden rounded-lg bg-gradient-to-br from-pink-500 to-rose-500 p-3.5">
                <p class="text-xs uppercase text-pink-100">Total Earned</p>
                <div class="flex items-end justify-between space-x-2">
                  <p class="mt-4 text-2xl font-medium text-white"><?php echo balanceAndSymbol(Auth::user()->total_earned); ?></p>
                </div>
                <div
                  class="mask is-hexagon-2 absolute top-0 right-0 -m-3 size-16 bg-white/20"
                ></div>
              </div>
              <div class="relative flex flex-col overflow-hidden rounded-lg bg-gradient-to-br from-violet-400 to-indigo-400 p-3.5">
                <p class="text-xs uppercase text-pink-100">Expense</p>
                <div class="flex items-end justify-between space-x-2">
                  <p class="mt-4 text-2xl font-medium text-white">$<?php echo e(formatUSD(Auth::user()->deposited-Auth::user()->available_deposit)); ?></p>
                  <a
                    href="/advertise/ptc"
                    class="border-b border-dotted border-current pb-0.5 text-xs font-medium text-pink-100 outline-none transition-colors duration-300 line-clamp-1 hover:text-white focus:text-white"
                    >Advertise
                  </a>
                </div>
                <div
                  class="mask is-hexagon-2 absolute top-0 right-0 -m-3 size-16 bg-white/20"
                ></div>
              </div>
            </div>

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

      </div>
    <?php endif; ?>
      <div class="card mt-2 pb-1">
        <div class="my-3 flex items-center justify-between px-4 sm:px-5">
          <h2 class="font-medium tracking-wide text-slate-700 dark:text-navy-100"> Statistics </h2>
        </div>
        <div class="space-x-4 overflow-x-auto overflow-y-hidden px-4 pb-2 sm:px-5">
            <div class="grid grid-cols-1 sm:grid-cols-2 gap-4 items-center">
                <div>
                    <span class="block mb-1 text-sm font-medium">Date Range:</span>
                    <label class="relative flex">
                        <input
                            id="date_range"
                            x-init="$el._x_flatpickr = flatpickr($el, {
                                mode: 'range',
                                dateFormat: 'Y-m-d',
                                defaultDate: [
                                    new Date(new Date().setDate(new Date().getDate() - 1)).toISOString().split('T')[0], 
                                    new Date(new Date().setDate(new Date().getDate())).toISOString().split('T')[0]
                                ],
                                maxDate: new Date(new Date().setDate(new Date().getDate() + 7)),
                                onClose: function(selectedDates) { 
                                    if (selectedDates.length === 2) {
                                        let diff = (selectedDates[1] - selectedDates[0]) / (1000 * 60 * 60 * 24);
                                        if (diff > 6) {
                                            alert('The maximum date range is 7 days.');
                                            this.clear(); 
                                        }
                                    }
                                    loadChart(); 
                                }
                            })"
                            class="form-input peer w-full rounded-lg border border-slate-300 bg-transparent px-3 py-2 pl-9 placeholder:text-slate-400/70 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:hover:border-navy-400 dark:focus:border-accent"
                            placeholder="Choose date..."
                            type="text"
                        />
                        <span
                          class="pointer-events-none absolute flex h-full w-10 items-center justify-center text-slate-400 peer-focus:text-primary dark:text-navy-300 dark:peer-focus:text-accent"
                        >
                          <svg
                            xmlns="http://www.w3.org/2000/svg"
                            class="size-5 transition-colors duration-200"
                            fill="none"
                            viewBox="0 0 24 24"
                            stroke="currentColor"
                            stroke-width="1.5"
                          >
                            <path
                              stroke-linecap="round"
                              stroke-linejoin="round"
                              d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
                            />
                          </svg>
                        </span>
                    </label>
                </div>
                <div>
                    <span class="block mb-1 text-sm font-medium">Choose Event Type:</span>
                    <label class="flex-1">
                        <select
                            id="event_type"
                            class="form-select w-full rounded-lg border border-slate-300 bg-white px-3 py-2 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:bg-navy-700 dark:hover:border-navy-400 dark:focus:border-accent"
                            onchange="loadChart()"
                        >
                            <option value="all">All</option>
                            <option value="Faucet">Faucet</option>
                            <option value="PTC Ads">PTC Ads</option>
                            <option value="Shortlink">Shortlink</option>
                            <option value="Offerwalls">Offerwalls</option>
                            <option value="Referrals">Referrals</option>
                        </select>
                    </label>
                </div>
            </div>
            <div id="chart" class="mt-5">
                <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>
            </div>
        </div>
      </div>
    <?php if(!empty(get_setting('dashboard_bottom_ad'))): ?>
      <div align="center" class="py-3">
          <?php echo get_setting('dashboard_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="card pb-4">
        <div class="px-4 sm:px-5">
          <div class="flex items-center justify-between">
            <h2 class="font-medium tracking-wide text-slate-700 dark:text-navy-100 mt-3"> Withdraw </h2>
          </div>
            <div class="pt-4">
              <p class="text-xs+" id="addressLabel">Address:</p>
              <div class="mt-1 flex justify-between space-x-2 rounded-2xl bg-slate-150 p-1.5 dark:bg-navy-800">
                <input id="address" class="form-input w-full bg-transparent px-2 text-left h-8 placeholder:text-slate-400/70" name="address" placeholder="Address" type="text" />
              </div>
            </div>
          <div class="relative">
            <div class="pt-4">
              <p class="text-xs+">Amount:</p>
              <div class="mt-1 flex justify-between space-x-2 rounded-2xl bg-slate-150 p-1.5 dark:bg-navy-800">
                <select class="form-select h-8 rounded-2xl border border-transparent bg-white px-4 py-0 pr-9 text-xs+ hover:border-slate-400 focus:border-primary dark:bg-navy-700 dark:hover:border-navy-400 dark:focus:border-accent" disabled>
                  <option><?php echo e(get_setting('currency_name')); ?></option>
                </select>
                <input class="form-input w-full bg-transparent px-2 text-right placeholder:text-slate-400/70" name="amount" placeholder="Amount" type="number" step="0.000001" />
              </div>
            </div>
            <div class="pt-4">
              <p class="text-xs+">Method:</p>
              <div class="mt-1 flex justify-between space-x-2 rounded-2xl bg-slate-150 p-1.5 dark:bg-navy-800">
                <select name="method" class="form-select h-8 rounded-2xl border border-transparent bg-white px-4 py-0 pr-9 text-xs+ hover:border-slate-400 focus:border-primary dark:bg-navy-700 dark:hover:border-navy-400 dark:focus:border-accent">
                    <?php $__currentLoopData = $withdraw_methods; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $method): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($method->id); ?>" data-wallet="<?php echo e($method->wallet); ?>"><?php echo e($method->name); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
                <input class="form-input w-full bg-transparent px-2 text-right placeholder:text-slate-400/70" name="estimated" placeholder="Estimated" type="text" disabled/>
              </div>
            </div>
            <div class="absolute right-0 top-1/2 mt-1">
              <button class="btn mask is-hexagon size-7 bg-primary p-0 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">
                <svg xmlns="http://www.w3.org/2000/svg" class="size-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 16V4m0 0L3 8m4-4l4 4m6 0v12m0 0l4-4m-4 4l-4-4" />
                </svg>
              </button>
            </div>
          </div>
          <button id="withdraw-btn" class="btn mt-6 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"> Request Withdraw </button>
        </div>
      </div>
        <div class="card overflow-x-auto mt-4">
          <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">
                     Method </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"> Address </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"> Status </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"> TX Id </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"> Crypto </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"> Amount </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"> Fee </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="withdraw-history">
              <tr>
                <td colspan="9" 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>
    sessionStorage.clear();
    var currencyRate = <?php echo e(get_Setting('currency_rate')); ?>;
    var currencyRounds = <?php echo e(get_Setting('currency_rounds')); ?>;
    var currencyName = "<?php echo e(get_Setting('currency_name')); ?>";
    var feeType = `<?php echo e(get_Setting('fee_type')); ?>`;
    var feeValue = parseFloat(`<?php echo e(get_Setting('fee_value')); ?>`) || 0;
</script>
<script src="/dist/js/_dash.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/update.bitcoscript.com/resources/views/dashboard.blade.php ENDPATH**/ ?>