<!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');

?>
<div class="col-lg-9 col-md-9 col-sm-12 col-xs-12">
  <div class="table-list clearfix">
    <h4 class="other-title theme-color"><?php echo $this->lang->line('menu_ex_int_his');?></h4>
    <div class="table-responsive  main-table">
        <table>
          <thead>
            <tr>
              <th><?php echo $this->lang->line('transactionID');?></th>
              <th><?php echo $this->lang->line('lbl_date');?></th>
              <th><?php echo $this->lang->line('lbl_type');?></th>
              <th><?php echo $this->lang->line('trans_descr');?></th>
              <th><?php echo $this->lang->line('lbl_amount');?></th>
              <th><?php echo $this->lang->line('ref_id');?></th>
          </tr>
          </thead>
          <tbody>
          <?php 
          if($search_res)
          {

            foreach ($search_res as $row) 
            {
              
              $type=str_ireplace("_"," ",$row->type);
              $condition = "coid = '".$row->currency."'";
              $coin_det = $this->common_model->GetRow('coin_info',$condition);
              $decimal=$coin_det->coin_decimal;
              if($decimal=='0')
                  $decimal='2';
              $find_trans=$this->db->query("select * from arbit_fund where id='".$row->depositid."'")->row();

              $ref_id=$find_trans->transaction_id;
              if($ref_id=='')
                  $ref_id='---';

                
            ?>
            <tr>
             <td ><?php echo $row->transactionid;?></td>
             <td><?php echo $row->date;?></td>
             <td><?php echo ucwords($type);?></td>
             <td><?php echo ucwords($row->description);?></td>
             <td ><?php echo $row->amount;?> <?php echo strtoupper($coin_det->coin_symbol);?> </td>
             <td><?php echo $ref_id;?> </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');

?>


</html>


  