<?php /* Smarty version 3.1.27, created on 2025-07-04 14:30:47
         compiled from "/home/zeebng/tradex.jasminewrubel.com/tmpl/account_main.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:15951002226867e59780c567_57746225%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '341bcd94970de64fe312cccc5fe382f2c4daab06' => 
    array (
      0 => '/home/zeebng/tradex.jasminewrubel.com/tmpl/account_main.tpl',
      1 => 1751634351,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '15951002226867e59780c567_57746225',
  'variables' => 
  array (
    'userinfo' => 0,
    'm' => 0,
    'settings' => 0,
    'currency_sign' => 0,
    'ab_formated' => 0,
    'last_access' => 0,
    'ps' => 0,
    'last_deposit' => 0,
    'last_deposit_date' => 0,
    'last_withdrawal' => 0,
    'last_withdrawal_date' => 0,
    'wires' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_6867e597846ef4_75967449',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_6867e597846ef4_75967449')) {
function content_6867e597846ef4_75967449 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_myescape')) require_once '/home/zeebng/tradex.jasminewrubel.com/inc/libs/smarty3/plugins/modifier.myescape.php';

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


<?php if ($_smarty_tpl->tpl_vars['userinfo']->value['umessages']) {?>
<div class="row mb-4">
    <div class="col-12">
        <div class="alert alert-info">
            <ul class="mb-0">
                <?php
$_from = $_smarty_tpl->tpl_vars['userinfo']->value['umessages'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['m'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['m']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['m']->value) {
$_smarty_tpl->tpl_vars['m']->_loop = true;
$foreach_m_Sav = $_smarty_tpl->tpl_vars['m'];
?>
                <li><?php echo smarty_modifier_myescape(nl2br(htmlspecialchars($_smarty_tpl->tpl_vars['m']->value['text'], ENT_QUOTES, 'UTF-8', true)));?>
</li>
                <?php
$_smarty_tpl->tpl_vars['m'] = $foreach_m_Sav;
}
?>
            </ul>
        </div>
    </div>
</div>
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['settings']->value['use_transaction_code'] == 1 && $_smarty_tpl->tpl_vars['userinfo']->value['transaction_code'] == '') {?>
<div class="row mb-4">
    <div class="col-12">
        <div class="alert alert-warning">
            <strong>Note:</strong> Currently you have not specified a Transaction code. The Transaction code strengthens your funds security in our system. The code is required to withdraw funds from your account<?php if ($_smarty_tpl->tpl_vars['settings']->value['internal_transfer_enabled']) {?> and for internal transfer to another user account<?php }?>. Just do not change 'Transaction code' in your account information if you do not want to use this feature. <a href="?a=edit_account" class="alert-link">Click here</a> to specify a new transaction code.
        </div>
    </div>
</div>
<?php }?>

<div class="main-content">
    <div class="page-content">
        <div class="row">
            <!-- Overview Cards -->
            <div class="col-xl-3">
                <div class="card">
                    <div class="card-body">
                        <h4 class="card-title mb-4">Overview</h4>

                        <div>
                            <!-- Active Deposit -->
                            <div class="pb-3 border-bottom">
                                <div class="row align-items-center">
                                    <div class="col-8">
                                        <p class="mb-2">Active Deposit</p>
                                        <h4 class="mb-0"><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ab_formated']->value['active_deposit']);?>
</h4>
                                    </div>
                                    <div class="col-4">
                                        <div class="text-right">
                                            <div>
                                                <i class="mdi mdi-arrow-up text-success ml-1"></i>
                                            </div>
                                            <div class="progress progress-sm mt-3">
                                                <div class="progress-bar" role="progressbar" style="width: 100%" aria-valuenow="100" aria-valuemin="0" aria-valuemax="3000"></div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- Total Deposit -->
                            <?php if ($_smarty_tpl->tpl_vars['ab_formated']->value['deposit'] != 0) {?>
                            <div class="py-3 border-bottom">
                                <div class="row align-items-center">
                                    <div class="col-8">
                                        <p class="mb-2">Total Deposit</p>
                                        <h4 class="mb-0"><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ab_formated']->value['deposit']);?>
</h4>
                                    </div>
                                    <div class="col-4">
                                        <div class="text-right">
                                            <div>
                                                <i class="mdi mdi-arrow-up text-success ml-1"></i>
                                            </div>
                                            <div class="progress progress-sm mt-3">
                                                <div class="progress-bar bg-success" role="progressbar" style="width: 100%" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <?php }?>
                            
                            <!-- Total Withdraw -->
                            <div class="pt-3">
                                <div class="row align-items-center">
                                    <div class="col-8">
                                        <p class="mb-2">Total Withdraw</p>
                                        <h4 class="mb-0"><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ab_formated']->value['withdrawal']);?>
</h4>
                                    </div>
                                    <div class="col-4">
                                        <div class="text-right">
                                            <div>
                                                <i class="mdi mdi-arrow-down text-danger ml-1"></i>
                                            </div>
                                            <div class="progress progress-sm mt-3">
                                                <div class="progress-bar bg-danger" role="progressbar" style="width: 100%" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Main Content Area -->
            <div class="col-xl-9">
                <div class="card">
                    <div class="card-body">
                        <!-- Referral Link Section -->
                        <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_referal_program']) {?>
                        <div class="mb-4">
                            <h5 class="mb-1 text-bold">My Referral Link</h5>
                            <p>Click on the blue button to copy your referral link</p>
                            <div class="input-group mb-3">
                                <input type="text" value="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['settings']->value['site_url']);?>
?ref=<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['userinfo']->value['username']);?>
" id="referralInput" class="form-control" readonly>
                                <div class="input-group-append">
                                    <button class="btn btn-primary" type="button" onclick="copyReferralLink()">
                                        <i class="mdi mdi-content-copy"></i> Copy
                                    </button>
                                </div>
                            </div>
                        </div>
                        <?php }?>

                        <!-- Account Information -->
                        <h4 class="card-title">Your Account</h4>
                        <br>

                        <div class="table-responsive">
                            <table class="table table-sm table-striped">
                                <tr>
                                    <td><strong>User:</strong></td>
                                    <td><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['userinfo']->value['username']);?>
</td>
                                </tr>
                                <tr>
                                    <td><strong>Registration Date:</strong></td>
                                    <td><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['userinfo']->value['create_account_date']);?>
</td>
                                </tr>
                                <tr>
                                    <td><strong>Last Access:</strong></td>
                                    <td><?php echo smarty_modifier_myescape((($tmp = @$_smarty_tpl->tpl_vars['last_access']->value)===null||$tmp==='' ? "n/a" : $tmp));?>
</td>
                                </tr>
                                <tr>
                                    <td><strong>Account Balance:</strong></td>
                                    <td>
                                        <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);?>
<strong><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ab_formated']->value['total']);?>
</strong><br>
                                        <small class="text-muted">
                                            <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['p'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['p']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['name'] = 'p';
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['ps']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total']);
?>
                                                <?php if ($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['balance'] > 0) {?>
                                                    <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['balance']);?>
 of <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['name']);?>
<br>
                                                <?php }?>
                                            <?php endfor; endif; ?>
                                        </small>
                                    </td>
                                </tr>
                                <tr>
                                    <td><strong>Earned Total:</strong></td>
                                    <td><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);?>
<strong><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ab_formated']->value['earning']);?>
</strong></td>
                                </tr>
                                <tr>
                                    <td><strong>Pending Withdrawal:</strong></td>
                                    <td><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);?>
<strong><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ab_formated']->value['withdraw_pending']);?>
</strong></td>
                                </tr>
                                <tr>
                                    <td><strong>Withdrew Total:</strong></td>
                                    <td><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);?>
<strong><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ab_formated']->value['withdrawal']);?>
</strong></td>
                                </tr>
                                <tr>
                                    <td><strong>Active Deposit:</strong></td>
                                    <td><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);?>
<strong><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ab_formated']->value['active_deposit']);?>
</strong></td>
                                </tr>
                                
                                <?php if ($_smarty_tpl->tpl_vars['last_deposit']->value) {?>
                                <tr>
                                    <td><strong>Last Deposit:</strong></td>
                                    <td>
                                        <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);?>
<strong><?php echo smarty_modifier_myescape((($tmp = @$_smarty_tpl->tpl_vars['last_deposit']->value)===null||$tmp==='' ? "n/a" : $tmp));?>
</strong>
                                        <small class="text-muted ml-2"><?php echo smarty_modifier_myescape((($tmp = @$_smarty_tpl->tpl_vars['last_deposit_date']->value)===null||$tmp==='' ? "n/a" : $tmp));?>
</small>
                                    </td>
                                </tr>
                                <?php }?>
                                
                                <?php if ($_smarty_tpl->tpl_vars['last_withdrawal']->value) {?>
                                <tr>
                                    <td><strong>Last Withdrawal:</strong></td>
                                    <td>
                                        <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);?>
<strong><?php echo smarty_modifier_myescape((($tmp = @$_smarty_tpl->tpl_vars['last_withdrawal']->value)===null||$tmp==='' ? "n/a" : $tmp));?>
</strong>
                                        <small class="text-muted ml-2"><?php echo smarty_modifier_myescape((($tmp = @$_smarty_tpl->tpl_vars['last_withdrawal_date']->value)===null||$tmp==='' ? "n/a" : $tmp));?>
</small>
                                    </td>
                                </tr>
                                <?php }?>
                            </table>
                        </div>

                        <!-- Pending Deposits Section -->
                        <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['p'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['p']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['name'] = 'p';
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['ps']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total']);
?>
                            <?php if ($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['pending_col'] > 0) {?>
                                <div class="alert alert-info mt-3">
                                    <i class="mdi mdi-clock-outline"></i>
                                    <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['pending_col']);?>
 <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['name']);?>
 deposit<?php if ($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['pending_col'] > 1) {?>s<?php }?> 
                                    of <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['pending_amount']);?>
 total pending
                                </div>
                            <?php }?>
                        <?php endfor; endif; ?>

                        <!-- Wire Transfer Status -->
                        <?php if ($_smarty_tpl->tpl_vars['wires']->value) {?>
                            <div class="alert alert-warning mt-3">
                                <i class="mdi mdi-bank-transfer"></i>
                                <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['wires']->value);?>
 Wire Transfer(s) pending.
                            </div>
                        <?php }?>

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

<?php echo '<script'; ?>
>
function copyReferralLink() {
    var copyText = document.getElementById("referralInput");
    copyText.select();
    copyText.setSelectionRange(0, 99999);
    document.execCommand("copy");
    
    // Show success message
    var button = event.target.closest('button');
    var originalText = button.innerHTML;
    button.innerHTML = '<i class="mdi mdi-check"></i> Copied!';
    button.classList.add('btn-success');
    button.classList.remove('btn-primary');
    
    setTimeout(function() {
        button.innerHTML = originalText;
        button.classList.add('btn-primary');
        button.classList.remove('btn-success');
    }, 2000);
}
<?php echo '</script'; ?>
>

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

}
}
?>