<?php
/* Smarty version 3.1.33, created on 2020-08-16 06:38:10
  from '/Users/codeworldweb.com/websites/uvocorp/content/themes/dashboard/my-sites/edit.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_5f38d45263af90_81972913',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '7c8cf239d724dd6cb1fd8472ae90e4a324b9785f' => 
    array (
      0 => '/Users/codeworldweb.com/websites/uvocorp/content/themes/dashboard/my-sites/edit.tpl',
      1 => 1597559866,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5f38d45263af90_81972913 (Smarty_Internal_Template $_smarty_tpl) {
?><div class="card-header with-icon with-nav">
    <div class="mb20">
        <i class="fa fa-globe mr10"></i>
        <strong>Sites</strong>
        &rsaquo; <strong><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['name'], ENT_QUOTES, 'UTF-8');?>
</strong>

        <div class="pull-right flip">
            <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/my-sites/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['id'], ENT_QUOTES, 'UTF-8');?>
/preferences" class="btn btn-info">
                <i class="fa fa-cogs"></i> Preferences
            </a>
        </div>
    </div>

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

        <li class="nav-item">
            <a class="nav-link" href="#email" data-toggle="tab">
                <i class="fa fa-envelope fa-fw mr5"></i><strong class="pr5">Email</strong>
            </a>
        </li> 

        <li class="nav-item">
            <a class="nav-link" href="#currency" data-toggle="tab">
                <i class="fa fa-dollar-sign fa-fw mr5"></i><strong class="pr5">Currency</strong>
            </a>
        </li> 

        <li class="nav-item">
            <a class="nav-link" href="#payment-methods" data-toggle="tab">
                <i class="fas fa-credit-card fa-fw mr5"></i><strong class="pr5">Payment Methods</strong>
            </a>
        </li> 

        <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0], array( array('h'=>'displayAdminEditSiteNavbar'),$_smarty_tpl ) );?>

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

<div class="card-body">
    <!-- 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/sites?do=general_settings">
                <input type="hidden" name="site_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['id'], ENT_QUOTES, 'UTF-8');?>
"/>
                <div class="form-group form-row">
                    <label class="col-sm-3 control-label text-left">
                        Site ID
                    </label>
                    <div class="col-sm-9">
                        <input class="form-control" type="text" name="site_id" id="site_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['id'], ENT_QUOTES, 'UTF-8');?>
" disabled="">
                    </div>
                </div>
                <div class="form-group form-row">
                    <label class="col-sm-3 control-label text-left">
                        Site Name
                    </label>
                    <div class="col-sm-9">
                        <input class="form-control" type="text" name="site_name" id="site_name" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['name'], ENT_QUOTES, 'UTF-8');?>
" maxlength="255">
                    </div>
                </div>

                <div class="form-group form-row">
                    <label class="col-sm-3 control-label text-left">
                        Site Email
                    </label>
                    <div class="col-sm-9">
                        <input class="form-control" type="text" name="site_email" id="site_email" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['email'], ENT_QUOTES, 'UTF-8');?>
" maxlength="255">
                    </div>
                </div>

                <div class="form-group form-row">
                    <label class="col-sm-3 control-label text-left">
                        Site URL
                    </label>
                    <div class="col-sm-9">
                        <input class="form-control" type="text" name="site_domain" id="site_domain" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['domain'], ENT_QUOTES, 'UTF-8');?>
" maxlength="255">
                    </div>
                </div>

                <div class="form-group form-row">
                    <label class="col-sm-3 control-label text-left">
                        Default Course Level
                    </label>
                    <div class="col-sm-9">
                        <select class="form-control" name="default_course_level">
                            <option value="1" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['DEFAULT_COURSELEVEL'] == 1) {?>selected=""<?php }?>>High school</option>
                            <option value="2" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['DEFAULT_COURSELEVEL'] == 2) {?>selected=""<?php }?>>Undergrad. (yrs 1-2)</option>
                            <option value="3" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['DEFAULT_COURSELEVEL'] == 3) {?>selected=""<?php }?>>Undergrad. (yrs 3-4)</option>
                            <option value="4" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['DEFAULT_COURSELEVEL'] == 4) {?>selected=""<?php }?>>Master's</option>
                            <option value="5" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['DEFAULT_COURSELEVEL'] == 5) {?>selected=""<?php }?>>PhD</option>
                        </select>
                    </div>
                </div>

                <div class="form-group form-row">
                    <label class="col-sm-3 control-label text-left">
                        Urgent Max Pages
                    </label>
                    <div class="col-sm-9">
                        <input class="form-control force-integer" type="text" name="urgent_deadline_max_pages" id="urgent_deadline_max_pages" maxlength="255" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['URGENT_DEADLINE_MAX_PAGES'], ENT_QUOTES, 'UTF-8');?>
">
                        <span class="help-block">
                            The maximum number of pages that can be ordered for an urgent deadline
                        </span>
                    </div>
                </div>

                <div class="form-group form-row">
                    <label class="col-sm-3 control-label text-left">
                        Default Deadline
                    </label>
                    <div class="col-sm-9">
                        <select class="form-control select_search" name="default_deadlines[]" multiple>
                            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['tariffs']->value, 'tariff');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['tariff']->value) {
?>
                                <optgroup label="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tariff']->value['title'], ENT_QUOTES, 'UTF-8');?>
">
                                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['tariff']->value['deadlines'], 'deadline');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['deadline']->value) {
?>
                                        <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['deadline']->value['id'], ENT_QUOTES, 'UTF-8');?>
" <?php if ($_smarty_tpl->tpl_vars['deadline']->value['selected']) {?>selected=""<?php }?>><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['deadline']->value['name'], ENT_QUOTES, 'UTF-8');?>
 - <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tariff']->value['title'], ENT_QUOTES, 'UTF-8');?>
</option>
                                    <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                                </optgroup>
                            <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                        </select>
                        <span class="help-block">
                            The order form and calculator default deadline. Select one deadline for each academic level
                        </span>
                    </div>
                </div>

                <div class="form-group form-row">
                    <label class="col-sm-3 control-label text-left">Require Name</label>
                    <div class="col-sm-9">
                        <label class="switch" for="requireName">
                            <input type="checkbox" name="requireName" id="requireName" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['AUTH_REQUIRE_NAME'] == '1') {?>checked="checked"<?php }?>>
                            <span class="slider round"></span>
                        </label>
                        <span class="help-block">Require customer to enter name on signup</span>
                    </div>
                </div>

                <div class="form-group form-row">
                    <label class="col-sm-3 control-label text-left">Require Phone</label>
                    <div class="col-sm-9">
                        <label class="switch" for="requirePhone">
                            <input type="checkbox" name="requirePhone" id="requirePhone" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['AUTH_REQUIRE_PHONE'] == '1') {?>checked="checked"<?php }?>>
                            <span class="slider round"></span>
                        </label>
                        <span class="help-block">Require customer to enter phone on signup</span>
                    </div>
                </div>

                <div class="form-group form-row">
                    <label class="col-sm-3 control-label text-left">Sign up Default Screen</label>
                    <div class="col-sm-9">
                        <label class="switch" for="signupDefault">
                            <input type="checkbox" name="signupDefault" id="signupDefault" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['SIGNUP_DEFAULT'] == '1') {?>checked="checked"<?php }?>>
                            <span class="slider round"></span>
                        </label>
                        <span class="help-block">Enable if you want to make the Signup Form as the default auth screen</span>
                    </div>
                </div>

                <div class="form-group form-row">
                    <label class="col-sm-3 control-label text-left">UK Form</label>
                    <div class="col-sm-9">
                        <label class="switch" for="ukForm">
                            <input type="checkbox" name="ukForm" id="ukForm" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['UK_FORM'] == '1') {?>checked="checked"<?php }?>>
                            <span class="slider round"></span>
                        </label>
                        <span class="help-block">Enable Desirable grade in the order form</span>
                    </div>
                </div>

                <div class="divider"></div>
                
                <div class="form-group form-row">
                    <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 form-row">
                    <div class="col-sm-9 offset-sm-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-info">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/sites?do=email_settings">
                <input type="hidden" name="site_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['SITE_ID'], ENT_QUOTES, 'UTF-8');?>
"/>
                <div class="form-group form-row">
                    <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 form-row">
                    <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 form-row">
                    <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 form-row">
                    <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 form-row">
                    <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 form-row">
                    <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 form-row">
                    <div class="col-sm-9 offset-sm-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-info">Save Changes</button>
                    </div>
                </div>
            </form>
        </div>
        <!-- Email -->

        <!-- Currency -->
        <div class="tab-pane" id="currency">
            <form class="js_ajax-forms col-md-9 form-horizontal" data-url="/admin/sites?do=currency_settings">
                <input type="hidden" name="site_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['SITE_ID'], ENT_QUOTES, 'UTF-8');?>
"/>
                <?php if (count($_smarty_tpl->tpl_vars['currencies']->value)) {?>
                <div class="form-group form-row">
                    <label class="col-sm-3 control-label text-left">
                        Default Currency
                    </label>
                    <div class="col-sm-9">
                        <select class="form-control" name="default_currency">
                            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['currencies']->value, 'currency');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['currency']->value) {
?>
                                <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currency']->value['currency_id'], ENT_QUOTES, 'UTF-8');?>
" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['CURRENCY_DEFAULT'] == $_smarty_tpl->tpl_vars['currency']->value['currency_id']) {?>selected=""<?php }?>><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currency']->value['title'], ENT_QUOTES, 'UTF-8');?>
</option>
                            <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                        </select>
                        <div class="form-text">
                            You can add, edit or delete currencies from <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/system/currency">Currencies</a> 
                        </div>
                    </div>
                </div>
                <?php }?>

                <div class="form-group form-row">
                    <div class="col-sm-9 offset-sm-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-info">Save Changes</button>
                    </div>
                </div>

            </form>
        </div>
        <!-- Currency -->

        <!-- Payment Methods -->
        <div class="tab-pane" id="payment-methods">
            <?php if (count($_smarty_tpl->tpl_vars['paymentMethods']->value)) {?>
                <div class="row"> 
                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['paymentMethods']->value, 'paymentMethod');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['paymentMethod']->value) {
?>
                        <div class="col-md-6 mb10">
                            <div class="card">
                                <div class="card-body pt10 pl10 pb10 pr10">
                                    <div class="row align-items-center">
                                        <div class="col-md-3">
                                            <div class="card-img module_image" style="background-image: url(<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['paymentMethod']->value['logo'], ENT_QUOTES, 'UTF-8');?>
);"></div>
                                        </div>
                                        <div class="col-md-9">
                                            <h4 class="card-title mt0 pt0 mb5"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['paymentMethod']->value['displayName'], ENT_QUOTES, 'UTF-8');?>
</h4>
                                            <p class="card-text"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['paymentMethod']->value['description'], ENT_QUOTES, 'UTF-8');?>
</p>
                                        </div>
                                    </div>
                                </div>
                                <div class="card-footer clearfix">
                                    <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['paymentMethod']->value['name'], ENT_QUOTES, 'UTF-8');?>
/configure?site_id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['formValues']->value['SITE_ID'], ENT_QUOTES, 'UTF-8');?>
" class="btn btn-sm btn-success pull-right"><i class="fa fa-cog"></i> Configure</a>
                                </div>
                            </div>
                        </div>
                    <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                </div>
            <?php } else { ?>
                <div class="text-center x-muted"> 
                    <img class="mb20" width="15%" src="/static/images/no_results.png">
                    <p class="mb10"><strong>No payment methods to show</strong></p>
                </div>
            <?php }?>
        </div>
        <!-- Payment Methods -->

        <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0], array( array('h'=>'displayAdminEditSiteNavContent'),$_smarty_tpl ) );?>

    </div>

</div><?php }
}
