<?php /* Smarty version 3.1.27, created on 2024-04-21 01:40:54
         compiled from "/home/vertexchai/public_html/primecipher-trade.com/tmpl/edit_account.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:176787012966246ea68e2b09_78471609%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'dd8a5a1c0f098e6fbbfff037994a7e71c27fca87' => 
    array (
      0 => '/home/vertexchai/public_html/primecipher-trade.com/tmpl/edit_account.tpl',
      1 => 1712606487,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '176787012966246ea68e2b09_78471609',
  'variables' => 
  array (
    'settings' => 0,
    'frm' => 0,
    'errors' => 0,
    'err' => 0,
    'userinfo' => 0,
    'pay_accounts' => 0,
    'ps' => 0,
    'mpay_accounts' => 0,
    'p' => 0,
    'countries' => 0,
    'c' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_66246ea6967b04_20568432',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_66246ea6967b04_20568432')) {
function content_66246ea6967b04_20568432 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_myescape')) require_once '/home/vertexchai/public_html/primecipher-trade.com/inc/libs/smarty3/plugins/modifier.myescape.php';

$_smarty_tpl->properties['nocache_hash'] = '176787012966246ea68e2b09_78471609';
echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>


                <!-- PAGE-NAVIGATOR -->
        <section id="page-navigator">
            <div class="container-fluid">
                <div aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="https://petrocapital.tech/user/dashboard">Home</a></li>
                        <li class="breadcrumb-item"><a href="javascript:void(0)"
                                                       class="cursor-inherit">Profile Settings</a></li>
                    </ol>
                </div>
            </div>
        </section>
        <!-- /PAGE-NAVIGATOR -->
        </header>
    <!-- DASHBOARD-HEADER -->

    <main id="page-container">
        <?php echo $_smarty_tpl->getSubTemplate ("left.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>




<?php echo '<script'; ?>
 language=javascript>
function IsNumeric(sText) {
  var ValidChars = "0123456789.";
  var IsNumber=true;
  var Char;
  if (sText == '') return false;
  for (i = 0; i < sText.length && IsNumber == true; i++) { 
    Char = sText.charAt(i); 
    if (ValidChars.indexOf(Char) == -1) {
      IsNumber = false;
    }
  }
  return IsNumber;
}

function checkform() {
  if (document.editform.fullname.value == '') {
    alert("Please type your full name!");
    document.editform.fullname.focus();
    return false;
  }

<?php if ($_smarty_tpl->tpl_vars['settings']->value['use_user_location'] == 1) {?>

  if (document.editform.address.value == '') {
    alert("Please enter your address!");
    document.editform.address.focus();
    return false;
  }
  if (document.editform.city.value == '') {
    alert("Please enter your city!");
    document.editform.city.focus();
    return false;
  }
  if (document.editform.state.value == '') {
    alert("Please enter your state!");
    document.editform.state.focus();
    return false;
  }
  if (document.editform.zip.value == '') {
    alert("Please enter your ZIP!");
    document.editform.zip.focus();
    return false;
  }
  if (document.editform.country.options[document.editform.country.selectedIndex].text == '--SELECT--') {
    alert("Please choose your country!");
    document.editform.country.focus();
    return false;
  }

<?php }?>

  if (document.editform.password.value != document.editform.password2.value) {
    alert("Please check your password!");
    document.editform.fullname.focus();
    return false;
  }

<?php if ($_smarty_tpl->tpl_vars['settings']->value['use_transaction_code']) {?>

  if (document.editform.transaction_code.value != document.editform.transaction_code2.value) {
    alert("Please check your transaction code!");
    document.editform.transaction_code2.focus();
    return false;
  }

<?php }?>


<?php if ($_smarty_tpl->tpl_vars['settings']->value['usercanchangeemail'] == 1) {?>

  if (document.editform.email.value == '') {
    alert("Please enter your e-mail address!");
    document.editform.email.focus();
    return false;
  }

<?php }?>


  for (i in document.editform.elements) {
    f = document.editform.elements[i];
    if (f.name && f.name.match(/^pay_account/)) {
      if (f.value == '') continue;
      var notice = f.getAttribute('data-validate-notice');
      var invalid = 0;
      if (f.getAttribute('data-validate') == 'regexp') {
        var re = new RegExp(f.getAttribute('data-validate-regexp'));
        if (!f.value.match(re)) {
          invalid = 1;
        }
      } else if (f.getAttribute('data-validate') == 'email') {
        var re = /^[^\@]+\@[^\@]+\.\w{2,4}$/;
        if (!f.value.match(re)) {
          invalid = 1;
        }
      }
      if (invalid) {
        alert('Invalid account format. Expected '+notice);
        f.focus();
        return false;
      }
    }
  }

  return true;
}
<?php echo '</script'; ?>
>

 <section id="dashboard">
        <div class="dashboard-wrapper add-fund pb-50">
            <div class="row">
                <div class="col-sm-4">
                    <div class="card secbg br-4">
                        <div class="card-body br-4">
<form action="" method=post onsubmit="return checkform()" name=editform>
<input type=hidden name=a value=edit_account>
<input type=hidden name=action value=edit_account>
<input type=hidden name=say value="">

<?php if ($_smarty_tpl->tpl_vars['frm']->value['say'] == 'changed') {?>
Your account data has been updated successfully.<br><br>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value) {?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['turing_image']) {?><div class="error">Invalid turing image</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['invalid_transaction_code']) {?><div class="error">You have provided invalid Current Transaction Code</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['tfa_code']) {?><div class="error">Invalid 2FA code</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['no_fullname']) {?><div class="error">Please enter your full name</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['ip_exists_in_database']) {?><div class="error">Your IP already exists in our database. Sorry, but registration impossible</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['invalid_username']) {?><div class="error">Please enter valid username! It should contains English letters and digits only.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['username_too_short']) {?><div class="error">Username should contains <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['errors']->value['username_too_short']);?>
 charaters at least</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['username_exists']) {?><div class="error">The Username is already taken. Please try another Username.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['password_confirm']) {?><div class="error">Please correcty confirm your password</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['password_too_small']) {?><div class="error">The password you provided is too small, please enter at least <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['errors']->value['password_too_small']);?>
 characters!</div><?php }?> 
<?php if ($_smarty_tpl->tpl_vars['errors']->value['invalid_email']) {?><div class="error">Please valid email address</div><?php }?> 
<?php if ($_smarty_tpl->tpl_vars['errors']->value['email_confirm']) {?><div class="error">Please correcty confirm your email address</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['email_exists']) {?><div class="error">An account with this email is already exist</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['no_address']) {?><div class="error">Please enter your address</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['no_city']) {?><div class="error">Please enter your city</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['no_state']) {?><div class="error">Please enter your state</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['no_zip']) {?><div class="error">Please enter your zip</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['no_country']) {?><div class="error">Please enter your country</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['transaction_code_confirm']) {?><div class="error">Please correcty confirm your transaction code</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['transaction_code_too_small']) {?><div class="error">The transaction code you provided is too small, please enter at least <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['errors']->value['transaction_code_too_small']);?>
 characters!</div><?php }?> 
<?php if ($_smarty_tpl->tpl_vars['errors']->value['transaction_code_vs_password']) {?><div class="error">The Transaction Code should not be equal to the Password you have defined</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['invalid_account_format']) {?>
 <?php
$_from = $_smarty_tpl->tpl_vars['errors']->value['invalid_account_format'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['err'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['err']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['err']->value) {
$_smarty_tpl->tpl_vars['err']->_loop = true;
$foreach_err_Sav = $_smarty_tpl->tpl_vars['err'];
?>
 <div class="error"><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['err']->value);?>
</div>
 <?php
$_smarty_tpl->tpl_vars['err'] = $foreach_err_Sav;
}
?>
<?php }?>
<?php }?>

                                <div class="form-group">
                       <div class="image-input ">
<label for="image-upload" id="image-label"><i class="fas fa-upload"></i></label>
<input type="file" name="image" placeholder="Choose image" id="image">
<img id="image_preview_container" class="preview-image" style="max-width: 200px"
                                             src="/assets/admin/images/default.png"
                                             alt="preview image">
                                    </div>
                                    
                                </div>
                                <h3></h3>
                                <p>Joined At <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['userinfo']->value['date_register']);?>
</p>
                                <div class="submit-btn-wrapper text-center text-md-left">
                                    <button type="submit" class=" btn btn-primary base-btn btn-block btn-rounded">
                                        <span>Image Update</span></button>
                                </div>
                          
                        </div>
                    </div>
                </div>

                <div class="col-sm-8">
                    <div class="card secbg form-block br-4">
                        <div class="card-body">
                            <ul class="nav nav-tabs" role="tablist">
                                <li class="nav-item">
                                    <a class="nav-link  active"
                                       data-toggle="tab" href="#home">Profile Information</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link "
                                       data-toggle="tab"
                                       href="#menu1">Password Setting</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link "
                                       data-toggle="tab"
                                       href="#identity">Identity Verification</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link "
                                       data-toggle="tab"
                                       href="#addressVerification">Address Verification</a>
                                </li>

                            </ul>
  <!-- Tab panes -->
                            <div class="tab-content ">
<div id="home" class="container mt-4 tab-pane   active">
  <div class="row ">
<div class="col-md-6">
<div class="form-group ">
<label>Account Name</label>
<input class="form-control" type="text" readonly  value="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['userinfo']->value['username']);?>
">
</div></div>

<div class="col-md-6">
<div class="form-group ">
<label>Full Name</label>
<input class="form-control" type="text" name=fullname value="<?php echo smarty_modifier_myescape(htmlspecialchars((($tmp = @$_smarty_tpl->tpl_vars['frm']->value['fullname'])===null||$tmp==='' ? $_smarty_tpl->tpl_vars['userinfo']->value['name'] : $tmp), ENT_QUOTES, 'UTF-8', true));?>
" >
</div></div>

<?php
$_from = $_smarty_tpl->tpl_vars['pay_accounts']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['ps'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['ps']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['ps']->value) {
$_smarty_tpl->tpl_vars['ps']->_loop = true;
$foreach_ps_Sav = $_smarty_tpl->tpl_vars['ps'];
?>
<div class="col-md-6">
<div class="form-group ">
<label><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value['name']);?>
</label>
<?php if ($_smarty_tpl->tpl_vars['settings']->value['usercanchangeegoldacc'] == 0 && $_smarty_tpl->tpl_vars['ps']->value['account'] != '') {
echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['ps']->value['account'], ENT_QUOTES, 'UTF-8', true));
} else { ?><input type=text class="form-control" name="pay_account[<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value['id']);?>
]" value="<?php echo smarty_modifier_myescape(htmlspecialchars((($tmp = @$_smarty_tpl->tpl_vars['frm']->value['pay_account'][$_smarty_tpl->tpl_vars['ps']->value['id']])===null||$tmp==='' ? $_smarty_tpl->tpl_vars['ps']->value['account'] : $tmp), ENT_QUOTES, 'UTF-8', true));?>
" data-validate="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value['validate']['func']);?>
" data-validate-<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value['validate']['func']);?>
="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value['validate'][$_smarty_tpl->tpl_vars['ps']->value['validate']['func']]);?>
" data-validate-notice="<?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['ps']->value['validate']['notification'], ENT_QUOTES, 'UTF-8', true));?>
"><?php }?>
</div></div>
<?php
$_smarty_tpl->tpl_vars['ps'] = $foreach_ps_Sav;
}
?>
<?php
$_from = $_smarty_tpl->tpl_vars['mpay_accounts']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['p']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['p']->value) {
$_smarty_tpl->tpl_vars['p']->_loop = true;
$foreach_p_Sav = $_smarty_tpl->tpl_vars['p'];
?>
<?php
$_from = $_smarty_tpl->tpl_vars['p']->value['accounts'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['ps'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['ps']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['ps']->value) {
$_smarty_tpl->tpl_vars['ps']->_loop = true;
$foreach_ps_Sav = $_smarty_tpl->tpl_vars['ps'];
?>
<div class="col-md-6">
<div class="form-group ">
<label><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['name']);?>
</label>
<?php if ($_smarty_tpl->tpl_vars['settings']->value['usercanchangeegoldacc'] == 0 && $_smarty_tpl->tpl_vars['ps']->value['value'] != '') {
echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['ps']->value['value'], ENT_QUOTES, 'UTF-8', true));
} else { ?><input type=text class="form-control" name="pay_account[<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['id']);?>
][<?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['ps']->value['name'], ENT_QUOTES, 'UTF-8', true));?>
]" value="<?php echo smarty_modifier_myescape(htmlspecialchars((($tmp = @$_smarty_tpl->tpl_vars['frm']->value['pay_account'][$_smarty_tpl->tpl_vars['p']->value['id']][$_smarty_tpl->tpl_vars['ps']->value['name']])===null||$tmp==='' ? $_smarty_tpl->tpl_vars['ps']->value['value'] : $tmp), ENT_QUOTES, 'UTF-8', true));?>
"><?php }?>
</div></div>
<?php
$_smarty_tpl->tpl_vars['ps'] = $foreach_ps_Sav;
}
?>
<?php
$_smarty_tpl->tpl_vars['p'] = $foreach_p_Sav;
}
?>
<div class="col-md-6">
<div class="form-group ">
<label>E-mail address</label>
<?php if ($_smarty_tpl->tpl_vars['settings']->value['usercanchangeemail'] == 1) {?><input type=text name=email value="<?php echo smarty_modifier_myescape(htmlspecialchars((($tmp = @$_smarty_tpl->tpl_vars['frm']->value['email'])===null||$tmp==='' ? $_smarty_tpl->tpl_vars['userinfo']->value['email'] : $tmp), ENT_QUOTES, 'UTF-8', true));?>
" class="form-control"><?php } else {
echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['userinfo']->value['email'], ENT_QUOTES, 'UTF-8', true));
}?>
</div></div>  </div>
<div class="form-group mb-2">
<button type="submit" class="btn btn-primary">Update User</button></div>
</div>
<?php if ($_smarty_tpl->tpl_vars['settings']->value['use_user_location']) {?>
<tr>
 <td>Your Address:</td>
 <td><input type=text name=address value="<?php echo smarty_modifier_myescape(htmlspecialchars((($tmp = @$_smarty_tpl->tpl_vars['frm']->value['address'])===null||$tmp==='' ? $_smarty_tpl->tpl_vars['userinfo']->value['address'] : $tmp), ENT_QUOTES, 'UTF-8', true));?>
" class=inpts size=30></td>
</tr>
<tr>
 <td>Your City:</td>
 <td><input type=text name=city value="<?php echo smarty_modifier_myescape(htmlspecialchars((($tmp = @$_smarty_tpl->tpl_vars['frm']->value['city'])===null||$tmp==='' ? $_smarty_tpl->tpl_vars['userinfo']->value['city'] : $tmp), ENT_QUOTES, 'UTF-8', true));?>
" class=inpts size=30></td>
</tr>
<tr>
 <td>Your State:</td>
 <td><input type=text name=state value="<?php echo smarty_modifier_myescape(htmlspecialchars((($tmp = @$_smarty_tpl->tpl_vars['frm']->value['state'])===null||$tmp==='' ? $_smarty_tpl->tpl_vars['userinfo']->value['state'] : $tmp), ENT_QUOTES, 'UTF-8', true));?>
" class=inpts size=30></td>
</tr>
<tr>
 <td>Your Zip:</td>
 <td><input type=text name=zip value="<?php echo smarty_modifier_myescape(htmlspecialchars((($tmp = @$_smarty_tpl->tpl_vars['frm']->value['zip'])===null||$tmp==='' ? $_smarty_tpl->tpl_vars['userinfo']->value['zip'] : $tmp), ENT_QUOTES, 'UTF-8', true));?>
" class=inpts size=30></td>
</tr>
<tr>
 <td>Your Country:</td>
 <td>
  <select name=country class=inpts>
<option value="">--SELECT--</option>
<?php
$_from = $_smarty_tpl->tpl_vars['countries']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['c'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['c']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['c']->value) {
$_smarty_tpl->tpl_vars['c']->_loop = true;
$foreach_c_Sav = $_smarty_tpl->tpl_vars['c'];
?>
<option <?php if (($_smarty_tpl->tpl_vars['frm']->value['country'] && $_smarty_tpl->tpl_vars['c']->value['name'] == $_smarty_tpl->tpl_vars['frm']->value['country']) || (!$_smarty_tpl->tpl_vars['frm']->value['country'] && $_smarty_tpl->tpl_vars['c']->value['name'] == $_smarty_tpl->tpl_vars['userinfo']->value['country'])) {?>selected<?php }?>><?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['c']->value['name'], ENT_QUOTES, 'UTF-8', true));?>
</option>
<?php
$_smarty_tpl->tpl_vars['c'] = $foreach_c_Sav;
}
?>
  </select>
 </td>
</tr>
<?php }?>
<div id="menu1" class="container mt-4 tab-pane ">
<div class="form-group mt-4">
<label>New Password</label>
<input class="form-control" type="password" name=password value="" >
</div>
<div class="form-group mt-4">
<label>Retype Password</label>
<input class="form-control" type="password" name=password2 value="" >
</div>
<div class="form-group mb-2">
<button type="submit" class="btn btn-primary"> Update Password </button></div>

                                </div>

<?php if ($_smarty_tpl->tpl_vars['settings']->value['use_transaction_code']) {?>
  <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_transaction_code_edit_account'] != 1) {?>
    <?php if ($_smarty_tpl->tpl_vars['userinfo']->value['transaction_code'] != '') {?>
    <tr>
     <td>Current Transaction Code:</td>
     <td><input type=password name=transaction_code_current value="" class=inpts size=30></td>
    </tr>
    <?php }?>
  <?php }?>
  <tr>
   <td>New Transaction Code:</td>
   <td><input type=password name=transaction_code value="" class=inpts size=30></td>
  </tr>
  <tr>
   <td>Retype Transaction Code:</td>
   <td><input type=password name=transaction_code2 value="" class=inpts size=30></td>
  </tr>
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['settings']->value['use_rcb']) {?>
<tr>
 <td>Your RCB Percent:</td>
 <td><?php if ($_smarty_tpl->tpl_vars['userinfo']->value['rcb_lock']) {
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['userinfo']->value['rcb']);?>
%<?php } else { ?><input type=text class=inpts size=30 name="rcb" value="<?php echo smarty_modifier_myescape(number_format((($tmp = @$_smarty_tpl->tpl_vars['frm']->value['rcb'])===null||$tmp==='' ? $_smarty_tpl->tpl_vars['userinfo']->value['rcb'] : $tmp),2));?>
"><?php }?></td>
</tr>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['userinfo']->value['admin_auto_pay_earning'] == 1) {?>
<tr>
 <td colspan=2><input type=checkbox name=user_auto_pay_earning value=1 <?php if ($_smarty_tpl->tpl_vars['userinfo']->value['user_auto_pay_earning'] == 1) {?>checked<?php }?>> Receive earnings directly to e-currency account</td>
</tr>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['settings']->value['use_transaction_code_edit_account'] == 1) {?>
<tr>
 <td>Current Transaction Code:</td>
 <td><input type=password name=transaction_code_current value="" class=inpts size=30></td>
</tr>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['userinfo']->value['tfa_settings']['edit_account']) {?>
<tr>
 <td>2FA Code:</td>
 <td><input type="text" name="tfa_code" class=inpts size=15> <input type="hidden" name="tfa_time" id="tfa_time"></td>
</tr>

<?php echo '<script'; ?>
 language=javascript>
document.getElementById('tfa_time').value = (new Date()).getTime();
<?php echo '</script'; ?>
>

<?php }?>
<?php echo $_smarty_tpl->getSubTemplate ("captcha.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('action'=>"edit_account"), 0);
?>

 <div id="identity" class="container mt-4 tab-pane ">
 <div class="col-md-12">
                                                <div class="form-group ">
                                                    <label class="form-label"
                                                           for="identity_type">Identity Type</label>
                                                    <select name="identity_type" id="identity_type"
                                                            class="form-control ">
                                                        <option value="" selected disabled>Select Type</option>
                                                                                                                    <option
                                                                value="driving-license" >Driving License</option>
                                                                                                                    <option
                                                                value="passport" >Passport</option>
                                                                                                                    <option
                                                                value="national-id" >National ID</option>
                                                                                                            </select>
                                                                                                    </div>
                                            </div>
                                                     
                                                                    </div>

<div id="addressVerification"
                                     class="container mt-4 tab-pane ">
                                         <div class="col-md-12">
                                                <div class="form-group">
                                                    <label class="form-label">Address Proof <span
                                                            class="text-danger">*</span> </label><br>

                                                    <div class="fileinput fileinput-new "
                                                         data-provides="fileinput">
                                                        <div class="fileinput-new thumbnail "
                                                             data-trigger="fileinput">
                                                            <img class="w-150px "
                                                                 src="/assets/admin/images/default.png"
                                                                 alt="...">
                                                        </div>
                                                        <div
                                                            class="fileinput-preview fileinput-exists thumbnail wh-200-150 "></div>

                                                        <div class="img-input-div">
                                                                    <span class="btn btn-success btn-file">
                                                                        <span
                                                                            class="fileinput-new "> Select Image </span>
                                                                        <span
                                                                            class="fileinput-exists"> Change</span>
                                                                        <input type="file" name="addressProof"
                                                                               value=""
                                                                               accept="image/*">
                                                                    </span>
                                                            <a href="#" class="btn btn-danger fileinput-exists"
                                                               data-dismiss="fileinput"> Remove</a>
                                                        </div>

                                                    </div>

                                                                                                    </div>
                                            </div>


<div class="form-group mb-2">
<button type="submit" class="btn btn-primary"> Update</button></div>

</form>
          
                                </div>

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

                </div>

            </div>
        </div>
    </section>

    </main>
</div>

                
<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);

}
}
?>