<?php
/* Smarty version 3.1.33, created on 2023-02-04 22:25:18
  from '/home/massessays/dashboard.massessays.com/content/themes/_partials/header.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_63dedb4eaa1548_36319769',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '0f1fbe9e91a935fc12a6892ead7a225f11a90168' => 
    array (
      0 => '/home/massessays/dashboard.massessays.com/content/themes/_partials/header.tpl',
      1 => 1656689820,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:_partials/_header.messages.tpl' => 1,
    'file:_partials/_header.notifications.tpl' => 1,
  ),
),false)) {
function content_63dedb4eaa1548_36319769 (Smarty_Internal_Template $_smarty_tpl) {
?><div class="main-header">
	<div class="container header-container">
		<div class="brand-container hidden-xs">
			<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
" class="brand"> 
				<?php if ($_smarty_tpl->tpl_vars['site_logo']->value) {?>
					<img height="45" src="<?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');?>
" alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site_name']->value, ENT_QUOTES, 'UTF-8');?>
" title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site_name']->value, ENT_QUOTES, 'UTF-8');?>
"> 
				<?php } else { ?>
					<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site_name']->value, ENT_QUOTES, 'UTF-8');?>

				<?php }?>
			</a>
		</div>

		<div class="navbar-container">
			<ul class="nav navbar-nav">
				<?php if ($_smarty_tpl->tpl_vars['user']->value['logged']) {?>
					<li class="visible-xs-block">
						<a href="#" data-toggle="offcanvas" data-target=".sidebar-nav"> 
							<i class="fa fa-bars fa-lg"></i> 
						</a>
					</li>

					<!-- messages -->
					<?php $_smarty_tpl->_subTemplateRender('file:_partials/_header.messages.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
					<!-- messages -->

					<!-- notifications -->
					<?php $_smarty_tpl->_subTemplateRender('file:_partials/_header.notifications.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
					<!-- notifications -->

					<li class="dropdown">
						<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/orders" class="dropdown-toggle user-menu" data-toggle="dropdown"> 
							<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');?>
" title="<?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');?>
"> 
							<span class="hidden-xs"><?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');?>
</span> 
							<i class="caret"></i> 
						</a>
						<div class="dropdown-menu dropdown-menu-right">
							<?php if ($_smarty_tpl->tpl_vars['user']->value['is_writer'] || $_smarty_tpl->tpl_vars['user']->value['is_editor']) {?>
								<a class="dropdown-item" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/financial-overview">Outstanding <span class="badge badge-success pull-right"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_outstanding_balance']->value, ENT_QUOTES, 'UTF-8');?>
</span></a> 
							<?php }?>

							<a class="dropdown-item" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/profile">Settings</a> 
							<a class="dropdown-item" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/orders/available">Manage Orders</a> 

							<?php if ($_smarty_tpl->tpl_vars['user']->value['is_admin']) {?>
								<a class="dropdown-item" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/updates">
									Check for Updates <?php if ($_smarty_tpl->tpl_vars['new_version']->value) {?><span class="badge badge-pill badge-success pull-right">New</span><?php }?>
								</a> 
							<?php }?>
							
							<?php if ($_smarty_tpl->tpl_vars['isAuthorize']->value) {?>
								<a class="dropdown-item" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/authorize/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['admin']->value['id'], ENT_QUOTES, 'UTF-8');?>
/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['admin']->value['secure_key'], ENT_QUOTES, 'UTF-8');?>
">Back to Administrator</a> 
							<?php }?>
							<div class="dropdown-divider"></div>
							<a class="dropdown-item" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/logout">Log Out</a> 
							<div class="dropdown-divider"></div>
							<?php if ($_smarty_tpl->tpl_vars['theme_mode_night']->value) {?>
								<div class="dropdown-item pointer js_theme-mode" data-mode="day">
									<span class="js_theme-mode-text">Day Mode</span>
									<span class="pull-right">
										<i class="js_theme-mode-icon fas fa-sun"></i>
									</span>
								</div>
							<?php } else { ?>
								<div class="dropdown-item pointer js_theme-mode" data-mode="night">
									<span class="js_theme-mode-text">Night Mode</span>
									<span class="pull-right">
										<i class="js_theme-mode-icon fas fa-moon"></i>
									</span>
								</div>
							<?php }?>
						</div>
					</li>
				<?php } else { ?>
					<li class="dropdown float-right">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-display="static">
							<span>Join</span>
						</a>
						<div class="dropdown-menu dropdown-menu-right">
							<a class="dropdown-item" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/signin">Login</a>
							<?php if ($_smarty_tpl->tpl_vars['registration_enabled']->value) {?>
								<a class="dropdown-item" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/signup">Register</a>
							<?php }?>
							<?php if ($_smarty_tpl->tpl_vars['theme_mode_night']->value) {?>
								<div class="dropdown-item pointer js_theme-mode" data-mode="day">
									<span class="js_theme-mode-text">Day Mode</span>
									<span class="pull-right">
										<i class="js_theme-mode-icon fas fa-sun"></i>
									</span>
								</div>
							<?php } else { ?>
								<div class="dropdown-item pointer js_theme-mode" data-mode="night">
									<span class="js_theme-mode-text">Night Mode</span>
									<span class="pull-right">
										<i class="js_theme-mode-icon fas fa-moon"></i>
									</span>
								</div>
							<?php }?>
						</div>
					</li>
				<?php }?>
			</ul>
		</div>

	</div>
</div>
<?php }
}
