<?php $this->load->view('header');?>
	
	<!-- BEGIN CONTENT -->
	<div class="row no-gutters">
		<div class="col-12 rounded-lg border-dark-blue bg-white p-3">
			<div class="d-flex justify-content-center mb-3 border-bottom">
				<h2><?php echo $this->lang->line('hf_placement_group');?></h2>
			</div>
			<div class="d-flex justify-content-center mt-5 border-bottom">
				<?php if($num == 1) {?>
				<h5><?php echo $this->lang->line('network_level_one');?>: &nbsp;<?php echo sizeof($downline['level_1']);?></h5>
				<?php } else if($num == 2) {?>
				<h5><?php echo $this->lang->line('network_level_two');?>: &nbsp;<?php echo sizeof($downline['level_2']);?></h5>
				<?php } else if($num == 3) {?>
				<h5><?php echo $this->lang->line('network_level_three');?>: &nbsp;<?php echo sizeof($downline['level_3']);?></h5>
				<?php }?>
			</div>
			<?php 
				for($i=0;$i<sizeof($downline['level_' . $num]);$i++) {
					$border = ((sizeof($downline['level_' . $num]) > ($i + 1)) ? 'border-bottom' : '');
			?>
			<div class="row no-gutters col-12 p-3 <?php echo $border;?>">
				<div class="col-12 text-left"><strong><?php echo $this->lang->line('network_username');?>:</strong> <?php echo $downline['level_' . $num][$i]['username'];?></div>
			</div>
			<?php }?>
		</div>
	</div>
	
	<div class="py-4">&nbsp;</div>
	<!-- END CONTENT -->
	
<?php $this->load->view('footer');?>