   <?php $activePlan = $assist->get_plans($page['plan_id']); ?>
   <div class="page-container">
        <div class="main-content">
            <div class="section-gap">
                <div class="container-fluid">
<!--Page Content-->
                        <div class="row justify-content-center">
        <div class="col-xl-10 col-lg-12 col-md-12">
            <div class="site-card">
                <div class="site-card-header">
                    <h3 class="title">Review and Confirm Plan</h3>
                </div>
                <div class="site-card-body">
                    <form action="/user/dashboard" method="post" enctype="multipart/form-data">
                        <div class="progress-steps-form">
                            <div class="transaction-list table-responsive">
                                <table class="table preview-table">
                                    <tbody>
                                    <tr>
                                        <td><strong>Select Bot:</strong></td>
                                        <td>
                                            <div class="input-group mb-0">
                                                <select class="site-nice-select" aria-label="Default select example"
                                                        id="select-schema" name="schema_id" required>
                                             <?php foreach($get_plans as $pItem) { ?><option value="<?php echo $pItem['plan_id']; ?>" <?php echo ($pItem['plan_id'] == $activePlan['plan_id'])?'selected':''; ?> ><?php echo $pItem['plan_name']; ?></option> <?php } ?>
                                                </select>
                                            </div>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td><strong>Amount:</strong></td>
                                        <td id="amount">
                                            Minimum <?php echo explode('-',$activePlan['plan_investment'])[0]; ?> USD - Maximum <?php echo explode('-',$activePlan['plan_investment'])[1]; ?> USD
                                        </td>
                                    </tr>

                                    <tr>
                                        <td><strong>Enter Amount:</strong></td>
                                        <td>
                                            <div class="input-group mb-0">
                                                <input type="number" class="form-control"
                                                        placeholder="Enter Amount"
                                                       oninput="this.value = validateDouble(this.value)"
                                                       aria-label="Amount" name="invest_amount" id="enter-amount"
                                                       aria-describedby="basic-addon1" max="<?php echo explode('-',$activePlan['plan_investment'])[1]; ?>" min="<?php echo explode('-',$activePlan['plan_investment'])[0]; ?>" required>
                                                <span class="input-group-text" id="basic-addon1">USD</span>
                                            </div>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td><strong>Select Wallet:</strong></td>
                                        <td>
                                            <div class="input-group mb-0">
                                                <select class="site-nice-select" aria-label="Default select example"
                                                        name="wallet" required id="selectWallet">
                                                    <option
                                                        value="main">Main Wallet ( <?php echo $wallet_balance; ?> USD
                                                        )
                                                    </option>
                                                    <option
                                                        value="profit">Profit Wallet ( <?php echo $total_profit; ?> USD
                                                        )
                                                    </option>
                                                    <option value="gateway">Direct Gateway</option>
                                                </select>
                                            </div>

                                        </td>
                                    </tr>

                                    <tr class="gatewaySelect">

                                    </tr>

                                    <tr>
                                        <td colspan="2">
                                            <div class="row manual-row"></div>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td><strong>Return of Interest:</strong></td>
                                        <td id="return-interest"><?php echo $activePlan['plan_percent'] ?>% (<?php echo $activePlan['plan_duration_type'] ?>)</td>
                                    </tr>
                                    <tr>
                                        <td><strong>Number of Period:</strong></td>
                                        <td id="number-period"><?php echo $activePlan['plan_period'] ?></td>
                                    </tr>
                                    <tr>
                                        <td><strong>Capital Back:</strong></td>
                                        <td id="capital_back"><?php echo $activePlan['plan_capital_back'] ?></td>
                                    </tr>
                                    <tr>
                                        <td><strong>Total Investment Amount:</strong></td>
                                        <td><span
                                                id="total-amount"> 0</span> USD
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                            <input type="hidden" name="plan_id" id="plan_id" value="<?php echo $activePlan['plan_id']; ?>">
                            <input type="hidden" name="plan_name" id="plan_name" value="<?php echo $activePlan['plan_name']; ?>">
                            <div class="button">
                                <button type="submit" class="site-btn primary-btn me-3" name="start_invest">
                                    <i class="anticon anticon-check"></i>Invest Now
                                </button>
                                <a href="/user/schemas" class="site-btn black-btn">
                                    <i class="anticon anticon-stop"></i>Cancel
                                </a>
                            </div>
                        </div>
                    </form>

                </div>
            </div>
        </div>
    </div>
                    <!--Page Content-->
                </div>
            </div>
        </div>
    </div>