<!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');
  ?>
  <link rel="stylesheet" href="<?php echo base_url();?>styles/fonts/Socialico/stylesheet.css">
  <link href="<?php echo base_url();?>styles/css/table.css" type="text/css" rel="stylesheet" />
  
  <style type="text/css">
    .accordion_top_button_area button[type=submit]{
      font-size: 14px;
      color: #fff;
      text-transform: uppercase;
      font-family: 'Poppins', sans-serif;
      font-weight: 700;
      line-height: 50px;
      display: block;
      text-align: center;
    }
    .datatable select {
      background-size: 35% auto;
    }
  </style>
</head>
<body>
  <div id="preloader">
    <div class="preloader_spinner"> </div>
  </div>
  <section class="body_wrapper home_one">
    <?php
      $this->load->view('user/header');
    ?>

    <!-- ============= banner_area start ============== -->
    <section class="about_banner_area">
        <div class="about_banner_area_bg"></div> <!-- this code is for parallax -->
        <div class="about_banner_area_table">
            <div class="about_banner_area_table_cell">
                <div class="container">
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="about_banner_area_content">
                                <h3><?php echo $this->lang->line('last_lbl'); ?> <?php echo $this->lang->line('Investors_lbl'); ?></h3>
                                <ul>
                                    <li><a href="<?php echo base_url(); ?>"><?php echo $this->lang->line('text_home'); ?></a></li>
                                    <li><a href=""><?php echo $this->lang->line('last_lbl'); ?> <?php echo $this->lang->line('Investors_lbl'); ?></a></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div> <!-- container end -->
            </div> <!-- table_cell end -->
        </div> <!-- table end -->
    </section>
    <!-- ============= banner_area end ============== -->

    <section class="dmain1">
      <div style="margin-top:50px;margin-bottom:50px;" class="container">
        <h2 class="section_hedings1">
          <?php echo $this->lang->line('last_lbl'); ?> 
          <span>
            <?php echo $this->lang->line('Investors_lbl'); ?> 
          </span>
        </h2>
        <br/>
        <div class="row">
          <div class="col-lg-12">
            <div class="datatable">
              <?php $currency_info = defaultcurrency();?>
              <table>
                <colgroup>
                  <col width="10%">
                  <col width="25%">
                  <col width="25%">
                  <col width="25%">
                  <col width="15%">
                </colgroup>
                <thead>
                  <tr>
                    <th><?php echo $this->lang->line('exp_report_sno'); ?> </th>
                    <th><?php echo $this->lang->line('plac_smtp_username'); ?></th>
                    <th><?php echo $this->lang->line('lbl_payment_gateway'); ?></th>
                    <th><?php echo $this->lang->line('lbl_deposit'); ?> </th>
                    <th><?php echo $this->lang->line('trans_date'); ?></th>
                  </tr>
                </thead>
                <tbody>
                  
                  <?php 
                    if($lastinvest) {
                      $i= 1; 
                      foreach ($lastinvest as $res) { 
                        if($res->payment_id) {
                          $condition = "payment_key in('logo') AND payment_id = '".$res->payment_id."'";
                          $payment_info = $this->finance_model->Paymentimage($condition);
                          $payment_image = $payment_info->payment_value;
                        } else {
                          $payment_image = '';
                        }
                        
                        $user_condition = "uusersid = '".$res->uusersid."'";
                        $user_display = $this->common_model->GetRow('uusers',$user_condition);
                    ?>
                  <tr>
                    <td><?php echo $i;?></td>
                    <td><?php echo $user_display->username; ?></td>
                    <td><?php if($payment_image) { ?><img src="<?php echo base_url();?>content/payment/<?php echo $payment_image; ?>" width="60"/> <?php }else {  echo "-----"; ?> <?php } ?></td>
                    <td><?php echo $currency_info->currency_symbol."".number_format($res->amount, $currency_info->deimal_point, '.', '').' '.strtoupper($currency_info->currency_unit);?></td>
                    <td><?php echo $res->date; ?></td>
                  </tr>
                  <?php $i++; } }?>
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </section>

    
  </section>

   <?php
      // $this->load->view('user/common_script');
    ?>
    <script src="<?php echo base_url();?>styles/js/jquery-1.12.2.min.js"></script>

<script src="<?php echo base_url();?>styles/js/jquery.meanmenu.js"></script>
<script src="<?php echo base_url();?>styles/js/owl.carousel.min.js"></script>
<script src="<?php echo base_url();?>styles/js/waypoints.min.js"></script>
<script src="<?php echo base_url();?>styles/js/jquery.counterup.min.js"></script>
<script src="<?php echo base_url();?>styles/js/jquery.mixitup.min.js"></script>
<script src="<?php echo base_url();?>styles/js/waypoints.min.js"></script>
<script src="<?php echo base_url();?>styles/js/instafeed.min.js"></script>
<script src="<?php echo base_url();?>styles/js/bootstrap.min.js"></script>



<script src="<?php echo base_url();?>styles/js/main.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>styles/js/owl.carousel.min.js"></script>
<script type="text/javascript">



  $(document).ready(function($) {
  $("#owl-example").owlCarousel({   
   nav:true,
   
   items : 8, 
    itemsCustom : false,
    itemsDesktop : [1199,8],
    itemsDesktopSmall : [980,5],
    itemsTablet: [768,5],
    itemsTabletSmall: [768,4],
    itemsMobile : [479,2],
    singleItem : false,
    itemsScaleUp : true,
  
      navigation : true,
    navigationText : ["",""],
    rewindNav : true,
    scrollPerPage : true,
  });
  });
   
 
  
  </script>
    

<script type="text/javascript" src="<?php echo base_url();?>styles/js/datatables.min.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>styles/js/application.js"></script>

<script type="text/javascript">

$(document).ready(function() {
$('.datatable table').dataTable(
{
        "paginate": false,
        "filter": false,
        "Info": false
                 } );

 
} );
</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>

<?php
  echo site_info('site_analytical_code');
  echo site_info('site_live_chat_code');
?>

<?php
      $this->load->view('user/footer');
    ?> 
 
</body>
</html>
