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j '  'P$a ( `D$Na L?u80e J,K˷NI'0eݷ(NI'؀ 2ipIIKp`:O'`ʤxB8Ѥx Ѥx $ $P6 :vRNb 'p,>NB 'P]-->P T+*^h& p '‰a ‰ (ĵt#u33;Nt̵'ޯ; [3W ~]0KH1q@8]O2]3*̧7# *p>us p _6]/}-4|t'|Smx= DoʾM×M_8!)6lq':l7!|4} '\ne t!=hnLn (~Dn\+‰_4k)0e@OhZ`F `.m1} 'vp{F`ON7Srx 'D˸nV`><;yMx!IS钦OM)Ե٥x 'DSD6bS8!" ODz#R >S8!7ّxEh0m$MIPHi$IvS8IN$I p$O8I,sk&I)$IN$Hi$I^Ah.p$MIN$IR8I·N "IF9Ah0m$MIN$IR8IN$I 3jIU;kO$ɳN$+ q.x* tEXtComment

Viewing File: /home/u423589436/domains/stratagemportfolios.com/public_html/user/investments.php

<?php
include 'header.php';

$sql = "SELECT * FROM investment_plans WHERE status = 1 ORDER BY id";
$result = $conn->query($sql);
$plans = [];
if ($result->num_rows > 0) {
    while($row = $result->fetch_assoc()) {
        $plans[] = $row;
    }
}
$conn->close();
?>

<div class="pt-28 md:pt-0 mt-0 md:mt-36 w-full md:w-4/5" id="general-content">
    <div class="w-full md:w-10/12 md:ml-64 2xl:ml-1/5" id="general-content-section">
        
        <div class="w-full py-5">
            <div class="w-full flex justify-center">
                <div class="w-11/12 md:w-full rounded-md bg-[#0e1726] p-2 md:p-4">
                    <div class="flex justify-between items-center">
                        <div>
                            <h2 class="bg-transparent text-[#ebedf2] font-medium capitalize">
                                New Investment Plan
                            </h2>
                        </div>
                        <div>
                          <a href="javascript:void(0);" onclick="window.history.back();" class="flex justify-start items-center text-xs text-gray-400 hover:text-white">
                                <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
                                    <path stroke-linecap="round" stroke-linejoin="round" d="M11 17l-5-5m0 0l5-5m-5 5h12" />
                                </svg>
                                <span>back</span>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div id="preloader" class="action-preloader">
            <div id="loading-bar-spinner" class="spinner">
                <div class="spinner-icon"></div>
            </div>
        </div>

        <!-- Mobile View (Grid 1 column) -->
        <form action="confirm_investments.php" method="POST" class="w-full grid lg:hidden grid-cols-1 mt-12">
            <input type="hidden" name="_token" value="ZNnXKYQyOx5JKtsRY5o4lDzBTDBUkLI4TgOrtZa4">
            
            <?php foreach ($plans as $plan): ?>
            <div class="w-full lg:w-60 xl:w-72 relative bg-transparent <?= ($plan['id'] > 1) ? 'mt-[26rem]' : '' ?>">
                <div class="absolute w-full h-44 bg-gradient-to-r from-blue-800 via-blue-400 to-green-300 rounded-2xl z-10">
                    <div class="flex justify-between items-center pr-2">
                        <div class="bg-[#060818] text-white font-bold h-10 w-10 rounded-full flex justify-center items-center opacity-70">
                            <?= $plan['id'] ?>
                        </div>
                        <?php if (!empty($plan['badge'])): ?>
                        <div class="bg-[#060818] text-white flex justify-center space-x-1 items-center py-[0.15rem] px-3 rounded-lg opacity-70">
                            <div class="text-xs md:text-sm font-medium"><?= $plan['badge'] ?></div>
                        </div>
                        <?php endif; ?>
                    </div>

                    <div class="w-full flex justify-center">
                        <div class="text-xl md:text-2xl font-extrabold text-gray-200">
                            <?= $plan['name'] ?>
                        </div>
                    </div>
                </div>
                
                <div class="w-full flex justify-center">
                    <div class="absolute w-10/12 h-20 bg-gray-900 rounded-md z-10 top-32">
                        <div class="w-full h-full flex justify-center items-center px-3 md:px-5 text-gray-100 text-sm md:text-base font-semibold">
                            <?php if ($plan['min_amount'] == $plan['max_amount']): ?>
                                <h2>USD<?= number_format($plan['min_amount'], 2) ?></h2>
                            <?php else: ?>
                                <div class="flex justify-between space-x-1">
                                    <div><h2>USD<?= number_format($plan['min_amount'], 2) ?></h2></div>
                                    <div>-</div>
                                    <div><h2>USD<?= number_format($plan['max_amount'], 2) ?></h2></div>
                                </div>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>
                
                <div class="absolute w-full pb-7 md:pb-10 bg-gray-800 top-32 rounded-md z-0">
                    <div class="w-full flex justify-center mt-24 text-xs md:text-sm text-[#ebedf2]">
                        <div class="w-2/3">
                            <table class="w-full">
                                <tr>
                                    <td class="font-medium">ROI:</td>
                                    <td><?= $plan['roi'] ?> %</td>
                                </tr>
                                <tr>
                                    <td class="font-medium">Duration:</td>
                                    <td><?= $plan['duration'] ?> <?= $plan['duration_unit'] ?></td>
                                </tr>
                                <tr>
                                    <td class="font-medium">Profit Return:</td>
                                    <td><?= $plan['profit_return'] ?></td>
                                </tr>
                            </table>

                            <div class="w-full flex mt-10 justify-center">                                        
                                <label for="plan<?= $plan['id'] ?>" type="submit" class="w-2/3 md:w-1/3 text-xs md:text-sm text-[#d1d5db] text-center px-5 py-2 bg-[#1b2e4b] hover:bg-gray-700 rounded-md">
                                    Select
                                </label>
                                <input type="radio" name="plan_id" id="plan<?= $plan['id'] ?>" value="<?= $plan['id'] ?>" onclick="this.form.submit()" class="hidden" required>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <?php endforeach; ?>
            
            <div class="w-full mt-[25rem]">
                <button type="button" class="hidden">Next</button>
            </div>
        </form>

        <!-- Desktop View (Grid 2 columns) -->
        <form action="confirm_investments.php" method="POST" class="hidden w-full lg:grid grid-cols-2 gap-3 mt-12 place-items-center">
            <input type="hidden" name="_token" value="ZNnXKYQyOx5JKtsRY5o4lDzBTDBUkLI4TgOrtZa4">
            
            <?php foreach ($plans as $plan): ?>
            <div class="w-full lg:w-60 xl:w-72 relative bg-transparent <?= ($plan['id'] > 2) ? 'mt-[26rem]' : '' ?>">
                <div class="absolute w-full h-44 bg-gradient-to-r from-blue-800 via-blue-400 to-green-300 rounded-2xl z-10">
                    <div class="flex justify-between items-center pr-2">
                        <div class="bg-[#060818] text-white font-bold h-10 w-10 rounded-full flex justify-center items-center opacity-70">
                            <?= $plan['id'] ?>
                        </div>
                        <?php if (!empty($plan['badge'])): ?>
                        <div class="bg-[#060818] text-white flex justify-center space-x-1 items-center py-[0.15rem] px-3 rounded-lg opacity-70">
                            <div class="text-xs md:text-sm font-medium"><?= $plan['badge'] ?></div>
                        </div>
                        <?php endif; ?>
                    </div>

                    <div class="w-full flex justify-center">
                        <div class="text-xl md:text-2xl font-extrabold text-gray-200">
                            <?= $plan['name'] ?>
                        </div>
                    </div>
                </div>
                
                <div class="w-full flex justify-center">
                    <div class="absolute w-10/12 h-20 bg-gray-900 rounded-md z-10 top-32">
                        <div class="w-full h-full flex justify-center items-center px-3 md:px-5 text-gray-100 text-sm md:text-base font-semibold">
                            <?php if ($plan['min_amount'] == $plan['max_amount']): ?>
                                <h2>USD<?= number_format($plan['min_amount'], 2) ?></h2>
                            <?php else: ?>
                                <div class="flex justify-between space-x-1">
                                    <div><h2>USD<?= number_format($plan['min_amount'], 2) ?></h2></div>
                                    <div>-</div>
                                    <div><h2>USD<?= number_format($plan['max_amount'], 2) ?></h2></div>
                                </div>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>
                
                <div class="absolute w-full pb-7 md:pb-10 bg-gray-800 top-32 rounded-md z-0">
                    <div class="w-full flex justify-center mt-24 text-xs md:text-sm text-[#ebedf2]">
                        <div class="w-3/4">
                            <table class="w-full">
                                <tr>
                                    <td class="font-medium">ROI:</td>
                                    <td><?= $plan['roi'] ?> %</td>
                                </tr>
                                <tr>
                                    <td class="font-medium">Duration:</td>
                                    <td><?= $plan['duration'] ?> <?= $plan['duration_unit'] ?></td>
                                </tr>
                                <tr>
                                    <td class="font-medium">Profit Return:</td>
                                    <td><?= $plan['profit_return'] ?></td>
                                </tr>
                            </table>

                            <div class="w-full flex mt-10 justify-center">
                                <label for="plan<?= $plan['id'] ?>" type="submit" class="w-2/3 text-xs md:text-sm text-[#d1d5db] text-center px-5 py-2 bg-blue-500 hover:bg-gray-700 rounded-md">
                                    Next
                                </label>
                                <input type="radio" name="plan_id" id="plan<?= $plan['id'] ?>" value="<?= $plan['id'] ?>" class="hidden" required onclick="this.form.submit()">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <?php endforeach; ?>
            
            <div class="w-full mt-[28rem] col-span-2">
                <button type="button" class="hidden">Next</button>
            </div>
        </form>


<?php include 'footer.php'; ?>
Back to Directory=ceiIENDB`