

<?php require_once(ROOT . "/views/" . LANG . "/layouts/_header_c.php"); ?>



<div class="page-content-wrapper ">

  <div class="container">

    
    <!-- end row -->

    <div class="row">
      <div class="col-sm-4 col-lg-4">
        <div class="panel panel-default" >
          <div class="panel-heading"><h3 class="panel-title">Данные аккаунта</h3></div>
          <div class="panel-body">
            <h5 class="profileinfoh5">Логин: <span><?=$this->user_data['user']; ?></span></h5>
            <h5 class="profileinfoh5">E-mail: <span class="profileinfospan"><?=$this->user_data['email']; ?></span></h5>
            <h5 class="profileinfoh5">ID в системе: <span>#<?=$this->usid; ?></span></h5>
            <h5 class="profileinfoh5">Меня пригласил: <span><?=($this->user_data['referer1']) ? $this->user_data['referer1'] : 'сам пришёл'; ?></h5>
            <h5 class="profileinfoh5">Время на проекте: <span><?=$this->user_data['days']; ?> дней</span></h5>
          <center>
 <button type="submit"  class="btn waves-effect btn-primary btn-block calc_btn"><i class="fa fa-cog"></i> <a href="/settings">  <font color="#ffffff" style="
    color: #211f3d;
    text-shadow: 0 0 black;
"> Настройки аккаунта</font></a></button></center>
            
         
						
          </div>
        </div>
      </div>
      <div class="col-sm-4 col-lg-4">
        <div class="panel panel-default">
          <div class="panel-heading" ><h3 class="panel-title">Статистика аккаунта</h3></div>
          <div class="panel-body">
            <h5 class="profileinfoh5">Сумма пополнений: <span><?=sprintf("%.2f", $this->user_data['insert_sum']); ?>₽</span></h5>
            <h5 class="profileinfoh5">Сумма выплат: <span><?=sprintf("%.2f", $this->user_data['payment_sum']); ?>₽</span></h5>
            <h5 class="profileinfoh5">Доход с рефералов: <span><?=sprintf("%.2f", $this->user_data['from_referals1'] + $this->user_data['from_referals2'] + $this->user_data['from_referals3'] + $this->user_data['from_referals4'] + $this->user_data['from_referals5']); ?>₽</span></h5>
            <h5 class="profileinfoh5">Скорость заработка: <span><?=sprintf("%.4f", $this->user_data['speed']); ?>₽ / час</span></h5>
            <h5 class="profileinfoh5">Саженцев: <span><?=$user_stat['deps_count']; ?> шт.</span></h5>
       
            <center>
             <button type="submit"  class="btn waves-effect btn-primary btn-block calc_btn"><i class=""></i> <a href="/park">  <font color="#ffffff" style="
    color: #211f3d;
    text-shadow: 0 0 black;
"> Купить саженец</font></a></button>
</center>
       </div>
        </div>
      </div>
	  


	  
      <div class="col-sm-3 col-lg-3">
        <div class="panel panel-default">
 <script type="text/javascript" src="//vk.com/js/api/openapi.js?149"></script>


          
         

         
          </div>
          </div>
        </div>
      </div>
    </div>
    
    
  

    <!-- end row -->
    



    <div class="row">
      <div class="col-sm-12">
        <div class="panel panel-primary">
          <div class="panel-body">
            <h4 class="m-t-0">Ваши саженцы</h4>
            <div class="row">

            <?php foreach ($deposits as $deposit) : ?>

              <div class="col-lg-1 col-sm-2 col-xs-2">
                <img src="/assets/images/cars/n<?=$deposit['plan']; ?>.png" class="profilecarimg">
              </div>  

            <?php endforeach; ?>

            </div>
          </div>
        </div>
      </div>
    </div>
  </div>

</div>

<?php require_once(ROOT . "/views/" . LANG . "/layouts/_footer_c.php"); ?>
