

<?php $__env->startSection('content'); ?>

<div class="w-full px-6 py-6 mx-auto mb-12">      

        <!-- card 2 -->

        <div class="w-full max-w-full px-3 mt-0 lg:flex-none">
            <div class="border-black/12.5 shadow-xl dark:bg-slate-850 dark:shadow-dark-xl relative flex min-w-0 flex-col break-words rounded-2xl border-0 border-solid bg-white bg-clip-border">
              <div class="p-4 pb-0 rounded-t-4">
                <h6 class="mb-0 dark:text-white">Withdraw Funds</h6>
              </div>
              <div class="p-4">
                 <p class="mt-5 text-sm">What amount do you want to withdraw from your balance?</b></p> 
                 <hr class="h-px mt-0 bg-transparent bg-gradient-to-r from-transparent via-black/40 to-transparent dark:bg-gradient-to-r dark:from-transparent dark:via-white dark:to-transparent" />
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.alert','data' => []]); ?>
<?php $component->withName('alert'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                 <form method="post" action="<?php echo e(route('user.withdraw')); ?>" class="mx-2 mt-12 max-w-xl sm:rounded-full sm:border sm:border-gray-100 sm:bg-white sm:p-2 sm:shadow">
                    <?php echo csrf_field(); ?>
                    <div class="flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between">
                        <div class="relative text-gray-500 sm:w-7/12">
                        
                        <input name="amount" type="number" min="1" max="<?php echo e(Auth::user()->balance); ?>" value="" required autofocus placeholder="Enter Withdrawal Amount" class="w-full cursor-text rounded-full border-2 py-4 pr-4 pl-10 text-base outline-none transition-all duration-200 ease-in-out sm:border-0 focus:border-transparent focus:ring" />
                        </div>

                        <button type="submit" class="group flex items-center justify-center rounded-full bg-blue-700 px-6 py-4 text-white transition">
                        <span class="group flex w-full items-center justify-center whitespace-nowrap rounded text-center font-medium"> Withdraw </span>
                        <svg class="shrink-0 group-hover:ml-8 ml-4 h-4 w-4 transition-all" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
                            <path stroke-linecap="round" stroke-linejoin="round" d="M14 5l7 7m0 0l-7 7m7-7H3" />
                        </svg>
                        </button>
                    </div>
                </form>

               

                 <p class="mt-12 text-md">My Balance: &nbsp;<b>&#8358;<?php echo e(number_format(auth()->user()->balance)); ?></b></p>
              </div>
            </div>
          </div>

  </div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.user', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/jangodri/public_html/resources/views/withdraw.blade.php ENDPATH**/ ?>