<?php $this->load->view('header');?>
	
	<!-- BEGIN CONTENT -->
	<div class="row no-gutters">
		<div class="col-12 bg-red rounded-lg p-3">
			<div class="row no-gutters">
				<div class="col-12 rounded-lg border-dark-blue bg-red p-3 text-white">
					<div class="d-flex justify-content-center mb-3">
						<h2><?php echo $this->lang->line('hf_currency_rate');?></h2>
					</div>
					<?php 
					if($list->num_rows() > 0) {
						$i = 1;
						foreach($list->result() as $row) {
							$border = (($list->num_rows() > $i) ? 'border-bottom' : '');
					?>
					<div class="row no-gutters col-12 p-3 <?php echo $border;?>">
						<div class="col-6 text-left">
							<?php echo  $this->lang->line('currency_' . strtolower($row->currency_code));?>
						</div>
						<div class="col-6 text-right">
							<?php echo $this->lang->line('transfer_in');?>: <span class="text-success"><?php echo $row->t_currency_rate;?></span><br />
							<?php echo $this->lang->line('transfer_out');?>: <span class="text-danger"><?php echo $row->w_currency_rate;?></span>
						</div>
					</div>	
					<?php $i++; } } else {?>
					<div class="row no-gutters col-12 p-3">
						<div class="col-12 text-center"><?php echo $this->lang->line('message_no_data_found');?></div>
					</div>
					<?php }?>
				</div>
			</div>
		</div>	
	</div>
	
	<div class="py-4">&nbsp;</div>
	<!-- END CONTENT -->
	
<?php $this->load->view('footer');?>