<?php
/* Smarty version 3.1.33, created on 2019-07-13 10:17:01
  from '/var/www/uvocorp/templates/dashboard/system/settings.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_5d29937dac1f97_27348671',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '4ae893c2c93dd4db4824d507902edde614b0d016' => 
    array (
      0 => '/var/www/uvocorp/templates/dashboard/system/settings.tpl',
      1 => 1563005793,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5d29937dac1f97_27348671 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>
 

<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_20053485915d29937da97478_34186128', 'content_wrapper');
$_smarty_tpl->inheritance->endChild($_smarty_tpl, 'dashboard/layout.tpl');
}
/* {block 'content_wrapper'} */
class Block_20053485915d29937da97478_34186128 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'content_wrapper' => 
  array (
    0 => 'Block_20053485915d29937da97478_34186128',
  ),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>

<div class="panel panel-default">
    <div class="panel-heading with-icon">
        <i class="fa fa-cog pr5 panel-icon"></i>
        <strong>Settings</strong>
    </div>

    <div class="panel-body">

        <!-- tabs nav -->
        <ul class="nav nav-tabs admin mb20">
            <li class="active">
                <a href="#general" data-toggle="tab">
                    <i class="fa fa-server fa-fw mr5"></i>
                    <strong class="pr5">General</strong>
                </a>
            </li>
            <li>
                <a href="#email" data-toggle="tab">
                    <i class="fa fa-envelope fa-fw mr5"></i>
                    <strong class="pr5">Email</strong>
                </a>
            </li>

            <li>
                <a href="#writer_payments" data-toggle="tab">
                    <i class="fa fa-money-bill-alt fa-fw mr5"></i>
                    <strong class="pr5">Writer Payment</strong>
                </a>
            </li> 

            <li>
                <a href="#editor_payments" data-toggle="tab">
                    <i class="fa fa-money-bill-alt fa-fw mr5"></i>
                    <strong class="pr5">Editor Payment</strong>
                </a>
            </li> 

        </ul>
        <!-- tabs nav -->

        <!-- tabs content -->
        <div class="tab-content">

            <!-- General -->
            <div class="tab-pane active" id="general">
                <form class="js_ajax-forms col-md-9 form-horizontal" data-url="/admin/settings?edit=general_settings">
                    <div class="form-group">
                        <label class="col-sm-3 control-label text-left">Website Logo</label>
                        <div class="col-sm-9">
                            <?php if ($_smarty_tpl->tpl_vars['site_logo']->value == '') {?>
                                <div class="x-image">
                                    <button type="button" class="close x-hidden js_x-image-remover" title='Remove'>
                                        <span>×</span>
                                    </button>
                                    <div class="loader loader_small x-hidden"></div>
                                    <i class="fa fa-camera fa-lg js_x-uploader" data-handle="x-image"></i>
                                    <input type="hidden" class="js_x-image-input" name="site_logo" value="">
                                </div>
                            <?php } else { ?>
                                <div class="x-image" style="background-image: url('<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['uploads_path']->value, ENT_QUOTES, 'UTF-8');?>
/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site_logo']->value, ENT_QUOTES, 'UTF-8');?>
')">
                                    <button type="button" class="close js_x-image-remover" title='Remove'>
                                        <span>×</span>
                                    </button>
                                    <div class="loader loader_small x-hidden"></div>
                                    <i class="fa fa-camera fa-lg js_x-uploader" data-handle="x-image"></i>
                                    <input type="hidden" class="js_x-image-input" name="site_logo" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site_logo']->value, ENT_QUOTES, 'UTF-8');?>
">
                                </div>
                            <?php }?>
                            <span class="help-block">
                                The perfect size for your logo should be (width: 130px & height: 50px)
                            </span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label text-left">Site Favicon</label>
                        <div class="col-sm-9">
                            <?php if ($_smarty_tpl->tpl_vars['formValues']->value['SITE_FAVICON'] == '') {?>
                                <div class="x-image">
                                    <button type="button" class="close x-hidden js_x-image-remover" title='Remove'>
                                        <span>×</span>
                                    </button>
                                    <div class="loader loader_small x-hidden"></div>
                                    <i class="fa fa-camera fa-lg js_x-uploader" data-handle="x-image"></i>
                                    <input type="hidden" class="js_x-image-input" name="site_favicon" value="">
                                </div>
                            <?php } else { ?>
                                <div class="x-image" style="background-image: url('<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['uploads_path']->value, ENT_QUOTES, 'UTF-8');?>
/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['SITE_FAVICON'], ENT_QUOTES, 'UTF-8');?>
')">
                                    <button type="button" class="close js_x-image-remover" title='Remove'>
                                        <span>×</span>
                                    </button>
                                    <div class="loader loader_small x-hidden"></div>
                                    <i class="fa fa-camera fa-lg js_x-uploader" data-handle="x-image"></i>
                                    <input type="hidden" class="js_x-image-input" name="site_favicon" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['SITE_FAVICON'], ENT_QUOTES, 'UTF-8');?>
">
                                </div>
                            <?php }?>
                            <span class="help-block">
                                The perfect size for your favicon should be (wdith: 196px & height: 196px)
                            </span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label text-left">Email Logo</label>
                        <div class="col-sm-9">
                            <?php if ($_smarty_tpl->tpl_vars['formValues']->value['SITE_EMAIL_LOGO'] == '') {?>
                                <div class="x-image">
                                    <button type="button" class="close x-hidden js_x-image-remover" title='Remove'>
                                        <span>×</span>
                                    </button>
                                    <div class="loader loader_small x-hidden"></div>
                                    <i class="fa fa-camera fa-lg js_x-uploader" data-handle="x-image"></i>
                                    <input type="hidden" class="js_x-image-input" name="site_email_logo" value="">
                                </div>
                            <?php } else { ?>
                                <div class="x-image" style="background-image: url('<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['uploads_path']->value, ENT_QUOTES, 'UTF-8');?>
/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['SITE_EMAIL_LOGO'], ENT_QUOTES, 'UTF-8');?>
')">
                                    <button type="button" class="close js_x-image-remover" title='Remove'>
                                        <span>×</span>
                                    </button>
                                    <div class="loader loader_small x-hidden"></div>
                                    <i class="fa fa-camera fa-lg js_x-uploader" data-handle="x-image"></i>
                                    <input type="hidden" class="js_x-image-input" name="site_email_logo" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['SITE_EMAIL_LOGO'], ENT_QUOTES, 'UTF-8');?>
">
                                </div>
                            <?php }?>
                            <span class="help-block">
                                The perfect size for your logo should be (width: 130px & height: 50px)
                            </span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            Website Title
                        </label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" name="site_name" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['SITE_NAME'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="help-block">
                                Title of your website
                            </span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            Website Domain
                        </label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" name="site_domain" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['SITE_DOMAIN'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="help-block">
                                URL of your website
                            </span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            Website Email
                        </label>
                        <div class="col-sm-9">
                            <input type="email" class="form-control" name="site_email" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['SITE_EMAIL'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="help-block">
                                The contact email that all messages send to
                            </span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            Default Timezone
                        </label>
                        <div class="col-md-4">
                            <select id="timezone-region" class="form-control" data-combo="timezone-combo">
                                <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['regions']->value, 'region', false, 'key', 'name', array (
));
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['region']->value) {
?>
                                    <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8');?>
" <?php if ($_smarty_tpl->tpl_vars['default_region']->value == $_smarty_tpl->tpl_vars['key']->value) {?> selected="" <?php }?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8');?>
</option>
                                <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                            </select>
                        </div>
                        <div id="timezone-combo" class="col-md-4">
                            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['regions']->value, 'region', false, 'key', 'name', array (
));
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['region']->value) {
?>
                                <select id="timezone-combo-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8');?>
" class="form-control <?php if ($_smarty_tpl->tpl_vars['default_region']->value != $_smarty_tpl->tpl_vars['key']->value) {?> x-hidden <?php }?> switch-combo" data-combo-value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8');?>
">
                                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['region']->value, 'item', false, 'key', 'name', array (
));
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['item']->value) {
?>
                                        <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8');?>
" <?php if ($_smarty_tpl->tpl_vars['default_timezone']->value == $_smarty_tpl->tpl_vars['key']->value) {?> selected="" <?php }?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value, ENT_QUOTES, 'UTF-8');?>
</option>
                                    <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                                </select>
                            <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                        </div>
                    </div>
                    <input type="hidden" id="timezone" name="default_timezone" data-content="timezone" data-highlight="#timezone-region" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['default_timezone']->value, ENT_QUOTES, 'UTF-8');?>
">

                    <div class="divider"></div>

                     <div class="form-group">
                        <label class="col-sm-3 control-label text-left">
                            Currency Layer Key
                        </label>
                        <div class="col-sm-9">
                            <input class="form-control" type="text" name="currency_layer_api_key" id="currency_layer_api_key" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['CURRENCY_LAYER_API_KEY'], ENT_QUOTES, 'UTF-8');?>
" maxlength="255">
                            <span class="help-block">
                                <a target="_blank" stle="display:inline;" href="https://currencylayer.com/">CurrencyLayer</a> Rates & Currency Conversion API Key
                            </span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label text-left">Payment Request Dates</label>
                        <div class="col-sm-9">
                            <div class="selectgroup selectgroup-inline">
                                <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['payment_dates']->value, 'payment_date');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['payment_date']->value) {
?>
                                    <label class="selectgroup-item">
                                        <input type="checkbox" name="payment_dates[]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['payment_date']->value['day'], ENT_QUOTES, 'UTF-8');?>
" <?php if ($_smarty_tpl->tpl_vars['payment_date']->value['checked']) {?>checked=""<?php }?> class="selectgroup-input">
                                        <span class="selectgroup-button"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['payment_date']->value['day'], ENT_QUOTES, 'UTF-8');?>
</span>
                                    </label>
                                <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                            </div>
                            <span class="help-block">
                                Calendar dates that writers and editors can send payment requests
                            </span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">Registration Enabled</label>
                        <div class="col-sm-9">
                            <label class="switch" for="registration_enabled">
                                <input type="checkbox" name="registration_enabled" id="registration_enabled" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['REGISTRATION_ENABLED'] == '1') {?>checked="checked"<?php }?>>
                                <span class="slider round"></span>
                            </label>
                            <span class="help-block">Allow users to create accounts</span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label text-left">Enable Customization</label>
                        <div class="col-sm-9">
                            <label class="switch" for="css_customize">
                                <input type="checkbox" name="css_customize" id="css_customize" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['CSS_CUSTOMIZE']) {?>checked<?php }?>>
                                <span class="slider round"></span>
                            </label>
                            <span class="help-block">Turn the customization On and Off</span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">Header Color</label>
                        <div class="col-sm-9">
                            <div class="input-group colorpicker-component js_colorpicker">
                                <input type="text" class="form-control" name="header_color" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['HEADER_COLOR'], ENT_QUOTES, 'UTF-8');?>
" />
                                <span class="input-group-addon"><i></i></span>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">Button Primary
                        </label>
                        <div class="col-sm-9">
                            <div class="input-group colorpicker-component js_colorpicker">
                                <input type="text" class="form-control" name="btn_primary_color" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['BUTTON_PRIMARY'], ENT_QUOTES, 'UTF-8');?>
" />
                                <span class="input-group-addon"><i></i></span>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">Menu Background</label>
                        <div class="col-sm-9">
                            <div class="input-group colorpicker-component js_colorpicker">
                                <input type="text" class="form-control" name="menu_background_color" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['MENU_BACKGROUND'], ENT_QUOTES, 'UTF-8');?>
" />
                                <span class="input-group-addon"><i></i></span>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">Custom CSS</label>
                        <div class="col-sm-9">
                            <textarea class="form-control js_autosize" rows="10" name="custom_css" id="custom-css"><?php echo $_smarty_tpl->tpl_vars['formValues']->value['CUSTOM_CSS'];?>
</textarea>
                            <span class="help-block">Header Custom CSS
                            </span>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-9 col-sm-offset-3">
                            <!-- success -->
                            <div class="alert alert-success mt10 x-hidden" role="alert"></div>
                            <!-- success -->

                            <!-- error -->
                            <div class="alert alert-danger mt10 x-hidden" role="alert"></div>
                            <!-- error -->

                            <button type="submit" class="btn btn-primary">Save Changes</button>
                        </div>
                    </div>
                    
                </form>
            </div>
            <!-- General -->

            <!-- Email -->
            <div class="tab-pane" id="email">
                <form class="js_ajax-forms col-md-9 form-horizontal" data-url="/admin/settings?edit=email_settings">

                    <div class="form-group">
                        <label class="col-sm-3 control-label text-left">
                            Mail Method
                        </label>
                        <div class="col-sm-9">
                            <div class="radio radio-primary"> 
                                <input type="radio" name="mail_method" value="1" id="mail_method_1" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['MAIL_METHOD'] == '1') {?>checked="checked"<?php }?>> 
                                <label for="mail_method_1">Use PHP's mail() (recommended)</label> 
                            </div>
                            <div class="radio radio-primary"> 
                                <input type="radio" name="mail_method" value="2" id="mail_method_2" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['MAIL_METHOD'] == '2') {?>checked="checked"<?php }?>> 
                                <label for="mail_method_2">Set my own SMTP parameters</label> 
                            </div>
                            <div class="radio radio-primary"> 
                                <input type="radio" name="mail_method" value="3" id="mail_method_3" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['MAIL_METHOD'] == '3') {?>checked="checked"<?php }?>> 
                                <label for="mail_method_3">Never send emails</label> 
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            SMTP server
                        </label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" name="smtp_server" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['MAIL_SERVER'], ENT_QUOTES, 'UTF-8');?>
">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            SMTP username
                        </label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" name="smtp_username" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['MAIL_USER'], ENT_QUOTES, 'UTF-8');?>
">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            SMTP password
                        </label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" name="smtp_password" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['MAIL_PASSWD'], ENT_QUOTES, 'UTF-8');?>
">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            Port
                        </label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" name="smtp_port" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['MAIL_SMTP_PORT'], ENT_QUOTES, 'UTF-8');?>
">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            Encryption
                        </label>
                        <div class="col-sm-9">
                            <select class="form-control" name="smtp_encryption">
                                <option value="off" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['MAIL_SMTP_ENCRYPTION'] == 'off') {?>selected="selected"<?php }?>>None</option>
                                <option value="ssl" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['MAIL_SMTP_ENCRYPTION'] == 'ssl') {?>selected="selected"<?php }?>>SSL</option>
                                <option value="tls" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['MAIL_SMTP_ENCRYPTION'] == 'tls') {?>selected="selected"<?php }?>>TLS</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-9 col-sm-offset-3">
                            <!-- success -->
                            <div class="alert alert-success mt10 x-hidden" role="alert"></div>
                            <!-- success -->

                            <!-- error -->
                            <div class="alert alert-danger mt10 x-hidden" role="alert"></div>
                            <!-- error -->

                            <button type="submit" class="btn btn-primary">Save Changes</button>
                        </div>
                    </div>

                </form>
            </div>
            <!-- Email -->

            <!-- Writer Payments -->
            <div class="tab-pane" id="writer_payments">
                <form class="js_ajax-forms col-md-9 form-horizontal" data-url="/admin/settings?edit=writer_payments">
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-left">CPP Type</label>
                        <div class="col-sm-8">
                            <select class="form-control" name="writer_cpp_type" data-combo="writer_cpp_type">
                                <option value="percentage" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['WRITER_CPP_TYPE'] == 'percentage') {?>selected=""<?php }?>>Percentage of the customer's CPP</option>
                                <option value="fixed" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['WRITER_CPP_TYPE'] == 'fixed') {?>selected=""<?php }?>>Fixed amount</option>
                            </select>
                        </div>
                    </div>

                    <div id="writer_cpp_type">
                        <div class="switch-combo <?php if ($_smarty_tpl->tpl_vars['formValues']->value['WRITER_CPP_TYPE'] != 'fixed') {?>x-hidden<?php }?>" data-combo-value="fixed">
                            <div class="form-group">
                                <label class="col-sm-4 control-label text-left">
                                    Cost per page
                                </label>
                                <div class="col-sm-8">
                                    <input class="form-control force-integer" type="text" name="writer_cost_per_page" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['WRITER_AMOUNT_CPP'], ENT_QUOTES, 'UTF-8');?>
">
                                    <span class="help-block">
                                        The amount the writer will earn per page
                                    </span>
                                </div>
                            </div>
                        </div>
                        <div class="switch-combo <?php if ($_smarty_tpl->tpl_vars['formValues']->value['WRITER_CPP_TYPE'] != 'percentage') {?>x-hidden<?php }?>" data-combo-value="percentage">
                            <div class="form-group">
                                <label class="col-sm-4 control-label text-left">
                                    Cost per page
                                </label>
                                <div class="col-sm-8">
                                    <input class="form-control force-integer" type="text" name="writer_percent_per_page" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['WRITER_PERCENTAGE_CPP'], ENT_QUOTES, 'UTF-8');?>
">
                                    <span class="help-block">
                                        The Percentage the writer will earn from the customer's CPP
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="divider"></div>

                    <div class="form-group">
                        <label class="col-sm-4 control-label text-left">Writer Category</label>
                        <div class="col-sm-8">
                            <input class="form-control force-integer" type="text" name="writer_category_cost" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['WRITER_W_CATEGORY_COST'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="help-block">
                                The percentage the writer will earn from the customer's additional cost charged for "Writer Category"
                            </span>
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-left">Complex Assignment</label>
                        <div class="col-sm-8">
                            <input class="form-control force-integer" type="text" name="complex_assignment_cost" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['WRITER_COMPLEX_ASSIGNMENT_COST'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="help-block">
                                The percentage the writer will earn from the customer's additional cost charged for a complex assignment
                            </span>
                        </div>
                    </div>

                    <div class="divider"></div>

                    <div class="form-group">
                        <label class="col-sm-4 control-label text-left">Smart Paper</label>
                        <div class="col-sm-8">
                            <input class="form-control force-integer" type="text" name="smart_paper_cost" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['WRITER_SMART_PAPER_COST'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="help-block">
                                The percentage the writer will earn from the customer's additional cost of the "Smart Paper" Service
                            </span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-left">Copy of Sources</label>
                        <div class="col-sm-8">
                            <input class="form-control force-integer" type="text" name="used_sources_cost" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['WRITER_USED_SOURCES_COST'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="help-block">
                                The percentage the writer will earn from the customer's additional cost of the "Copy of Sources" Service
                            </span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-left">Progressive Delivery</label>
                        <div class="col-sm-8">
                            <input class="form-control force-integer" type="text" name="p_delivery_cost" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['WRITER_PROGRESSIVE_DELIVERY_COST'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="help-block">
                                The percentage the writer will earn from the customer's additional cost of the "Progressive Delivery" Service
                            </span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-left">Writer Samples</label>
                        <div class="col-sm-8">
                            <input class="form-control force-integer" type="text" name="writer_sample_cost" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['WRITER_PROVIDE_ME_SAMPLES_COST'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="help-block">
                                The percentage the writer will earn from the customer's additional cost of the "Get Writer Samples" Service
                            </span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-left">Expert Proofreading</label>
                        <div class="col-sm-8">
                            <input class="form-control force-integer" type="text" name="expert_proofreading_cost" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['WRITER_EXPERT_PROOFREADING_COST'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="help-block">
                                The percentage the writer will earn from the customer's additional cost of the "Expert Proofreading" Service
                            </span>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-8 col-sm-offset-4">
                            <!-- success -->
                            <div class="alert alert-success mt10 x-hidden" role="alert"></div>
                            <!-- success -->

                            <!-- error -->
                            <div class="alert alert-danger mt10 x-hidden" role="alert"></div>
                            <!-- error -->

                            <button type="submit" class="btn btn-primary">Save Changes</button>
                        </div>
                    </div>

                </form>
            </div>
            <!-- Writer Payments -->

            <!-- Editor Payments -->
            <div class="tab-pane" id="editor_payments">
                <form class="js_ajax-forms col-md-9 form-horizontal" data-url="/admin/settings?edit=editor_payments">
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-left">CPP Type</label>
                        <div class="col-sm-8">
                            <select class="form-control" name="editor_cpp_type" data-combo="editor_cpp_type">
                                <option value="percentage" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['EDITOR_CPP_TYPE'] == 'percentage') {?>selected=""<?php }?>>Percentage of the customer's CPP</option>
                                <option value="fixed" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['EDITOR_CPP_TYPE'] == 'fixed') {?>selected=""<?php }?>>Fixed amount</option>
                            </select>
                        </div>
                    </div>

                    <div id="editor_cpp_type">
                        <div class="switch-combo <?php if ($_smarty_tpl->tpl_vars['formValues']->value['EDITOR_CPP_TYPE'] != 'fixed') {?>x-hidden<?php }?>" data-combo-value="fixed">
                            <div class="form-group">
                                <label class="col-sm-4 control-label text-left">
                                    Cost per page
                                </label>
                                <div class="col-sm-8">
                                    <input class="form-control force-integer" type="text" name="editor_cost_per_page" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['EDITOR_AMOUNT_CPP'], ENT_QUOTES, 'UTF-8');?>
">
                                    <span class="help-block">
                                        The amount the editor will earn per page
                                    </span>
                                </div>
                            </div>
                        </div>
                        <div class="switch-combo <?php if ($_smarty_tpl->tpl_vars['formValues']->value['EDITOR_CPP_TYPE'] != 'percentage') {?>x-hidden<?php }?>" data-combo-value="percentage">
                            <div class="form-group">
                                <label class="col-sm-4 control-label text-left">
                                    Cost per page
                                </label>
                                <div class="col-sm-8">
                                    <input class="form-control force-integer" type="text" name="editor_percent_per_page" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['EDITOR_PERCENTAGE_CPP'], ENT_QUOTES, 'UTF-8');?>
">
                                    <span class="help-block">
                                        The Percentage the editor will earn from the customer's CPP
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="divider"></div>

                    <div class="form-group">
                        <label class="col-sm-4 control-label text-left">Writer Category</label>
                        <div class="col-sm-8">
                            <input class="form-control force-integer" type="text" name="writer_category_cost" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['EDITOR_W_CATEGORY_COST'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="help-block">
                                The percentage the editor will earn from the customer's additional cost charged for "Writer Category"
                            </span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-4 control-label text-left">Complex Assignment</label>
                        <div class="col-sm-8">
                            <input class="form-control force-integer" type="text" name="complex_assignment_cost" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['EDITOR_COMPLEX_ASSIGNMENT_COST'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="help-block">
                                The percentage the editor will earn from the customer's additional cost charged for a complex assignment
                            </span>
                        </div>
                    </div>

                    <div class="divider"></div>
                    
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-left">Smart Paper</label>
                        <div class="col-sm-8">
                            <input class="form-control force-integer" type="text" name="smart_paper_cost" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['EDITOR_SMART_PAPER_COST'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="help-block">
                                The percentage the editor will earn from the customer's additional cost of the "Smart Paper" Service
                            </span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-left">Copy of Sources</label>
                        <div class="col-sm-8">
                            <input class="form-control force-integer" type="text" name="used_sources_cost" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['EDITOR_USED_SOURCES_COST'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="help-block">
                                The percentage the editor will earn from the customer's additional cost of the "Copy of Sources" Service
                            </span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-left">Progressive Delivery</label>
                        <div class="col-sm-8">
                            <input class="form-control force-integer" type="text" name="p_delivery_cost" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['EDITOR_PROGRESSIVE_DELIVERY_COST'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="help-block">
                                The percentage the editor will earn from the customer's additional cost of the "Progressive Delivery" Service
                            </span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-left">Editor Samples</label>
                        <div class="col-sm-8">
                            <input class="form-control force-integer" type="text" name="writer_sample_cost" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['EDITOR_PROVIDE_ME_SAMPLES_COST'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="help-block">
                                The percentage the editor will earn from the customer's additional cost of the "Get Editor Samples" Service
                            </span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-left">Expert Proofreading</label>
                        <div class="col-sm-8">
                            <input class="form-control force-integer" type="text" name="expert_proofreading_cost" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['EDITOR_EXPERT_PROOFREADING_COST'], ENT_QUOTES, 'UTF-8');?>
">
                            <span class="help-block">
                                The percentage the editor will earn from the customer's additional cost of the "Expert Proofreading" Service
                            </span>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-8 col-sm-offset-4">
                            <!-- success -->
                            <div class="alert alert-success mt10 x-hidden" role="alert"></div>
                            <!-- success -->

                            <!-- error -->
                            <div class="alert alert-danger mt10 x-hidden" role="alert"></div>
                            <!-- error -->

                            <button type="submit" class="btn btn-primary">Save Changes</button>
                        </div>
                    </div>

                </form>
            </div>
            <!-- Editor Payments -->

        </div>
        <!-- tabs content -->

    </div>
</div>
<?php
}
}
/* {/block 'content_wrapper'} */
}
