

<?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 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">My Investment History</h6>
              </div>
              <div class="flex-auto p-4">
                <ul class="flex flex-col pl-0 mb-0 rounded-lg">
                <?php $__empty_1 = true; $__currentLoopData = $histories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $history): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                  <li class="relative flex justify-between py-2 pr-4 mb-2 border-0 rounded-t-lg rounded-xl text-inherit">
                    <div class="flex items-center">
                      <div class="inline-block w-8 h-8 mr-4 text-center text-black bg-center shadow-sm fill-current stroke-none bg-gradient-to-tl from-zinc-800 to-zinc-700 rounded-xl">
                        <i class="text-white fas fa-chart-line relative top-0.75 text-xxs"></i>
                      </div>
                      <div class="flex flex-col">
                        <h6 class="mb-1 text-sm leading-normal text-slate-700">&#8358;<?php echo e(number_format($history->amount)); ?> (<?php echo e($history->plan->name); ?>)</h6>
                        <span class="text-xs leading-tight"><?php echo date('M j Y', strtotime($history->buy_date)); ?> - <?php echo date('M j Y', strtotime($history->end_date)); ?> &rarr;
                          <?php if($history->status == 2): ?>
                          <span class="font-semibold" style="color:green">Ongoing</span>
                          <?php elseif($history->status == 4): ?>
                          <span class="font-semibold" style="color:red">Declined</span>
                          <?php elseif($history->status == 3): ?>
                          <span class="font-semibold" style="color:blue">Completed</span>
                          <?php elseif($history->status == 1): ?>
                          <span class="font-semibold" style="color:orange">Pending</span>
                          <?php endif; ?>
                        </span>
                      </div>
                    </div>
                    <div class="flex">
                      <a href="<?php echo e(route('investment_profile', $history->id)); ?>" class="group ease-in leading-pro text-xs rounded-3.5xl p-1.2 h-6.5 w-6.5 mx-0 my-auto inline-block cursor-pointer border-0 bg-transparent text-center align-middle font-bold text-slate-700 shadow-none transition-all"><i class="ni ease-bounce text-2xs group-hover:translate-x-1.25 ni-bold-right transition-all duration-200" aria-hidden="true"></i></a>
                    </div>
                  </li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <div>
                    <p
                    class="text-sm text-center text-gray-700"
                    >
                        Hey There, You are yet to make an investment. <br>
                        Do so, and your investment history should appear here.
                    </p>
                </div>
                <?php endif; ?>
                </ul>
              </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/investment_history.blade.php ENDPATH**/ ?>