
<?php $__env->startSection('content'); ?>
<div class="col-md-12 content-header" >
    <h1><i class="fa fa-usd"></i> <?php echo e(trans('application.currency')); ?></h1>
</div>
<section class="content">
    <div class="row">
        <div class="col-md-3">
            <?php echo $__env->make('settings.partials._menu', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        </div>
        <div class="col-md-9">
            <div class="box box-primary">
                <div class="box-body">
                    <?php if(count($errors) > 0): ?>
                    <?php echo form_errors($errors); ?>
                    <?php endif; ?>
                        <?php echo Form::button(trans('application.update_exchange_rates'), ['class'=>"btn btn-sm btn-primary",'id'=>"btn_update_exchange_rates"]); ?>
                        <table class="table table-striped table-bordered datatable">
                        <thead>
                        <tr>
                            <th></th>
                            <th><?php echo e(trans('application.name')); ?></th>
                            <th><?php echo e(trans('application.code')); ?></th>
                            <th><?php echo e(trans('application.symbol')); ?></th>
                            <th><?php echo e(trans('application.exchange_rate')); ?></th>
                            <th><?php echo e(trans('application.active')); ?></th>
                            <th><?php echo e(trans('application.default')); ?></th>
                            <th><?php echo e(trans('application.action')); ?></th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php if($currencies->count() > 0): ?>
                        <?php $__currentLoopData = $currencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $currency): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); ?>
                        <tr>
                            <td></td>
                            <td><?php echo e($currency->name); ?></td>
                            <td><?php echo e($currency->code); ?></td>
                            <td><?php echo e($currency->symbol); ?></td>
                            <td><?php echo e($currency->exchange_rate); ?></td>
                            <td><?php echo $currency->active  ? '<span class="label label-success">'.trans('application.yes').'</span>' : '<span class="label label-danger">'.trans('application.no').'</span>'; ?></td>
                            <td><?php echo $currency->default_currency  ? '<span class="label label-success">'.trans('application.yes').'</span>' : '<span class="label label-danger">'.trans('application.no').'</span>'; ?></td>
                            <td>
                                <?php echo edit_btn('currency.edit', $currency->uuid); ?>
                            </td>
                        </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); ?>
                        <?php endif; ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</section>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
    <?php echo $__env->make('settings.partials.settings_js', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>