<!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" />
  <script src="<?php echo base_url();?>styles/js/modernizr.js"></script>
    <style>
    .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');
      $this->load->view('user/login_header');
    ?>

    <section class="dmain">
    	<div class="container">
        <!-- <h2 class="section_hedings1"><?php echo $historytitle; ?> <span><?php echo $this->lang->line('trans_his_title'); ?></span></h2><br /> -->
        
        <div class="widget widget_download_link" style="margin:0">
          <div class="widget_download_link_content">
            <h2 class="section_hedings_white"> <?php echo $historytitle; ?> <span><?php echo $this->lang->line('trans_his_title'); ?></span></h2>
            <ul>
            <?php if($deposit) { ?>
              <li>
                <a href="#" style="cursor:default"> <?php echo $this->lang->line('lbl_package_name'); ?>  <span><?php echo ucfirst($deposit->package_name); ?></span></a>
              </li>
              <li>
                <a href="#" style="cursor:default"> <?php echo $this->lang->line('lbl_plan_name'); ?> <span><?php echo ucfirst($deposit->plan_name); ?></span></a>
              </li>
              <li>
                <a href="#" style="cursor:default"> <?php echo $this->lang->line('lbl_invest_date'); ?> <span><?php echo ucfirst($deposit->invest_date); ?></span></a>
              </li>
              <li>
                <a href="#" style="cursor:default"> <?php echo $this->lang->line('lbl_next_date'); ?> <span><?php echo ucfirst($deposit->run_date); ?></span></a>
              </li>
              <li>
                <a href="#" style="cursor:default"> <?php echo $this->lang->line('lbl_mature_date'); ?> <span><?php echo ucfirst($deposit->mature_date); ?></span></a>
              </li>
              <li>
                <a href="#" style="cursor:default"> <?php echo $this->lang->line('lbl_interest'); ?> <span><?php echo ucfirst($deposit->rate); ?> %</span></a>
              </li>
              <li>
                <a href="#" style="cursor:default"> <?php echo $this->lang->line('lbl_period_name'); ?> <span><?php echo ucfirst($deposit->periord_name); ?></span></a>
              </li>
              <li>
                <a href="#" style="cursor:default"> <?php echo $this->lang->line('lbl_status'); ?> <span><?php echo ucfirst($deposit->dstatus); ?></span></a>
              </li>
              <?php } else { ?>
                <li>
                  <a href="#" style="cursor:default" class="text-center"> <?php echo $this->lang->line('lbl_no_records'); ?> </a>
                </li>
              <?php } ?>
            </ul>
          </div>
        </div>
          
      </div>
    </section>
    <section class="dmain"></section>
    <section class=" dmain1">
    	<div class="container">
       	<div class="row">
          <div class="col-lg-12">
            <div class="datatable">
              <?php $currency_info = defaultcurrency();?>
            	<table>
                <colgroup>
                  <col width="20%">
                  <col width="20%">
                  <col width="25%">
                  <col width="25%">
                  <col width="10%">
                </colgroup>
                <thead>
                  <tr>
                  <th><?php echo $this->lang->line('trans_date'); ?> </th>
                  <th><?php echo $this->lang->line('transactionID'); ?></th>
                  <th><?php echo $this->lang->line('trans_amnt'); ?> </th>
                  <th><?php echo $this->lang->line('trans_descr'); ?></th>
                  <th><?php echo $this->lang->line('trans_mode'); ?></th>
                  </tr>
                </thead>
                <tbody>
                  <?php 
                    if($search_res) 
                    { 
                      foreach ($search_res as $res) 
                      { 
                          $condition = "payment_key in('logo') AND payment_id = '".$res->payment_id."'";
                          $payment_image = $this->finance_model->Paymentimage($condition);
                  ?>
                      <tr>
                        <td><?php echo $res->date;?></td>
                        <td><?php echo $res->transactionid; ?></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 ucfirst($res->description); ?></td>
                        <td><img src="<?php echo base_url();?>content/payment/<?php echo $payment_image->payment_value; ?>" width="60"/></td>
                      </tr>
                  <?php  
                      } 
                    }
                  ?>
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </section>
                
    <section class="dmain"></section>
      <?php
        $this->load->view('user/footer');
      ?>
  </section>

  <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>
 
</body>
</html>
