<!doctype html>
<html lang="en">
<?php 
$validation =  \Config\Services::validation();
use App\Libraries\MyEncrypt;

$this->db = db_connect();
 $session= \Config\Services::session();
echo view('user/common_style1');?>
</head>
<body>
<?php echo view('user/common_header');?>
 
<link rel="stylesheet" href="<?php echo base_url();?>styles/fonts/Socialico/stylesheet.css">
<link rel="stylesheet" href="<?php echo base_url();?>styles/css/set1.css">
<script src="<?php echo base_url();?>styles/js/modernizr.js"></script>
 <style>
  .contact_one .contact_left_content form input[type="text"]{border:0px;}
  .prfledit label, .prfledit label {
  padding-top: 10px;
}

.help-block {

    color: #eb5055;
    margin: 0em 0em 0em !important;
    
}
p.frgtpwd {

text-transform: none;

}
.profilesub ul li label{
    display: inline;
    color: #eb5055;
}

</style>
        

</head>
<body>
<?php 
 
  $first_dat=$this->db->query("SELECT * FROM coin_info"); 
  $coin_det=$first_dat->getResult();
  $site_lang_data = $this->common_model->GetSiteSettings('site');
  $token_symbol =$site_lang_data[19]->site_value;
  $session= \Config\Services::session();
  $uusersid=SESSION('uusersid');
?>         
<section class="trading-bg">
  <div class="container-fluid">
<?php echo view('user/dashboard_header');?>
      <div class="tab-content trading-mar" id="pills-tabContent">
        <div class="tab-pane fade show active" id="pills-home" role="tabpanel" aria-labelledby="pills-home-tab">
          <div class="trading-table">
            <div class="table-responsive">
            <table class="table-striped">
              <thead>
                <tr>                  
                  <td><center>Trader Name</center></td>
                  <td><center>Trading Pair</center></td>
                  <td><center>Profit (%)</center></td>
                  <td><center>Strategy Type</center></td>
                  <td><center>Action</center></td>            
                </tr>
            </thead>
            <tbody>
              <?php
              $trd=$this->db->query("SELECT * FROM trader_activation WHERE uusersid='$uusersid'")->getResult();
              if($trd) 
              {
                $myencrypt = new MyEncrypt;
                foreach ($trd as $row) 
                {
                  $traderid=$row->trader_id;
                  $trd1=$this->db->query("SELECT * FROM trader WHERE id='$traderid'")->getResult();
                  foreach ($trd1 as $row1) 
                {
                 ?>                
              <tr>                
                <td><center><?php echo $row1->trade_mode;?></center></td>
                <td><center><?php echo $row1->coin_id ?></center></td>
                <td><center><?php echo $row1->profit." %" ?></center></td>
                <td><center> <?php echo $row1->strategy_type ?> </center></td>
                <td><center><a href="<?php echo base_url().'/mycircle/mycircle_view/'.$row1->id;?>"><button class="nav-link active btns"  id="pills-home-tab" data-bs-toggle="pill" data-bs-target="#pills-home" type="button" role="tab" aria-controls="pills-home" aria-selected="true" style="border-radius: 15px;background-color: #f3c356;color:white;">View</button></a></center> </td>
              </tr>
              <?php
              }
              }
              }
              ?>
            </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>


</body>

<script src="<?php echo base_url();?>styles/js/jquery-1.12.2.min.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>assets/js/formValidation.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>assets/js/bootstrap.js"></script>
<script src="<?php echo base_url();?>/assets/boots/js/select_min.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>/assets/boots/css/select2.css">

<?php
  echo view('user/footer1');
  echo view('user/common_script');
?> 
</html>

        
        