 <section class="dmain">
  	<div class="container">
    	<div class="gry">
        	<div class="row">
              <?php $currency_info = defaultcurrency();?>
            	<div class="col-lg-7"> 
                	<div class="usrinfo clearfix profile">
                    	<div class="nren">
                        <div class="col-lg-3"><img src="styles/img/usr.png" align="left" />
                        </div>
                        <div class="col-lg-5">
                        	<h2><?php echo $username->username; ?></h2>
                            <label><?php echo $this->lang->line('profile_lbl_register'); ?> : <?php echo $username->createdate; ?></label>
                            <div class="clearfix"></div>
                            <a class="btn btn-success btn-sm" href="<?php echo base_url();?>earninghistory"><?php echo $this->lang->line('profilebtn_label'); ?></a>
                            <a class="btn btn-info btn-sm" href="<?php echo base_url();?>deposithistory"><?php echo $this->lang->line('profiledepbtn_label'); ?></a>
                        </div>
                        <div class="col-lg-4">
                            	
                                    	
                        </div>
                        </div>
                    </div>
                </div>
                <!-- <label>Available</label>. -->
                <div class="col-lg-5">
                	<div class="profilist clearfix">
                    <ul>
                    	<li>Availability <span><?php echo $currency_info->currency_symbol."".number_format($ava_balance, $currency_info->deimal_point, '.', '').' '.strtoupper($currency_info->currency_unit);?> </span></li>
                        <li><?php echo $this->lang->line('profile_lbl_earnings'); ?><span><?php echo $currency_info->currency_symbol."".number_format($totalearn, $currency_info->deimal_point, '.', '').' '.strtoupper($currency_info->currency_unit);?></span></li>
                        <li><?php echo $this->lang->line('profile_lbl_deposit'); ?> <span><?php echo $currency_info->currency_symbol."".number_format($totaldep, $currency_info->deimal_point, '.', '').' '.strtoupper($currency_info->currency_unit);?></span></li>
                        <li><?php echo $this->lang->line('profile_lbl_withdrawal'); ?><span> <?php echo $currency_info->currency_symbol."".number_format($totalwithdraw, $currency_info->deimal_point, '.', '').' '.strtoupper($currency_info->currency_unit);?></span></li>

                        

                    </ul>
                    <?php 
                    $user = $this->common_model->GetUser($this->session->userdata('uusersid'));
                     $referral_url = base_url().'user/dashboard/referral/'.$user->username; ?>
                    	<div class="soclnks">
                        	<a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $referral_url;?>">f</a>
                            <a href="https://plus.google.com/share?url=<?php echo $referral_url;?>">g</a>
                            <a href="http://pinterest.com/pin/create/button/?url=<?php echo $referral_url;?>">p</a>                        
                            <a href="https://twitter.com/intent/tweet?source=<?php echo $referral_url;?>">l</a>
                        </div>
                    </div>
                </div>
                
            </div>
        </div>
    </div>
  </section>