<?php include ("header.php");?>

<div class="dashboard-body">
   <div class="d-flex justify-content-between mb-3 align-items-center dashboardBodyNav">
      <!---->
      <!--    <div class="dashboard-body__bar style ">-->
      <!--        <span class="dashboard-body__bar-two-icon toggle-dashboard-right"><i class="fas fa-bars"></i></span>-->
      <!--    </div>-->
      <!---->
   </div> 
   <h4 class="mb-4">My Dashboard</h4>
   <script src="https://cdn.jsdelivr.net/npm/chart.js" type="text/javascript"></script>
   <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" type="text/javascript"></script>
   <script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script>
   <style> 
      .round {
      width: 10px;
      height: 10px;
      font-size: 11px;
      font-weight: 600;
      padding-bottom: 1px;
      background: green;
      border-radius: 50%;
      opacity: 1;
      animation: blink 1s infinite;
      }
      @keyframes blink {
      0%, 100% {
      opacity: 1;
      }
      50% {
      opacity: 0;
      }
      }
      .stock-img{
      width: 20px;
      height: 20px;
      border-radius : 50%;
      margin-right: 5px;
      background-color: white!important;
      padding: 1px;
      }
      .nav-tabs .nav-link {
      display: flex;
      align-items: center;
      }
      .nav-tabs {
      flex-wrap: wrap;
      }
      @media (max-width: 576px) {
      .nav-tabs .nav-item {
      flex: 0 0 30%; /* Two items per row on small screens */
      max-width: 30%;
      }
      }
      @media (min-width: 576px) and (max-width: 768px) {
      .nav-tabs .nav-item {
      flex: 0 0 30%; /* Three items per row on medium screens */
      max-width:30%;
      }
      }
      .blurry-background {
      filter: blur(5px);
      }
      .alert-container {
      background-color: #000;
      border: 2px solid #04a8e0;
      border-radius: 10px;
      padding: 20px;
      color: #fff;
      font-size: 18px;
      margin: 0 auto;
      max-width: 400px;
      position: absolute;
      top: 50%; 
      left: 50%; 
      transform: translate(-50%, -50%);
      z-index: 99;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      }
      [data-theme=dark] .alert-container {
      background-color: #fff;
      color: #000;
      }
      @media (max-width: 576px) {
      .d-sm-block {
      display: block !important; 
      }
      }
      .alert-container p {
      margin: 0;
      }
      @media (min-width: 1200px) {
      .d-xl-none {
      display: block !important; 
      }
      }
      @media (min-width: 1399px) {
      .d-xl-none {
      display: none !important;
      }
      }
      @media (min-width: 1200px) {
      .d-xl-block {
      display: none !important; 
      }
      }
      @media (min-width: 1399px) {
      .d-xl-block {
      display: block !important;
      }
      }
      @media (min-width: 700px) {
      .nodesktop {
      display: none !important;
      }
      }
      @media (min-width: 1399px) {
      .hide--mobil{
      display: none !important;
      }
      }
   </style>
   <div class="row justify-content-center gy-4">
      <div class=" col-xxl-8 col-lg-12">
         <div class="row gy-3 hide--desktop">
             
       <?php if($kyc_status == "Pending"){?>   
            <div class="col-12 pt-0">
               <div class="alert-item 2fa-notice" id="verify">
                  <i class="delete-icon fas fa-solid fa-circle-xmark fa-lg"></i>
                  <div class="alert flex-align alert--danger remove-2fa-notice" role="alert">
                     <i class="fas fa-solid fa-triangle-exclamation alert--warning" style="color:#d39803;font-size: 30px;border: 0px !important;"></i>
                     <div class="alert__content d-flex justify-content-between">
                        <span class="alert__title">
                           <p class="alert-heading text--warning">Upload Documents</p>
                           We need your KYC Data for some action. Don't hesitate to provide KYC Data.
                        </span>
                        <a href="kyc-form" class="btn btn--primary btn-on w-20">Upload Document</a>
                     </div>
                  </div>
               </div>
            </div>
            <?php }?>
            
            <?php if($total_balance == 0){?>
            
            <div class="col-12 mt-0">
               <div class="alert-item 2fa-notice">
                  <i class="delete-icon fas fa-solid fa-circle-xmark fa-lg"></i>
                  <div class="alert flex-align alert--danger remove-2fa-notice" role="alert">
                     <span>
                     <i class="fas fa-solid fa-triangle-exclamation alert--warning" style="color:#d39803;font-size: 30px;border: 0px !important;"></i>
                     </span>
                     <div class="alert__content d-flex justify-content-between">
                        <span class="alert__title">
                           <p class="alert-heading text--warning">Empty Balance!</p>
                           Your balance is empty. Please make deposit for your next trade. Click on the deposit button.
                        </span>
                        <button class="btn btn--primary btn-on w-20 depositBtn">Deposit</button>
                     </div>
                  </div>
               </div>
            </div>
            
            <?php }?>
            
            <?php $total_pending = getTotalPendingDeposit($user_id, $conn); if($total_pending > 0){?>
            
           <!-- <div class="col-12 mt-0">
               <div class="alert-item 2fa-notice">
                  <i class="delete-icon fas fa-solid fa-circle-xmark fa-lg"></i>
                  <div class="alert flex-align alert--danger remove-2fa-notice" role="alert">
                     <span>
                     <i class="fas fa-solid fa-triangle-exclamation alert--warning" style="color:#d39803;font-size: 30px;border: 0px !important;"></i>
                     </span>
                     <div class="alert__content d-flex justify-content-between">
                        <span class="alert__title">
                           <p class="alert-heading text--warning">Deposit Pending!</p>
                            Total <?= $total_pending?> USD deposit request is pending. Please wait for admin approval.
                        </span>
                        <button class="btn btn--primary btn-on w-20 depositBtn">Deposit History</button>
                     </div>
                  </div>
               </div>
            </div>  -->
            
            <?php }?>
            
            <?php $notification = notification($user_id, $conn); if($notification){?>
            
            <div class="col-12 mt-0">
               <div class="alert-item 2fa-notice">
                  <i class="delete-icon fas fa-solid fa-circle-xmark fa-lg"></i>
                  <div class="alert flex-align alert--danger remove-2fa-notice" role="alert">
                     <span>
                     <i class="fas fa-solid fa-triangle-exclamation alert--warning" style="color:#d39803;font-size: 30px;border: 0px !important;"></i>
                     </span>
                     <div class="alert__content d-flex justify-content-between">
                        <span class="alert__title">
                           <p class="alert-heading text--warning"><?= $notification['message_title']?>!</p>
                            <?= $notification['message'];?> 
                        </span>
                     </div>
                  </div>
               </div>
            </div>
            
            <?php }?>
            <!---     --->
            <!---- 
            <div class="col-12 mt-0">
               <div class="alert-item 2fa-notice skeleton">
                   <i class="delete-icon skeleton fas fa-solid fa-circle-xmark fa-lg"></i>
                   <div class="alert flex-align alert--danger remove-2fa-notice" role="alert">
                       <span>
                           <i class="fas fa-solid fa-triangle-exclamation alert--warning" style="color:#d39803;font-size: 30px;border: 0px !important;"></i>
                       </span>
                       <div class="alert__content d-flex justify-content-between">
                           <span class="alert__title pt-3">
                               To secure your account add 2FA verification.
                           </span>
                           <a href="settings" class="btn btn--primary btn-on w-20">Enable 2FA</a>
                       </div>
                   </div>
               </div>
               </div>
               --->
         </div>
         <div class="row dashboard-card hide--mobil" style="background-color: #0000!important">
            <div class="right-sidebar mt-3 col-lg-6" id="overview_mobile">
               <div class="right-sidebar__header mb-3">
                  <div class="d-flex flex-between flex-wrap">
                     <div>
                        <h4 class="mb-0 fs-18">Balance Overview</h4>
                        <p class="mt-0 fs-12">Available  balance including the converted total balance</p>
                     </div>
                  </div>
               </div>
               <div _ngcontent-nsa-c94="" class="account-card full prime subtleBoxShadow">
                  <div class="d-flex justify-content-between align-items-right col-12">
                     <img src="assets/images/logoIcon/cornb.webp" width="20px">
                     <h5 class="fs-22 mb-0 pb-0">
                        USD
                     </h5>
                  </div>
                  <div>
                     <h6 class="dashboard-card__coin-title" style="font-weight: 300!important; font-size: 2.5rem!important;"> $<?php echo number_format($total_balance, 2); ?>  </h6>
                  </div>
                  <div class="d-flex">
                     <p class="label" style="font-weight: 300!important; font-size: 12px!important;"> Reg. Date: &nbsp;</p>
                     <small class="dashboard-card__coin-name mb-0" style="font-weight: 600!important; font-size: 14px!important;"> <?php echo formatdate($row['created_at']);?></small>
                  </div>
               </div>
               <div class="d-flex flex-wrap gap-2 mt-4">
                  <button type="button" class="btn btn--primary outline flex-fill btn--sm depositBtn">
                  <i class="fas fa-sort-up"></i> Deposit                            </button>
                  <button type="button" class="btn btn--primary outline flex-fill btn--sm withdrawBtn">
                  <i class="fas fa-sort-down"></i> Withdraw                            </button>
               </div>
            </div>
            <div class="col-lg-6 mt-3 d-none d-md-block d-lg-block d-xl-none">
               <div class="right-sidebar mt-3">
                  <div class="right-sidebar__header mb-3">
                     <div class="">
                        <div>
                           <h4 class="mb-0 fs-18">Loyalty Program</h4>
                           <p class="mt-0 fs-12">Deposit more to increase your Loyalty Rank</p>
                        </div>
                        <div class="hide__inner">
                           <hr>
                           <div class="d-flex justify-content-around align-items-right col-12">
                              <div class="dashboard-card__content">
                                 <i class="fa fa-award pt-1"></i>
                              </div>
                              <div class="dashboard-card__content">
                                 <span class="price__title">Current Loyalty Status
                                 </span>
                              </div>
                              <div class="dashboard-card__content d-flex justify-content-between pt-1" style="gap: 0.5rem!important;">
                                 <span class="price__title"><img src="assets/images/user_rankings/66a57bb6dca411722121142.png" alt="image" style="width: 20px; height: 20px;"></span>
                                 <span class="price__title">Iron</span>
                              </div>
                           </div>
                           <hr>
                           <div class="d-flex justify-content-around align-items-right col-12">
                              <div class="dashboard-card__content">
                                 <i class="fa fa-award pt-1"></i>
                              </div>
                              <div class="dashboard-card__content">
                                 <span class="price__title">Next Loyalty Status
                                 </span>
                              </div>
                              <div class="dashboard-card__content d-flex justify-content-between pt-1" style="gap: 0.5rem!important;">
                                 <span class="price__title"><img src="assets/images/user_rankings/66a57b3ceb0cc1722121020.png" alt="image" style="width: 20px; height: 20px;"></span>
                                 <span class="price__title">Bronze</span>
                              </div>
                           </div>
                           <hr>
                           <div class="col-md-12 mb-4 mt-4">
                              <div class="wallets__wrapper text-center">
                                 <div class="gy-4 align-items-center">
                                    <div>
                                       <div class="card__titlen h6">$0.00 / $5,000.00</div>
                                       <small class="wallets__info"><b>Deposit  $5,000.00   To next Loyalty Status</b></small>
                                    </div>
                                 </div>
                              </div>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
         </div>
         <div class="row gy-3 nodesktop hide--mobile">
            
            <?php if($kyc_status == "Pending"){?>  
            <div class="col-12 pt-0">
               <br>
               <div class="alert-item 2fa-notice" id="verify_mobile">
                  <i class="delete-icon fas fa-solid fa-circle-xmark fa-lg"></i>
                  <div class="alert flex-align alert--danger remove-2fa-notice" role="alert">
                     <div class="alert__content d-flex justify-content-between">
                        <span class="alert__title">
                           <p class="alert-heading text--warning">
                              <i class="fas fa-solid fa-triangle-exclamation alert--warning" style="color:#d39803;font-size: 17px;border: 0px !important;"></i>&nbsp;&nbsp; Upload Documents
                           </p>
                           We need your KYC Data for some action. Don't hesitate to provide KYC Data.
                        </span>
                        <a href="kyc-form" class="btn btn--primary btn-on w-20">Upload Document</a>
                     </div>
                  </div>
               </div>
            </div>
             <?php }?>
            
            <?php if($total_balance == 0){?>
            
            <div class="col-12 mt-0">
               <br>
               <div class="alert-item 2fa-notice">
                  <i class="delete-icon fas fa-solid fa-circle-xmark fa-lg"></i>
                  <div class="alert flex-align alert--danger remove-2fa-notice" role="alert">
                     <div class="alert__content d-flex justify-content-between">
                        <span class="alert__title">
                           <p class="alert-heading text--warning">
                              <i class="fas fa-solid fa-triangle-exclamation alert--warning" style="color:#d39803;font-size: 17px;border: 0px !important;"></i>&nbsp;&nbsp; Empty Balance!
                           </p>
                           Your balance is empty. Please make deposit for your next trade. Click on the deposit button.
                        </span>
                        <button class="btn btn--primary btn-on w-20 depositBtn">Deposit</button>
                     </div>
                  </div>
               </div>
            </div>
            
             <?php }?>
             
             <?php $total_pending = getTotalPendingDeposit($user_id, $conn); if($total_pending > 0){?>
            
            <div class="col-12 mt-0">
               <br>
               <div class="alert-item 2fa-notice">
                  <i class="delete-icon fas fa-solid fa-circle-xmark fa-lg"></i>
                  <div class="alert flex-align alert--danger remove-2fa-notice" role="alert">
                     <div class="alert__content d-flex justify-content-between">
                        <span class="alert__title">
                           <p class="alert-heading text--warning">
                              <i class="fas fa-solid fa-triangle-exclamation alert--warning" style="color:#d39803;font-size: 17px;border: 0px !important;"></i>&nbsp;&nbsp;Deposit Pending!</p>
                            Total <?= $total_pending?> USD deposit request is pending. Please wait for admin approval.
                        </span>
                        <a href="deposit-history" class="btn btn--primary btn-on w-20 depositBtn">Deposit History</a>
                     </div>
                  </div>
               </div>
            </div>
            
            <?php }?>
            
           
           
         </div>
         <div class="dashboard-card-wrapper pt-2">
            <div class="d-none d-sm-block d-xl-block">
            <br>
            <div class="row gy-4 mb-3 justify-content-center">
                <div class="col-xxl-3 col-sm-6">
                    <div class="dashboard-card">
                        <div class="d-flex justify-content-between align-items-center">
                            <span class="dashboard-card__icon text--base">
                                <i class="fas fa-solid fas fa-money-check-alt"></i>
                            </span>
                            <div class="dashboard-card__content">
                                <p class="dashboard-card__coin-name mb-0">
                                    Total Deposit
                                </p>
                                <h6 class="dashboard-card__coin-title"> $<?php echo number_format($total_deposit, 2); ?> </h6>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xxl-3 col-sm-6">
                    <div class="dashboard-card">
                        <div class="d-flex justify-content-between align-items-center">
                            <span class="dashboard-card__icon text--base">
                                <i class="fas fa-solid fa-check-to-slot"></i>
                            </span>
                            <div class="dashboard-card__content">
                                <p class="dashboard-card__coin-name mb-0">
                                    Total Withdraw
                                </p>
                                <h6 class="dashboard-card__coin-title"> $<?php echo number_format($total_withdraw, 2); ?> </h6>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xxl-3 col-sm-6">
                    <div class="dashboard-card">
                        <div class="d-flex justify-content-between align-items-center">
                            <span class="dashboard-card__icon text--base">
                                <i class="fas fa-solid fas fa-chart-area"></i>
                            </span>
                            <div class="dashboard-card__content">
                                <p class="dashboard-card__coin-name mb-0">Total Trade</p>
                                <h6 class="dashboard-card__coin-title"> <?php echo $total_trades; ?> </h6>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xxl-3 col-sm-6">
                    <div class="dashboard-card">
                        <div class="d-flex justify-content-between align-items-center">
                            <span class="dashboard-card__icon text--base">
                                <i class="fas fa-solid fas fa-chart-line"></i>
                            </span>
                            <div class="dashboard-card__content">
                                <p class="dashboard-card__coin-name mb-0">
                                    Total Profit
                                </p>
                                <h6 class="dashboard-card__coin-title"> $<?php echo number_format($total_profit, 2); ?> </h6>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

            <div class="row mb-3 justify-content-around">
               <div class=" row col-xxl-3 col-sm-6">
                  <div class="mt-5 d-none d-md-block d-lg-block d-xl-none">
                     <div class="row gy-4 mb-3 justify-content-center">
                        <div class="col-xxl-3 col-sm-6">
                           <div class="dashboard-card">
                              <div class="d-flex justify-content-between align-items-center">
                                 <span class="dashboard-card__icon text--base">
                                 <i class="fas fa-solid fas fa-money-check-alt"></i>
                                 </span>
                                 <div class="dashboard-card__content">
                                    <p class="dashboard-card__coin-name mb-0 ">
                                       Total Deposit
                                    </p>
                                    <h6 class="dashboard-card__coin-title"> $<?php echo number_format($total_deposit, 2); ?> </h6>
                                 </div>
                              </div>
                           </div>
                        </div>
                        <div class="col-xxl-3 col-sm-6">
                           <div class="dashboard-card">
                              <div class="d-flex justify-content-between align-items-center">
                                 <span class="dashboard-card__icon text--base">
                                 <i class="fas fa-solid fa-check-to-slot"></i>
                                 </span>
                                 <div class="dashboard-card__content">
                                    <p class="dashboard-card__coin-name mb-0">
                                       Total Withdraw 
                                    </p>
                                    <h6 class="dashboard-card__coin-title"> $<?php echo number_format($total_withdraw, 2); ?>
                                    </h6>
                                 </div>
                              </div>
                           </div>
                        </div>
                        <div class="col-xxl-3 col-sm-6">
                           <div class="dashboard-card">
                              <div class="d-flex justify-content-between align-items-center">
                                 <span class="dashboard-card__icon text--base">
                                 <i class="fas fa-solid fas fa-chart-area"></i>
                                 </span>
                                 <div class="dashboard-card__content">
                                    <p class="dashboard-card__coin-name mb-0">Total Trade 
                                    </p>
                                    <h6 class="dashboard-card__coin-title"> <?php echo $total_trades; ?> </h6>
                                 </div>
                              </div>
                           </div>
                        </div>
                        <div class="col-xxl-3 col-sm-6">
                           <div class="dashboard-card">
                              <div class="d-flex justify-content-between align-items-center">
                                 <span class="dashboard-card__icon text--base">
                                 <i class="fas fa-solid fas fa-chart-line"></i>
                                 </span>
                                 <div class="dashboard-card__content">
                                    <p class="dashboard-card__coin-name mb-0 ">
                                       Total Profit 
                                    </p>
                                    <h6 class="dashboard-card__coin-title"> $<?php echo number_format($total_profit, 2); ?>
                                    </h6>
                                 </div>
                              </div>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
               <div class="dashboard-card row hide--mobile col-xxl-3 col-sm-6 d-none d-sm-block d-md-none">
                  <div class="right-sidebar mt-3">
                     <div class="right-sidebar__header mb-3">
                        <div class="">
                           <div>
                              <h4 class="mb-0 fs-18">Loyalty Program</h4>
                              <p class="mt-0 fs-12">Deposit more to increase your Loyalty Rank</p>
                           </div>
                           <div class="hide__inner">
                              <hr>
                              <div class="d-flex justify-content-around align-items-right col-12">
                                 <div class="dashboard-card__content">
                                    <i class="fa fa-award pt-1"></i>
                                 </div>
                                 <div class="dashboard-card__content">
                                    <span class="price__title">Current Loyalty Status
                                    </span>
                                 </div>
                                 <div class="dashboard-card__content d-flex justify-content-between pt-1" style="gap: 0.5rem!important;">
                                    <span class="price__title"><img src="assets/images/user_rankings/66a57bb6dca411722121142.png" alt="image" style="width: 20px; height: 20px;"></span>
                                    <span class="price__title">Iron</span>
                                 </div>
                              </div>
                              <hr>
                              <div class="d-flex justify-content-around align-items-right col-12">
                                 <div class="dashboard-card__content">
                                    <i class="fa fa-award pt-1"></i>
                                 </div>
                                 <div class="dashboard-card__content">
                                    <span class="price__title">Next Loyalty Status
                                    </span>
                                 </div>
                                 <div class="dashboard-card__content d-flex justify-content-between pt-1" style="gap: 0.5rem!important;">
                                    <span class="price__title"><img src="assets/images/user_rankings/66a57b3ceb0cc1722121020.png" alt="image" style="width: 20px; height: 20px;"></span>
                                    <span class="price__title">Bronze</span>
                                 </div>
                              </div>
                              <hr>
                              <div class="col-md-12 mb-4 mt-4">
                                 <div class="wallets__wrapper text-center">
                                    <div class="gy-4 align-items-center">
                                       <div>
                                          <div class="card__titlen h6">$0.00 / $5,000.00</div>
                                          <small class="wallets__info"><b>Deposit  $5,000.00   To next Loyalty Status</b></small>
                                       </div>
                                    </div>
                                 </div>
                              </div>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
               <div class="dashboard-card row hide--mobil col-xxl-3 col-sm-6" style="background-color: #0000!important; position: relative!important;">
                  <div class="right-sidebar mt-3">
                     <div class="alert-container">
                        <p>Start copying a Trader to View more stats</p>
                     </div>
                     <div class="right-sidebar__header mb-3">
                        <div class="blurry-background">
                           <div>
                              <h4 class="mb-0 fs-18">Your Expert Trader</h4>
                              <p class="mt-0 fs-12">you are copying Trades from your Trader</p>
                           </div>
                           <div class="p-4">
                              <div class="dashboard-card__content">
                                 <div class="text-center">
                                 </div>
                                 <div class="text-center">
                                 </div>
                              </div>
                           </div>
                           <hr>
                           <div>
                              <div class="d-flex justify-content-around align-items-right col-12">
                                 <div class="dashboard-card__content">
                                    <p class="dashboard-card__coin-name mb-0 ">
                                       <span class="price__title text-success switch h6">
                                       50% 
                                       <small class="alert__title text--small h6">Avg. Gain</small>
                                       </span>
                                    </p>
                                 </div>
                                 <div class="dashboard-card__content">
                                    <span class="text--base switch h6">500
                                    <small class="alert__title text--small h6">Trades</small>
                                    </span>
                                 </div>
                                 <div class="dashboard-card__content">
                                    <span class="price__title text-success switch h6">700
                                    <small class="alert__title text--small h6" style="display: block;">No. Copiers</small></span>
                                 </div>
                              </div>
                              <hr>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
            <div class="cardo" id="copytrading">
               <div class="d-flex justify-content-between pb-4">
                  <h4 class="mb-0 fs-18 p-1 mb-2">&nbsp; Copy Trading</h4>
                  <a href="trader" type="button" class="w-30 right-sidebar__button">
                  <span class="right-sidebar__button-icon">
                  <i class="las la-chevron-circle-down"></i> &nbsp; More Traders&nbsp;
                  </span>
                  </a>
               </div>
                
               <div class="row gy-4 justify-content-center">
                
                      <?php
                     // Fetch all trader data
                     $sql = "
                         SELECT 
                             name AS trader_name,
                             username AS trader_username,
                             gain_percentage,
                             risk_level,
                             trades,
                             investment_capital,
                             copiers,
                             avatar,
                             avg_trade_time,
                             id
                         FROM traders LIMIT 3";
                         
                     $result = $conn->query($sql);
                     ?>
                  <?php while ($trader = $result->fetch_assoc()): ?>
                  <div class="col-xxl-3 col-sm-6">
                     <div class="dashboard-cardo">
                        <div class="d-flex justify-content-between align-items-center">
                           <div class="dashboard-card__content">
                              <p class="dashboard-card__coin-titl d-flex justify-content-between">
                                 <span><?php echo $trader['trader_name']; ?></span>
                                 <span>
                                 <img src="assets/images/user_rankings/66928c5d723ca1720880221.png" alt="image" style="width: 20px; height: 20px; margin-top: 5px; margin-left: 4px;">
                                 </span>
                              </p>
                              <a class="text--base text--small" href="trader/profile/<?php echo $trader['trader_username']; ?>">
                              <span>@</span><?php echo $trader['trader_username']; ?>
                              </a>
                           </div>
                           <div class="dashboard-card__content">
                              <div class="text-center">
                                 <img class="user-img" src="assets/images/currency/<?php echo $trader['avatar']; ?>">
                              </div>
                           </div>
                        </div>
                        <hr>
                        <div class="tab-content mt-2">
                           <div class="tab-pane fade show active d-flex d-xl-block flex-wrap gap-2">
                              <div class="trading-left__buy flex-fill">
                                 <div class="trading-left__header flex-between sell-side-order-list-header">
                                    <span class="price__title text-success switch">
                                    <?php echo $trader['gain_percentage']; ?>%
                                    <small class="alert__title text--smaller">Gain</small>
                                    </span>
                                    <span class="amount__title switch">
                                       <p class="just-center self-center risk-indicator circled low"><?php echo $trader['risk_level']; ?></p>
                                       <small class="alert__title text--smaller">Risk</small>
                                    </span>
                                    <span class="total__title switch">
                                    <?php echo number_format($trader['trades']); ?>
                                    <small class="alert__title text--smaller">Trades</small>
                                    </span>
                                    <span class="total__title switch">
                                    $<?php echo number_format($trader['investment_capital']); ?>
                                    <small class="alert__title text--smaller">Inv. Capital</small>
                                    </span>
                                 </div>
                                 <div class="sell-side-order-list"></div>
                              </div>
                           </div>
                        </div>
                        <div class="d-flex justify-content-between align-items-center mt-3">
                           <div class="dashboard-card__content">
                              <p class="price__title text--small"><?php echo $trader['copiers']; ?> Copiers</p>
                           </div>
                           <div class="dashboard-card__content">
                              <button class="deposit__button btn btn--base w-100" style="padding: 10px 40px!important; font-size: 0.90rem;" data-toggle="modal" data-target="#copyModal<?php echo $trader['trader_username']; ?>">
                              Copy
                              </button>
                           </div>
                        </div>
                     </div>
                  </div>
                  <!-- Modal Structure for Each Trader -->
                  <div class="modal fade" id="copyModal<?php echo $trader['trader_username']; ?>" role="dialog">
                     <div class="modal-dialog modal-dialog-centered">
                        <div class="modal-content">
                           <div class="modal-header">
                              <h5 class="modal-title" id="exampleModalLongTitle">Copy <?php echo $trader['trader_name']; ?>'s Trade</h5>
                              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                              <span aria-hidden="true">&times;</span>
                              </button>
                           </div>
                           <div class="modal-body" style="background-color: #05212a;">
                              <div class="hide--desktop row dashboard-card col-xxl-12 col-md-12" style="margin-left: 0px;">
                                 <div class="row d-flex" style="margin-left: 0px;">
                                    <div class="d-flex justify-content-between align-items-center col-6 mt-4">
                                       <span class="dashboard-card__icon text--success">
                                          <div class="dashboard-card__content">
                                             <div class="text-center">
                                                <img class="user-img-modal" src="assets/images/currency/<?php echo $trader['avatar']; ?>">
                                             </div>
                                             <div class="d-flex justify-content-flex-end">
                                                <img class="flag-img-modal" src="assets/images/language/64aa848532bab1688896645.png">
                                             </div>
                                          </div>
                                       </span>
                                       <span class="m-2"></span>
                                       <span class="dashboard-card__coin-titl switch">
                                          <div class="d-flex justify-content-between">
                                             <span><?php echo $trader['trader_name']; ?> </span>  <span><img src="assets/images/user_rankings/64f904f19bf161694041329.png" alt="image" style="width: 20px; height: 20px; margin-top: 5px; margin-left: 4px;"> </span>
                                          </div>
                                          <p class="text--base text--small"><span>@</span><?php echo $trader['trader_username']; ?></p>
                                       </span>
                                    </div>
                                    <div class="d-flex justify-content-between align-items-right col-6">
                                       <div class="dashboard-card__content">
                                          <p class="dashboard-card__coin-name mb-0 ">
                                             <span class="price__title text-success switch fs-15">
                                             <?php echo $trader['gain_percentage']; ?>%
                                             <small class="alert__title text--small">Gain</small>
                                             </span>
                                       </div>
                                       <div class="dashboard-card__content">
                                          <span class="text--base text--small switch fs-15"> <?php echo number_format($trader['trades']); ?>
                                          <small class="alert__title text--small">Trades</small>
                                          </span>
                                       </div>
                                       <div class="dashboard-card__content">
                                          <span class="amount__title switch">
                                             <p class="price__title just-center self-center fs-15"> $<?php echo number_format($trader['investment_capital']); ?></p>
                                             <small class="alert__title text--small" style="display: block;">Inv. Capital</small>
                                          </span>
                                       </div>
                                    </div>
                                 </div>
                                 <div class="row d-flex" style="margin-left: 0px;">
                                    <div class="d-flex justify-content-between align-items-center col-6">
                                       <span class="dashboard-card__icon text--success">
                                          <div class="dashboard-card__content">
                                          </div>
                                       </span>
                                    </div>
                                    <div class="d-flex justify-content-between align-items-right col-6">
                                       <div class="dashboard-card__content">
                                          <span class="amount__title switch d-flex">
                                             <div>
                                                <p class="just-center self-center risk-indicator circled low"><?php echo $trader['risk_level']; ?></p>
                                             </div>
                                             <div>
                                                <small class="alert__title text--smaller" style="display: block;">Risk rate</small>
                                             </div>
                                          </span>
                                       </div>
                                       <div class="dashboard-card__content">
                                          <p class="dashboard-card__coin-name mb-0 ">
                                             <span class="price__title text-success switch fs-15">
                                             <?php echo $trader['copiers']; ?>
                                             <small class="alert__title text--smaller">No. Copiers</small>
                                             </span>
                                       </div>
                                       <div class="dashboard-card__content">
                                          <span class="total__title text--base switch"><?php echo $trader['avg_trade_time']; ?> Days
                                          <small class="alert__title text--smaller">Avg. Trade Time</small>
                                          </span>
                                       </div>
                                    </div>
                                 </div>
                              </div>
                              <div class="hide--mobile row dashboard-card col-xxl-12 col-md-12" style="margin-left: 0px;">
                                 <div class="row d-flex" style="margin-left: 0px;">
                                    <div class="d-flex justify-content-between align-items-center col-12 mt-4">
                                       <span class="dashboard-card__icon text--success">
                                          <div class="dashboard-card__content">
                                             <div class="text-center">
                                                <img class="user-img-modal" src="assets/images/currency/<?php echo $trader['avatar']; ?>">
                                             </div>
                                             <div class="d-flex justify-content-flex-end">
                                                <img class="flag-img-modal" src="assets/images/language/64aa848532bab1688896645.png">
                                             </div>
                                          </div>
                                       </span>
                                       <span class="m-2"></span>
                                       <span class="dashboard-card__coin-titl switch">
                                          <div class="d-flex justify-content-between">
                                             <span><?php echo $trader['trader_name']; ?> </span>  <span><img src="assets/images/user_rankings/64f904f19bf161694041329.png" alt="image" style="width: 20px; height: 20px; margin-top: 5px; margin-left: 4px;"> </span>
                                          </div>
                                          <p class="text--base text--small"><span>@</span><?php echo $trader['trader_username']; ?></p>
                                       </span>
                                    </div>
                                    <div class="mt-5 d-flex justify-content-between align-items-right col-12">
                                       <div class="dashboard-card__content">
                                          <p class="dashboard-card__coin-name mb-0 ">
                                             <span class="price__title text-success switch fs-15">
                                             <?php echo $trader['gain_percentage']; ?>%
                                             <small class="alert__title text--small">Gain</small>
                                             </span>
                                       </div>
                                       <div class="dashboard-card__content">
                                          <span class="text--base text--small switch fs-15"><?php echo number_format($trader['trades']); ?>
                                          <small class="alert__title text--small">Trades</small>
                                          </span>
                                       </div>
                                       <div class="dashboard-card__content">
                                          <span class="amount__title switch">
                                             <p class="price__title just-center self-center fs-15"> $<?php echo number_format($trader['investment_capital']); ?></p>
                                             <small class="alert__title text--small" style="display: block;">Inv. Capital</small>
                                          </span>
                                       </div>
                                    </div>
                                 </div>
                                 <div class="row d-flex" style="margin-left: 0px;">
                                    <div class="d-flex justify-content-between align-items-right col-12">
                                       <div class="dashboard-card__content">
                                          <span class="amount__title switch d-flex">
                                             <div>
                                                <p class="just-center self-center risk-indicator circled low"><?php echo $trader['risk_level']; ?></p>
                                             </div>
                                             <div>
                                                <small class="alert__title text--smaller" style="display: block;">Risk rate</small>
                                             </div>
                                          </span>
                                       </div>
                                       <div class="dashboard-card__content">
                                          <p class="dashboard-card__coin-name mb-0 ">
                                             <span class="price__title text-success switch fs-15">
                                             <?php echo $trader['copiers']; ?>
                                             <small class="alert__title text--smaller">No. Copiers</small>
                                             </span>
                                       </div>
                                       <div class="dashboard-card__content">
                                          <span class="total__title text--base switch"><?php echo $trader['avg_trade_time']; ?> Days
                                          <small class="alert__title text--smaller">Avg. Trade Time</small>
                                          </span>
                                       </div>
                                    </div>
                                 </div>
                              </div>
                           </div>
                           <div class="modal-body">
                              <form method="POST" id="copyForm<?php echo $trader['id']; ?>">
                              <input type="hidden" name="trader_id" value="<?php echo $trader['id']; ?>">
                              <div class="containero">
                                 <!-- Amount input section (optional) -->
                                 <div class="amount-input d-none">
                                    <button type="button" onclick="decreaseAmount<?php echo $trader['id']; ?>()">-</button>
                                    <input type="text" name="investment_amount" id="amount<?php echo $trader['id']; ?>" value="<?=$trader['investment_capital']?>" oninput="updateAmountMessage<?php echo $trader['id']; ?>()">
                                    <button type="button" onclick="increaseAmount<?php echo $trader['id']; ?>()">+</button>
                                 </div>

                                 <small>Total Balance: <span style="font-weight: 600;">$<?=number_format($total_balance,2)?> USD</span></small>

                                 <div class="info"><div>10% commission fee on earning</div></div>
                                 <div class="warning" id="amountMessage<?php echo $trader['id']; ?>">Pay $<?php echo number_format($trader['investment_capital']); ?> in order to continue</div>

                                 <button type="button" class="deposit-btn" onclick="submitCopyForm<?php echo $trader['id']; ?>()">DEPOSIT</button>

                                 <div class="copy-trades">
                                    <div>Open trades will be copied from the Leader under the current market conditions and rates of the assets.</div>
                                 </div>
                              </div>
                           </form>

                           <script>
                              function submitCopyForm<?php echo $trader['id']; ?>() {
                                 const form = $("#copyForm<?php echo $trader['id']; ?>");
                                 const formData = form.serialize(); // serialize form data

                                 $.ajax({
                                    url: "processor.php?copytrader", // Your PHP backend script
                                    method: "POST",
                                    data: formData + "&copy=1", // Add action identifier
                                    success: function(response) {
                                          try {
                                             const res = JSON.parse(response);
                                             if (res.status === "success") {
                                                alert(res.message);
                                                window.location.href = "dashboard.php";
                                             } else {
                                                alert(res.message || "An error occurred.");
                                             }
                                          } catch (e) {
                                             console.error("Invalid JSON response", response);
                                             alert("Unexpected server response.");
                                          }
                                    },
                                    error: function(xhr) {
                                          alert("AJAX request failed: " + xhr.statusText);
                                    }
                                 });
                              }
                              </script>
                          
                              
                              <script type="4d45ef26de46de20206471d1-text/javascript">
                                 let originalAmount<?php echo $trader['id']; ?> = <?=$trader['investment_capital']?>;
                                     
                                 function decreaseAmount<?php echo $trader['id']; ?>() {
                                     
                                     let amount = parseInt(document.getElementById('amount<?php echo $trader['id']; ?>').value);
                                     
                                     if (amount > originalAmount<?php echo $trader['id']; ?>) {
                                         document.getElementById('amount<?php echo $trader['id']; ?>').value = amount - 50;
                                         updateAmountMessage<?php echo $trader['id']; ?>();
                                     }
                                     
                                     toggleDecreaseButton<?php echo $trader['id']; ?>();
                                 }
                                 
                                     function increaseAmount<?php echo $trader['id']; ?>() {
                                         let amount = parseInt(document.getElementById('amount<?php echo $trader['id']; ?>').value);
                                         document.getElementById('amount<?php echo $trader['id']; ?>').value = amount + 50;
                                         updateAmountMessage<?php echo $trader['id']; ?>();
                                     }
                                 
                                     function updateAmountMessage<?php echo $trader['id']; ?>() {
                                         let amount = parseInt(document.getElementById('amount<?php echo $trader['id']; ?>').value);
                                         document.getElementById('amountMessage<?php echo $trader['id']; ?>').innerText = `Deposit $${amount.toFixed(2)}, in order to continue`;
                                     }
                                     
                                 
                                     function toggleDecreaseButton<?php echo $trader['id']; ?>() {
                                     let amount = parseInt(document.getElementById('amount<?php echo $trader['id']; ?>').value);
                                     document.getElementById('decrease<?php echo $trader['id']; ?>').disabled = amount <= originalAmount<?php echo $trader['id']; ?>;
                                     }
                                 
                                     toggleDecreaseButton<?php echo $trader['id']; ?>();
                                 
                              </script>
                           </div>
                           <div class="modal-footer">
                              <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                           </div>
                        </div>
                     </div>
                  </div>
                  <?php endwhile; ?>
                  
                  
               </div>
            </div>
            <div class="row gy-4 mb-3">
               <div class="col-lg-6">
                  <div class="transection h-100">
                     <h5 class="transection__title"> Recent Trades </h5>
                     <!-- <div class="transection__item justify-content-center p-5">
                        <div class="empty-thumb text-center">
                           <img src="assets/images/extra_images/empty.png">
                           <p class="fs-14">No order found</p>
                        </div>
                     </div> -->
                     <?php
                        $query = "SELECT * FROM demo_trades WHERE user_id = ? ORDER BY created_at DESC LIMIT 5";
                        $stmt = $conn->prepare($query);
                        $stmt->bind_param('i', $user_id);
                        $stmt->execute();
                        $result = $stmt->get_result();
                        $trades = $result->fetch_all(MYSQLI_ASSOC);

                        if (count($trades) === 0): ?>
                           <div class="transection__item justify-content-center p-5">
                              <div class="empty-thumb text-center">
                                    <img src="assets/images/extra_images/empty.png">
                                    <p class="fs-14">No order found</p>
                              </div>
                           </div>
                        <?php else: ?>
                           <div class="transection__item p-4">
                              <table width="100%">
                                    <tbody>
                                    <?php foreach ($trades as $trade): ?>
                                       <tr class="trade-info mb-3">
                                          <td class="trade-icon">
                                                <img width="30" height="30" src="assets/images/stocks/<?= htmlspecialchars($trade['image']) ?>" style="border-radius: 50%; background-color: white;" alt="icon">
                                                <span class="account-type">&nbsp; <?= htmlspecialchars($trade['symbol']) ?></span>
                                          </td>
                                          <td class="align-left">
                                                <span style="color: <?= $trade['trade_side'] == 1 ? 'green' : 'red' ?>;">
                                                   <i class="fa fa-arrow-<?= $trade['trade_side'] == 1 ? 'up' : 'down' ?>"></i>
                                                </span>
                                          </td>
                                          <td class="align-left">
                                                <span class="account-type"><?= ucfirst($trade['account']) ?> Trade</span>
                                          </td>
                                          <td class="align-left">
                                                <span class="account-type">$<?= number_format($trade['amount'], 2) ?></span>
                                          </td>
                                          <td class="trade-result account-type" id="trade-result-<?= $trade['id'] ?>">
                                                <span class="countdown" id="countdown-<?= $trade['id'] ?>">
                                                   <!-- <span class="spinner-border spinner-border-sm"></span> -->
                                                </span>
                                          </td>
                                       </tr>
                                    <?php endforeach; ?>
                                    </tbody>
                              </table>
                           </div>
                        <?php endif; ?>

                  </div>
               </div>
               <div class="col-lg-6">
                  <div class="transection h-100">
                     <h5 class="transection__title"> Recent Transactions </h5>
                     <!-- <div class="transection__item justify-content-center p-5">
                        <div class="empty-thumb text-center">
                           <img src="assets/images/extra_images/empty.png">
                           <p class="fs-14">No transactions found</p>
                        </div>
                     </div> -->
                     <?php
                        $query = "SELECT `amount`, `gateway`, `type`, `status`, `created_at` FROM `transactions` WHERE user_id = ? ORDER BY created_at DESC LIMIT 5";
                        $stmt = $conn->prepare($query);
                        $stmt->bind_param('i', $user_id);
                        $stmt->execute();
                        $result = $stmt->get_result();
                        $transactions = $result->fetch_all(MYSQLI_ASSOC);

                        if (count($transactions) === 0): ?>
                           <div class="transection__item justify-content-center p-5">
                              <div class="empty-thumb text-center">
                                    <img src="assets/images/extra_images/empty.png">
                                    <p class="fs-14">No transactions found</p>
                              </div>
                           </div>
                        <?php else: ?>
                           <div class="transection__item p-4">
                              <table width="100%">
                                    <thead>
                                       <tr>
                                          <th>Amount</th>
                                          <th>Gateway</th>
                                          <th>Status</th>
                                          <th>Date</th>
                                       </tr>
                                    </thead>
                                    <tbody>
                                    <?php foreach ($transactions as $txn): ?>
                                       <tr class="mb-2">
                                          <td>$<?= number_format($txn['amount'], 2) ?></td>
                                          <td><?= ucfirst($txn['gateway']) ?></td>
                                          <td>
                                                <?php if ($txn['status'] == 'Completed'): ?>
                                                   <span class="badge badge-success">Completed</span>
                                                <?php elseif ($txn['status'] == 'Pending'): ?>
                                                   <span class="badge badge-warning">Pending</span>
                                                <?php else: ?>
                                                   <span class="badge badge-secondary"><?= ucfirst($txn['status']) ?></span>
                                                <?php endif; ?>
                                          </td>
                                          <td><?= date('M d, Y H:i', strtotime($txn['created_at'])) ?></td>
                                       </tr>
                                    <?php endforeach; ?>
                                    </tbody>
                              </table>
                           </div>
                        <?php endif; ?>

                  </div>
               </div>
               <div class="col-lg-12">
                  <div class=" mt-2">
                     <ul class="transection nav nav-tabs" id="stockTabs" role="tablist">
                        <li class="nav-item">
                           <a class="nav-link active" id="tab-AAPL" data-toggle="tab" href="#content-AAPL" role="tab" aria-controls="content-AAPL" aria-selected="true">
                           <img src="assets/images/stocks/aapl.png" alt="Apple" class="stock-img"> AAPL
                           </a>
                        </li>
                        <li class="nav-item">
                           <a class="nav-link " id="tab-MSFT" data-toggle="tab" href="#content-MSFT" role="tab" aria-controls="content-MSFT" aria-selected="false">
                           <img src="assets/images/stocks/microsoft.png" alt="Microsoft" class="stock-img"> MSFT
                           </a>
                        </li>
                        <li class="nav-item">
                           <a class="nav-link " id="tab-GOOGL" data-toggle="tab" href="#content-GOOGL" role="tab" aria-controls="content-GOOGL" aria-selected="false">
                           <img src="assets/images/stocks/googl.png" alt="Alphabet" class="stock-img"> GOOGL
                           </a>
                        </li>
                        <li class="nav-item">
                           <a class="nav-link " id="tab-AMZN" data-toggle="tab" href="#content-AMZN" role="tab" aria-controls="content-AMZN" aria-selected="false">
                           <img src="assets/images/stocks/amazon.png" alt="Amazon" class="stock-img"> AMZN
                           </a>
                        </li>
                        <li class="nav-item">
                           <a class="nav-link " id="tab-TSLA" data-toggle="tab" href="#content-TSLA" role="tab" aria-controls="content-TSLA" aria-selected="false">
                           <img src="assets/images/stocks/tesla.png" alt="Tesla" class="stock-img"> TSLA
                           </a>
                        </li>
                        <li class="nav-item">
                           <a class="nav-link " id="tab-FB" data-toggle="tab" href="#content-FB" role="tab" aria-controls="content-FB" aria-selected="false">
                           <img src="assets/images/stocks/meta.png" alt="Meta Platforms" class="stock-img"> FB
                           </a>
                        </li>
                        <li class="nav-item">
                           <a class="nav-link " id="tab-NVDA" data-toggle="tab" href="#content-NVDA" role="tab" aria-controls="content-NVDA" aria-selected="false">
                           <img src="assets/images/stocks/nvda.png" alt="NVIDIA" class="stock-img"> NVDA
                           </a>
                        </li>
                     </ul>
                     <div class="tab-content" id="stockTabContent">
                        <div class="tab-pane fade show active" id="content-AAPL" role="tabpanel" aria-labelledby="tab-AAPL">
                           <div class="transection h-200">
                              <div class="tradingview-widget-container">
                                 <div id="tradingview_AAPL_dark" class="dark-tradingview">
                                    <div id="tradingview_29a94-wrapper" style="position: relative; box-sizing: content-box; font-family: -apple-system, BlinkMacSystemFont, &quot;Trebuchet MS&quot;, Roboto, Ubuntu, sans-serif; margin: 0px auto !important; padding: 0px !important; width: 100%; height: 450px;"><iframe title="advanced chart TradingView widget" lang="en" id="tradingview_29a94" frameborder="0" allowtransparency="true" scrolling="no" allowfullscreen="true" src="https://s.tradingview.com/widgetembed/?hideideas=1&amp;overrides=%7B%7D&amp;enabled_features=%5B%5D&amp;disabled_features=%5B%5D&amp;locale=en#%7B%22symbol%22%3A%22NASDAQ%3AAAPL%22%2C%22frameElementId%22%3A%22tradingview_29a94%22%2C%22interval%22%3A%22D%22%2C%22allow_symbol_change%22%3A%220%22%2C%22save_image%22%3A%221%22%2C%22studies%22%3A%22%5B%5D%22%2C%22theme%22%3A%22light%22%2C%22style%22%3A%221%22%2C%22timezone%22%3A%22Etc%2FUTC%22%2C%22studies_overrides%22%3A%22%7B%7D%22%2C%22utm_source%22%3A%22expcopytrading.com%22%2C%22utm_medium%22%3A%22widget%22%2C%22utm_campaign%22%3A%22chart%22%2C%22utm_term%22%3A%22NASDAQ%3AAAPL%22%2C%22page-uri%22%3A%22expcopytrading.com%2Fapp%2Fuser%2Fdashboard%22%7D" style="width: 100%; height: 100%; margin: 0px !important; padding: 0px !important;"></iframe></div>
                                 </div>
                                 <div id="tradingview_AAPL_light" class="light-tradingview">
                                    <div id="tradingview_f6ff7-wrapper" style="position: relative; box-sizing: content-box; font-family: -apple-system, BlinkMacSystemFont, &quot;Trebuchet MS&quot;, Roboto, Ubuntu, sans-serif; margin: 0px auto !important; padding: 0px !important; width: 100%; height: 450px;"><iframe title="advanced chart TradingView widget" lang="en" id="tradingview_f6ff7" frameborder="0" allowtransparency="true" scrolling="no" allowfullscreen="true" src="https://s.tradingview.com/widgetembed/?hideideas=1&amp;overrides=%7B%7D&amp;enabled_features=%5B%5D&amp;disabled_features=%5B%5D&amp;locale=en#%7B%22symbol%22%3A%22NASDAQ%3AAAPL%22%2C%22frameElementId%22%3A%22tradingview_f6ff7%22%2C%22interval%22%3A%22D%22%2C%22allow_symbol_change%22%3A%220%22%2C%22save_image%22%3A%221%22%2C%22studies%22%3A%22%5B%5D%22%2C%22theme%22%3A%22dark%22%2C%22style%22%3A%221%22%2C%22timezone%22%3A%22Etc%2FUTC%22%2C%22studies_overrides%22%3A%22%7B%7D%22%2C%22utm_source%22%3A%22expcopytrading.com%22%2C%22utm_medium%22%3A%22widget%22%2C%22utm_campaign%22%3A%22chart%22%2C%22utm_term%22%3A%22NASDAQ%3AAAPL%22%2C%22page-uri%22%3A%22expcopytrading.com%2Fapp%2Fuser%2Fdashboard%22%7D" style="width: 100%; height: 100%; margin: 0px !important; padding: 0px !important;"></iframe></div>
                                 </div>
                                 <script type="text/javascript">
                                    new TradingView.widget({
                                      "width": "100%",
                                      "height": 450,
                                      "symbol": "NASDAQ:AAPL",
                                      "interval": "D",
                                      "timezone": "Etc/UTC",
                                      "theme": "light",
                                      "style": "1",
                                      "locale": "en",
                                      "enable_publishing": false,
                                      "allow_symbol_change": false,
                                      "container_id": "tradingview_AAPL_dark"
                                    });
                                    new TradingView.widget({
                                      "width": "100%",
                                      "height": 450,
                                      "symbol": "NASDAQ:AAPL",
                                      "interval": "D",
                                      "timezone": "Etc/UTC",
                                      "theme": "dark",
                                      "style": "1",
                                      "locale": "en",
                                      "enable_publishing": false,
                                      "allow_symbol_change": false,
                                      "container_id": "tradingview_AAPL_light"
                                    });
                                 </script>
                              </div>
                           </div>
                        </div>
                        <div class="tab-pane fade " id="content-MSFT" role="tabpanel" aria-labelledby="tab-MSFT">
                           <div class="transection h-200">
                              <div class="tradingview-widget-container">
                                 <div id="tradingview_MSFT_dark" class="dark-tradingview">
                                    <div id="tradingview_7dbde-wrapper" style="position: relative; box-sizing: content-box; font-family: -apple-system, BlinkMacSystemFont, &quot;Trebuchet MS&quot;, Roboto, Ubuntu, sans-serif; margin: 0px auto !important; padding: 0px !important; width: 100%; height: 450px;"><iframe title="advanced chart TradingView widget" lang="en" id="tradingview_7dbde" frameborder="0" allowtransparency="true" scrolling="no" allowfullscreen="true" src="https://s.tradingview.com/widgetembed/?hideideas=1&amp;overrides=%7B%7D&amp;enabled_features=%5B%5D&amp;disabled_features=%5B%5D&amp;locale=en#%7B%22symbol%22%3A%22NASDAQ%3AMSFT%22%2C%22frameElementId%22%3A%22tradingview_7dbde%22%2C%22interval%22%3A%22D%22%2C%22allow_symbol_change%22%3A%220%22%2C%22save_image%22%3A%221%22%2C%22studies%22%3A%22%5B%5D%22%2C%22theme%22%3A%22light%22%2C%22style%22%3A%221%22%2C%22timezone%22%3A%22Etc%2FUTC%22%2C%22studies_overrides%22%3A%22%7B%7D%22%2C%22utm_source%22%3A%22expcopytrading.com%22%2C%22utm_medium%22%3A%22widget%22%2C%22utm_campaign%22%3A%22chart%22%2C%22utm_term%22%3A%22NASDAQ%3AMSFT%22%2C%22page-uri%22%3A%22expcopytrading.com%2Fapp%2Fuser%2Fdashboard%22%7D" style="width: 100%; height: 100%; margin: 0px !important; padding: 0px !important;"></iframe></div>
                                 </div>
                                 <div id="tradingview_MSFT_light" class="light-tradingview">
                                    <div id="tradingview_e41b5-wrapper" style="position: relative; box-sizing: content-box; font-family: -apple-system, BlinkMacSystemFont, &quot;Trebuchet MS&quot;, Roboto, Ubuntu, sans-serif; margin: 0px auto !important; padding: 0px !important; width: 100%; height: 450px;"><iframe title="advanced chart TradingView widget" lang="en" id="tradingview_e41b5" frameborder="0" allowtransparency="true" scrolling="no" allowfullscreen="true" src="https://s.tradingview.com/widgetembed/?hideideas=1&amp;overrides=%7B%7D&amp;enabled_features=%5B%5D&amp;disabled_features=%5B%5D&amp;locale=en#%7B%22symbol%22%3A%22NASDAQ%3AMSFT%22%2C%22frameElementId%22%3A%22tradingview_e41b5%22%2C%22interval%22%3A%22D%22%2C%22allow_symbol_change%22%3A%220%22%2C%22save_image%22%3A%221%22%2C%22studies%22%3A%22%5B%5D%22%2C%22theme%22%3A%22dark%22%2C%22style%22%3A%221%22%2C%22timezone%22%3A%22Etc%2FUTC%22%2C%22studies_overrides%22%3A%22%7B%7D%22%2C%22utm_source%22%3A%22expcopytrading.com%22%2C%22utm_medium%22%3A%22widget%22%2C%22utm_campaign%22%3A%22chart%22%2C%22utm_term%22%3A%22NASDAQ%3AMSFT%22%2C%22page-uri%22%3A%22expcopytrading.com%2Fapp%2Fuser%2Fdashboard%22%7D" style="width: 100%; height: 100%; margin: 0px !important; padding: 0px !important;"></iframe></div>
                                 </div>
                                 <script type="text/javascript">
                                    new TradingView.widget({
                                      "width": "100%",
                                      "height": 450,
                                      "symbol": "NASDAQ:MSFT",
                                      "interval": "D",
                                      "timezone": "Etc/UTC",
                                      "theme": "light",
                                      "style": "1",
                                      "locale": "en",
                                      "enable_publishing": false,
                                      "allow_symbol_change": false,
                                      "container_id": "tradingview_MSFT_dark"
                                    });
                                    new TradingView.widget({
                                      "width": "100%",
                                      "height": 450,
                                      "symbol": "NASDAQ:MSFT",
                                      "interval": "D",
                                      "timezone": "Etc/UTC",
                                      "theme": "dark",
                                      "style": "1",
                                      "locale": "en",
                                      "enable_publishing": false,
                                      "allow_symbol_change": false,
                                      "container_id": "tradingview_MSFT_light"
                                    });
                                 </script>
                              </div>
                           </div>
                        </div>
                        <div class="tab-pane fade " id="content-GOOGL" role="tabpanel" aria-labelledby="tab-GOOGL">
                           <div class="transection h-200">
                              <div class="tradingview-widget-container">
                                 <div id="tradingview_GOOGL_dark" class="dark-tradingview">
                                    <div id="tradingview_754c7-wrapper" style="position: relative; box-sizing: content-box; font-family: -apple-system, BlinkMacSystemFont, &quot;Trebuchet MS&quot;, Roboto, Ubuntu, sans-serif; margin: 0px auto !important; padding: 0px !important; width: 100%; height: 450px;"><iframe title="advanced chart TradingView widget" lang="en" id="tradingview_754c7" frameborder="0" allowtransparency="true" scrolling="no" allowfullscreen="true" src="https://s.tradingview.com/widgetembed/?hideideas=1&amp;overrides=%7B%7D&amp;enabled_features=%5B%5D&amp;disabled_features=%5B%5D&amp;locale=en#%7B%22symbol%22%3A%22NASDAQ%3AGOOGL%22%2C%22frameElementId%22%3A%22tradingview_754c7%22%2C%22interval%22%3A%22D%22%2C%22allow_symbol_change%22%3A%220%22%2C%22save_image%22%3A%221%22%2C%22studies%22%3A%22%5B%5D%22%2C%22theme%22%3A%22light%22%2C%22style%22%3A%221%22%2C%22timezone%22%3A%22Etc%2FUTC%22%2C%22studies_overrides%22%3A%22%7B%7D%22%2C%22utm_source%22%3A%22expcopytrading.com%22%2C%22utm_medium%22%3A%22widget%22%2C%22utm_campaign%22%3A%22chart%22%2C%22utm_term%22%3A%22NASDAQ%3AGOOGL%22%2C%22page-uri%22%3A%22expcopytrading.com%2Fapp%2Fuser%2Fdashboard%22%7D" style="width: 100%; height: 100%; margin: 0px !important; padding: 0px !important;"></iframe></div>
                                 </div>
                                 <div id="tradingview_GOOGL_light" class="light-tradingview">
                                    <div id="tradingview_aad28-wrapper" style="position: relative; box-sizing: content-box; font-family: -apple-system, BlinkMacSystemFont, &quot;Trebuchet MS&quot;, Roboto, Ubuntu, sans-serif; margin: 0px auto !important; padding: 0px !important; width: 100%; height: 450px;"><iframe title="advanced chart TradingView widget" lang="en" id="tradingview_aad28" frameborder="0" allowtransparency="true" scrolling="no" allowfullscreen="true" src="https://s.tradingview.com/widgetembed/?hideideas=1&amp;overrides=%7B%7D&amp;enabled_features=%5B%5D&amp;disabled_features=%5B%5D&amp;locale=en#%7B%22symbol%22%3A%22NASDAQ%3AGOOGL%22%2C%22frameElementId%22%3A%22tradingview_aad28%22%2C%22interval%22%3A%22D%22%2C%22allow_symbol_change%22%3A%220%22%2C%22save_image%22%3A%221%22%2C%22studies%22%3A%22%5B%5D%22%2C%22theme%22%3A%22dark%22%2C%22style%22%3A%221%22%2C%22timezone%22%3A%22Etc%2FUTC%22%2C%22studies_overrides%22%3A%22%7B%7D%22%2C%22utm_source%22%3A%22expcopytrading.com%22%2C%22utm_medium%22%3A%22widget%22%2C%22utm_campaign%22%3A%22chart%22%2C%22utm_term%22%3A%22NASDAQ%3AGOOGL%22%2C%22page-uri%22%3A%22expcopytrading.com%2Fapp%2Fuser%2Fdashboard%22%7D" style="width: 100%; height: 100%; margin: 0px !important; padding: 0px !important;"></iframe></div>
                                 </div>
                                 <script type="text/javascript">
                                    new TradingView.widget({
                                      "width": "100%",
                                      "height": 450,
                                      "symbol": "NASDAQ:GOOGL",
                                      "interval": "D",
                                      "timezone": "Etc/UTC",
                                      "theme": "light",
                                      "style": "1",
                                      "locale": "en",
                                      "enable_publishing": false,
                                      "allow_symbol_change": false,
                                      "container_id": "tradingview_GOOGL_dark"
                                    });
                                    new TradingView.widget({
                                      "width": "100%",
                                      "height": 450,
                                      "symbol": "NASDAQ:GOOGL",
                                      "interval": "D",
                                      "timezone": "Etc/UTC",
                                      "theme": "dark",
                                      "style": "1",
                                      "locale": "en",
                                      "enable_publishing": false,
                                      "allow_symbol_change": false,
                                      "container_id": "tradingview_GOOGL_light"
                                    });
                                 </script>
                              </div>
                           </div>
                        </div>
                        <div class="tab-pane fade " id="content-AMZN" role="tabpanel" aria-labelledby="tab-AMZN">
                           <div class="transection h-200">
                              <div class="tradingview-widget-container">
                                 <div id="tradingview_AMZN_dark" class="dark-tradingview">
                                    <div id="tradingview_4e14f-wrapper" style="position: relative; box-sizing: content-box; font-family: -apple-system, BlinkMacSystemFont, &quot;Trebuchet MS&quot;, Roboto, Ubuntu, sans-serif; margin: 0px auto !important; padding: 0px !important; width: 100%; height: 450px;"><iframe title="advanced chart TradingView widget" lang="en" id="tradingview_4e14f" frameborder="0" allowtransparency="true" scrolling="no" allowfullscreen="true" src="https://s.tradingview.com/widgetembed/?hideideas=1&amp;overrides=%7B%7D&amp;enabled_features=%5B%5D&amp;disabled_features=%5B%5D&amp;locale=en#%7B%22symbol%22%3A%22NASDAQ%3AAMZN%22%2C%22frameElementId%22%3A%22tradingview_4e14f%22%2C%22interval%22%3A%22D%22%2C%22allow_symbol_change%22%3A%220%22%2C%22save_image%22%3A%221%22%2C%22studies%22%3A%22%5B%5D%22%2C%22theme%22%3A%22light%22%2C%22style%22%3A%221%22%2C%22timezone%22%3A%22Etc%2FUTC%22%2C%22studies_overrides%22%3A%22%7B%7D%22%2C%22utm_source%22%3A%22expcopytrading.com%22%2C%22utm_medium%22%3A%22widget%22%2C%22utm_campaign%22%3A%22chart%22%2C%22utm_term%22%3A%22NASDAQ%3AAMZN%22%2C%22page-uri%22%3A%22expcopytrading.com%2Fapp%2Fuser%2Fdashboard%22%7D" style="width: 100%; height: 100%; margin: 0px !important; padding: 0px !important;"></iframe></div>
                                 </div>
                                 <div id="tradingview_AMZN_light" class="light-tradingview">
                                    <div id="tradingview_00535-wrapper" style="position: relative; box-sizing: content-box; font-family: -apple-system, BlinkMacSystemFont, &quot;Trebuchet MS&quot;, Roboto, Ubuntu, sans-serif; margin: 0px auto !important; padding: 0px !important; width: 100%; height: 450px;"><iframe title="advanced chart TradingView widget" lang="en" id="tradingview_00535" frameborder="0" allowtransparency="true" scrolling="no" allowfullscreen="true" src="https://s.tradingview.com/widgetembed/?hideideas=1&amp;overrides=%7B%7D&amp;enabled_features=%5B%5D&amp;disabled_features=%5B%5D&amp;locale=en#%7B%22symbol%22%3A%22NASDAQ%3AAMZN%22%2C%22frameElementId%22%3A%22tradingview_00535%22%2C%22interval%22%3A%22D%22%2C%22allow_symbol_change%22%3A%220%22%2C%22save_image%22%3A%221%22%2C%22studies%22%3A%22%5B%5D%22%2C%22theme%22%3A%22dark%22%2C%22style%22%3A%221%22%2C%22timezone%22%3A%22Etc%2FUTC%22%2C%22studies_overrides%22%3A%22%7B%7D%22%2C%22utm_source%22%3A%22expcopytrading.com%22%2C%22utm_medium%22%3A%22widget%22%2C%22utm_campaign%22%3A%22chart%22%2C%22utm_term%22%3A%22NASDAQ%3AAMZN%22%2C%22page-uri%22%3A%22expcopytrading.com%2Fapp%2Fuser%2Fdashboard%22%7D" style="width: 100%; height: 100%; margin: 0px !important; padding: 0px !important;"></iframe></div>
                                 </div>
                                 <script type="text/javascript">
                                    new TradingView.widget({
                                      "width": "100%",
                                      "height": 450,
                                      "symbol": "NASDAQ:AMZN",
                                      "interval": "D",
                                      "timezone": "Etc/UTC",
                                      "theme": "light",
                                      "style": "1",
                                      "locale": "en",
                                      "enable_publishing": false,
                                      "allow_symbol_change": false,
                                      "container_id": "tradingview_AMZN_dark"
                                    });
                                    new TradingView.widget({
                                      "width": "100%",
                                      "height": 450,
                                      "symbol": "NASDAQ:AMZN",
                                      "interval": "D",
                                      "timezone": "Etc/UTC",
                                      "theme": "dark",
                                      "style": "1",
                                      "locale": "en",
                                      "enable_publishing": false,
                                      "allow_symbol_change": false,
                                      "container_id": "tradingview_AMZN_light"
                                    });
                                 </script>
                              </div>
                           </div>
                        </div>
                        <div class="tab-pane fade " id="content-TSLA" role="tabpanel" aria-labelledby="tab-TSLA">
                           <div class="transection h-200">
                              <div class="tradingview-widget-container">
                                 <div id="tradingview_TSLA_dark" class="dark-tradingview">
                                    <div id="tradingview_a988e-wrapper" style="position: relative; box-sizing: content-box; font-family: -apple-system, BlinkMacSystemFont, &quot;Trebuchet MS&quot;, Roboto, Ubuntu, sans-serif; margin: 0px auto !important; padding: 0px !important; width: 100%; height: 450px;"><iframe title="advanced chart TradingView widget" lang="en" id="tradingview_a988e" frameborder="0" allowtransparency="true" scrolling="no" allowfullscreen="true" src="https://s.tradingview.com/widgetembed/?hideideas=1&amp;overrides=%7B%7D&amp;enabled_features=%5B%5D&amp;disabled_features=%5B%5D&amp;locale=en#%7B%22symbol%22%3A%22NASDAQ%3ATSLA%22%2C%22frameElementId%22%3A%22tradingview_a988e%22%2C%22interval%22%3A%22D%22%2C%22allow_symbol_change%22%3A%220%22%2C%22save_image%22%3A%221%22%2C%22studies%22%3A%22%5B%5D%22%2C%22theme%22%3A%22light%22%2C%22style%22%3A%221%22%2C%22timezone%22%3A%22Etc%2FUTC%22%2C%22studies_overrides%22%3A%22%7B%7D%22%2C%22utm_source%22%3A%22expcopytrading.com%22%2C%22utm_medium%22%3A%22widget%22%2C%22utm_campaign%22%3A%22chart%22%2C%22utm_term%22%3A%22NASDAQ%3ATSLA%22%2C%22page-uri%22%3A%22expcopytrading.com%2Fapp%2Fuser%2Fdashboard%22%7D" style="width: 100%; height: 100%; margin: 0px !important; padding: 0px !important;"></iframe></div>
                                 </div>
                                 <div id="tradingview_TSLA_light" class="light-tradingview">
                                    <div id="tradingview_84357-wrapper" style="position: relative; box-sizing: content-box; font-family: -apple-system, BlinkMacSystemFont, &quot;Trebuchet MS&quot;, Roboto, Ubuntu, sans-serif; margin: 0px auto !important; padding: 0px !important; width: 100%; height: 450px;"><iframe title="advanced chart TradingView widget" lang="en" id="tradingview_84357" frameborder="0" allowtransparency="true" scrolling="no" allowfullscreen="true" src="https://s.tradingview.com/widgetembed/?hideideas=1&amp;overrides=%7B%7D&amp;enabled_features=%5B%5D&amp;disabled_features=%5B%5D&amp;locale=en#%7B%22symbol%22%3A%22NASDAQ%3ATSLA%22%2C%22frameElementId%22%3A%22tradingview_84357%22%2C%22interval%22%3A%22D%22%2C%22allow_symbol_change%22%3A%220%22%2C%22save_image%22%3A%221%22%2C%22studies%22%3A%22%5B%5D%22%2C%22theme%22%3A%22dark%22%2C%22style%22%3A%221%22%2C%22timezone%22%3A%22Etc%2FUTC%22%2C%22studies_overrides%22%3A%22%7B%7D%22%2C%22utm_source%22%3A%22expcopytrading.com%22%2C%22utm_medium%22%3A%22widget%22%2C%22utm_campaign%22%3A%22chart%22%2C%22utm_term%22%3A%22NASDAQ%3ATSLA%22%2C%22page-uri%22%3A%22expcopytrading.com%2Fapp%2Fuser%2Fdashboard%22%7D" style="width: 100%; height: 100%; margin: 0px !important; padding: 0px !important;"></iframe></div>
                                 </div>
                                 <script type="text/javascript">
                                    new TradingView.widget({
                                      "width": "100%",
                                      "height": 450,
                                      "symbol": "NASDAQ:TSLA",
                                      "interval": "D",
                                      "timezone": "Etc/UTC",
                                      "theme": "light",
                                      "style": "1",
                                      "locale": "en",
                                      "enable_publishing": false,
                                      "allow_symbol_change": false,
                                      "container_id": "tradingview_TSLA_dark"
                                    });
                                    new TradingView.widget({
                                      "width": "100%",
                                      "height": 450,
                                      "symbol": "NASDAQ:TSLA",
                                      "interval": "D",
                                      "timezone": "Etc/UTC",
                                      "theme": "dark",
                                      "style": "1",
                                      "locale": "en",
                                      "enable_publishing": false,
                                      "allow_symbol_change": false,
                                      "container_id": "tradingview_TSLA_light"
                                    });
                                 </script>
                              </div>
                           </div>
                        </div>
                        <div class="tab-pane fade " id="content-FB" role="tabpanel" aria-labelledby="tab-FB">
                           <div class="transection h-200">
                              <div class="tradingview-widget-container">
                                 <div id="tradingview_FB_dark" class="dark-tradingview">
                                    <div id="tradingview_e2600-wrapper" style="position: relative; box-sizing: content-box; font-family: -apple-system, BlinkMacSystemFont, &quot;Trebuchet MS&quot;, Roboto, Ubuntu, sans-serif; margin: 0px auto !important; padding: 0px !important; width: 100%; height: 450px;"><iframe title="advanced chart TradingView widget" lang="en" id="tradingview_e2600" frameborder="0" allowtransparency="true" scrolling="no" allowfullscreen="true" src="https://s.tradingview.com/widgetembed/?hideideas=1&amp;overrides=%7B%7D&amp;enabled_features=%5B%5D&amp;disabled_features=%5B%5D&amp;locale=en#%7B%22symbol%22%3A%22NASDAQ%3AFB%22%2C%22frameElementId%22%3A%22tradingview_e2600%22%2C%22interval%22%3A%22D%22%2C%22allow_symbol_change%22%3A%220%22%2C%22save_image%22%3A%221%22%2C%22studies%22%3A%22%5B%5D%22%2C%22theme%22%3A%22light%22%2C%22style%22%3A%221%22%2C%22timezone%22%3A%22Etc%2FUTC%22%2C%22studies_overrides%22%3A%22%7B%7D%22%2C%22utm_source%22%3A%22expcopytrading.com%22%2C%22utm_medium%22%3A%22widget%22%2C%22utm_campaign%22%3A%22chart%22%2C%22utm_term%22%3A%22NASDAQ%3AFB%22%2C%22page-uri%22%3A%22expcopytrading.com%2Fapp%2Fuser%2Fdashboard%22%7D" style="width: 100%; height: 100%; margin: 0px !important; padding: 0px !important;"></iframe></div>
                                 </div>
                                 <div id="tradingview_FB_light" class="light-tradingview">
                                    <div id="tradingview_48ef6-wrapper" style="position: relative; box-sizing: content-box; font-family: -apple-system, BlinkMacSystemFont, &quot;Trebuchet MS&quot;, Roboto, Ubuntu, sans-serif; margin: 0px auto !important; padding: 0px !important; width: 100%; height: 450px;"><iframe title="advanced chart TradingView widget" lang="en" id="tradingview_48ef6" frameborder="0" allowtransparency="true" scrolling="no" allowfullscreen="true" src="https://s.tradingview.com/widgetembed/?hideideas=1&amp;overrides=%7B%7D&amp;enabled_features=%5B%5D&amp;disabled_features=%5B%5D&amp;locale=en#%7B%22symbol%22%3A%22NASDAQ%3AFB%22%2C%22frameElementId%22%3A%22tradingview_48ef6%22%2C%22interval%22%3A%22D%22%2C%22allow_symbol_change%22%3A%220%22%2C%22save_image%22%3A%221%22%2C%22studies%22%3A%22%5B%5D%22%2C%22theme%22%3A%22dark%22%2C%22style%22%3A%221%22%2C%22timezone%22%3A%22Etc%2FUTC%22%2C%22studies_overrides%22%3A%22%7B%7D%22%2C%22utm_source%22%3A%22expcopytrading.com%22%2C%22utm_medium%22%3A%22widget%22%2C%22utm_campaign%22%3A%22chart%22%2C%22utm_term%22%3A%22NASDAQ%3AFB%22%2C%22page-uri%22%3A%22expcopytrading.com%2Fapp%2Fuser%2Fdashboard%22%7D" style="width: 100%; height: 100%; margin: 0px !important; padding: 0px !important;"></iframe></div>
                                 </div>
                                 <script type="text/javascript">
                                    new TradingView.widget({
                                      "width": "100%",
                                      "height": 450,
                                      "symbol": "NASDAQ:FB",
                                      "interval": "D",
                                      "timezone": "Etc/UTC",
                                      "theme": "light",
                                      "style": "1",
                                      "locale": "en",
                                      "enable_publishing": false,
                                      "allow_symbol_change": false,
                                      "container_id": "tradingview_FB_dark"
                                    });
                                    new TradingView.widget({
                                      "width": "100%",
                                      "height": 450,
                                      "symbol": "NASDAQ:FB",
                                      "interval": "D",
                                      "timezone": "Etc/UTC",
                                      "theme": "dark",
                                      "style": "1",
                                      "locale": "en",
                                      "enable_publishing": false,
                                      "allow_symbol_change": false,
                                      "container_id": "tradingview_FB_light"
                                    });
                                 </script>
                              </div>
                           </div>
                        </div>
                        <div class="tab-pane fade " id="content-NVDA" role="tabpanel" aria-labelledby="tab-NVDA">
                           <div class="transection h-200">
                              <div class="tradingview-widget-container">
                                 <div id="tradingview_NVDA_dark" class="dark-tradingview">
                                    <div id="tradingview_d6fa9-wrapper" style="position: relative; box-sizing: content-box; font-family: -apple-system, BlinkMacSystemFont, &quot;Trebuchet MS&quot;, Roboto, Ubuntu, sans-serif; margin: 0px auto !important; padding: 0px !important; width: 100%; height: 450px;"><iframe title="advanced chart TradingView widget" lang="en" id="tradingview_d6fa9" frameborder="0" allowtransparency="true" scrolling="no" allowfullscreen="true" src="https://s.tradingview.com/widgetembed/?hideideas=1&amp;overrides=%7B%7D&amp;enabled_features=%5B%5D&amp;disabled_features=%5B%5D&amp;locale=en#%7B%22symbol%22%3A%22NASDAQ%3ANVDA%22%2C%22frameElementId%22%3A%22tradingview_d6fa9%22%2C%22interval%22%3A%22D%22%2C%22allow_symbol_change%22%3A%220%22%2C%22save_image%22%3A%221%22%2C%22studies%22%3A%22%5B%5D%22%2C%22theme%22%3A%22light%22%2C%22style%22%3A%221%22%2C%22timezone%22%3A%22Etc%2FUTC%22%2C%22studies_overrides%22%3A%22%7B%7D%22%2C%22utm_source%22%3A%22expcopytrading.com%22%2C%22utm_medium%22%3A%22widget%22%2C%22utm_campaign%22%3A%22chart%22%2C%22utm_term%22%3A%22NASDAQ%3ANVDA%22%2C%22page-uri%22%3A%22expcopytrading.com%2Fapp%2Fuser%2Fdashboard%22%7D" style="width: 100%; height: 100%; margin: 0px !important; padding: 0px !important;"></iframe></div>
                                 </div>
                                 <div id="tradingview_NVDA_light" class="light-tradingview">
                                    <div id="tradingview_51bfc-wrapper" style="position: relative; box-sizing: content-box; font-family: -apple-system, BlinkMacSystemFont, &quot;Trebuchet MS&quot;, Roboto, Ubuntu, sans-serif; margin: 0px auto !important; padding: 0px !important; width: 100%; height: 450px;"><iframe title="advanced chart TradingView widget" lang="en" id="tradingview_51bfc" frameborder="0" allowtransparency="true" scrolling="no" allowfullscreen="true" src="https://s.tradingview.com/widgetembed/?hideideas=1&amp;overrides=%7B%7D&amp;enabled_features=%5B%5D&amp;disabled_features=%5B%5D&amp;locale=en#%7B%22symbol%22%3A%22NASDAQ%3ANVDA%22%2C%22frameElementId%22%3A%22tradingview_51bfc%22%2C%22interval%22%3A%22D%22%2C%22allow_symbol_change%22%3A%220%22%2C%22save_image%22%3A%221%22%2C%22studies%22%3A%22%5B%5D%22%2C%22theme%22%3A%22dark%22%2C%22style%22%3A%221%22%2C%22timezone%22%3A%22Etc%2FUTC%22%2C%22studies_overrides%22%3A%22%7B%7D%22%2C%22utm_source%22%3A%22expcopytrading.com%22%2C%22utm_medium%22%3A%22widget%22%2C%22utm_campaign%22%3A%22chart%22%2C%22utm_term%22%3A%22NASDAQ%3ANVDA%22%2C%22page-uri%22%3A%22expcopytrading.com%2Fapp%2Fuser%2Fdashboard%22%7D" style="width: 100%; height: 100%; margin: 0px !important; padding: 0px !important;"></iframe></div>
                                 </div>
                                 <script type="text/javascript">
                                    new TradingView.widget({
                                      "width": "100%",
                                      "height": 450,
                                      "symbol": "NASDAQ:NVDA",
                                      "interval": "D",
                                      "timezone": "Etc/UTC",
                                      "theme": "light",
                                      "style": "1",
                                      "locale": "en",
                                      "enable_publishing": false,
                                      "allow_symbol_change": false,
                                      "container_id": "tradingview_NVDA_dark"
                                    });
                                    new TradingView.widget({
                                      "width": "100%",
                                      "height": 450,
                                      "symbol": "NASDAQ:NVDA",
                                      "interval": "D",
                                      "timezone": "Etc/UTC",
                                      "theme": "dark",
                                      "style": "1",
                                      "locale": "en",
                                      "enable_publishing": false,
                                      "allow_symbol_change": false,
                                      "container_id": "tradingview_NVDA_light"
                                    });
                                 </script>
                              </div>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
      <div class=" col-xxl-4">
         <div class="dashboard-right">
            <div class="right-sidebar mt-3" id="overview">
               <div class="right-sidebar__header mb-3">
                  <div class="d-flex flex-between flex-wrap">
                     <div>
                        <h4 class="mb-0 fs-18">Balance Overview</h4>
                        <p class="mt-0 fs-12">Available  balance including the converted total balance</p>
                     </div>
                     <span class="toggle-dashboard-right dashboard--popup-close"><i class="las la-times"></i></span>
                  </div>
               </div>
               <div _ngcontent-nsa-c94="" class="account-card full prime subtleBoxShadow">
                  <div class="d-flex justify-content-between align-items-right col-12">
                     <img src="assets/images/logoIcon/cornb.webp" width="25px">
                     <h5 class="fs-22 mb-0 pb-0">
                        USD
                     </h5>
                  </div>
                  <div>
                     <h6 class="dashboard-card__coin-title" style="font-weight: 300!important; font-size: 2.5rem!important;"> $<?php echo number_format($total_balance, 2); ?> </h6>
                  </div>
                  <div class="d-flex">
                     <p class="label" style="font-weight: 300!important; font-size: 12px!important;"> Reg. Date: &nbsp;</p>
                     <small class="dashboard-card__coin-name mb-0" style="font-weight: 600!important; font-size: 14px!important;"> <?php echo formatdate($row['created_at']);?> </small>
                  </div>
               </div>
               <div class="d-flex flex-wrap gap-2 mt-4">
                  <button type="button" class="btn btn--primary outline flex-fill btn--sm depositBtn">
                    <i class="fas fa-sort-up"></i> Deposit                            
                  </button>
                  <button type="button" class="btn btn--primary outline flex-fill btn--sm withdrawBtn">
                    <i class="fas fa-sort-down"></i> Withdraw                            
                  </button>
               </div>
            </div>
            <div class="right-sidebar mt-3" id="copytradingfirst" style="position: relative!important;">
               <div class="alert-container">
                  <p>Start copying a Trader to View more stats</p>
               </div>
               <div class="right-sidebar__header mb-3">
                  <div class="blurry-background">
                     <div>
                        <h4 class="mb-0 fs-18">Your Expert Trader</h4>
                        <p class="mt-0 fs-12">you are copying Trades from your Trader</p>
                     </div>
                     <div class="p-4">
                        <div class="dashboard-card__content">
                           <div class="text-center">
                           </div>
                           <div class="text-center">
                           </div>
                        </div>
                     </div>
                     <hr>
                     <div>
                        <div class="d-flex justify-content-around align-items-right col-12">
                           <div class="dashboard-card__content">
                              <p class="dashboard-card__coin-name mb-0 ">
                                 <span class="price__title text-success switch h6">
                                 50% 
                                 <small class="alert__title text--small h6">Avg. Gain</small>
                                 </span>
                              </p>
                           </div>
                           <div class="dashboard-card__content">
                              <span class="text--base switch h6">500
                              <small class="alert__title text--small h6">Trades</small>
                              </span>
                           </div>
                           <div class="dashboard-card__content">
                              <span class="price__title text-success switch h6">700
                              <small class="alert__title text--small h6" style="display: block;">No. Copiers</small></span>
                           </div>
                        </div>
                        <hr>
                     </div>
                  </div>
               </div>
            </div>
            <div class="right-sidebar mt-3" id="loyalty">
               <div class="right-sidebar__header mb-3">
                  <div class="">
                     <div>
                        <h4 class="mb-0 fs-18">Loyalty Program</h4>
                        <p class="mt-0 fs-12">Deposit more to increase your Loyalty Rank</p>
                     </div>
                     <div class="hide__inner">
                        <hr>
                        <div class="d-flex justify-content-around align-items-right col-12">
                           <div class="dashboard-card__content">
                              <i class="fa fa-award pt-1"></i>
                           </div>
                           <div class="dashboard-card__content">
                              <span class="price__title">Current Loyalty Status
                              </span>
                           </div>
                           <div class="dashboard-card__content d-flex justify-content-between pt-1" style="gap: 0.5rem!important;">
                              <span class="price__title"><img src="assets/images/user_rankings/66a57bb6dca411722121142.png" alt="image" style="width: 20px; height: 20px;"></span>
                              <span class="price__title">Iron</span>
                           </div>
                        </div>
                        <hr>
                        <div class="d-flex justify-content-around align-items-right col-12">
                           <div class="dashboard-card__content">
                              <i class="fa fa-award pt-1"></i>
                           </div>
                           <div class="dashboard-card__content">
                              <span class="price__title">Next Loyalty Status
                              </span>
                           </div>
                           <div class="dashboard-card__content d-flex justify-content-between pt-1" style="gap: 0.5rem!important;">
                              <span class="price__title"><img src="assets/images/user_rankings/66a57b3ceb0cc1722121020.png" alt="image" style="width: 20px; height: 20px;"></span>
                              <span class="price__title">Bronze</span>
                           </div>
                        </div>
                        <hr>
                        <div class="col-md-12 mb-4 mt-4">
                           <div class="wallets__wrapper text-center">
                              <div class="gy-4 align-items-center">
                                 <div>
                                    <div class="card__titlen h6">$0.00 / $5,000.00</div>
                                    <small class="wallets__info"><b>Deposit  $5,000.00   To next Loyalty Status</b></small>
                                 </div>
                              </div>
                           </div>
                           <br>
                           <center><a href="ranking" class="btn btn--base outline btn--sm trade-btn" id="trade" style="padding: 9px 4px !important">
                              View Status
                              </a> 
                           </center>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </div>
   <script> 
      
   </script>
  <?php include "modals.php";?>

<!--  
  <script type="text/javascript">
   // Function to initialize the Intro.js tour
   function startIntroTour() {
       var desktopSteps = [
           {
               element: '#ref',
               intro: 'Share your referral link with your friends, and if they start trading with us, you can benefit cash!. <a href="stop-tour" class="text-center text-primary pt-3" onclick="stopTour(event)">Don\'t show popup again</a>'
           },
           {
               element: '#trade',
               intro: 'Learn how to execute trades, view open orders, and manage your trading portfolio effectively. <a href="stop-tour" class="text-center text-primary pt-3" onclick="stopTour(event)">Don\'t show popup again</a>'
           },
           {
               element: '#notify',
               intro: 'See notifications of every activities on your account. <a href="stop-tour" class="text-center text-primary pt-3" onclick="stopTour(event)">Don\'t show popup again</a>'
           },
           {
               element: '#theme',
               intro: 'Choose between the different skin preference for your visual comfort and style. <a href="stop-tour" class="text-center text-primary pt-3" onclick="stopTour(event)">Don\'t show popup again</a>'
           },
           {
               element: '#verify',
               intro: 'Understand the importance of verifying your account and how it enhances security. <a href="stop-tour" class="text-center text-primary pt-3" onclick="stopTour(event)">Don\'t show popup again</a>'
           },
           {
               element: '#overview',
               intro: 'Review your total account balance, deposit and withdraw funds into/from your account securely and efficiently. Explore different deposit/withdrawal methods. <a href="stop-tour" class="text-center text-primary pt-3" onclick="stopTour(event)">Don\'t show popup again</a>'
           },
           {
               element: '#copytrading',
               intro: 'To start earning like pro, you need to automate your trading by copying the trades of Expert Traders. <a href="stop-tour" class="text-center text-primary pt-3" onclick="stopTour(event)">Don\'t show popup again</a>'
           },
           {
               element: '#p2p',
               intro: 'List of all verified expert traders. <a href="stop-tour" class="text-center text-primary pt-3" onclick="stopTour(event)">Don\'t show popup again</a>'
           },
           {
               element: '#copytradingfirst',
               intro: 'When you start copying an expert, Your trader profile will appear here. <a href="stop-tour" class="text-center text-primary pt-3" onclick="stopTour(event)">Don\'t show popup again</a>'
           },
           {
               element: '#loyalty',
               intro: 'Check your Current & next Rank here, the higher your rank, the more exclusive rewards and trading benefits. <a href="stop-tour" class="text-center text-primary pt-3" onclick="stopTour(event)">Don\'t show popup again</a>'
           },
           {
               element: '#history',
               intro: 'Explore your transaction history to track past trades, deposits, withdrawals, and other trade activities. <a href="stop-tour" class="text-center text-primary pt-3" onclick="stopTour(event)">Don\'t show popup again</a>'
           }
       ];
   
       var mobileSteps = [
           {
               element: '#trade',
               intro: 'Learn how to execute trades, view open orders, and manage your trading portfolio effectively. <a href="stop-tour" class="text-center text-primary pt-3" onclick="stopTour(event)">Don\'t show popup again</a>'
           },
           {
               element: '#notify',
               intro: 'See notifications of every activities on your account. <a href="stop-tour" class="text-center text-primary pt-3" onclick="stopTour(event)">Don\'t show popup again</a>'
           },
           {
               element: '#theme',
               intro: 'Choose between the different skin preference for your visual comfort and style. <a href="stop-tour" class="text-center text-primary pt-3" onclick="stopTour(event)">Don\'t show popup again</a>'
           },
           {
               element: '#verify_mobile',
               intro: 'Understand the importance of verifying your account and how it enhances security. <a href="stop-tour" class="text-center text-primary pt-3" onclick="stopTour(event)">Don\'t show popup again</a>'
           },
           {
               element: '#overview_mobile',
               intro: 'Review your total account balance, deposit and withdraw funds into/from your account securely and efficiently. Explore different deposit/withdrawal methods. <a href="stop-tour" class="text-center text-primary pt-3" onclick="stopTour(event)">Don\'t show popup again</a>'
           },
           {
               element: '#copytrading_mobile',
               intro: 'To start earning like pro, you need to automate your trading by copying the trades of Expert Traders. <a href="stop-tour" class="text-center text-primary pt-3" onclick="stopTour(event)">Don\'t show popup again</a>'
           },
           
           {
               element: '#history_mobile',
               intro: 'Explore your transaction history to track past trades, deposits, withdrawals, and other trade activities. <a href="stop-tour" class="text-center text-primary pt-3" onclick="stopTour(event)">Don\'t show popup again</a>'
           },
           {
               element: '#loyalty_mobile',
               intro: 'Click to view more features to help you track your trading activities. <a href="stop-tour" class="text-center text-primary pt-3" onclick="stopTour(event)">Don\'t show popup again</a>'
           }
       ];
   
       var steps = window.innerWidth <= 768 ? mobileSteps : desktopSteps;
   
       introJs().setOptions({
           steps: steps
       }).start();
   }
   
   // Function to stop the tour
   function stopTour(event) {
       event.preventDefault();
       event.stopPropagation();
       window.location.href = event.currentTarget.href;
   }
   
   document.addEventListener('DOMContentLoaded', function() {
       var popupStop = 0;
       if (popupStop === 0) {
           setTimeout(startIntroTour, 3000);
       }
   });
</script>

-->
