<?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_invest_history');?></h2>
			</div>
			<?php 
			if($list->num_rows() > 0) {
				foreach($list->result() as $row) {
			?>
			<div class="row no-gutters col-12 p-3 border-bottom">
				<div class="col-6 text-left"><?php echo $this->lang->line('buy_date');?>: <?php echo date('Y-m-d H:i:s', $row->reinvest_package_date);?></div>
				<div class="col-6 text-right"><?php echo $this->lang->line('buy_package');?>: ¥<?php echo $this->lang->line(get_package($row->reinvest_package_type));?></div>
			</div>
			<?php } }?>
			<div class="row no-gutters col-12 p-3">
				<div class="col-6 text-left"><?php echo $this->lang->line('buy_date');?>: <?php echo date('Y-m-d H:i:s', $basic['registered_date']);?></div>
				<div class="col-6 text-right"><?php echo $this->lang->line('buy_package');?>: ¥<?php echo $this->lang->line(get_package($basic['package_type']));?></div>
			</div>
		</div>
	</div>
	
	<div class="py-4">&nbsp;</div>
	<!-- END CONTENT -->
	
<?php $this->load->view('footer');?>