<?php $currency_symbol = $this->customlib->getSchoolCurrencyFormat(); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">

    <section class="content-header">
        <h1>
            <i class="fa fa-mortar-board"></i> History Rates</h1>
			
											 <a href="<?php  echo base_url(); ?>dailyrates/historyrates" class="col-md pull-right">History Rates</a>
								 <b style="padding-left:5px;padding-right:5px;"class="pull-right"> | </b>											 
								 <a href="<?php  echo base_url(); ?>dailyrates/" class="col-md pull-right">Set Daily Rates</a>
								 <b style="padding-left:5px;padding-right:5px;"class="pull-right"> | </b>
								 <a href="<?php  echo base_url(); ?>homecurrencies/" class="col-md pull-right">Home Currency</a>
								 <b style="padding-left:5px;padding-right:5px;"class="pull-right"> | </b>
								 <a href="<?php  echo base_url(); ?>internationalcurrencies/" class="col-md pull-right">Foreign Currency</a> 
								 <b style="padding-left:5px;padding-right:5px;"class="pull-right"> | </b>
								 <a href="<?php  echo base_url(); ?>currency/" class="col-md pull-right">Add Currency</a>
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-md-<?php
            if ($this->rbac->hasPrivilege('class', 'can_add')) {
                echo "12";
            } else {
                echo "12";
            }
            ?>">
                <!-- general form elements -->
                <div class="box box-primary">
                    <div class="box-header ptbnull">
                        <h3 class="box-title titlefix">History Rates</h3>
                        <div class="box-tools pull-right">
                        </div><!-- /.box-tools -->
                    </div><!-- /.box-header -->
                    <div class="box-body">
                        <div class="table-responsive mailbox-messages">
                            <div class="download_label">History Rates List</div>
                                                       <table class="table table-striped table-bordered table-hover example">
                                <thead>
                                    <tr>
                                        <th>Date Captured</th>
                                        <th>Foreign Currency</th>
                                        <th>Home Currency</th>
                                        <th>Foreign Rate</th>
                                        <th>Home Rate</th>
                                        <th>Description</th>
                                    </tr>
                                </thead>
                                <tbody>                                   

                                    <?php
                                    $count = 1;
                                    foreach ($dailyrates->result() as $bankrate) {
                                        ?>
                                        <tr>
                                            <td class="mailbox-name"> <?php echo $bankrate->date; ?></td>
                                            <td class="mailbox-name"> <?php echo $bankrate->foreign_currency; ?></td>
                                            <td class="mailbox-name"> <?php echo $bankrate->home_currency; ?></td>
                                            <td class="mailbox-name"> <?php echo $bankrate->foreign_rate; ?></td>
                                            <td class="mailbox-name"> <?php echo $bankrate->home_rate; ?></td>
                                            <td class="mailbox-name"> <?php echo $bankrate->description; ?></td>
                                        </tr>
                                        <?php
                                    }
                                    $count++;
                                    ?>
                                </tbody>
                            </table>
                        </div><!-- /.mail-box-messages -->
                    </div><!-- /.box-body -->
                </div>
            </div><!--/.col (left) -->
            <!-- right column -->

        </div>
        <div class="row">
            <!-- left column -->

            <!-- right column -->
            <div class="col-md-12">

            </div><!--/.col (right) -->
        </div>   <!-- /.row -->
    </section><!-- /.content -->
</div><!-- /.content-wrapper -->

