<?php
/* Smarty version 3.1.33, created on 2019-12-12 10:25:46
  from '/home/superior/public_html/myprofbay_dashboard/templates/dashboard/users/employees.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_5df215aabb3096_50003467',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'ddacce62cb3bef42c40d3ea189986404f307ddbe' => 
    array (
      0 => '/home/superior/public_html/myprofbay_dashboard/templates/dashboard/users/employees.tpl',
      1 => 1566296580,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5df215aabb3096_50003467 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>
 

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

    <div class="panel panel-default">
        <div class="panel-heading with-icon">
            <i class="fa fa-users pr5 panel-icon"></i>
            
            <?php if ($_smarty_tpl->tpl_vars['sub_view']->value == "writers" || $_smarty_tpl->tpl_vars['sub_view']->value == "editors" || $_smarty_tpl->tpl_vars['sub_view']->value == "administrators") {?>
                <div class="pull-right flip">
                    <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/employees/add" class="btn btn-primary">
                        <i class="fa fa-plus"></i> Add New Employee
                    </a>
                </div>
            <?php }?>

            <strong>Employees</strong> &rsaquo; <strong><?php echo htmlspecialchars(smarty_modifier_capitalize($_smarty_tpl->tpl_vars['sub_view']->value), ENT_QUOTES, 'UTF-8');?>
</strong>
            <?php if ($_smarty_tpl->tpl_vars['sub_view']->value == "writers" || $_smarty_tpl->tpl_vars['sub_view']->value == "editors" || $_smarty_tpl->tpl_vars['sub_view']->value == "administrators") {?>
                &rsaquo; <strong><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['total_employees']->value, ENT_QUOTES, 'UTF-8');?>
</strong>
            <?php }?>

            <?php if ($_smarty_tpl->tpl_vars['sub_view']->value == "edit") {?>
                &rsaquo; <strong><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['id'], 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');?>
/orders/employee/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['id'], ENT_QUOTES, 'UTF-8');?>
" class="btn btn-primary">
                        <i class="fa fa-shopping-basket"></i> View Orders
                    </a>
                </div>
            <?php }?>
        </div>

        <?php if ($_smarty_tpl->tpl_vars['sub_view']->value == "writers" || $_smarty_tpl->tpl_vars['sub_view']->value == "editors" || $_smarty_tpl->tpl_vars['sub_view']->value == "administrators") {?>

            <div class="panel-body">
                <div class="mb20">
                    <form method="GET" id="filter_form" autocomplete="off">
                        <div class="row mb10">
                            <div class="col-md-7">
                                <input class="form-control input-sm" type="text" name="query" placeholder="Search employee ID, name or email" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['query']->value, ENT_QUOTES, 'UTF-8');?>
"/>
                            </div>
                            <div class="col-md-2">
                                <button class="btn btn-primary btn-sm">Search</button>
                            </div>
                        </div>
                    </form>
                </div>

                <?php if (count($_smarty_tpl->tpl_vars['employees']->value)) {?>
                    <div class="table-responsive">
                        <table class="table table-striped table-bordered table-hover js_dataTable">
                            <thead>
                                <tr>
                                    <td>ID</td>
                                    <td>Name</td>
                                    <td>Email</td>
                                    <td>Started</td>
                                    <td>Actions</td>
                                </tr>
                            </thead>
                            <tbody>
                                <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['employees']->value, 'employee');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['employee']->value) {
?>
                                    <tr>
                                        <td>
                                            <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/employees/edit/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['id'], ENT_QUOTES, 'UTF-8');?>
">#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['id'], ENT_QUOTES, 'UTF-8');?>
</a>
                                        </td>
                                        <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['first_name'], ENT_QUOTES, 'UTF-8');?>
 <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['last_name'], ENT_QUOTES, 'UTF-8');?>
</td>
                                        <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['email'], ENT_QUOTES, 'UTF-8');?>
</td>
                                        <td>
                                            <?php if ($_smarty_tpl->tpl_vars['employee']->value['is_started']) {?>
                                                <span class="label label-success">Yes</span>
                                            <?php } else { ?>
                                                <span class="label label-danger">No</span>
                                            <?php }?>
                                        </td>
                                        <td>
                                            <button data-toggle="tooltip" data-placement="top" title="Delete" class="btn btn-xs btn-danger js_admin-deleter" data-handle="employee" data-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['id'], ENT_QUOTES, 'UTF-8');?>
">
                                                <i class="fa fa-trash-alt"></i>
                                            </button>
                                            <a data-toggle="tooltip" data-placement="top" title="Edit" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/employees/edit/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['id'], ENT_QUOTES, 'UTF-8');?>
" class="btn btn-xs btn-primary">
                                                <i class="fa fa-pencil-alt"></i>
                                            </a>
                                        </td>
                                    </tr>
                                <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                            </tbody>
                        </table>

                        <?php echo $_smarty_tpl->tpl_vars['pager']->value;?>

                    </div>
                <?php } else { ?>
                    <div class="text-center x-muted"> <i class="fa fa-users fa-4x"></i>
                        <p class="mb10"><strong>No employees to show</strong></p>
                    </div>
                <?php }?>
            </div>
        
        <?php } elseif ($_smarty_tpl->tpl_vars['sub_view']->value == "add") {?>

            <div class="panel-body">
                <form class="js_ajax-forms form-horizontal" method="POST" data-url="/users/employees/add" autocomplete="off">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">Employee Group</label>
                        <div class="col-sm-9">
                            <select class="form-control" name="employee_group">
                                <option value="3">Writer</option>
                                <option value="2">Editor</option>
                                <option value="1">Administrator</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">First name</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" name="first_name">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">Last name</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" name="last_name">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">Email Address</label>
                        <div class="col-sm-9">
                            <input type="email" class="form-control" name="email"> 
                        </div>
                    </div>

                    <div class="form-group">
                        <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"> 
                                <label for="gender_male">Male</label> 
                            </div>
                            <div class="radio radio-primary"> 
                                <input type="radio" name="gender" value="female" id="gender_female"> 
                                <label for="gender_female">Female</label> 
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">Password</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" name="password" autocomplete="off"> 
                        </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">Add new Employee</button>
                        </div>
                    </div>
                </form>
            </div>

        <?php } elseif ($_smarty_tpl->tpl_vars['sub_view']->value == "edit") {?>
            
            <div class="panel-body">
                <div class="row">
                    <div class="col-xs-offset-3 col-xs-6 col-sm-offset-0 col-sm-2 mb10">
                        <img class="img-responsive img-thumbnail" src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['user_picture'], ENT_QUOTES, 'UTF-8');?>
">
                    </div>
                    <div class="col-xs-12 col-sm-5 mb100">
                        <ul class="list-group">
                            <li class="list-group-item"> 
                                <span class="badge"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['id'], ENT_QUOTES, 'UTF-8');?>
</span> <?php if ($_smarty_tpl->tpl_vars['employee']->value['is_admin']) {?>Administrator <?php } elseif ($_smarty_tpl->tpl_vars['employee']->value['is_editor']) {?>Editor <?php } elseif ($_smarty_tpl->tpl_vars['employee']->value['is_writer']) {?>Writer <?php }?> ID
                            </li>
                            <li class="list-group-item"> 
                                <span class="badge"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['employee_status_title'], ENT_QUOTES, 'UTF-8');?>
</span> Status
                            </li>
                            <li class="list-group-item"> 
                                <span class="badge js_moment" data-time="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['reg_date'], ENT_QUOTES, 'UTF-8');?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['reg_date'], ENT_QUOTES, 'UTF-8');?>
</span> Joined
                            </li>
                            <li class="list-group-item"> 
                                <span class="badge js_moment" data-time="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['last_activity'], ENT_QUOTES, 'UTF-8');?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['last_activity'], ENT_QUOTES, 'UTF-8');?>
</span> Last Activity
                            </li>
                            <li class="list-group-item"> 
                                <span class="badge js_moment" data-time="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['last_login'], ENT_QUOTES, 'UTF-8');?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['last_login'], ENT_QUOTES, 'UTF-8');?>
</span> Last Login
                            </li>
                            <li class="list-group-item"> 
                                <span class="badge"><?php if ($_smarty_tpl->tpl_vars['employee']->value['is_started']) {?>Yes<?php } else { ?>No<?php }?></span> Started
                            </li>
                            <li class="list-group-item"> 
                                <span class="badge"><?php if ($_smarty_tpl->tpl_vars['employee']->value['is_banned']) {?>Yes<?php } else { ?>No<?php }?></span> Banned
                            </li>
                            <li class="list-group-item"> 
                                <span class="badge">$<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['last_pay'], ENT_QUOTES, 'UTF-8');?>
</span> Last Pay
                            </li>
                            <li class="list-group-item"> 
                                <span class="badge">$<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['total_paid'], ENT_QUOTES, 'UTF-8');?>
</span> Total Earned
                            </li>
                        </ul>
                    </div>

                    <div class="col-xs-12 col-sm-5 mb10">
                        <ul class="list-group">
                            <li class="list-group-item"> 
                                <span class="badge"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['order_stats']['bids'], ENT_QUOTES, 'UTF-8');?>
</span> Bids
                            </li>
                            <li class="list-group-item"> 
                                <span class="badge"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['order_stats']['progress'], ENT_QUOTES, 'UTF-8');?>
</span> In Progress
                            </li>
                            <li class="list-group-item"> 
                                <span class="badge"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['order_stats']['done'], ENT_QUOTES, 'UTF-8');?>
</span> Done
                            </li>
                            <li class="list-group-item"> 
                                <span class="badge"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['order_stats']['delivered'], ENT_QUOTES, 'UTF-8');?>
</span> Delivered
                            </li>
                            <li class="list-group-item"> 
                                <span class="badge"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['order_stats']['revision'], ENT_QUOTES, 'UTF-8');?>
</span> Revision
                            </li>
                            <li class="list-group-item"> 
                                <span class="badge"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['order_stats']['finished'], ENT_QUOTES, 'UTF-8');?>
</span> Finished
                            </li>
                            <li class="list-group-item"> 
                                <span class="badge"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['order_stats']['dispute'], ENT_QUOTES, 'UTF-8');?>
</span> Disputes
                            </li>
                            <li class="list-group-item"> 
                                <span class="badge"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['total_orders_revised'], ENT_QUOTES, 'UTF-8');?>
</span> Total Orders Revised
                            </li>
                            <li class="list-group-item"> 
                                <span class="badge"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['total_orders_rejected'], ENT_QUOTES, 'UTF-8');?>
</span> Total Orders Disputed
                            </li>
                        </ul>
                    </div>
                </div>

                <ul class="nav nav-tabs mb20">
                    <li class="active">
                        <a href="#account" data-toggle="tab" aria-expanded="true"> 
                            <i class="fa fa-cogs fa-fw mr5"></i><strong class="pr5">Account</strong> 
                        </a>
                    </li>
                    <li>
                        <a href="#profile" data-toggle="tab" aria-expanded="true"> 
                            <i class="fa fa-user fa-fw mr5"></i><strong class="pr5">Profile</strong> 
                        </a>
                    </li>
                    <li>
                        <a href="#samples" data-toggle="tab" aria-expanded="false"> 
                            <i class="fa fa-file fa-fw mr5"></i><strong class="pr5">Samples</strong> 
                        </a>
                    </li>
                </ul>

                <div class="tab-content">

                    <div class="tab-pane active" id="account">
                        <form class="js_ajax-forms form-horizontal" method="POST" data-url="/users/employees/edit?edit=account" autocomplete="off">
                            <input type="hidden" name="employee_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['id'], ENT_QUOTES, 'UTF-8');?>
"/>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">Started</label>
                                <div class="col-sm-9">
                                    <label class="switch" for="started">
                                        <input type="checkbox" name="started" id="started" <?php if ($_smarty_tpl->tpl_vars['employee']->value['is_started'] == '1') {?>checked="checked"<?php }?>>
                                        <span class="slider round"></span>
                                    </label>
                                    <span class="help-block">Employee can view and access orders</span>
                                </div>
                            </div>

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

                            <div class="form-group">
                                <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['employee']->value['email_notifications'] == '1') {?>checked="checked"<?php }?>>
                                        <span class="slider round"></span>
                                    </label>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">Employee Group</label>
                                <div class="col-sm-9">
                                    <select class="form-control" name="employee_group">
                                        <option value="1" <?php if ($_smarty_tpl->tpl_vars['employee']->value['employee_group'] == "1") {?>selected="selected"<?php }?>>Administrator</option>
                                        <option value="2" <?php if ($_smarty_tpl->tpl_vars['employee']->value['employee_group'] == "2") {?>selected="selected"<?php }?>>Editor</option>
                                        <option value="3" <?php if ($_smarty_tpl->tpl_vars['employee']->value['employee_group'] == "3") {?>selected="selected"<?php }?>>Writer</option>
                                    </select>
                                </div>
                            </div>

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

                                <div class="form-group">
                                    <label class="col-sm-3 control-label">Writer Category</label>
                                    <div class="col-sm-9">
                                        <select class="form-control" name="writer_category">
                                            <option value="2" <?php if ($_smarty_tpl->tpl_vars['employee']->value['writer_category'] == "2") {?>selected="selected"<?php }?>>Best Available</option>
                                            <option value="3" <?php if ($_smarty_tpl->tpl_vars['employee']->value['writer_category'] == "3") {?>selected="selected"<?php }?>>ESL (English Second Language)</option>
                                            <option value="4" <?php if ($_smarty_tpl->tpl_vars['employee']->value['writer_category'] == "4") {?>selected="selected"<?php }?>>ENL (English Native Language)</option>
                                        </select>
                                    </div> 
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-3 control-label">Academic Level</label>
                                    <div class="col-sm-9">
                                        <select class="form-control" name="academic_level">
                                            <option value="1" <?php if ($_smarty_tpl->tpl_vars['employee']->value['academic_level'] == "1") {?>selected="selected"<?php }?>>High school</option>
                                            <option value="2" <?php if ($_smarty_tpl->tpl_vars['employee']->value['academic_level'] == "2") {?>selected="selected"<?php }?>>Undergrad. (yrs 1-2)</option>
                                            <option value="3" <?php if ($_smarty_tpl->tpl_vars['employee']->value['academic_level'] == "3") {?>selected="selected"<?php }?>>Undergrad. (yrs 3-4)</option>
                                            <option value="4" <?php if ($_smarty_tpl->tpl_vars['employee']->value['academic_level'] == "4") {?>selected="selected"<?php }?>>Master's</option>
                                            <option value="5" <?php if ($_smarty_tpl->tpl_vars['employee']->value['academic_level'] == "5") {?>selected="selected"<?php }?>>Ph.D.</option>
                                        </select>
                                    </div> 
                                </div>
                            <?php }?>

                            <div class="form-group">
                                <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['employee']->value['email'], ENT_QUOTES, 'UTF-8');?>
"> 
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">Password</label>
                                <div class="col-sm-9">
                                    <input type="text" class="form-control" name="password" autocomplete="off"> 
                                </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>
                                    <button type="button" class="btn btn-info js_reset-password-link" data-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['id'], ENT_QUOTES, 'UTF-8');?>
" data-handle="employee">Password reset link</button>
                                </div>
                            </div>
                        </form>
                    </div>

                    <div class="tab-pane" id="profile">
                        <form class="js_ajax-forms form-horizontal" method="POST" data-url="/users/employees/edit?edit=profile" autocomplete="off">
                            <input type="hidden" name="employee_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['id'], ENT_QUOTES, 'UTF-8');?>
"/>
                            <div class="form-group">
                                <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['employee']->value['first_name'], ENT_QUOTES, 'UTF-8');?>
">
                                </div>
                            </div>

                            <div class="form-group">
                                <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['employee']->value['middle_name'], ENT_QUOTES, 'UTF-8');?>
">
                                </div>
                            </div>

                            <div class="form-group">
                                <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['employee']->value['last_name'], ENT_QUOTES, 'UTF-8');?>
">
                                </div>
                            </div>

                            <div class="form-group">
                                <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['employee']->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['employee']->value['gender'] == 'female') {?>checked="checked"<?php }?>> 
                                        <label for="gender_female">Female</label> 
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <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['employee']->value['phone']) {?>value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['employee']->value['phone'], ENT_QUOTES, 'UTF-8');?>
"<?php }?>>
                                </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>

                    <div class="tab-pane" id="samples">
                       
                    </div>
                </div>
               
            </div>
        <?php }?>
    </div>
<?php
}
}
/* {/block 'content_wrapper'} */
}
