<?php
/* Smarty version 5.4.2, created on 2024-12-04 02:48:06
  from 'file:../default/modal_add_currency.tpl' */

/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
  'version' => '5.4.2',
  'unifunc' => 'content_674fb4d69af9a9_16242645',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'ca092f1767f37a0b47e363563a5923addbf811ac' => 
    array (
      0 => '../default/modal_add_currency.tpl',
      1 => 1730635718,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
))) {
function content_674fb4d69af9a9_16242645 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/Users/razib/Herd/suite/ui/theme/default';
?><div class="mx-auto" style="max-width: 400px;">
    <div class="panel mb-0 rounded-0">
        <div class="panel-container">
            <div class="panel-hdr">
                <h2>
                    <?php if ($_smarty_tpl->getValue('f_type') == 'edit') {?>
                        <?php echo $_smarty_tpl->getValue('_L')['Edit'];?>

                    <?php } else { ?>
                        <?php echo $_smarty_tpl->getValue('_L')['New Currency'];?>

                    <?php }?>
                </h2>
            </div>
            <div class="panel-content">
                <form class="form-horizontal" id="ib_modal_form">

                    <div class="mb-3"><label for="iso_code"><?php echo $_smarty_tpl->getValue('_L')['Currency_Code'];?>
</label>

                        <input type="text" id="iso_code" name="iso_code" class="form-control currencyCode" value="<?php echo $_smarty_tpl->getValue('val')['code'];?>
">
                        <span class="help-block"><?php echo $_smarty_tpl->getValue('_L')['Currency Example'];?>
</span>


                    </div>



                    <div class="mb-3"><label for="rate"><?php echo $_smarty_tpl->getValue('_L')['Base Conversion Rate'];?>
</label>

                        <input type="text" id="rate" name="rate" class="form-control" value="<?php echo $_smarty_tpl->getValue('val')['rate'];?>
" >

                        <span class="help-block">Enter the value of <strong id="selectedCurrency">1 <?php echo $_smarty_tpl->getValue('val')['code'];?>
</strong> = How much <?php if ((null !== ($_smarty_tpl->getValue('home_currency')->iso_code ?? null))) {?> <?php echo $_smarty_tpl->getValue('home_currency')->iso_code;?>
 <?php }?>?</span>
                    </div>

                    <input type="hidden" name="f_type" id="f_type" value="<?php echo $_smarty_tpl->getValue('f_type');?>
">
                    <input type="hidden" name="cid" id="cid" value="<?php echo $_smarty_tpl->getValue('val')['cid'];?>
">

                    <div class="mb-3">
                        <button class="btn btn-primary modal_submit" type="submit" id="modal_submit"><i class="fal fa-check"></i> <?php echo $_smarty_tpl->getValue('_L')['Save'];?>
</button>
                    </div>

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

<?php }
}
