<?php
/* Smarty version 3.1.33, created on 2020-07-06 19:08:02
  from '/Users/codeworldweb.com/websites/uvocorp/content/themes/dashboard/profile.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_5f037692d53006_84825217',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '4351a1cc3b82395a0b39177ed248993c3b4ce530' => 
    array (
      0 => '/Users/codeworldweb.com/websites/uvocorp/content/themes/dashboard/profile.tpl',
      1 => 1592297058,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5f037692d53006_84825217 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>
 

<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_15155250255f037692d3b026_20845243', 'content_wrapper');
$_smarty_tpl->inheritance->endChild($_smarty_tpl, 'dashboard/layout.tpl');
}
/* {block 'content_wrapper'} */
class Block_15155250255f037692d3b026_20845243 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'content_wrapper' => 
  array (
    0 => 'Block_15155250255f037692d3b026_20845243',
  ),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/Users/codeworldweb.com/websites/uvocorp/vendor/smarty/smarty/libs/plugins/modifier.capitalize.php','function'=>'smarty_modifier_capitalize',),));
?>

    <div class="card">
        <div class="card-header with-icon">
            <i class="fa fa-user mr10"></i> <strong>Edit Profile</strong> 
        </div>

        <div class="card-body">
            <div class="row">
                <div class="col-xs-offset-3 col-xs-6 col-sm-offset-0 col-sm-3 mb10">
                    <!-- profile-avatar -->
                    <div class="profile-avatar-wrapper">
                        <img src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['user_picture'], ENT_QUOTES, 'UTF-8');?>
" alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['first_name'], ENT_QUOTES, 'UTF-8');?>
 <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['last_name'], ENT_QUOTES, 'UTF-8');?>
">
                        <div class="profile-avatar-change">
                            <i class="fa fa-camera js_x-uploader" data-handle="picture-user"></i>
                        </div>
                        <div class="profile-avatar-delete <?php if ($_smarty_tpl->tpl_vars['user']->value['user_picture_default']) {?>x-hidden<?php }?>">
                            <i class="fa fa-trash js_delete-picture" data-handle="picture-user" title='Delete Picture'></i>
                        </div>
                        <div class="profile-avatar-change-loader">
                            <div class="loader loader_medium"></div>
                        </div>
                    </div>
                    <!-- profile-avatar -->
                </div>
                <div class="col-xs-12 col-sm-6 mb10">
                    <ul class="list-group">
                        <li class="list-group-item"> <span class="badge badge-primary"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['id'], ENT_QUOTES, 'UTF-8');?>
</span> User ID
                        </li>
                        <li class="list-group-item"> <span class="badge badge-primary"><?php echo htmlspecialchars(smarty_modifier_capitalize($_smarty_tpl->tpl_vars['user']->value['writer_category_title']), ENT_QUOTES, 'UTF-8');?>
</span> Category
                        </li>
                        <li class="list-group-item"> <span class="badge badge-primary"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['academic_level_title'], ENT_QUOTES, 'UTF-8');?>
</span> Academic level
                        </li>
                        <li class="list-group-item"> <span class="badge badge-primary"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['employee_status_title'], ENT_QUOTES, 'UTF-8');?>
</span> Status</li>
                    </ul>
                </div>
            </div>

            <ul class="nav nav-tabs mb20"> 
                <li class="nav-item"> 
                    <a class="nav-link active" href="#basic" data-toggle="tab"> 
                        <i class="fa fa-user fa-fw mr5"></i><strong class="pr5">Basic</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="#password" data-toggle="tab"> 
                        <i class="fa fa-key fa-fw mr5"></i><strong class="pr5">Password</strong> 
                    </a> 
                </li>
            </ul>

            <div class="tab-content">
                <div class="tab-pane active" id="basic">
                    <div class="row">
                        <div class="col-md-8">
                            <form class="js_ajax-forms" method="POST" data-url="/user/settings?edit=basic" autocomplete="off">
                                <div class="form-group form-row">
                                    <label class="col-sm-3 control-label">First name</label>
                                    <div class="col-sm-9">
                                        <input type="text" class="form-control" name="first_name" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['first_name'], ENT_QUOTES, 'UTF-8');?>
">
                                    </div>
                                </div>

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

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

                                <?php if ($_smarty_tpl->tpl_vars['user']->value['is_editor'] || $_smarty_tpl->tpl_vars['user']->value['is_writer']) {?>
                                    <div class="form-group form-row">
                                        <label class="col-sm-3 control-label">Status</label>
                                        <div class="col-sm-9">
                                            <select class="form-control" name="status">
                                                <option value="2" <?php if ($_smarty_tpl->tpl_vars['user']->value['employee_status'] == "2") {?>selected="selected"<?php }?>>Looking for orders</option>
                                                <option value="4" <?php if ($_smarty_tpl->tpl_vars['user']->value['employee_status'] == "4") {?>selected="selected"<?php }?>>Cannot work for now</option>
                                                <option value="5" <?php if ($_smarty_tpl->tpl_vars['user']->value['employee_status'] == "5") {?>selected="selected"<?php }?>>Do not use your service</option>
                                            </select>
                                        </div>
                                    </div>
                                <?php }?>

                                <div class="form-group form-row">
                                    <label class="col-sm-3 control-label">Gender</label>
                                    <div class="col-sm-9">
                                        <div class="radio radio-primary"> 
                                            <input type="radio" name="gender" value="male" id="gender_male" <?php if ($_smarty_tpl->tpl_vars['user']->value['gender'] == 'male') {?>checked="checked"<?php }?>> 
                                            <label for="gender_male">Male</label> 
                                        </div>
                                        <div class="radio radio-primary"> 
                                            <input type="radio" name="gender" value="female" id="gender_female" <?php if ($_smarty_tpl->tpl_vars['user']->value['gender'] == 'female') {?>checked="checked"<?php }?>> 
                                            <label for="gender_female">Female</label> 
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group form-row">
                                    <label class="col-sm-3 control-label">Email Notifications</label>
                                    <div class="col-sm-9">
                                        <label class="switch" for="email_notifications">
                                            <input type="checkbox" name="email_notifications" id="email_notifications" <?php if ($_smarty_tpl->tpl_vars['user']->value['email_notifications'] == '1') {?>checked="checked"<?php }?>>
                                            <span class="slider round"></span>
                                        </label>
                                    </div>
                                </div>

                                <div class="form-group form-row">
                                    <label class="col-sm-3 control-label">Phone</label>
                                    <div class="col-sm-9">
                                        <input type="text" class="form-control" name="phone" <?php if ($_smarty_tpl->tpl_vars['user']->value['phone']) {?>value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['phone'], ENT_QUOTES, 'UTF-8');?>
"<?php }?>>
                                    </div>
                                </div>

                                <div class="form-group form-row">
                                    <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['user']->value['default_region'] == $_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-5">
                                        <?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['user']->value['default_region'] != $_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['user']->value['timezone'] == $_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="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="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>
                    </div>
                </div>

                <div class="tab-pane" id="email">
                    <div class="row">
                        <div class="col-md-8">
                            <form class="js_ajax-forms" data-url="/user/settings?edit=email" autocomplete="off">
                                <div class="form-group form-row">
                                    <label class="col-sm-3 control-label">
                                        Email Address
                                    </label>
                                    <div class="col-sm-9">
                                        <input type="email" class="form-control" name="email" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['email'], ENT_QUOTES, 'UTF-8');?>
"> 
                                    </div>
                                </div>
                                <div class="form-group form-row">
                                    <div class="col-sm-9 offset-sm-3">
                                        <button type="submit" class="btn btn-info">Save Changes</button>
                                    </div>
                                </div>
                                <div class="alert alert-success mb0 mt10 x-hidden" role="alert"></div>
                                <div class="alert alert-danger mb0 mt10 x-hidden" role="alert"></div>
                            </form>
                        </div>
                    </div>
                </div>

                <div class="tab-pane" id="password">
                    <div class="row">
                        <div class="col-md-8">
                            <form class="js_ajax-forms" data-url="/user/settings?edit=password" autocomplete="off">
                                <div class="form-group form-row">
                                    <label class="col-sm-3 control-label">Current</label>
                                    <div class="col-sm-9">
                                        <input type="password" class="form-control" name="current" autocomplete="off"> 
                                    </div>
                                </div>
                                <div class="form-group form-row">
                                    <label class="col-sm-3 control-label">New</label>
                                    <div class="col-sm-9">
                                        <input type="password" class="form-control" name="new" autocomplete="off"> 
                                    </div>
                                </div>
                                <div class="form-group form-row">
                                    <label class="col-sm-3 control-label">Re-type New</label>
                                    <div class="col-sm-9">
                                        <input type="password" class="form-control" name="confirm" autocomplete="off"> 
                                    </div>
                                </div>
                                <div class="form-group form-row">
                                    <div class="col-sm-9 offset-sm-3">
                                        <button type="submit" class="btn btn-info">Save Changes</button>
                                    </div>
                                </div>
                                <div class="alert alert-success mb0 mt10 x-hidden" role="alert"></div>
                                <div class="alert alert-danger mb0 mt10 x-hidden" role="alert"></div>
                            </form>
                        </div>
                    </div>
                </div>

        </div>

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