<?php
/* Smarty version 3.1.33, created on 2021-02-18 17:30:27
  from '/home/mycopjya/admin.mycodingassignment.com/content/themes/_partials/_header.notifications.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_602ea433935ce9_99980784',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '88f764fe935e2b0690a18b0eafc063df0674ace4' => 
    array (
      0 => '/home/mycopjya/admin.mycodingassignment.com/content/themes/_partials/_header.notifications.tpl',
      1 => 1592297058,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:_partials/__feeds_notification.tpl' => 1,
  ),
),false)) {
function content_602ea433935ce9_99980784 (Smarty_Internal_Template $_smarty_tpl) {
?><li class="dropdown js_live-notifications">
    <a href="#" data-toggle="dropdown" data-display="static">
        <i class="fa fa-bell fa-lg"></i>
        <span class="label <?php if ($_smarty_tpl->tpl_vars['user']->value['live_notifications_counter'] == 0) {?>hidden<?php }?>"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['live_notifications_counter'], ENT_QUOTES, 'UTF-8');?>
</span>
    </a>
    <div class="dropdown-menu dropdown-widget with-arrow js_dropdown-keepopen">
        <div class="dropdown-widget-header">
            <span class="title">Notifications</span>
            <label class="switch sm pull-right flip" for="notifications_sound">
                <input type="checkbox" class="js_notifications-sound-toggle" name="notifications_sound" id="notifications_sound" <?php if ($_smarty_tpl->tpl_vars['user']->value['notification_sound']) {?>checked<?php }?>>
                <span class="slider round"></span>
            </label>
            <div class="pull-right flip mr5 fw-normal">
                Alert Sound
            </div>
        </div>
        <div class="dropdown-widget-body">
            <div class="js_scroller" style="height: 280px;">
                <?php if ($_smarty_tpl->tpl_vars['user_notifications']->value > 0) {?>
                    <ul>
                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['user_notifications']->value, 'notification');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['notification']->value) {
?>
                            <?php $_smarty_tpl->_subTemplateRender('file:_partials/__feeds_notification.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, true);
?>
                        <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                    </ul>
                <?php } else { ?>
                    <p class="text-center text-secondary mt10">
                        No notifications
                    </p>
                <?php }?>
            </div>
        </div>
        <a class="dropdown-widget-footer" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/notifications">See All</a>
    </div>
</li><?php }
}
