<?php $this->load->view('header');?>
		
	<section class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            &nbsp;
          </div>
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item active"><?php echo $this->lang->line('hf_home');?></li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
    </section>
	
	<section class="content">
      <div class="container-fluid">
		
        <div class="row">
          <div class="col-md-12">
            <div class="row">
			  <div class="col-sm-6">
				<div class="position-relative p-3 mb-3 bg-navy text-center" style="height: 160px">
					<dl class="row">
					  <dd class="col-sm-12 text-xl"><?php echo $this->lang->line('package_' . $package_type);?></dd>
					  <dd class="col-sm-12 text-lg"><?php echo $this->session->userdata('member_username');?> (<?php echo (($casino_username != '') ? $casino_username : $this->lang->line('home_not_binding'));?>)</dd>
					  <dd class="col-sm-12 text-md"><?php if($highest_level > 0) {?><img src="<?php echo base_url();?>assets/img/badges/rank_<?php echo $highest_level;?>.png" border="0" /> <?php }?><?php echo $this->lang->line(get_level($highest_level));?></dd>
					</dl>
				</div>
			  </div>
			  
			  <div class="col-sm-6">
				<div class="position-relative p-3 mb-3 bg-navy" style="height: 160px">
				  <div class="ribbon-wrapper ribbon-xl">
					<div class="ribbon bg-<?php echo (($insurance_status == 1) ? 'success' : 'danger');?>">
					  <?php echo (($insurance_status == 1) ? $this->lang->line('home_insurance_protected') : $this->lang->line('home_insurance_non_protected'));?>
					</div>
				  </div>
				  <span class="text-xl"><?php echo $this->lang->line('home_insurance_status');?></span>
				</div>
			  </div>
			  
			  <!-- fix for small devices only -->
			  <div class="clearfix hidden-md-up"></div>
			  
			  <div class="col-sm-6">
				<div class="position-relative p-3 mb-3 bg-navy text-left" style="height: 160px">
					<dl class="row">
					  <dt class="col-4 col-sm-4 text-success"><?php echo $this->lang->line('wallet_1');?>:</dt>
					  <dd class="col-8 col-sm-8"><?php echo number_format($v_unit, 2, '.', ',');?></dd>
					  <dt class="col-4 col-sm-4 text-success"><?php echo $this->lang->line('wallet_2');?>:</dt>
					  <dd class="col-8 col-sm-8"><?php echo number_format($v_unit2, 2, '.', ',');?></dd>
					  <dt class="col-4 col-sm-4 text-success"><?php echo $this->lang->line('wallet_3');?>:</dt>
					  <dd class="col-8 col-sm-8"><?php echo number_format($v_unit3, 2, '.', ',');?></dd>
					  <dt class="col-4 col-sm-4 text-success"><?php echo $this->lang->line('wallet_4');?>:</dt>
					  <dd class="col-8 col-sm-8"><?php echo number_format($v_unit4, 2, '.', ',');?></dd>
					</dl>
				</div>
			  </div>
			  
			  <div class="col-sm-6">
				<div class="position-relative p-3 mb-3 bg-navy text-left" style="height: 160px">
					<dl class="row">
					  <dt class="col-4 col-sm-4 text-success"><?php echo $this->lang->line('network_total_intro');?>:</dt>
					  <dd class="col-8 col-sm-8"><?php echo $direct_downline['total'];?></dd>
					  <dt class="col-4 col-sm-4 text-success"><?php echo $this->lang->line('network_total_group');?>:</dt>
					  <dd class="col-8 col-sm-8"><?php echo $all_downline['total'];?></dd>
					  <dt class="col-4 col-sm-4 text-success"><?php echo $this->lang->line('network_group_total_sales');?>:</dt>
					  <dd class="col-8 col-sm-8"><?php echo number_format($all_downline['sales'], 2, '.', ',');?></dd>
					</dl>
				</div>
			  </div>
			  <!-- /.col -->
			</div>
          </div>
          <!-- /.col -->
        </div>
        <!-- /.row -->
      </div><!-- /.container-fluid -->
    </section>
		
<?php $this->load->view('footer');?>		