<x-full-layout>
@section('title', $page . ' | ' . get_setting('site_name'))
@if (!empty(get_setting('linkred_top_ad')))
<div align="center" class="py-3 px-2">
    {!! get_setting('linkred_top_ad') !!}
</div>
@endif
<div class="mt-4 grid place-items-center px-2">
    <div class="card mt-20 w-full max-w-xl p-4 sm:p-5">
      <form method="POST" action="/link/go/{{ $link->id }}">
          <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">
                @csrf
                <label for="captcha">
                    {!! load_captcha() !!}
                </label>
            </div>
          </div>
          <div class="w-full py-4 mt-5">
            <button 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">Go</span>
            </button>
          </div>
      </form>
    </div>
</div>
@if (!empty(get_setting('linkred_bottom_ad')))
<div align="center" class="py-3 px-2">
    {!! get_setting('linkred_bottom_ad') !!}
</div>
@endif
</x-full-layout>


