<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <?php
      $this->load->view('user/common_style');
      $this->load->view('user/header');
    ?> 
  
</head>
  <body >
      <?php
        $this->load->view('user/login_header');
        $currency_info = defaultcurrency();
      ?>

     <div class="col-lg-9 col-md-9 col-sm-12 col-xs-12">
      
    <?php if($this->session->flashdata('success_message')) {?>
      <p class="frgtpwd frgtpwd1"><i class="fa fa-thumbs-up"></i><?php echo $this->session->flashdata('success_message');?></p>
      <?php } elseif ($this->session->flashdata('error_message')) { ?>
       <p class="frgtpwd frgtpwd1 frgtpwdred"><i class="fa fa-thumbs-down"></i><?php echo $this->session->flashdata('error_message');?></p>
      <?php } else { }?>
     <div class="table-list clearfix mb-20">

    <h4 class="other-title theme-color"><?php echo $this->lang->line('invest_history');?></h4>
    
    <div class="table-responsive  main-table">
       
       <table>
          <thead>
            <tr>
              <th><?php echo $this->lang->line('lbl_date');?></th>
              <th><?php echo $this->lang->line('mature_date');?></th>
              <th><?php echo $this->lang->line('lbl_account_name');?></th>
              <th><?php echo $this->lang->line('lbl_Strategy');?></th>
              <th><?php echo $this->lang->line('lbl_amount');?></th>
              
            </tr>
          </thead>
          <tbody>
        
              <?php //print_r($invest);
                foreach ($invest as $row) {
                  
                 $coin=$row->currency;


                  $condition = "coid = '".$coin."'";  
                  $coin_info = $this->common_model->GetRow('coin_info',$condition);


              ?>
                <tr>
                  <td><?php echo $row->invest_date;?></td>
                  <td><?php echo $row->end_date;?></td>
                  <td><?php echo $row->account_name;?></td>
                  <td><?php echo $row->strategy_name;?></td>
                  <td><?php echo $row->amount;?> <?php echo $coin_info->coin_symbol;?></td>
                  
                </tr>
                <?php  } ?>
          </tbody>
        </table>
      
   </div>
    
    </div>
    
    </div>
    
    </div>
    
  </div>
</div>
<?php
$this->load->view('user/footer');
$this->load->view('user/common_script');
  // $this->load->view('user/result_check');
?>

  </body>
</html>
