<?php $__env->startSection('panel'); ?>
    <div class="row">
        <div class="col-lg-12">
            <div class="card b-radius--10 ">
                <div class="card-body p-0">
                    <div class="table-responsive--md  table-responsive">
                        <table class="table table--light style--two">
                            <thead>
                            <tr>
                                <th><?php echo app('translator')->get('Plan'); ?></th>
                                <th><?php echo app('translator')->get('User'); ?></th>
                                <th><?php echo app('translator')->get('Return'); ?></th>
                                <th><?php echo app('translator')->get('Interest Amount'); ?></th>
                                <th><?php echo app('translator')->get('Status'); ?></th>
                                <th><?php echo app('translator')->get('Invested'); ?></th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php $__empty_1 = true; $__currentLoopData = $investments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <tr>
                                <td data-label="<?php echo app('translator')->get('Plan'); ?>">
                                    <span class="font-weight-bold" data-toggle="tooltip" data-original-title="<?php echo app('translator')->get('Plan Name'); ?>">
                                        <a href="<?php echo e(route('admin.plan.index')); ?>"><?php echo e($data->plan->name); ?></a>
                                    </span>
                                    <br/>
                                    <span class="font-weight-bold" data-toggle="tooltip" data-original-title="<?php echo app('translator')->get('Transaction Number'); ?>">
                                        <?php echo e($data->trx); ?>

                                    </span>
                                </td>
                                <td data-label="<?php echo app('translator')->get('User'); ?>">
                                    <span class="font-weight-bold"><?php echo e($data->user->fullname); ?></span>
                                        <br>
                                    <span class="small">
                                        <a href="<?php echo e(route('admin.users.detail', $data->user_id)); ?>"><span>@</span><?php echo e($data->user->username); ?>

                                        </a>
                                    </span>
                                </td>

                                <td data-label="<?php echo app('translator')->get('Return'); ?>">
                                    <span class="font-weight-bold" data-toggle="tooltip" data-original-title="<?php echo app('translator')->get('Transaction Number'); ?>">
                                        <?php echo app('translator')->get('Total'); ?> <?php echo e($data->total_return); ?> <?php echo app('translator')->get('Times'); ?>
                                    </span>
                                    <br>
                                    <span class="font-weight-bold" data-toggle="tooltip" data-original-title="<?php echo app('translator')->get('Transaction Number'); ?>">
                                        <?php echo app('translator')->get('Paid'); ?> <?php echo e($data->total_paid); ?> <?php echo app('translator')->get('Times'); ?>
                                    </span>
                                </td>

                                <td data-label="<?php echo app('translator')->get('Interest Amount'); ?>">
                                    <?php echo e(showAmount($data->interest_amount)); ?>

                                    <?php echo e(__($general->cur_text)); ?>

                                </td>

                                <td data-label="<?php echo app('translator')->get('Status'); ?>">
                                    <?php if($data->status == 0): ?>
                                        <span class="badge badge--primary">
                                            <?php echo app('translator')->get('Running'); ?>
                                        </span>
                                    <?php elseif($data->status == 1): ?>
                                    <span class="badge badge--success">
                                        <?php echo app('translator')->get('Completed'); ?>
                                    </span>
                                    <?php endif; ?>
                                </td>

                                <td data-label="<?php echo app('translator')->get('Invested'); ?>">
                                    <?php echo e(showDateTime($data->created_at)); ?> <br> <?php echo e(diffForHumans($data->created_at)); ?>

                                </td>

                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                <tr>
                                    <td class="text-muted text-center" colspan="100%"><?php echo e(__($emptyMessage)); ?></td>
                                </tr>
                            <?php endif; ?>

                            </tbody>
                        </table><!-- table end -->
                    </div>
                </div>
                <div class="card-footer py-4">
                    <?php echo e(paginateLinks($investments)); ?>

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

    </div>


<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/xsjpetiv/vrpark.com.ng/core/resources/views/admin/investment.blade.php ENDPATH**/ ?>