<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2><?= print_lang($app_lang,'currency_rates'); ?></h2>
        <ol class="breadcrumb">
            <li>
                <a class="url-elem" href="<?php echo url('/dashboard'); ?>"><?= print_lang($app_lang,'home'); ?></a>
            </li>
            <li class="active">
                <strong><?= print_lang($app_lang,'currency_rates'); ?></strong>
            </li>
        </ol>
    </div>
    <div class="col-lg-2">
    </div>
</div>


<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox-title">
        <h5><?= print_lang($app_lang,'currency_rates'); ?></h5>
    </div>
    <div class="ibox-content">
        <!-- spinner -->
        <div class="sk-spinner sk-spinner-three-bounce">
            <div class="sk-bounce1"></div>
            <div class="sk-bounce2"></div>
            <div class="sk-bounce3"></div>
        </div>
        <!-- spinner -->
        <div class="row">
            <div class="col-sm-12 b-r">
                <form role="form" id="currency-rates-form" action="<?php echo url('/currency-rates/update'); ?>">

                    <?php foreach($currencies as $row){ if($row['uid'] == 'usd'){ continue; } ?>
                        <div class="col-md-4">
                            <div class="form-group">
                                <label> <strong class="text-danger">?</strong> <?= $row['name']; ?> = 1 USD</label>
                                <input type="text" class="form-control currency-rate-iput" name="<?= $row['uid']; ?>" value="<?= $row['usd_equalance']; ?>" placeholder="<?= print_lang($app_lang,'rate'); ?>">
                            </div>
                        </div>
                    <?php } ?>

                    <?php if(check_user_access('edit_currency_rates') === TRUE){ ?>
                        <div class="row extra-mar-botm">
                            <div class="col-md-12 text-right">
                                <button class="btn btn-w-m btn-primary" type="submit"><?= print_lang($app_lang,'update'); ?></button>
                            </div>
                        </div>
                    <?php } ?>

                </form>
            </div>
        </div>
    </div>

</div>
