<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* notification_dropdown.html */
class __TwigTemplate_ee763422822321283d721e3ff18929151cce86b178e2644f17acf4088b4f7379 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        echo "<li>
\t<div id=\"notification_list\" class=\"navbar-wrapper\">
        <div class=\"navbar-notification\">
            <div class=\"row\">
             <div class=\"notification-content\">
\t\t\t   <div id=\"about\" class=\"nano\">
\t\t\t\t<div class=\"nano-content\">
                    <ul class=\"list-unstyled\">
\t\t\t\t\t";
        // line 9
        if ( !twig_length_filter($this->env, $this->getAttribute(($context["loops"] ?? null), "notifications", []))) {
            // line 10
            echo "\t\t\t\t\t\t<li class=\"no_notifications\">
\t\t\t\t\t\t <div class=\"noti-bubble alert alert-default\">";
            // line 11
            echo $this->env->getExtension('phpbb\template\twig\extension')->lang("NO_NOTIFICATIONS");
            echo "</div><i class=\"fa fa-check\"></i>
\t\t\t\t\t\t</li>
\t\t\t\t\t";
        }
        // line 14
        echo "\t\t\t\t\t";
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["loops"] ?? null), "notifications", []));
        foreach ($context['_seq'] as $context["_key"] => $context["notifications"]) {
            // line 15
            echo "\t\t\t\t\t\t<li class=\"";
            if ($this->getAttribute($context["notifications"], "UNREAD", [])) {
                echo "noti-unread";
            }
            if ($this->getAttribute($context["notifications"], "STYLING", [])) {
                echo " ";
                echo $this->getAttribute($context["notifications"], "STYLING", []);
            }
            if ( !$this->getAttribute($context["notifications"], "URL", [])) {
                echo " no-url";
            }
            echo "\">
\t\t\t\t\t\t\t";
            // line 16
            if ($this->getAttribute($context["notifications"], "UNREAD", [])) {
                // line 17
                echo "\t\t\t\t\t\t\t\t<a href=\"";
                echo $this->getAttribute($context["notifications"], "U_MARK_READ", []);
                echo "\" class=\"mark_read icon-mark btn btn-notification\" data-ajax=\"notification.mark_read\"><i class=\"fa fa-check\"></i></a>
\t\t\t\t\t\t\t";
            } else {
                // line 19
                echo "\t\t\t\t\t\t\t    <a class=\"mark_read icon-mark-read btn-notification-read\"><i class=\"fa fa-check\"></i></a>
\t\t\t\t\t\t\t";
            }
            // line 21
            echo "\t\t\t\t\t\t\t";
            if ($this->getAttribute($context["notifications"], "UNREAD", [])) {
                echo "<a class=\"tmp_read icon-mark-read btn-notification-read\"><i class=\"fa fa-check\"></i></a>";
            }
            // line 22
            echo "\t\t\t\t\t\t\t";
            if ($this->getAttribute($context["notifications"], "URL", [])) {
                // line 23
                echo "\t\t\t\t\t\t\t\t<a class=\"notification-block\" href=\"";
                if ($this->getAttribute($context["notifications"], "UNREAD", [])) {
                    echo $this->getAttribute($context["notifications"], "U_MARK_READ", []);
                    echo "\" data-real-url=\"";
                    echo $this->getAttribute($context["notifications"], "URL", []);
                } else {
                    echo $this->getAttribute($context["notifications"], "URL", []);
                }
                echo "\">
\t\t\t\t\t\t\t";
            } else {
                // line 25
                echo "\t\t\t\t\t\t\t <div class=\"notification-block\">
\t\t\t\t\t\t\t";
            }
            // line 27
            echo "\t\t\t\t\t\t\t\t";
            if ($this->getAttribute($context["notifications"], "AVATAR", [])) {
                echo $this->getAttribute($context["notifications"], "AVATAR", []);
            } else {
                echo "<img src=\"";
                echo ($context["T_THEME_PATH"] ?? null);
                echo "/images/no_avatar.gif\" alt=\"\" />";
            }
            // line 28
            echo "\t\t\t\t\t\t\t\t<div class=\"notification_text\">
\t\t\t\t\t\t\t\t\t<p class=\"notification-title\">";
            // line 29
            echo $this->getAttribute($context["notifications"], "FORMATTED_TITLE", []);
            echo "</p>
\t\t\t\t\t\t\t\t\t";
            // line 30
            if ($this->getAttribute($context["notifications"], "REFERENCE", [])) {
                echo "<p class=\"notification-reference\">";
                echo $this->getAttribute($context["notifications"], "REFERENCE", []);
                echo "</p>";
            }
            // line 31
            echo "\t\t\t\t\t\t\t\t\t";
            if ($this->getAttribute($context["notifications"], "FORUM", [])) {
                echo "<p class=\"notification-forum\">";
                echo $this->getAttribute($context["notifications"], "FORUM", []);
                echo "</p>";
            }
            // line 32
            echo "\t\t\t\t\t\t\t\t\t";
            if ($this->getAttribute($context["notifications"], "REASON", [])) {
                echo "<p class=\"notification-reason\">";
                echo $this->getAttribute($context["notifications"], "REASON", []);
                echo "</p>";
            }
            // line 33
            echo "\t\t\t\t\t\t\t\t\t<p class=\"notification-time pull-right\"><i class=\"fa fa-clock-o\"></i>&nbsp;";
            echo $this->getAttribute($context["notifications"], "TIME", []);
            echo "</p>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
            // line 35
            if ($this->getAttribute($context["notifications"], "URL", [])) {
                echo "</a>";
            } else {
                echo "</div>";
            }
            // line 36
            echo "\t\t\t\t\t\t</li>
\t\t\t\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['notifications'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 38
        echo "\t\t\t\t    </ul>
                </div>\t\t\t\t
               </div>\t\t\t\t
             </div>   
            </div>
\t\t</div>
\t    <div class=\"navbar-footer\">
            <div class=\"navbar-footer-content\">
                <div class=\"row\">
\t\t\t\t   <div class=\"col-md-6 col-xs-6\"><a class=\"btn btn-default btn-sm\" href=\"";
        // line 47
        echo ($context["U_NOTIFICATION_SETTINGS"] ?? null);
        echo "\">";
        echo $this->env->getExtension('phpbb\template\twig\extension')->lang("SETTINGS");
        echo "</a></div>
                  ";
        // line 48
        if (($context["NOTIFICATIONS_COUNT"] ?? null)) {
            echo "    
\t\t\t\t   <div id=\"mark_all_notifications\" class=\"col-md-6 col-xs-6\"><a class=\"btn btn-default btn-sm pull-right\" href=\"";
            // line 49
            echo ($context["U_MARK_ALL_NOTIFICATIONS"] ?? null);
            echo "\" data-ajax=\"notification.mark_all_read\">";
            echo $this->env->getExtension('phpbb\template\twig\extension')->lang("MARK_ALL_READ");
            echo "</a></div>
                  ";
        }
        // line 51
        echo "\t\t\t\t</div>
            </div>
        </div>
\t</div>
</li>
";
    }

    public function getTemplateName()
    {
        return "notification_dropdown.html";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  189 => 51,  182 => 49,  178 => 48,  172 => 47,  161 => 38,  154 => 36,  148 => 35,  142 => 33,  135 => 32,  128 => 31,  122 => 30,  118 => 29,  115 => 28,  106 => 27,  102 => 25,  90 => 23,  87 => 22,  82 => 21,  78 => 19,  72 => 17,  70 => 16,  56 => 15,  51 => 14,  45 => 11,  42 => 10,  40 => 9,  30 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Source("", "notification_dropdown.html", "");
    }
}
