<div class="card col-span-12 grid grid-cols-12 rounded-lg dark:bg-navy-500 py-5 sm:py-6">
  <div class="col-span-12 sm:col-span-6 lg:col-span-4">
    <div class="px-4 text-white sm:px-5">
      <div class="-mt-1 flex items-center space-x-2">
        <h2 class="text-base font-medium tracking-wide text-slate-700 dark:text-navy-100">Balance</h2>
        <div x-data="usePopper({placement:'bottom-end',offset:4})" @click.outside="isShowPopper && (isShowPopper = false)" class="inline-flex">
          <button x-ref="popperRef" @click="isShowPopper = !isShowPopper" class="btn h-8 w-8 rounded-full p-0 hover:bg-white/20 focus:bg-white/20 active:bg-white/25">
            <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
              <path stroke-linecap="round" stroke-linejoin="round" d="M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z" />
            </svg>
          </button>

          <div x-ref="popperRoot" class="popper-root" :class="isShowPopper && 'show'">
            <div class="popper-box rounded-md border border-slate-150 bg-white py-1.5 font-inter dark:border-navy-500 dark:bg-navy-700">
              <ul>
                <li>
                  <a href="../send-money" class="flex h-8 items-center px-3 pr-8 font-medium tracking-wide outline-none transition-all hover:bg-slate-100 hover:text-slate-800 focus:bg-slate-100 focus:text-slate-800 dark:hover:bg-navy-600 dark:hover:text-navy-100 dark:focus:bg-navy-600 dark:focus:text-navy-100">Send Money</a>
                </li>
                <li>
                  <a href="../pay-bills" class="flex h-8 items-center px-3 pr-8 font-medium tracking-wide outline-none transition-all hover:bg-slate-100 hover:text-slate-800 focus:bg-slate-100 focus:text-slate-800 dark:hover:bg-navy-600 dark:hover:text-navy-100 dark:focus:bg-navy-600 dark:focus:text-navy-100">Pay Bill</a>
                </li>
                <li>
                  <a href="../deposit-check" class="flex h-8 items-center px-3 pr-8 font-medium tracking-wide outline-none transition-all hover:bg-slate-100 hover:text-slate-800 focus:bg-slate-100 focus:text-slate-800 dark:hover:bg-navy-600 dark:hover:text-navy-100 dark:focus:bg-navy-600 dark:focus:text-navy-100">Submit A Check</a>
                </li>
              </ul>
              <div class="my-1 h-px bg-slate-150 dark:bg-navy-500"></div>
            </div>
          </div>
        </div>
      </div>
      <div class="mt-3">
        <p class="text-4xl font-semibold text-slate-700 dark:text-navy-100"><?php echo $currency . " " . number_format($balance, 2) ?></p>
        <p class="text-base font-medium text-slate-700 dark:text-navy-100">Book Balance: <?php echo $currency . " " . number_format($balance - 0, 2) ?></p>
      </div>
      <!-- <hr class="mt-3"> -->
      <div class="mt-4 flex space-x-7">
        <div>
          <p class="text-indigo-100 text-slate-700 dark:text-navy-100 text-center">In</p>
          <div class=" flex items-center space-x-2">
            <div class="flex h-7 w-7 items-center justify-center rounded-full bg-black/20">
              <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 11l5-5m0 0l5 5m-5-5v12" />
              </svg>
            </div>
            <p class="text-lg font-semibold text-slate-700 dark:text-navy-100"><?php echo $currency . " " . number_format($money_in, 2) ?> </p>
          </div>
        </div>
        <div>
          <p style="color:red" class="text-indigo-100 text-error text-center">Out</p>
          <div class=" flex items-center space-x-2">
            <div class="flex h-7 w-7 items-center justify-center rounded-full bg-black/20">
              <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 13l-5 5m0 0l-5-5m5 5V6" />
              </svg>
            </div>
            <p class="text-lg font-semibold text-slate-700  dark:text-navy-100"><?php echo $currency . " " . number_format($money_out, 2) ?></p>
          </div>
        </div>
      </div>
    </div>
  </div>
        <!--<div class="bg-black/20 swiper-slide relative h-40 w-80 shrink-0 rounded-lg bg-gradient-to-br from-[#ffffff55] to-[#ffffff20]">-->
        <!--  <div class="absolute inset-0 flex flex-col justify-between rounded-lg border border-white/10 p-5">-->
        <!--    <div class="flex items-center justify-between">-->
        <!--      <img class="h-3" src="../images/payments/cc-visa-white.svg" alt="image" />-->
        <!--      <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-indigo-100" fill="none" stroke="currentColor" viewBox="0 0 24 24">-->
        <!--        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M5.343 7.257a.5.5 0 01.354.147 6.5 6.5 0 010 9.192.64.64 0 00-.073.087 4.718 4.718 0 01-.56-.094 1.301 1.301 0 01-.109-.03.5.5 0 01.035-.67 5.5 5.5 0 000-7.778.5.5 0 01.353-.854zm-.422 9.288a.06.06 0 010 0zM15 1.6a.5.5 0 01.354.147 14.5 14.5 0 010 20.506.5.5 0 11-.708-.707 13.5 13.5 0 000-19.092A.5.5 0 0115 1.6zM10.172 4.43a.5.5 0 01.353.146 10.5 10.5 0 010 14.85.5.5 0 11-.707-.707 9.5 9.5 0 000-13.436.5.5 0 01.354-.853z" />-->
        <!--      </svg>-->
        <!--    </div>-->
        <!--    <div class="text-white">-->
        <!--      <p class="text-xl text-center font-semibold tracking-wide text-slate-700 line-clamp-1 dark:text-navy-100">-->
        <!--        <?php echo $currency . " " . number_format($balance, 2) ?>-->
        <!--      </p>-->
        <!--      <p class="mt-1 text-base text-center font-medium text-slate-700 line-clamp-1 dark:text-navy-100">-->
        <!--        <?php echo strtoupper($fname . " " . $mname . " " . $lname) ?>-->
        <!--      </p>-->
        <!--      <p class="mt-1 text-xl text-center font-medium text-slate-700 line-clamp-1 dark:text-navy-100">-->
        <!--        **** **** **** 7946-->
        <!--      </p>-->
        <!--    </div>-->
        <!--  </div>-->
        <!--</div>-->

  <div class="col-span-12 mt-5 sm:col-span-6 sm:mt-0 lg:col-span-8">
 
  

  <div class="relative bg-black/20 p-auto  m-auto h-48 w-80 rounded-xl bg-gradient-to-r from-orange-500 to-red-500 text-white shadow-2xl transition-transform sm:h-56 sm:w-96 sm:hover:scale-110">
    <div class="absolute top-4 mt-4 w-full px-8 sm:top-8">
      <div class="flex justify-between">
        <div class="">
          <!--<p class="text-slate-700 dark:text-navy-100">Name</p>-->
          <p class="font-medium text-slate-700 text-medium  dark:text-navy-100 tracking-widest"><?php echo ucfirst($fname. ' ' .$lname) ?></p>
        </div>
        <img class="w-14 h-auto object-contain" src="data:image/png;base64, " />
      </div>
      <div class="pt-2">
        <p class="text-slate-700  dark:text-navy-100">Card Number</p>
        <p class="tracking-more-wider text-center text-2xl text-slate-700  dark:text-navy-100 font-medium">XXXX XXXX XXXX 1049</p>
      </div>
      <div class="pt-4 pr-6 sm:pt-6">
        <div class="flex justify-between">
          <div class="">
            <p class="text-xs text-slate-700  dark:text-navy-100">Valid From</p>
            <p class="text-base text-slate-700  dark:text-navy-100 font-medium tracking-widest"><?php echo date('m/y'); ?></p>
          </div>
          <div class="">
            <p class="text-xs text-slate-700  dark:text-navy-100">Expiry</p>
            <p class="text-base text-slate-700  dark:text-navy-100 font-medium tracking-widest">08/28</p>
          </div>

          <div class="">
            <p class="text-xs font-light">CVV</p>
            <p class="tracking-more-wider text-sm font-bold">521</p>
          </div>
        </div>
      </div>
    </div>
  </div>
  </div>
</div>