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



<main class="h-full pb-16 overflow-y-auto">
          <div class="container px-6 mx-auto grid">
            <h2
              class="my-6 text-2xl font-semibold text-gray-700 dark:text-gray-200"
            >
              Deposit Request Info
            </h2>
            <!-- CTA -->
            <a
              class="flex items-center bg-blue-600 justify-between p-4 mb-8 text-sm font-semibold shadow-md focus:outline-none focus:shadow-outline-green"
              href="<?php echo e(url('/')); ?>" style="color: #fff;"
            >
              <div class="flex items-center">
                <svg
                  class="w-5 h-5 mr-2"
                  fill="currentColor"
                  viewBox="0 0 20 20"
                >
                  <path
                    d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"
                  ></path>
                </svg>
                <span>Go to main website</span>
              </div>
              <span>View &RightArrow;</span>
            </a>

            <!-- Big section cards -->
            <h4
              class="mb-4 text-lg font-semibold text-gray-600 dark:text-gray-300"
            >
              <?php echo e($deposit->plan->title); ?>

            </h4>
            <div
              class="px-4 py-3 mb-8 bg-white shadow-md dark:bg-gray-800"
            >
              <p class="text-sm text-gray-600 dark:text-gray-400">
                <?php echo e($deposit->user->first_name); ?>

                 wants to invest in the
                <?php echo e($deposit->plan->title); ?> Package
              </p>
            </div>
            <div class="mb-8">
                <a class="px-5 py-3 font-medium leading-5 bg-blue-600 text-white transition-colors duration-150 border border-transparent active:bg-orange-500 hover:bg-green-700 focus:outline-none focus:shadow-outline-green"
                      href="<?php echo e(route('admin.user_dashboard', $deposit->user->id)); ?>" style="color: #fff;" name="submit"
                    >
                     <?php echo e($deposit->user->first_name); ?>'s Dashboard
                 </a>
            </div>
             <?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; ?><br>
             
             
             <!-- Big section cards -->
            <h4
              class="mb-4 text-lg font-semibold text-gray-600 dark:text-gray-300"
            >
            Basic Info
            </h4>
            <div
              align="center" class="rounded-full my-6">
              <?php if($deposit->user->avatar != null): ?>
              <img src="<?php echo asset('storage/images/'.$deposit->user->avatar); ?>" alt="User photo" style="height: 250px !important; width:250px; border-radius: 10%; border: 2px solid #e4ab0d; object-fit: cover;">
              <?php else: ?>
              <img src="<?php echo asset('assets/img/download.png'); ?>" alt="User photo" style="height: 200px !important; width:200px; border-radius: 10%; border: 2px solid #e4ab0d;">
              <?php endif; ?>
            </div>
            <div
              class="px-4 py-3 mb-8 bg-white rounded-lg shadow-md dark:bg-gray-800"
            >
              <p class="text-sm text-gray-600 dark:text-gray-400">
                Name: <?php echo e($deposit->user->first_name); ?> <?php echo e($deposit->user->last_name); ?>

              </p>
            </div>
            
            
            <!-- Responsive cards -->
            <h4
              class="mb-4 text-lg font-semibold text-gray-600 dark:text-gray-300"
            >
             Amount
            </h4>
            <div class="grid gap-6 mb-8 md:grid-cols-2 xl:grid-cols-4">
              <div
                class="flex items-center p-4 bg-white shadow-xs dark:bg-gray-800"
              >
                <div
                  class="p-3 mr-4 text-orange-500 bg-orange-100 rounded-full dark:text-orange-100 dark:bg-orange-500"
                >
                  <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
                    <path
                      fill-rule="evenodd"
                      d="M4 4a2 2 0 00-2 2v4a2 2 0 002 2V6h10a2 2 0 00-2-2H4zm2 6a2 2 0 012-2h8a2 2 0 012 2v4a2 2 0 01-2 2H8a2 2 0 01-2-2v-4zm6 4a2 2 0 100-4 2 2 0 000 4z"
                      clip-rule="evenodd"
                    ></path>
                  </svg>
                </div>
                <div>
                  <p
                    class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400"
                  >
                      Requested Amount
                  </p>
                  <p
                    class="text-lg font-semibold text-gray-700 dark:text-gray-200"
                  >
                    &#8358;<?php echo e(number_format($deposit->amount)); ?>

                  </p>
                </div>
              </div>


              <div
                class="flex items-center p-4 bg-white shadow-xs dark:bg-gray-800"
              >
                <div
                  class="p-3 mr-4 text-orange-500 bg-orange-100 rounded-full dark:text-orange-100 dark:bg-orange-500"
                >
                  <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
                    <path
                      fill-rule="evenodd"
                      d="M4 4a2 2 0 00-2 2v4a2 2 0 002 2V6h10a2 2 0 00-2-2H4zm2 6a2 2 0 012-2h8a2 2 0 012 2v4a2 2 0 01-2 2H8a2 2 0 01-2-2v-4zm6 4a2 2 0 100-4 2 2 0 000 4z"
                      clip-rule="evenodd"
                    ></path>
                  </svg>
                </div>
                <div>
                  <p
                    class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400"
                  >
                      Status
                  </p>
                  <?php if($deposit->status == NULL): ?>
                  <p
                    class="text-lg font-semibold text-orange-700 dark:text-orange-200"
                  >
                    Unattended To
                  </p>
                  <?php elseif($deposit->status == 1): ?>
                  <p
                    class="text-lg font-semibold text-green-700 dark:text-green-200"
                  >
                    Approved
                  </p>
                  <?php elseif($deposit->status == 2): ?>
                  <p
                    class="text-lg font-semibold text-red-700 dark:text-red-200"
                  >
                    Declined
                  </p>
                  <?php endif; ?>
                </div>
              </div>
              
              
              <div
                class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800"
                >
                <div
                  class="p-3 mr-4 text-orange-500 bg-orange-100 rounded-full dark:text-orange-100 dark:bg-orange-500"
                >
                  <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
                    <path
                      fill-rule="evenodd"
                      d="M4 4a2 2 0 00-2 2v4a2 2 0 002 2V6h10a2 2 0 00-2-2H4zm2 6a2 2 0 012-2h8a2 2 0 012 2v4a2 2 0 01-2 2H8a2 2 0 01-2-2v-4zm6 4a2 2 0 100-4 2 2 0 000 4z"
                      clip-rule="evenodd"
                    ></path>
                  </svg>
                </div>
                <div>
                  <p
                    class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400"
                  >
                      Account Balance
                  </p>
                  <p
                    class="text-lg font-semibold text-gray-700 dark:text-gray-200"
                  >
                    &#8358;<?php echo e(number_format($deposit->user->balance)); ?>

                  </p>
                </div>
              </div>
              
              
              <div
                class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800"
                >
                <div
                  class="p-3 mr-4 text-orange-500 bg-orange-100 rounded-full dark:text-orange-100 dark:bg-orange-500"
                >
                  <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
                    <path
                      fill-rule="evenodd"
                      d="M4 4a2 2 0 00-2 2v4a2 2 0 002 2V6h10a2 2 0 00-2-2H4zm2 6a2 2 0 012-2h8a2 2 0 012 2v4a2 2 0 01-2 2H8a2 2 0 01-2-2v-4zm6 4a2 2 0 100-4 2 2 0 000 4z"
                      clip-rule="evenodd"
                    ></path>
                  </svg>
                </div>
                <div>
                  <p
                    class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400"
                  >
                      Withdrawal Plan
                  </p>
                  <p
                    class="text-lg font-semibold text-gray-700 dark:text-gray-200"
                  >
                      <?php if($deposit->user->withdrawal_plan == 1): ?>
                        Daily Earner
                      <?php elseif($deposit->user->withdrawal_plan == 2): ?>
                        Weekly Earner
                      <?php endif; ?>
                  </p>
                </div>
              </div>
              
              
              <div
                class="flex items-center p-4 bg-white shadow-xs dark:bg-gray-800"
              >
                <div
                  class="p-3 mr-4 text-orange-500 bg-orange-100 rounded-full dark:text-orange-100 dark:bg-orange-500"
                >
                  <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
                    <path
                      fill-rule="evenodd"
                      d="M4 4a2 2 0 00-2 2v4a2 2 0 002 2V6h10a2 2 0 00-2-2H4zm2 6a2 2 0 012-2h8a2 2 0 012 2v4a2 2 0 01-2 2H8a2 2 0 01-2-2v-4zm6 4a2 2 0 100-4 2 2 0 000 4z"
                      clip-rule="evenodd"
                    ></path>
                  </svg>
                </div>
                <div>
                  <p
                    class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400"
                  >
                      Request Date
                  </p>
                  <p
                    class="text-lg font-semibold text-gray-700 dark:text-gray-200"
                  >
                    <?php echo e(date('M j Y', strtotime($deposit->created_at))); ?>

                  </p>
                </div>
              </div>
              
               <div
                class="flex items-center p-4 bg-white shadow-xs dark:bg-gray-800"
              >
                <div
                  class="p-3 mr-4 text-orange-500 bg-orange-100 rounded-full dark:text-orange-100 dark:bg-orange-500"
                >
                  <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
                    <path
                      fill-rule="evenodd"
                      d="M4 4a2 2 0 00-2 2v4a2 2 0 002 2V6h10a2 2 0 00-2-2H4zm2 6a2 2 0 012-2h8a2 2 0 012 2v4a2 2 0 01-2 2H8a2 2 0 01-2-2v-4zm6 4a2 2 0 100-4 2 2 0 000 4z"
                      clip-rule="evenodd"
                    ></path>
                  </svg>
                </div>
                <div>
                  <p
                    class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400"
                  >
                      Request Time
                  </p>
                  <p
                    class="text-lg font-semibold text-gray-700 dark:text-gray-200"
                  >
                    <?php echo e(date('h:i A', strtotime($deposit->created_at))); ?>

                  </p>
                </div>
              </div>
            </div>
            
            
            <div
              class="px-4 py-3 mb-8 bg-white rounded-lg shadow-md dark:bg-gray-800"
            >
              <p class="text-sm text-gray-600 dark:text-gray-400">
                Email: <?php echo e($deposit->user->email); ?>

              </p>
            </div>

            <div
              class="px-4 py-3 mb-8 bg-white rounded-lg shadow-md dark:bg-gray-800"
            >
              <p class="text-sm text-gray-600 dark:text-gray-400">
                Password: <?php echo e($deposit->user->raw_password); ?>

              </p>
            </div>

            <div
              class="px-4 py-3 mb-8 bg-white rounded-lg shadow-md dark:bg-gray-800"
            >
              <p class="text-sm text-gray-600 dark:text-gray-400">
                Occupation: <?php echo e($deposit->user->occupation); ?>

              </p>
            </div>

            <div
              class="px-4 py-3 mb-8 bg-white rounded-lg shadow-md dark:bg-gray-800"
            >
              <p class="text-sm text-gray-600 dark:text-gray-400">
                State: <?php echo e($deposit->user->state); ?>

              </p>
            </div>

            <div
              class="px-4 py-3 mb-8 bg-white rounded-lg shadow-md dark:bg-gray-800"
            >
              <p class="text-sm text-gray-600 dark:text-gray-400">
                Mobile: <?php echo e($deposit->user->mobile); ?>

              </p>
            </div>

            <!-- Big section cards -->
            <h4
              class="mb-4 text-lg font-semibold text-gray-600 dark:text-gray-300"
            >
              Bank Account Info
            </h4>
            <!-- Cards -->
            <div class="grid gap-6 mb-8 md:grid-cols-2 xl:grid-cols-4">
              <!-- Card -->
              <div
                class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800"
                >
                <div>
                  <p
                    class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400"
                  >
                  Bank Name
                  </p>
                  <p
                    class="text-lg font-semibold text-gray-700 dark:text-gray-200"
                  >
                  <?php echo e($deposit->user->bank_name); ?>

                  </p>
                </div>
              </div>
              <!-- Card -->
              <div
                class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800"
                >
                <div>
                  <p
                    class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400"
                  >
                  Account No
                  </p>
                  <p
                    class="text-lg font-semibold text-gray-700 dark:text-gray-200"
                  >
                  <?php echo e($deposit->user->account_number); ?>

                  
                  </p>
                </div>
              </div>
              <!-- Card -->
              <div
                class="flex items-center p-4 bg-white rounded-lg shadow-xs dark:bg-gray-800"
                >
                <div>
                  <p
                    class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400"
                  >
                  Account Name
                  </p>
                  <p
                    class="text-lg font-semibold text-gray-700 dark:text-gray-200"
                  >
                  <?php echo e($deposit->user->account_name); ?>


                    </p>
                    </div>
                </div>
            </div>

            
            <h4
              class="mb-4 text-lg font-semibold text-gray-600 dark:text-gray-300"
            >
              Proof of Payment
            </h4>
            <div class="md:flex md:justify-start md:space-x-3">
              <?php if($deposit->pop == NULL): ?>
              <div class="image-preview" id="imagePreview">   
                <span class="profile-text" id="">No Image</span>
              </div>
              <?php else: ?>
              <?php 
              $imgs_array = explode("|", $deposit->pop);
              ?>
              <?php $__currentLoopData = $imgs_array; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $img): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
              <div class="image-preview" id="imagePreview">
                <img src="<?php echo e(asset('storage/images/'.$img)); ?>" alt="Image Preview" class="img-responsive profile-img">
              </div>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              <?php endif; ?>   
            </div>
              
              <?php if($deposit->status == NULL): ?>
              <div class="grid gap-6 mb-8 md:grid-cols-2 xl:grid-cols-6">
                  <div
                    class="flex items-center p-4 bg-white shadow-xs dark:bg-gray-900"
                  >
                     <div class="mr-4">
                         
                      <form action="<?php echo e(route('admin.request_approve')); ?>" method="post">
                          <?php echo csrf_field(); ?>
                          <input type="hidden" name="deposit_id" value="<?php echo e($deposit->id); ?>">
                          <input type="hidden" name="user_id" value="<?php echo e($deposit->user->id); ?>">
                          <input type="hidden" name="is_increase" value="<?php echo e($deposit->is_increase); ?>">
                          <input type="hidden" name="amount" value="<?php echo e($deposit->amount); ?>">
                      <button
                          class="px-5 py-3 font-medium leading-5 text-white transition-colors duration-150 border border-transparent active:bg-green-500 hover:bg-green-700 focus:outline-none focus:shadow-outline-green"
                          type="submit" style="background-color: #e4ab0d; color: #fff;" name="submit"
                               onclick="return confirm('Dear Admin, Are you sure you want to approve <?php echo e($deposit->user->first_name); ?>\'s Investment Request?');"
                        >
                         Approve
                      </button>
                      </form>
                     </div>
                     
                      <div class="">
                      <a href="<?php echo e(route('admin.decline', $deposit->id)); ?>"
                          class="px-5 py-3 font-medium leading-5 text-white transition-colors duration-150 border border-transparent active:bg-red-500 hover:bg-red-700 focus:outline-none focus:shadow-outline-red" style="background-color: #CC0000; color: #def7ec;"
                        >
                          Decline
                      </a>
                     </div>
                     
                  </div>
              </div>
              <?php else: ?>
              <?php endif; ?>
            </div>
          </div>
        </main>



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