<?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;

/* OfficeBrainCustomBundleThemeBundle:IdmeTheme:Search/Form/basicSearchLayout.html.twig */
class __TwigTemplate_b73d7eaa24cfdf939fb7f5577c8020c2d79cdfcc0801a5b63daa79f62a6defc1 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = [
            'advance_search' => [$this, 'block_advance_search'],
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        if (((isset($context["render_model"]) || array_key_exists("render_model", $context)) && (($context["render_model"] ?? null) == 1))) {
            // line 2
            echo "<form id=\"top_search_form_in_model\" name=\"product_search\" method=\"get\" class=\"pull-left\" onsubmit=\"return false;\"
\tdata-form-submit-success-function=\"\" data-form-data-function=\"\" data-container-id=\"search_result\"
\tdata-scroll-id=\"search_result\" data-pagination-mode=\"1\" data-paging-mode=\"ajax\">
\t";
        } else {
            // line 6
            echo "\t<form id=\"top_search_form\" name=\"product_search\" method=\"get\" action=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("office_brain_search_bundle_search", ["
\t\t_locale" => $this->getAttribute($this->getAttribute(            // line 7
($context["app"] ?? null), "request", []), "locale", [])]), "html", null, true);
            echo "\">
\t\t";
        }
        // line 9
        echo "\t\t<div class=\"search-box\">
\t\t\t";
        // line 10
        if (((((($this->getAttribute($this->getAttribute($this->getAttribute(($context["ob_project_search_access_rule"] ?? null), "option", []), "search_by_name", []), "status", []) == 1) || ($this->getAttribute($this->getAttribute($this->getAttribute(        // line 11
($context["ob_project_search_access_rule"] ?? null), "option", []), "search_by_sku", []), "status", []) == 1)) || ($this->getAttribute($this->getAttribute($this->getAttribute(        // line 12
($context["ob_project_search_access_rule"] ?? null), "option", []), "search_by_category", []), "status", []) == 1)) || ($this->getAttribute($this->getAttribute($this->getAttribute(        // line 13
($context["ob_project_search_access_rule"] ?? null), "option", []), "search_by_brand_name", []), "status", []) == 1)) || ($this->getAttribute($this->getAttribute($this->getAttribute(        // line 14
($context["ob_project_search_access_rule"] ?? null), "option", []), "search_by_supplier_name", []), "status", []) == 1))) {
            // line 15
            echo "\t\t\t";
            // line 17
            echo "\t\t\t\t\t";
            if ( !(isset($context["main_filter"]) || array_key_exists("main_filter", $context))) {
                // line 18
                echo "\t\t\t\t\t";
                $context["main_filter"] = "keyword";
                // line 19
                echo "\t\t\t\t\t";
            }
            // line 20
            echo "\t\t\t\t\t<select id=\"main_filter\" name=\"main_filter\" class=\" ob-qa-basic-search-select ";
            echo twig_escape_filter($this->env, ($context["main_filter"] ?? null), "html", null, true);
            echo "\">
\t\t\t\t\t\t";
            // line 22
            echo "\t\t\t\t\t\t";
            if (($this->getAttribute($this->getAttribute($this->getAttribute(($context["ob_project_search_access_rule"] ?? null), "option", []), "search_by_category", []), "status", []) == 1)) {
                // line 23
                echo "\t\t\t\t\t\t<option value=\"categoryName\" ";
                echo ((((isset($context["main_filter"]) || array_key_exists("main_filter", $context)) && (($context["main_filter"] ?? null) == "categoryName"))) ? ("selected") : (""));
                // line 24
                echo ">";
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("allcategory", [], "app"), "html", null, true);
                echo "</option>
\t\t\t\t\t\t";
            }
            // line 26
            echo "\t\t\t\t\t\t<option value=\"keyword\" ";
            echo ((((isset($context["main_filter"]) || array_key_exists("main_filter", $context)) && (($context["main_filter"] ?? null) == "keyword"))) ? ("selected") : (""));
            // line 27
            echo ">";
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("header_search.keyword", [], "goldstar"), "html", null, true);
            echo "</option>
\t\t\t\t\t\t";
            // line 28
            if (($this->getAttribute($this->getAttribute($this->getAttribute(($context["ob_project_search_access_rule"] ?? null), "option", []), "search_by_sku", []), "status", []) == 1)) {
                // line 29
                echo "\t\t\t\t\t\t<option value=\"sku\" ";
                echo ((((isset($context["main_filter"]) || array_key_exists("main_filter", $context)) && (($context["main_filter"] ?? null) == "sku"))) ? ("selected") : (""));
                echo ">";
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("header_search.item_code", [], "goldstar"), "html", null, true);
                // line 30
                echo "</option>
\t\t\t\t\t\t";
            }
            // line 32
            echo "
\t\t\t\t\t\t";
            // line 41
            echo "\t\t\t\t\t</select>
\t\t\t\t\t";
            // line 45
            echo "\t\t\t";
        }
        // line 46
        echo "\t\t\t";
        if (((isset($context["render_model"]) || array_key_exists("render_model", $context)) && (($context["render_model"] ?? null) == 1))) {
            // line 47
            echo "\t\t\t";
            // line 48
            echo "\t\t\t\t<input type=\"hidden\" name=\"render_model\" id=\"render_model\" value=\"";
            echo twig_escape_filter($this->env, ($context["render_model"] ?? null), "html", null, true);
            echo "\" />
\t\t\t\t<input type=\"text\" id=\"search_query\" class=\"form-control js-disable-special-characters\"
\t\t\t\t\tname=\"search_query\" value=\"";
            // line 50
            (((isset($context["search_query"]) || array_key_exists("search_query", $context))) ? (print (twig_escape_filter($this->env, ($context["search_query"] ?? null), "html", null, true))) : (print ("")));
            echo "\"
\t\t\t\t\tplaceholder=\"";
            // line 51
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("search.search_textbox_placeholder", [], "app"), "html", null, true);
            echo "\">
\t\t\t\t<input type=\"hidden\" name=\"supplier_id\" class=\"js-search-supplier-id\" value=\"0\" />
\t\t\t\t<input type=\"hidden\" name=\"quote_search\" class=\"js-search-from\" value=\"\" />
\t\t\t\t<button type=\"button\" id=\"js_basic_search_in_model\" value=\"Submit\">
\t\t\t\t\t<i class=\"fa fa-search fa-fw\"></i> ";
            // line 55
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("search.search", [], "app"), "html", null, true);
            echo "</button>
\t\t\t\t";
            // line 58
            echo "\t\t\t";
        } else {
            // line 59
            echo "\t\t\t";
            // line 60
            echo "\t\t\t\t<input type=\"text\" id=\"search_query\"
\t\t\t\t\tclass=\"form-control ob-qa-srch-txt-box js-disable-special-characters\" name=\"search_query\"
\t\t\t\t\tvalue=\"";
            // line 62
            (((isset($context["search_query"]) || array_key_exists("search_query", $context))) ? (print (twig_escape_filter($this->env, ($context["search_query"] ?? null), "html", null, true))) : (print ("")));
            echo "\"
\t\t\t\t\tplaceholder=\"";
            // line 63
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("search.search_textbox_placeholder", [], "app"), "html", null, true);
            echo "\">
\t\t\t\t";
            // line 74
            echo "\t\t\t\t<input type=\"hidden\" name=\"token\" value=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\FormExtension')->renderCsrfToken("search-products"), "html", null, true);
            echo "\" />

\t\t\t\t";
            // line 77
            echo "\t\t\t\t<button type=\"button\" value=\"Search\" class=\"search-btn bg-orange\" id=\"js_main_search_btn_submit\">
\t\t\t\t\t<span class=\"web-icon search\"></span> ";
            // line 78
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("search.search", [], "app"), "html", null, true);
            echo "</button>
\t\t\t\t";
            // line 81
            echo "\t\t\t";
        }
        // line 82
        echo "\t\t</div>
\t</form>

\t<div class=\"advanced-search\">
\t\t";
        // line 86
        if (($this->getAttribute($this->getAttribute($this->getAttribute(($context["ob_project_search_access_rule"] ?? null), "option", []), "advance_search", []), "status", []) == 1)) {
            // line 87
            echo "\t\t";
            $this->displayBlock('advance_search', $context, $blocks);
            // line 101
            echo "\t\t";
        }
        // line 102
        echo "\t</div>
 
";
    }

    // line 87
    public function block_advance_search($context, array $blocks = [])
    {
        // line 88
        echo "\t\t<form id=\"top_advance_search_form\" name=\"product_advance_search\" method=\"get\"
\t\t\taction=\"";
        // line 89
        echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("office_brain_search_bundle_search", [" _locale" => $this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", []), "locale", [])]), "html", null, true);
        echo "\">
\t\t\t<div class=\"dropdown top-advance-search js-advance-search-btn-container\">
\t\t\t\t<a href=\"javascript:void(0);\" class=\"dropdown-toggle js-advace-search-but ob-qa-advace-search-btn-1\"
\t\t\t\t\t  aria-expanded=\"true\">
\t\t\t\t\t<span class=\"js-advace-search-btn-1\">";
        // line 93
        echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("search.advance_search", [], "app"), "html", null, true);
        echo "</span>
\t\t\t\t</a>
\t\t\t\t<div class=\"dropdown-menu header-advace-search\">
\t\t\t\t\t<div class=\"js-dropdown-header-advance-search-model\"></div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</form>
\t\t";
    }

    public function getTemplateName()
    {
        return "OfficeBrainCustomBundleThemeBundle:IdmeTheme:Search/Form/basicSearchLayout.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  204 => 93,  197 => 89,  194 => 88,  191 => 87,  185 => 102,  182 => 101,  179 => 87,  177 => 86,  171 => 82,  168 => 81,  164 => 78,  161 => 77,  155 => 74,  151 => 63,  147 => 62,  143 => 60,  141 => 59,  138 => 58,  134 => 55,  127 => 51,  123 => 50,  117 => 48,  115 => 47,  112 => 46,  109 => 45,  106 => 41,  103 => 32,  99 => 30,  94 => 29,  92 => 28,  87 => 27,  84 => 26,  78 => 24,  75 => 23,  72 => 22,  67 => 20,  64 => 19,  61 => 18,  58 => 17,  56 => 15,  54 => 14,  53 => 13,  52 => 12,  51 => 11,  50 => 10,  47 => 9,  42 => 7,  39 => 6,  33 => 2,  31 => 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("", "OfficeBrainCustomBundleThemeBundle:IdmeTheme:Search/Form/basicSearchLayout.html.twig", "/var/www/html/project/OfficeBrain/CustomBundle/ThemeBundle/Resources/views/IdmeTheme/Search/Form/basicSearchLayout.html.twig");
    }
}
