<?php include("includes/top-header.php"); ?>
 <style>
 
   
</style>
<!-- Preloader
<div id="preloader">
  <div data-loader="dual-ring"></div>
</div>
Preloader End -->

<!-- Document Wrapper   
============================================= -->
<div id="main-wrapper"> 
<style>
  /* General Page Styles */
  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: ;
  }

  #main-wrapper {
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    margin: auto;
    border-radius: 8px;
  }

  h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 10px;
  }

  p {
    color: #b0b0c3;
    line-height: 1.6;
  }

  .investment-section {
    margin-bottom: 40px;
  }

  .plan-card {
    border: 1px solid #404056;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
    background-color: #3a3a58;
  }

  .plan-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  .plan-header {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
  }

  .plan-details {
    font-size: 0.9rem;
    color: #b0b0c3;
    margin-bottom: 15px;
  }

  .btn-invest {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
  }

  .btn-invest:hover {
    background-color: #0056b3;
  }

  .investment-history {
    margin-top: 40px;
  }

  .history-table-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #404056;
    border-radius: 8px;
    background-color: #3a3a58;
    padding: 10px;
  }

  .history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #ffffff;
  }

  .history-table th, .history-table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #505067;
  }

  .history-table th {
    background-color: #007bff;
    color: white;
    position: sticky;
    top: 0;
  }

  .history-table tr:nth-child(even) {
    background-color: #48486a;
  }

  .history-table tr:hover {
    background-color: #5a5a7a;
  }
</style>

<div id="main-wrapper"> 
  <!-- Header -->
  <header>
    <h2>Investment Plans</h2>
    <p>Explore our trusted investment options to grow your wealth securely and effectively.</p>
  </header>

  <!-- Investment Plans Section -->
  <section class="investment-section">
    <div class="plan-card">
      <div class="plan-header">Fixed Deposit Plan</div>
      <p class="plan-details">Lock your money for a fixed period and earn an annual interest rate of 6%. Minimum investment: $1,000.</p>
      <a href="#" class="btn-invest">Invest Now</a>
    </div>

    <div class="plan-card">
      <div class="plan-header">Savings Bonds</div>
      <p class="plan-details">Government-backed bonds with annual returns of 4-5%. Minimum investment: $500.</p>
      <a href="#" class="btn-invest">Invest Now</a>
    </div>

    <div class="plan-card">
      <div class="plan-header">Mutual Funds</div>
      <p class="plan-details">Diversify your portfolio with mutual funds offering average annual returns of 8%. Minimum investment: $1,000.</p>
      <a href="#" class="btn-invest">Invest Now</a>
    </div>
  </section>

  <!-- Investment History Section -->
  <section class="investment-history">
    <h2>Investment History</h2>
    <p>View all your past investments in detail.</p>
    <div class="history-table-container">
      <table class="history-table">
        <thead>
          <tr>
            <th>Plan Name</th>
            <th>Amount Invested</th>
            <th>Start Date</th>
            <th>Maturity Date</th>
            <th>Status</th>
          </tr>
        </thead>
        <tbody>
          <?php
          // Example PHP: Replace this with actual data fetching from the database
          $history = [
            ['plan' => 'Fixed Deposit Plan', 'amount' => '$1,000', 'start_date' => '2023-01-01', 'maturity_date' => '2024-01-01', 'status' => 'Completed'],
            ['plan' => 'Savings Bonds', 'amount' => '$500', 'start_date' => '2023-06-01', 'maturity_date' => '2028-06-01', 'status' => 'In Progress'],
          ];
          foreach ($history as $entry) {
            echo "
            <tr>
              <td>{$entry['plan']}</td>
              <td>{$entry['amount']}</td>
              <td>{$entry['start_date']}</td>
              <td>{$entry['maturity_date']}</td>
              <td>{$entry['status']}</td>
            </tr>";
          }
          ?>
        </tbody>
      </table>
    </div>
  </section>
</div>


    <!-- Can't find end -->
</div>
<!-- Content end -->
<!-- Footer ============================================= -->
<?php include("includes/footer.php"); ?>
<!-- Footer end -->
</div>
<!-- Document Wrapper end -->
<!-- Back to Top ============================================= -->
<a id="back-to-top" data-bs-toggle="tooltip" title="Back to Top" href="javascript:void(0)"><i class="fa fa-chevron-up"></i></a>
<!-- Script -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Style Switcher -->
<script src="js/switcher.min.js"></script>
<script src="js/theme.js"></script>
</body>
</html>