<?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"
            >
            <span class="text-blue-500">Investment</span> 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($investment->plan->name); ?>

            </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($investment->user->first_name); ?>

                <?php if($investment->status == 2): ?>
                 is presently on the 
                <?php elseif($investment->status == 3): ?>
                invested &#8358;<?php echo e(number_format($investment->amount)); ?> in the
                <?php endif; ?>
                <?php echo e($investment->plan->name); ?> Package
              </p>
            </div>

            <div class="mb-6">
                <a class="px-5 py-3 font-medium bg-blue-600 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"
                      href="<?php echo e(route('admin.user_dashboard', $investment->user->id)); ?>" style="color: #fff;" name="submit"
                    >
                     <?php echo e($investment->user->first_name); ?>'s Dashboard
                 </a>
            </div>
            
            <!-- Responsive cards -->
            <h4
              class="mb-4 text-lg font-semibold text-gray-600 dark:text-gray-300"
            >
              Investment Statistics
            </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"
                  >
                    Capital
                  </p>
                  <p
                    class="text-lg font-semibold text-gray-700 dark:text-gray-200"
                  >
                    &#8358;<?php echo e(number_format($investment->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"
                  >
                    Return Amount
                  </p>
                  <p
                    class="text-lg font-semibold text-gray-700 dark:text-gray-200"
                  >
                    &#8358;<?php echo e(number_format(($investment->amount/100 * $investment->plan->percent_profit) * $investment->plan->period + $investment->amount)); ?>

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

              <div
                class="flex items-center p-4 bg-white shadow-xs dark:bg-gray-800"
              >
                <div>
                  <p
                    class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400"
                  >
                  Due Payment Date
                  </p>
                  <p
                    class="text-lg font-semibold text-gray-700 dark:text-gray-200"
                  >
                  <?php echo e(date('M j Y', strtotime($investment->end_date))); ?>

                  </p>
                </div>
              </div>
              <!-- Card -->
              <div
                class="flex items-center p-4 bg-white shadow-xs dark:bg-gray-800"
              >
                <div>
                  <p
                    class="mb-2 text-sm font-medium text-gray-600 dark:text-gray-400"
                  >
                  Investment Request Status
                  </p>
                  <p
                    class="text-lg font-semibold text-gray-700 dark:text-gray-200"
                  >
                  <?php if($investment->status == 1): ?>
                <span
                    class="px-2 py-1 font-semibold leading-tight text-red-700 bg-red-100 rounded-full dark:bg-red-700 dark:text-red-100"
                >
                    Pending..
                </span>
                <?php elseif($investment->status == 2): ?>
                <span
                    class="px-2 py-1 font-semibold leading-tight bg-orange-200 rounded-full dark:bg-orange-700 dark:text-orange-200"
                style="color:green;">
                    Ongoing
                </span>
                <?php elseif($investment->status == 3): ?>
                <span
                    class="px-2 py-1 font-semibold leading-tight text-green-700 bg-green-100 rounded-full dark:bg-green-700 dark:text-green-100"
                >
                    Completed
                </span>
                <?php endif; ?>
                  </p>
                </div>
              </div>
            </div>

         



            <!-- Cards with title -->
            <h4
              class="mb-4 text-lg font-semibold text-gray-600 dark:text-gray-300"
            >
              Package Description
            </h4>
            <div class="grid gap-6 mb-8 md:grid-cols-2">
              <div
                class="min-w-0 p-4 bg-white shadow-xs dark:bg-gray-800"
              >
                <h4 class="mb-4 font-semibold text-gray-600 dark:text-gray-300">
                  <?php echo e($investment->plan->name); ?>

                </h4>
                <p class="text-gray-600 dark:text-gray-400">
                  <?php echo e($investment->plan->description); ?>

                </p>
              </div>
              <div
                class="min-w-0 p-4 shadow-xs bg-blue-600" style="color: #fff;"
                <h4 class="mb-4 font-semibold">
                  Dear Admin,
                </h4>
                <p>
                  Please note that every user has the ability to upgrade their investments so as to increase profit, 
                  therefore leading to changes in their investment information.
                </p>
              </div>
            </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 C:\wamp64\www\jango\resources\views/admin/investment_info.blade.php ENDPATH**/ ?>