<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('admin.topmenu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('admin.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <div class="main-panel">
        <div class="content">
            <div class="page-inner">
                <div class="mt-2 mb-4">
                    <h1 class="title1">Investment plans</h1>
                    <p class="text-muted mb-0">These plans power the customer <strong>Investment Plans</strong> page. ROI is credited automatically on the schedule you set (cron <code>/cron</code>).</p>
                </div>
                <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.danger-alert','data' => []]); ?>
<?php $component->withName('danger-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; ?>
                <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.success-alert','data' => []]); ?>
<?php $component->withName('success-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; ?>
                <div class="mb-5 row">
                    <div class="mt-2 mb-3 col-lg-12">
                        <a class="btn btn-primary" href="<?php echo e(route('admin.managed-investments.create')); ?>">
                            <i class="fa fa-plus"></i> New plan
                        </a>
                    </div>
                    <?php $__empty_1 = true; $__currentLoopData = $plans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $plan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <div class="col-lg-4 mb-4">
                            <div class="pricing-table purple border p-4 card shadow h-100">
                                <h2 class="mb-2">
                                    <?php echo e($plan->name); ?>

                                    <?php if(!$plan->is_active): ?>
                                        <span class="badge badge-warning ml-2 align-middle" style="font-size:0.65rem;">Inactive</span>
                                    <?php endif; ?>
                                </h2>
                                <div class="price-tag">
                                    <span class="symbol"><?php echo e($settings->currency); ?></span>
                                    <span class="amount"><?php echo e(number_format((float) $plan->max_amount, 0)); ?></span>
                                </div>
                                <div class="pricing-features">
                                    <div class="feature">Minimum Possible Deposit:<span><?php echo e($settings->currency); ?><?php echo e(number_format((float) $plan->min_amount, 0)); ?></span></div>
                                    <div class="feature">Maximum Possible Deposit:<span><?php echo e($settings->currency); ?><?php echo e(number_format((float) $plan->max_amount, 0)); ?></span></div>
                                    <div class="feature">Minimum Return:<span><?php echo e(number_format((float) $plan->min_roi_percent, 2)); ?>%</span></div>
                                    <div class="feature">Maximum Return:<span><?php echo e(number_format((float) $plan->max_roi_percent, 2)); ?>%</span></div>
                                    <div class="feature">Gift Bonus:<span><?php echo e($settings->currency); ?><?php echo e(number_format((float) $plan->gift_bonus, 0)); ?></span></div>
                                    <div class="feature">Duration:<span><?php echo e($plan->investment_duration); ?></span></div>
                                    <div class="feature small text-muted" style="border-bottom: none; padding-top: 0.25rem;">
                                        Top-up:<span><?php echo e($plan->topup_type); ?> <?php echo e($plan->topup_amount); ?><?php echo e($plan->topup_type === 'Percentage' ? '%' : ''); ?> / <?php echo e($plan->topup_interval); ?></span>
                                    </div>
                                </div>
                                <br>
                                <div class="text-center">
                                    <a href="<?php echo e(route('admin.managed-investments.edit', $plan)); ?>" class="btn btn-primary" title="Edit">
                                        <i class="text-white flaticon-pencil"></i>
                                    </a>
                                    &nbsp;
                                    <form action="<?php echo e(route('admin.managed-investments.destroy', $plan)); ?>" method="post" class="d-inline" onsubmit="return confirm('Delete this plan?');">
                                        <?php echo csrf_field(); ?>
                                        <?php echo method_field('DELETE'); ?>
                                        <button type="submit" class="btn btn-danger" title="Delete">
                                            <i class="text-white fa fa-times"></i>
                                        </button>
                                    </form>
                                </div>
                            </div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <div class="col-lg-12 text-center">
                            <div class="pricing-table card purple border p-4">
                                <h4 class="">No investment plans yet. Click <strong>New plan</strong> above to add one.</h4>
                            </div>
                        </div>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/nezemgrh/bnk.nezertechy.xyz/resources/views/admin/managed-investments/plans-index.blade.php ENDPATH**/ ?>