<?php $this->load->view('header');?>

	<!-- BEGIN PAGE HEADER-->

	<div class="row-fluid">

		<div class="span12">

			<!-- BEGIN PAGE TITLE & BREADCRUMB-->

			<h3 class="page-title"><?php echo $this->lang->line('hf_wallet_balance_report');?></h3>

			<ul class="breadcrumb">

				<li>

					<i class="icon-home"></i>

					<a href="<?php echo base_url();?>home/"><?php echo $this->lang->line('hf_home');?></a> 

					<i class="icon-angle-right"></i>

				</li>
				<li><?php echo $this->lang->line('hf_report');?> <i class="icon-angle-right"></i></li>

				<li>

					<?php echo $this->lang->line('hf_wallet_balance_report');?>

				</li>
			</ul>

			<!-- END PAGE TITLE & BREADCRUMB-->

		</div>

	</div>

	<!-- END PAGE HEADER-->

	<!-- BEGIN PAGE CONTENT-->

	<div class="row-fluid">

		<div class="span12">

			<!-- BEGIN EXAMPLE TABLE PORTLET-->
			
			<div class="portlet">
			<form id="report-form" class="form-horizontal" method="post" action="<?php echo base_url();?>report/wallet_balance/">
				<div class="control-group">
					<label class="control-label"><?php echo $this->lang->line('report_from_member_downline');?></label>
					<div class="controls">
						<input type="text" name="username" class="m-wrap medium" value="<?php echo isset($username) ? htmlspecialchars($username, ENT_QUOTES) : '';?>" />
					</div>
				</div>	
				<div class="control-group">
					<label class="control-label"><?php echo $this->lang->line('registration_security_password');?></label>
					<div class="controls">
						<input type="password" name="security_password" class="m-wrap medium" value="" />
					</div>
				</div>
				
				<div class="form-actions">
					<input class="no_display" type="hidden" id="<?php echo $this->security->get_csrf_token_name(); ?>" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
					<button type="submit" class="btn blue"><i class="icon-ok"></i> <?php echo $this->lang->line('report_submit');?></button>
				</div>
			</form>
			</div>
			
			<!-- END EXAMPLE TABLE PORTLET-->

		</div>

	</div>

	<!-- END PAGE CONTENT -->
	
	<?php if(isset($balance)) {?>
	<div class="row-fluid">

		<div class="span12">

			<div class="portlet box blue">

				<div class="portlet-title">

					<div class="caption"><i class="icon-reorder"></i><?php echo $this->lang->line('hf_wallet_balance_report');?></div>

				</div>

				<div class="portlet-body">
					<table class="table table-striped table-hover table-bordered">

						<thead>

							<tr>

								<th><?php echo $this->lang->line('wallet_1');?></th>

								<th><?php echo $this->lang->line('wallet_2');?> </th>
								
								<th><?php echo $this->lang->line('wallet_3');?> </th>
								
								<th><?php echo $this->lang->line('wallet_4');?> </th>
								
							</tr>

						</thead>

						<tbody>

							<tr class="">

								<td><?php echo number_format((isset($balance['v_unit']) ? $balance['v_unit'] : '0.00'), 2, '.', ',');?></td>

								<td><?php echo number_format((isset($balance['v_unit2']) ? $balance['v_unit2'] : '0.00'), 2, '.', ',');?></td>
								
								<td><?php echo number_format((isset($balance['v_unit3']) ? $balance['v_unit3'] : '0.00'), 2, '.', ',');?></td>
								
								<td><?php echo number_format((isset($balance['v_unit4']) ? $balance['v_unit4'] : '0.00'), 2, '.', ',');?></td>
								
							</tr>

						</tbody>

					</table>

				</div>

			</div>

		</div>

	</div>
	<?php }?>

<?php $this->load->view('footer');?>