var/cache/dev/twig/61/61b979655eb2fa80926ce9b5ad8ab8636a6b4b52949b2e7b60dc6af16672781e.php line 34

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* @Buddybee/pages/consultancySearchPage.html.twig */
  15. class __TwigTemplate_159381c2a3163abfc304112f98b3b07dbbf730173e55e233c4a59da0891a5aca extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Buddybee/pages/consultancySearchPage.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Buddybee/pages/consultancySearchPage.html.twig"));
  34.         // line 1
  35.         yield from         $this->loadTemplate("@Application/inc/buddybee_new_header.html.twig""@Buddybee/pages/consultancySearchPage.html.twig"1)->unwrap()->yield($context);
  36.         // line 2
  37.         yield "
  38. <style>
  39.     .consultant-bio-img img {
  40.         height: 154px;
  41.         border-radius: 10%;
  42.     }
  43.     .small_language_img {
  44.     }
  45.     .consultant-bio-img .cons_image_view {
  46.         height: 154px;
  47.         width: 154px;
  48.         border-radius: 10%;
  49.         background-size: cover !important;
  50.         background-position: center !important;
  51.     }
  52.     .consultant_search_bar.searchbar-content {
  53.         position: relative;
  54.     }
  55.     .consultant_search_bar.searchbar-content a {
  56.         position: absolute;
  57.         right: 9px;
  58.         top: 7px;
  59.     }
  60.     .filter_div img {
  61.         /*display: block;*/
  62.         color: #fff;
  63.         /*padding: 10px 0;*/
  64.         font-size: 14px;
  65.         background: #1D5B9E;
  66.         width: 40px;
  67.         height: 40px;
  68.         padding: 6px;
  69.         text-align: center;
  70.         line-height: 51px;
  71.         border-radius: 50%;
  72.     }
  73.     .filter_div_btn {
  74.     }
  75.     .filter_div {
  76.         display: inline-block;
  77.         width: 70px;
  78.         padding: 10px 0;
  79.         position: relative;
  80.     }
  81.     .consultant-title .searchbar {
  82.         width: 290px;
  83.         display: inline-block;
  84.         position: relative;
  85.     }
  86.     .filter_div_content {
  87.         padding: 20px;
  88.         width: 300px;
  89.         min-height: 400px;
  90.         height: auto;
  91.         left: -115px;
  92.         position: absolute;
  93.         z-index: 99999;
  94.         background: white;
  95.         display: none;;
  96.         /*border:1px solid darkblue;*/
  97.         box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  98.     }
  99.     .filter_div_content .head {
  100.         display: flex;
  101.         justify-content: space-between;
  102.         border-bottom: 1px solid #f1e4e4;
  103.     }
  104.     .filter_div_content .head .title {
  105.         font-size: 13px;
  106.         display: inline-block;
  107.         float: left;
  108.         margin-bottom: 0.5rem;
  109.     }
  110.     .filter_div_content .head .title.right {
  111.         float: right;
  112.         color: #1D5B9E;
  113.         font-weight: bold;
  114.         text-decoration: none;
  115.     }
  116.     .filter_div_content .body {
  117.         text-align: left;
  118.         /*padding-top: 15px;*/
  119.     }
  120.     .filter_div_content .body .title {
  121.         margin-top: 15px;
  122.         margin-bottom: 2px;
  123.         font-size: 11px;
  124.         text-align: left;
  125.         text-transform: uppercase;
  126.         color: #6c757d;
  127.     }
  128.     .filter_div_content .body .option {
  129.     }
  130.     .filter_div_content .body .form-check {
  131.         text-align: left;
  132.         width: 49%;
  133.         display: inline-block;
  134.     }
  135.     .filter_div_content .body .form-check .form-check-label span {
  136.         font-size: 13px;;
  137.     }
  138.     .filter_div_content .body .form-check .form-check-input:checked {
  139.         background-color: #1D5B9E;
  140.         border-color: #1D5B9E;
  141.     }
  142.     @media (min-width: 320px) and (max-width: 480px) {
  143.         .consultant-title .searchbar {
  144.             width: 250px;
  145.         }
  146.         .filter_div_content {
  147.             left: unset;
  148.             right: 0;
  149.         }
  150.     }
  151.     @media (min-width: 481px) and (max-width: 540px) {
  152.         .consultant-title .searchbar {
  153.             width: 250px;
  154.         }
  155.         .filter_div_content {
  156.             left: unset;
  157.             right: 0;
  158.         }
  159.     }
  160.     @media (min-width: 320px) and (max-width: 480px) {
  161.         .consultant-bio-img .cons_image_view {
  162.             height: 60px !important;
  163.             width: 60px !important;
  164.             margin: auto;
  165.         }
  166.         .consultant-bio-img  {
  167.            text-align: center;
  168.         }
  169.         .book_btn_span {
  170.             /*display: none;*/
  171.         }
  172.         .rating_value_span {
  173.             display: block;
  174.             padding: 0 21px;;
  175.         }
  176.     }
  177. </style>
  178. <section class=\"consultant-section\">
  179.     ";
  180.         // line 186
  181.         $context["countries_data"] = $this->extensions['ApplicationBundle\Twig\GeneralExtension']->getCountriesBuddyBee("_HAS_CONSULTANT_""object");
  182.         // line 187
  183.         yield "    ";
  184.         $context["language_list"] = $this->extensions['ApplicationBundle\Twig\GeneralExtension']->getLanguagesBuddyBee("_ALL_""object");
  185.         // line 188
  186.         yield "    <div class=\"consultant-title\">
  187.         <div class=\"container\">
  188.             <div class=\"row mb-5\">
  189.                 <div class=\"col-md-3\"></div>
  190.                 <div class=\"col-md-6\" style=\"position: relative;text-align: center\">
  191.                     ";
  192.         // line 193
  193.         if ((=== CoreExtension::compare((isset($context["ref"]) || array_key_exists("ref"$context) ? $context["ref"] : (function () { throw new RuntimeError('Variable "ref" does not exist.'193$this->source); })()), "_ADMIN_"))) {
  194.             // line 194
  195.             yield "                    <h2>Meet the BuddyBee Admins</h2>
  196.                     ";
  197.         } else {
  198.             // line 196
  199.             yield "                    <h2>Meet the BuddyBee Consultant</h2>
  200.                     ";
  201.         }
  202.         // line 198
  203.         yield "                    <div class=\"searchbar\" style=\"\">
  204.                         <div class=\"searchbar-content consultant_search_bar\">
  205.                             <input type=\"text\" placeholder=\"Search Consultant\" class=\"consultantSearch small_search\">
  206.                             <a href=\"#\"><i class=\"fas fa-search\"></i></a>
  207.                         </div>
  208.                     </div>
  209.                     <div class=\"filter_div\" style=\"width: 70px;\">
  210.                         <a href=\"#\" class=\"filter_div_btn\">
  211.                             ";
  212.         // line 207
  213.         yield "                            ";
  214.         // line 208
  215.         yield "                            <i class=\"\">
  216.                                 <img style=\"\"
  217.                                      src=\"";
  218.         // line 210
  219.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html"nulltrue);
  220.         yield "buddybee_assets/images/filter_image.png\"
  221.                                      alt=\"\">
  222.                             </i>
  223.                         </a>
  224.                         <div class=\"filter_div_content\" style=\"\">
  225.                             <div class=\"head\">
  226.                                 <h1 class=\"title\">Filter By</h1>
  227.                                 <a class=\"title right\">Reset Filters</a>
  228.                             </div>
  229.                             <div class=\"body\">
  230.                                 <h1 class=\"title\">Language</h1>
  231.                                 ";
  232.         // line 221
  233.         $context['_parent'] = $context;
  234.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["language_list"]) || array_key_exists("language_list"$context) ? $context["language_list"] : (function () { throw new RuntimeError('Variable "language_list" does not exist.'221$this->source); })()));
  235.         foreach ($context['_seq'] as $context["_key"] => $context["entry"]) {
  236.             // line 222
  237.             yield "                                    <div class=\"form-check\">
  238.                                         <input class=\"form-check-input consFilter langFilter\" type=\"checkbox\"
  239.                                                value=\"";
  240.             // line 224
  241.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["entry"], "id", [], "any"falsefalsefalse224), "html"nulltrue);
  242.             yield "\" id=\"langFilter";
  243.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["entry"], "id", [], "any"falsefalsefalse224), "html"nulltrue);
  244.             yield "\" >
  245.                                         <label class=\"form-check-label\" for=\"langFilter";
  246.             // line 225
  247.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["entry"], "id", [], "any"falsefalsefalse225), "html"nulltrue);
  248.             yield "\">
  249.                                             <span>";
  250.             // line 226
  251.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["entry"], "name", [], "any"falsefalsefalse226), "html"nulltrue);
  252.             yield "</span>
  253.                                         </label>
  254.                                     </div>
  255.                                 ";
  256.         }
  257.         $_parent $context['_parent'];
  258.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entry'], $context['_parent'], $context['loop']);
  259.         $context array_intersect_key($context$_parent) + $_parent;
  260.         // line 230
  261.         yield "
  262.                                 <h1 class=\"title\">Country</h1>
  263.                                 ";
  264.         // line 232
  265.         $context['_parent'] = $context;
  266.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["countries_data"]) || array_key_exists("countries_data"$context) ? $context["countries_data"] : (function () { throw new RuntimeError('Variable "countries_data" does not exist.'232$this->source); })()));
  267.         foreach ($context['_seq'] as $context["_key"] => $context["entry"]) {
  268.             // line 233
  269.             yield "                                    <div class=\"form-check\">
  270.                                         <input class=\"form-check-input consFilter countryFilter\" type=\"checkbox\"
  271.                                                value=\"";
  272.             // line 235
  273.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["entry"], "id", [], "any"falsefalsefalse235), "html"nulltrue);
  274.             yield "\" id=\"countryFilter";
  275.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["entry"], "id", [], "any"falsefalsefalse235), "html"nulltrue);
  276.             yield "\" >
  277.                                         <label class=\"form-check-label\" for=\"countryFilter";
  278.             // line 236
  279.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["entry"], "id", [], "any"falsefalsefalse236), "html"nulltrue);
  280.             yield "\">
  281.                                             <span>";
  282.             // line 237
  283.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["entry"], "name", [], "any"falsefalsefalse237), "html"nulltrue);
  284.             yield "</span>
  285.                                         </label>
  286.                                     </div>
  287.                                 ";
  288.         }
  289.         $_parent $context['_parent'];
  290.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entry'], $context['_parent'], $context['loop']);
  291.         $context array_intersect_key($context$_parent) + $_parent;
  292.         // line 241
  293.         yield "
  294.                                 <h1 class=\"title\">Topics</h1>
  295.                                 ";
  296.         // line 243
  297.         $context['_parent'] = $context;
  298.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["topic"]) || array_key_exists("topic"$context) ? $context["topic"] : (function () { throw new RuntimeError('Variable "topic" does not exist.'243$this->source); })()));
  299.         foreach ($context['_seq'] as $context["_key"] => $context["entry"]) {
  300.             // line 244
  301.             yield "                                    <div class=\"form-check\" style=\"width: 100%;\">
  302.                                         <input class=\"form-check-input consFilter topicFilter\" type=\"checkbox\"
  303.                                                value=\"";
  304.             // line 246
  305.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["entry"], "id", [], "any"falsefalsefalse246), "html"nulltrue);
  306.             yield "\" id=\"topicFilter";
  307.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["entry"], "id", [], "any"falsefalsefalse246), "html"nulltrue);
  308.             yield "\"
  309.                                                ";
  310.             // line 247
  311.             if ((!== CoreExtension::compare((isset($context["topicId"]) || array_key_exists("topicId"$context) ? $context["topicId"] : (function () { throw new RuntimeError('Variable "topicId" does not exist.'247$this->source); })()), 0))) {
  312.                 if ((=== CoreExtension::compare((isset($context["topicId"]) || array_key_exists("topicId"$context) ? $context["topicId"] : (function () { throw new RuntimeError('Variable "topicId" does not exist.'247$this->source); })()), CoreExtension::getAttribute($this->env$this->source$context["entry"], "id", [], "any"falsefalsefalse247)))) {
  313.                     yield "checked";
  314.                 }
  315.                 yield " ";
  316.             } else {
  317.             }
  318.             yield ">
  319.                                         <label class=\"form-check-label\" for=\"topicFilter";
  320.             // line 248
  321.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["entry"], "id", [], "any"falsefalsefalse248), "html"nulltrue);
  322.             yield "\">
  323.                                             <span>";
  324.             // line 249
  325.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["entry"], "topicName", [], "any"falsefalsefalse249), "html"nulltrue);
  326.             yield "</span>
  327.                                         </label>
  328.                                     </div>
  329.                                 ";
  330.         }
  331.         $_parent $context['_parent'];
  332.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entry'], $context['_parent'], $context['loop']);
  333.         $context array_intersect_key($context$_parent) + $_parent;
  334.         // line 253
  335.         yield "
  336.                             </div>
  337.                         </div>
  338.                     </div>
  339.                 </div>
  340.                 <div class=\"col-md-3\"></div>
  341.             </div>
  342.         </div>
  343.     </div>
  344.     <div class=\"consultant-list\">
  345.         <div class=\"container\">
  346.             <div class=\"row\">
  347.                 <div class=\"col-md-3\">
  348.                     <div class=\"viewed-consultant\">
  349.                         <div class=\"viewed-consultant-title\">
  350.                             <h6>Last Viewed</h6>
  351.                         </div>
  352.                         <div id=\"lvcl\">
  353.                             ";
  354.         // line 278
  355.         yield "                            ";
  356.         // line 279
  357.         yield "                            ";
  358.         // line 280
  359.         yield "                            ";
  360.         // line 281
  361.         yield "                            ";
  362.         // line 282
  363.         yield "                            ";
  364.         // line 283
  365.         yield "                            ";
  366.         // line 284
  367.         yield "                            ";
  368.         // line 285
  369.         yield "                            ";
  370.         // line 286
  371.         yield "                            ";
  372.         // line 287
  373.         yield "                            ";
  374.         // line 288
  375.         yield "                            ";
  376.         // line 289
  377.         yield "                            ";
  378.         // line 290
  379.         yield "                            ";
  380.         // line 291
  381.         yield "                            ";
  382.         // line 292
  383.         yield "                            ";
  384.         // line 293
  385.         yield "                            ";
  386.         // line 294
  387.         yield "                            ";
  388.         // line 295
  389.         yield "                            ";
  390.         // line 296
  391.         yield "                            ";
  392.         // line 297
  393.         yield "                            ";
  394.         // line 298
  395.         yield "                            ";
  396.         // line 299
  397.         yield "                            ";
  398.         // line 300
  399.         yield "                            ";
  400.         // line 301
  401.         yield "                            ";
  402.         // line 302
  403.         yield "                            ";
  404.         // line 303
  405.         yield "                            ";
  406.         // line 304
  407.         yield "                            ";
  408.         // line 305
  409.         yield "                            ";
  410.         // line 306
  411.         yield "                            ";
  412.         // line 307
  413.         yield "                            ";
  414.         // line 308
  415.         yield "                            ";
  416.         // line 309
  417.         yield "                            ";
  418.         // line 310
  419.         yield "                            ";
  420.         // line 311
  421.         yield "                            ";
  422.         // line 312
  423.         yield "                            ";
  424.         // line 313
  425.         yield "                            ";
  426.         // line 314
  427.         yield "                            ";
  428.         // line 315
  429.         yield "                            ";
  430.         // line 316
  431.         yield "                            ";
  432.         // line 317
  433.         yield "                            ";
  434.         // line 318
  435.         yield "                            ";
  436.         // line 319
  437.         yield "                            ";
  438.         // line 320
  439.         yield "                            ";
  440.         // line 321
  441.         yield "                            ";
  442.         // line 322
  443.         yield "                            ";
  444.         // line 323
  445.         yield "                            ";
  446.         // line 324
  447.         yield "                            ";
  448.         // line 325
  449.         yield "                            ";
  450.         // line 326
  451.         yield "                            ";
  452.         // line 327
  453.         yield "                            ";
  454.         // line 328
  455.         yield "                            ";
  456.         // line 329
  457.         yield "                            ";
  458.         // line 330
  459.         yield "                            ";
  460.         // line 331
  461.         yield "                            ";
  462.         // line 332
  463.         yield "                            ";
  464.         // line 333
  465.         yield "                            ";
  466.         // line 334
  467.         yield "                            ";
  468.         // line 335
  469.         yield "                            ";
  470.         // line 336
  471.         yield "                            ";
  472.         // line 337
  473.         yield "                            ";
  474.         // line 338
  475.         yield "                            ";
  476.         // line 339
  477.         yield "                            ";
  478.         // line 340
  479.         yield "                            ";
  480.         // line 341
  481.         yield "                            ";
  482.         // line 342
  483.         yield "                            ";
  484.         // line 343
  485.         yield "                            ";
  486.         // line 344
  487.         yield "                            ";
  488.         // line 345
  489.         yield "                            ";
  490.         // line 346
  491.         yield "                            ";
  492.         // line 347
  493.         yield "                            ";
  494.         // line 348
  495.         yield "                            ";
  496.         // line 349
  497.         yield "                            ";
  498.         // line 350
  499.         yield "                        </div>
  500.                         <div class=\"more-consultant\">
  501.                             ";
  502.         // line 353
  503.         yield "                        </div>
  504.                     </div>
  505.                 </div>
  506.                 <div class=\"col-md-6 \">
  507.                     <div class=\"pList\"></div>
  508.                     <div class=\"page-pagination  mt-5\" id=\"consultant_pagination\">
  509.                     </div>
  510.                 </div>
  511.                 <div class=\"col-md-3\">
  512.                     <div class=\"consultancy-topic\">
  513.                         <div class=\"consultancy-topic-title\">
  514.                             <h6>Consultancy Topic</h6>
  515.                         </div>
  516.                         ";
  517.         // line 368
  518.         $context['_parent'] = $context;
  519.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["topic"]) || array_key_exists("topic"$context) ? $context["topic"] : (function () { throw new RuntimeError('Variable "topic" does not exist.'368$this->source); })()));
  520.         foreach ($context['_seq'] as $context["_key"] => $context["data"]) {
  521.             // line 369
  522.             yield "                            ";
  523.             if (CoreExtension::getAttribute($this->env$this->source, ($context["countries_data"] ?? null), CoreExtension::getAttribute($this->env$this->source$context["data"], "countryId", [], "any"falsefalsefalse369), [], "array"truetruefalse369)) {
  524.                 // line 370
  525.                 yield "                            <div class=\"consultancy-topic-content\" style=\"cursor: pointer;\"
  526.                                  onclick=\"window.location.href='";
  527.                 // line 371
  528.                 yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("topic_list");
  529.                 yield "/";
  530.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["data"], "id", [], "any"falsefalsefalse371), "html"nulltrue);
  531.                 yield "'\">
  532.                                 <div class=\"consultant-card d-flex\">
  533.                                     <div class=\"consultant-card-left\">
  534.                                         <div class=\"consultant-img\">
  535.                                             <img class=\"bordered-flag\" style=\"height: 68px; width:68px;\"
  536.                                                  src=\"";
  537.                 // line 376
  538.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html"nulltrue);
  539.                 ((CoreExtension::getAttribute($this->env$this->source, ($context["countries_data"] ?? null), CoreExtension::getAttribute($this->env$this->source$context["data"], "countryId", [], "any"falsefalsefalse376), [], "array"truetruefalse376)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["countries_data"]) || array_key_exists("countries_data"$context) ? $context["countries_data"] : (function () { throw new RuntimeError('Variable "countries_data" does not exist.'376$this->source); })()), CoreExtension::getAttribute($this->env$this->source$context["data"], "countryId", [], "any"falsefalsefalse376), [], "array"falsefalsefalse376), "flagImageSquare", [], "any"falsefalsefalse376), "html"nulltrue)) : (yield "buddybee_assets/images/country-1.png"));
  540.                 yield "\"
  541.                                                  alt=\"country-1\">
  542.                                         </div>
  543.                                     </div>
  544.                                     <div class=\"consultant-card-right\">
  545.                                         <div class=\"consultant-title\">
  546.                                             <h4>";
  547.                 // line 382
  548.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["data"], "topicName", [], "any"falsefalsefalse382), "html"nulltrue);
  549.                 yield "</h4>
  550.                                             <p>";
  551.                 // line 383
  552.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["data"], "topicSummary", [], "any"falsefalsefalse383), "html"nulltrue);
  553.                 yield "</p>
  554.                                         </div>
  555.                                     </div>
  556.                                 </div>
  557.                             </div>
  558.                             ";
  559.             }
  560.             // line 389
  561.             yield "                        ";
  562.         }
  563.         $_parent $context['_parent'];
  564.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['data'], $context['_parent'], $context['loop']);
  565.         $context array_intersect_key($context$_parent) + $_parent;
  566.         // line 390
  567.         yield "
  568.                         ";
  569.         // line 393
  570.         yield "                        ";
  571.         // line 394
  572.         yield "                        ";
  573.         // line 395
  574.         yield "                    </div>
  575.                 </div>
  576.             </div>
  577.         </div>
  578.     </div>
  579. </section>
  580. ";
  581.         // line 403
  582.         yield from         $this->loadTemplate("@Application/footer/buddybee_new_footer.html.twig""@Buddybee/pages/consultancySearchPage.html.twig"403)->unwrap()->yield($context);
  583.         // line 404
  584.         yield "
  585. <script type=\"text/javascript\"
  586.         src=\"";
  587.         // line 406
  588.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html"nulltrue);
  589.         yield "condensed_assets/pagination/pagination.js?version=";
  590.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  591.         yield "\"></script>
  592. <script>
  593.     var countries_data =";
  594.         // line 409
  595.         yield json_encode((isset($context["countries_data"]) || array_key_exists("countries_data"$context) ? $context["countries_data"] : (function () { throw new RuntimeError('Variable "countries_data" does not exist.'409$this->source); })()));
  596.         yield "
  597.     var language_list =";
  598.         // line 410
  599.         yield json_encode((isset($context["language_list"]) || array_key_exists("language_list"$context) ? $context["language_list"] : (function () { throw new RuntimeError('Variable "language_list" does not exist.'410$this->source); })()));
  600.         yield "
  601.     var topic_conditional_string = \"preferredTopicIdsAsConsultant like '%\\\"";
  602.         // line 412
  603.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["topicId"]) || array_key_exists("topicId"$context) ? $context["topicId"] : (function () { throw new RuntimeError('Variable "topicId" does not exist.'412$this->source); })()), "html"nulltrue);
  604.         yield "\\\"%'\"
  605.     var config = {
  606.         'mainTableAlias': \"mainTable\",
  607.         'mainTableClass': \"CompanyGroupBundle\\\\Entity\\\\EntityApplicantDetails\",
  608.         'mainTableIdField': \"Id\",
  609. //                'otherConditions': \" (mainTable.CompanyId=1 and mainTable.status=1) \",
  610. //        'otherConditions': \" ( mainTable.isConsultant=1 and mainTable.accountStatus=1  ) \",
  611.         ";
  612.         // line 420
  613.         $context["THIS_USER_ID"] = 0;
  614.         // line 421
  615.         yield "
  616.         ";
  617.         // line 424
  618.         if (CoreExtension::getAttribute($this->env$this->source, ($context["session"] ?? null), CoreExtension::getAttribute($this->env$this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants"$context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.'424$this->source); })()), "USER_ID", [], "any"falsefalsefalse424), [], "array"truetruefalse424)) {
  619.             // line 425
  620.             yield "        ";
  621.             $context["THIS_USER_ID"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["session"]) || array_key_exists("session"$context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.'425$this->source); })()), CoreExtension::getAttribute($this->env$this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants"$context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.'425$this->source); })()), "USER_ID", [], "any"falsefalsefalse425), [], "array"falsefalsefalse425);
  622.             // line 426
  623.             yield "
  624.         ";
  625.         }
  626.         // line 428
  627.         yield "
  628.     ";
  629.         // line 429
  630.         if ((=== CoreExtension::compare((isset($context["ref"]) || array_key_exists("ref"$context) ? $context["ref"] : (function () { throw new RuntimeError('Variable "ref" does not exist.'429$this->source); })()), "_ADMIN_"))) {
  631.             // line 430
  632.             yield "
  633.         ";
  634.             // line 431
  635.             if ((!== CoreExtension::compare((isset($context["topicId"]) || array_key_exists("topicId"$context) ? $context["topicId"] : (function () { throw new RuntimeError('Variable "topicId" does not exist.'431$this->source); })()), 0))) {
  636.                 // line 432
  637.                 yield "        'otherConditions': \" ( mainTable.isAdmin >=1 and mainTable.applicantId != ";
  638.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["THIS_USER_ID"]) || array_key_exists("THIS_USER_ID"$context) ? $context["THIS_USER_ID"] : (function () { throw new RuntimeError('Variable "THIS_USER_ID" does not exist.'432$this->source); })()), "html"nulltrue);
  639.                 yield "  and mainTable.preferredTopicIdsAsConsultant like '%\\\"";
  640.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["topicId"]) || array_key_exists("topicId"$context) ? $context["topicId"] : (function () { throw new RuntimeError('Variable "topicId" does not exist.'432$this->source); })()), "html"nulltrue);
  641.                 yield "\\\"%'   ) \",
  642.         ";
  643.             } else {
  644.                 // line 434
  645.                 yield "        'otherConditions': \" ( mainTable.isAdmin >=1 and mainTable.applicantId != ";
  646.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["THIS_USER_ID"]) || array_key_exists("THIS_USER_ID"$context) ? $context["THIS_USER_ID"] : (function () { throw new RuntimeError('Variable "THIS_USER_ID" does not exist.'434$this->source); })()), "html"nulltrue);
  647.                 yield "    ) \",
  648.         ";
  649.             }
  650.             // line 436
  651.             yield "    ";
  652.         } else {
  653.             // line 437
  654.             yield "        ";
  655.             if ((!== CoreExtension::compare((isset($context["topicId"]) || array_key_exists("topicId"$context) ? $context["topicId"] : (function () { throw new RuntimeError('Variable "topicId" does not exist.'437$this->source); })()), 0))) {
  656.                 // line 438
  657.                 yield "        'otherConditions': \" ( mainTable.isConsultant=1 and mainTable.applicantId != ";
  658.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["THIS_USER_ID"]) || array_key_exists("THIS_USER_ID"$context) ? $context["THIS_USER_ID"] : (function () { throw new RuntimeError('Variable "THIS_USER_ID" does not exist.'438$this->source); })()), "html"nulltrue);
  659.                 yield "  and mainTable.preferredTopicIdsAsConsultant like '%\\\"";
  660.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["topicId"]) || array_key_exists("topicId"$context) ? $context["topicId"] : (function () { throw new RuntimeError('Variable "topicId" does not exist.'438$this->source); })()), "html"nulltrue);
  661.                 yield "\\\"%'   ) \",
  662.         ";
  663.             } else {
  664.                 // line 440
  665.                 yield "        'otherConditions': \" ( mainTable.isConsultant=1 and mainTable.applicantId != ";
  666.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["THIS_USER_ID"]) || array_key_exists("THIS_USER_ID"$context) ? $context["THIS_USER_ID"] : (function () { throw new RuntimeError('Variable "THIS_USER_ID" does not exist.'440$this->source); })()), "html"nulltrue);
  667.                 yield "    ) \",
  668.         ";
  669.             }
  670.             // line 442
  671.             yield "
  672.     ";
  673.         }
  674.         // line 444
  675.         yield "
  676.         'dateFieldsToStr': ['createdAt'],
  677.         'dateFieldsToStrFormat': ['m-d-Y h:i'],
  678.         'convertToObjectFields': ['languagesData'],
  679.         'skipColumnNames': [],
  680.         'flagColNames': [],
  681.         'flagConversionByCols': {},
  682.         'joinTableList': [
  683. //            {
  684. //                'tableClass': \"CompanyGroupBundle\\\\Entity\\\\EntityApplicantDetails\",
  685. //                'tableAlias': \"consultantTable\",
  686. //                'onField': 'applicantId',
  687. //                \"onMainTableField\": \"applicantId\",
  688. //                \"fields\": {
  689. //                    //'alisaFiled':'actiual field Name'
  690. //                    'consultantFirstName': 'firstname',
  691. //                    'consultantLastName': 'lastname',
  692. //                    'consultantImage': 'image',
  693. //
  694. //                }
  695. //            },
  696. //                    {
  697. //                        'tableClass': \"CompanyGroupBundle\\\\Entity\\\\EntityApplicantDetails\",
  698. //                        'tableAlias': \"studentTable\",
  699. //                        'onField': 'applicantId',
  700. //                        \"onMainTableField\": \"studentId\",
  701. //                        \"fields\": {
  702. //                            //'alisaFiled':'actiual field Name'
  703. //                            'studentFirstName': 'firstname',
  704. //                            'studentLastName': 'lastname',
  705. //                            'studentImage': 'image',
  706. //
  707. //                        }
  708. //                    },
  709.         ],
  710.         'returnJson': 1,
  711.         'getUnitListFlag': 1
  712.     }
  713.     var pika = null;
  714.     function refresh_filter() {
  715.         ";
  716.         // line 491
  717.         if ((=== CoreExtension::compare((isset($context["ref"]) || array_key_exists("ref"$context) ? $context["ref"] : (function () { throw new RuntimeError('Variable "ref" does not exist.'491$this->source); })()), "_ADMIN_"))) {
  718.             // line 492
  719.             yield "        var new_other_cond = \"( mainTable.isAdmin >= 1 and mainTable.applicantId != ";
  720.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["THIS_USER_ID"]) || array_key_exists("THIS_USER_ID"$context) ? $context["THIS_USER_ID"] : (function () { throw new RuntimeError('Variable "THIS_USER_ID" does not exist.'492$this->source); })()), "html"nulltrue);
  721.             yield "  and (1=0 \";
  722.         ";
  723.         } else {
  724.             // line 494
  725.             yield "        var new_other_cond = \"( mainTable.isConsultant=1 and mainTable.applicantId != ";
  726.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["THIS_USER_ID"]) || array_key_exists("THIS_USER_ID"$context) ? $context["THIS_USER_ID"] : (function () { throw new RuntimeError('Variable "THIS_USER_ID" does not exist.'494$this->source); })()), "html"nulltrue);
  727.             yield "  and (1=0 \";
  728.         ";
  729.         }
  730.         // line 496
  731.         yield "
  732.         if (\$(\".langFilter:checked\").length)
  733.             \$(\".langFilter:checked\").each(function (indu, elem) {
  734.                 new_other_cond += \"or mainTable.languagesData like '%\\\"\" + \$(elem).val() + \"\\\"%' \";
  735.             })
  736.         else
  737.             new_other_cond += \"or 1=1 \";
  738.         new_other_cond += \") and (1=0 \"
  739.         if (\$(\".countryFilter:checked\").length)
  740.             \$(\".countryFilter:checked\").each(function (indu, elem) {
  741.                 new_other_cond += \"or mainTable.currentCountryId = \" + \$(elem).val() + \" \";
  742.             })
  743.         else
  744.             new_other_cond += \"or 1=1 \";
  745.         new_other_cond += \") and (mainTable.preferredTopicIdsAsConsultant is null or mainTable.preferredTopicIdsAsConsultant='[]' or mainTable.preferredTopicIdsAsConsultant=''  \"
  746.         if (\$(\".topicFilter:checked\").length)
  747.             \$(\".topicFilter:checked\").each(function (indu, elem) {
  748.                 new_other_cond += \"or mainTable.preferredTopicIdsAsConsultant like '%\\\"\" + \$(elem).val() + \"\\\"%' \";
  749.             })
  750.         else
  751.             new_other_cond += \"or 1=1 \";
  752.         ";
  753.         // line 520
  754.         yield "        ";
  755.         // line 521
  756.         yield "        ";
  757.         // line 522
  758.         yield "        new_other_cond += \" ) ) \"
  759.         ";
  760.         // line 524
  761.         yield "
  762.         config.otherConditions = new_other_cond;
  763.         if (pika != null)
  764.             pika.pagination(1)
  765.         else
  766.             pika = \$('#consultant_pagination').pagination({
  767.                 dataSource: \"";
  768.         // line 531
  769.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("generic_datatable_ajax_company_group");
  770.         yield "?dataTableQry=1\",
  771.                 locator: 'data',
  772.                 //    totalNumberLocator: function(response) {
  773.                 //        // you can return totalNumber by analyzing response content
  774.                 //        return Math.floor(Math.random() * (1000 - 100)) + 100;
  775.                 //    },
  776.                 pageSize: 10,
  777.                 classPrefix: \"pico\",
  778.                 ulClassName: \"pagination justify-content-center\",
  779. //            totalNumber: 6,
  780.                 totalNumberLocator: function (response) {
  781.                     // you can return totalNumber by analyzing response content
  782.                     return response.totalObjectsCount != 0 ? (response.totalObjectsCount) : 0;
  783.                 },
  784.                 className: \"pagination-div\",
  785. //                pageRange: null,
  786. //            prevText :'<i class=\"material-icons\">chevron_left</i>',
  787. //            nextText :'<i class=\"material-icons\">chevron_right</i>',
  788.                 ajax: {
  789.                     beforeSend: function () {
  790.                         //            dataContainer.html('Loading data from flickr.com ...');
  791.                     },
  792.                     \"type\": 'POST',
  793.                     \"data\": {
  794.                         returnJson: 1,
  795.                         config: config
  796. //                           sessionData: sessionData,
  797. //                           getUnitListFlag:getUnitListFlag
  798.                     }
  799.                 },
  800.                 callback: function (data, pagination) {
  801.                     // template method of yourself
  802.                     var html = \"\";
  803.                     // alert('working')
  804.                     //    console.log(data)
  805.                     \$('html,body').stop().animate({scrollTop: 0}, 500, 'swing', function () {
  806. //                    alert(\"Finished animating\");
  807.                     });
  808.                     for (var k = 0; k < data.length; k++) {
  809.                         var row_here = data[k]
  810.                         ";
  811.         // line 579
  812.         if ((=== CoreExtension::compare((isset($context["ref"]) || array_key_exists("ref"$context) ? $context["ref"] : (function () { throw new RuntimeError('Variable "ref" does not exist.'579$this->source); })()), "_ADMIN_"))) {
  813.             // line 580
  814.             yield "
  815.                                 if (data[k].isAdmin <= 0)
  816.                                     continue;
  817.                         ";
  818.         } else {
  819.             // line 584
  820.             yield "                            if (data[k].isConsultant = 0)
  821.                                 continue;
  822.                         ";
  823.         }
  824.         // line 588
  825.         yield "
  826.                         var speaks_content = \"\";
  827.                         var languages_data = row_here.mainTable.languagesData;
  828.                         for (var lol = 0; lol < languages_data.length; lol++) {
  829.                             speaks_content += '<span> &nbsp;' +
  830.                                     '<img class=\"small_language_img\" style=\"width: 20px; \" src=\"";
  831.         // line 596
  832.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html"nulltrue);
  833.         yield "' + (typeof language_list[languages_data[lol]] === 'undefined' ? 'buddybee_assets/images/flag-2.png' : language_list[languages_data[lol]].image) + '\"  alt=\"flag-2\">' +
  834.                                     '&nbsp;' + language_list[languages_data[lol]].name + '</span>'
  835.                         }
  836.                         html += ' <div style=\"cursor:pointer;\" class=\"consultant-bio d-flex justify-content-between ' + (k != 0 ? ' mt-5' : '') + '\"  onclick=\"window.location.href=\\'";
  837.         // line 600
  838.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("consultant_profile");
  839.         yield "/' + data[k].applicantId + '";
  840.         (((!== CoreExtension::compare((isset($context["topicId"]) || array_key_exists("topicId"$context) ? $context["topicId"] : (function () { throw new RuntimeError('Variable "topicId" does not exist.'600$this->source); })()), 0))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(("?topicId=" . (isset($context["topicId"]) || array_key_exists("topicId"$context) ? $context["topicId"] : (function () { throw new RuntimeError('Variable "topicId" does not exist.'600$this->source); })())), "html"nulltrue)) : (yield ""));
  841.         yield "\\'\">' +
  842.                                 '<div class=\"consultant-bio-left\">' +
  843.                                 '<div class=\"consultant-bio-img\">' +
  844.                                 ";
  845.         // line 604
  846.         yield "                                ";
  847.         // line 605
  848.         yield "                                ";
  849.         // line 606
  850.         yield "                                ((row_here.mainTable.image != null && row_here.mainTable.image != '') ? '<div style=\"background:url(' + row_here.mainTable.image + ')\"  class=\"cons_image_view\" ></div>' :
  851.                                         '<div style=\"background:url(";
  852.         // line 607
  853.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html"nulltrue);
  854.         yield "buddybee_assets/images/consultant_image_ph_male.png)\"  class=\"cons_image_view\" ></div>') +
  855.                                 '<div class=\"consultant-review\">' +
  856.                                 (row_here.mainTable.rating >0?
  857.                                 ((row_here.mainTable.rating >= 1 ? '<i class=\"fas fa-star\"></i>' : '<i class=\"fa fa-star\"></i>') +
  858.                                 (row_here.mainTable.rating >= 2 ? '<i class=\"fas fa-star\"></i>' : '<i class=\"fa fa-star\"></i>') +
  859.                                 (row_here.mainTable.rating >= 3 ? '<i class=\"fas fa-star\"></i>' : '<i class=\"fa fa-star\"></i>') +
  860.                                 (row_here.mainTable.rating >= 4 ? '<i class=\"fas fa-star\"></i>' : '<i class=\"fa fa-star\"></i>') +
  861.                                 (row_here.mainTable.rating >= 4.5 ? '<i class=\"fas fa-star\"></i>' : '<i class=\"fa fa-star\"></i>') +
  862.                                 '<span class=\"rating_value_span\" style=\"font-weight:bold;\">&nbsp;' + ((1 * row_here.mainTable.rating).toFixed(1)) + '</span>'):
  863.                                 ('<span class=\"rating_value_span\" style=\"font-weight:bold;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>'))
  864.                                 +
  865.                             (row_here.mainTable.scheduleAvailableFlag==1?('<span class=\"book_btn_span\"><a href=\"";
  866.         // line 623
  867.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("consultant_profile");
  868.         yield "/' + row_here.mainTable.applicantId + '\" >Book</a></span>'):('<span class=\"book_btn_span\"><a style=\"background:orange;\" href=\"";
  869.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("consultant_profile");
  870.         yield "/' + row_here.mainTable.applicantId + '\" >Unavailable</a></span>')) +
  871.                                 '</div>' +
  872.                                 '</div>' +
  873.                                 '</div>' +
  874.                                 '<div class=\"consultant-bio-right\" style=\"min-height:8rem;\">' +
  875.                                 '<h3>' + row_here.mainTable.firstname + ' ' + row_here.mainTable.lastname + '</h3>' +
  876.                                 '<p><b>Profession: </b>' + ((row_here.mainTable.professionText != '' && row_here.mainTable.professionText != null) ? row_here.mainTable.professionText : 'Buddybee Consultant') + '</p>' +
  877.                                 '<p><b>University: </b>' + ((row_here.mainTable.universityText != '' && row_here.mainTable.universityText != null) ? row_here.mainTable.universityText : '') + '</p>' +
  878. //                       '<p><b>University: </b>Canadian English University College</p>' +
  879.                                 '<p><b>Country: </b>' + (typeof countries_data[row_here.mainTable.currentCountryId] === 'undefined' ? '' : countries_data[row_here.mainTable.currentCountryId].name) + '</p>' +
  880.                                 '<p><b>Speaks: </b>' + speaks_content + '</p>' +
  881. //                           '<p><b>Interests: </b>'+((row_here.mainTable.interest != '' && row_here.mainTable.interest != null) ?row_here.mainTable.interest:'Learning new Things') +'</p>' +
  882.                                 '<p><b>Education: </b>' + ((row_here.mainTable.educationText != '' && row_here.mainTable.educationText != null) ? row_here.mainTable.educationText : '') + '</p>' +
  883.                                 '<p><b>Speciality: </b>' + ((row_here.mainTable.speciality != '' && row_here.mainTable.speciality != null) ? row_here.mainTable.speciality : '') + '</p>' +
  884. //                           '<p><b>Speciality: </b>Badminton,Music,Culture & Heritage, Median & Arts</p>' +
  885. //                       '<p><b>Education: </b>Canadian University International College</p>' +
  886. //                       '<p><b>Speciality: </b>English (Native US/Canada)</p>' +
  887.                                 '</div>' +
  888.                                 '</div>'
  889.                     }
  890.                     //    console.log(data)
  891.                     \$('.pList').html(html);
  892.                 }
  893.             })
  894.     }
  895.     \$(document).ready(function () {
  896.         var lastViewedConsultantListStr = window.localStorage.getItem('lvcl');
  897.         var lastViewedConsultantList = [];
  898.         if (lastViewedConsultantListStr != 'null' && lastViewedConsultantListStr != null)
  899.             lastViewedConsultantList = JSON.parse(lastViewedConsultantListStr);
  900.         for (var p = 0; p < lastViewedConsultantList.length; p++) {
  901.             var currConsDataForLastview = lastViewedConsultantList[p];
  902.             var toappendStr = '<div class=\"viewed-consultant-content\" onclick=\"window.location.href=\\'' + currConsDataForLastview.prfUrl + '\\'\">' +
  903.                     '<div class=\"consultant-card d-flex\">' +
  904.                     '<div class=\"consultant-card-left\">' +
  905.                     '<div class=\"consultant-img\" style=\"background: url(' + currConsDataForLastview.imageUrl + ');' +
  906.                     'height: 68px;' +
  907.                     'width: 68px;' +
  908.                     'border-radius: 50%;' +
  909.                     'background-size: cover;' +
  910.                     'background-position: center;\">' +
  911. //                    '<img src=\"'+currConsDataForLastview.imageUrl+'\" style=\"width:68px;\" alt=\"consultant-3\">'+
  912.                     '<div class=\"cosultant-country\">' +
  913.                     '<img style=\"width: 20px; height: 20px;\" src=\"";
  914.         // line 675
  915.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html"nulltrue);
  916.         yield "' + (typeof countries_data[currConsDataForLastview.currentCountryId] === 'undefined' ? 'buddybee_assets/images/flag-2.png' : countries_data[currConsDataForLastview.currentCountryId].flagImageSquare) + '\"  alt=\"\">' +
  917.                     '</div>' +
  918.                     '</div>' +
  919.                     '</div>' +
  920.                     '<div class=\"consultant-card-right\">' +
  921.                     '<div class=\"consultant-title\">' +
  922.                     '<h4>' + currConsDataForLastview.name + '</h4>' +
  923.                     '<p>' + (typeof currConsDataForLastview.professionalTitle !== 'undefined' ? currConsDataForLastview.professionalTitle : 'Professional Consultant') + '</p>' +
  924.                     '</div>' +
  925.                     '</div>' +
  926.                     '</div>' +
  927.                     '</div>';
  928.             \$('#lvcl').append(toappendStr);
  929.             ";
  930.         // line 689
  931.         yield "            ";
  932.         // line 690
  933.         yield "            ";
  934.         // line 691
  935.         yield "            ";
  936.         // line 692
  937.         yield "            ";
  938.         // line 693
  939.         yield "
  940.             ";
  941.         // line 695
  942.         yield "        }
  943.         \$('.consFilter').change(function () {
  944.             refresh_filter()
  945. //            op
  946.         })
  947.         refresh_filter()
  948.         \$(document).mouseup(function (e) {
  949.             var container = \$(\".filter_div_content\");
  950.             // if the target of the click isn't the container nor a descendant of the container
  951.             if (!container.is(e.target) && container.has(e.target).length === 0) {
  952.                 container.hide();
  953.             }
  954.         });
  955.         \$('.filter_div_btn').click(function (e) {
  956.             e.preventDefault();
  957.             \$('.filter_div_content').toggle()
  958.         })
  959.         var consultantSearch = \$(\".consultantSearch\").selectize({
  960.             valueField: \"url\",
  961.             labelField: \"name\",
  962.             searchField: \"name\",
  963.             create: false,
  964.             preload: true,
  965.             render: {
  966.                 option: function (item, escape) {
  967.                     return (
  968.                             '<div style=\"padding: 2px;\">' +
  969.                             '<span class=\"title\" style=\"    min-width: 2rem;display: inline-block;\">' +
  970.                             ((item.image != null && item.image != '') ? '<img style=\"border-radius: 50%;height: 2rem;width: 2rem;\" src=\"' + item.image + '\" alt=\"\" class=\"img-fluid\" >' :
  971.                                     '<img style=\"border-radius: 50%;height: 2rem;width: 2rem;\" src=\"";
  972.         // line 735
  973.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html"nulltrue);
  974.         yield "buddybee_assets/images/consultant_image_ph_male.png\" alt=\"\" class=\"img-fluid\" >') +
  975.                             \"</span>\" +
  976.                             '<span class=\"name\" style=\"padding-left:0.5rem;font-size: 14px;\">' +
  977. //                        '<i class=\"icon ' +
  978. //                        (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
  979. //                        '\"></i>' +
  980. //                        \"<div class='form-control mainDiv'>\" +
  981. //                        '<span class=\"name\">' +
  982.                             escape(item.name) +
  983.                             \"</span>\" +
  984.                                 // '<span class=\"description\">' +
  985.                                 // escape(item.description) +
  986. //                    \"</span>\" +
  987.                             \"</div>\"
  988.                     );
  989.                     // return (
  990.                     //     \"<div>\" +
  991.                     //     '<span class=\"title\">' +
  992.                     //     '<span class=\"name\"><i class=\"icon ' +
  993.                     //     (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
  994.                     //     '\"></i>' +
  995.                     //     escape(item.name) +
  996.                     //     \"</span>\" +
  997.                     //
  998.                     //     \"</span>\" +
  999.                     //     '<span class=\"description\">' +
  1000.                     //     escape(item.description) +
  1001.                     //     \"</span>\" +
  1002.                     //
  1003.                     //     \"</div>\"
  1004.                     // );
  1005.                 },
  1006.             },
  1007.             onChange: function (value) {
  1008.                 if (!value.length) return;
  1009.                 var sval = value
  1010.                 consultantSearch.setValue([])
  1011.                 window.location.href = sval;
  1012.                 //addProductToListById(value);
  1013.                 // alert(value)
  1014.                 // small_search_box.clear()
  1015.                 // small_search_box.focus()
  1016.             },
  1017.             load: function (query, callback) {
  1018.                 if (!query.length) return callback();
  1019.                 \$.ajax({
  1020.                     url: \"";
  1021.         // line 798
  1022.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("consultant_search_from_list");
  1023.         yield "/\" + encodeURIComponent(query),
  1024.                     type: \"GET\",
  1025.                     error: function () {
  1026.                         callback();
  1027.                     },
  1028.                     success: function (res) {
  1029.                         //    console.log(res.data)
  1030.                         callback(res.data);
  1031.                     },
  1032.                 });
  1033.             },
  1034.         })[0].selectize;
  1035.     });
  1036. </script>
  1037. <style type=\"text/css\">
  1038.     body {
  1039.         /*-moz-transform: scale(0.5, 0.5); !* Moz-browsers *!*/
  1040.         zoom: 1; /* Other non-webkit browsers */
  1041.         zoom: 100%; /* Webkit browsers */
  1042.     }
  1043.     /*.modal-dialog {*/
  1044.     /*width: 75%;*/
  1045.     /*}*/
  1046.     .trans_amount {
  1047.         text-align: right;
  1048.     }
  1049. </style>
  1050. ";
  1051.         
  1052.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1053.         
  1054.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1055.         return; yield '';
  1056.     }
  1057.     /**
  1058.      * @codeCoverageIgnore
  1059.      */
  1060.     public function getTemplateName()
  1061.     {
  1062.         return "@Buddybee/pages/consultancySearchPage.html.twig";
  1063.     }
  1064.     /**
  1065.      * @codeCoverageIgnore
  1066.      */
  1067.     public function isTraitable()
  1068.     {
  1069.         return false;
  1070.     }
  1071.     /**
  1072.      * @codeCoverageIgnore
  1073.      */
  1074.     public function getDebugInfo()
  1075.     {
  1076.         return array (  1154 => 798,  1088 => 735,  1046 => 695,  1043 => 693,  1041 => 692,  1039 => 691,  1037 => 690,  1035 => 689,  1019 => 675,  962 => 623,  943 => 607,  940 => 606,  938 => 605,  936 => 604,  928 => 600,  921 => 596,  911 => 588,  905 => 584,  899 => 580,  897 => 579,  846 => 531,  837 => 524,  834 => 522,  832 => 521,  830 => 520,  805 => 496,  799 => 494,  793 => 492,  791 => 491,  742 => 444,  738 => 442,  732 => 440,  724 => 438,  721 => 437,  718 => 436,  712 => 434,  704 => 432,  702 => 431,  699 => 430,  697 => 429,  694 => 428,  690 => 426,  687 => 425,  685 => 424,  680 => 421,  678 => 420,  667 => 412,  662 => 410,  658 => 409,  650 => 406,  646 => 404,  644 => 403,  634 => 395,  632 => 394,  630 => 393,  626 => 390,  620 => 389,  611 => 383,  607 => 382,  597 => 376,  587 => 371,  584 => 370,  581 => 369,  577 => 368,  560 => 353,  556 => 350,  554 => 349,  552 => 348,  550 => 347,  548 => 346,  546 => 345,  544 => 344,  542 => 343,  540 => 342,  538 => 341,  536 => 340,  534 => 339,  532 => 338,  530 => 337,  528 => 336,  526 => 335,  524 => 334,  522 => 333,  520 => 332,  518 => 331,  516 => 330,  514 => 329,  512 => 328,  510 => 327,  508 => 326,  506 => 325,  504 => 324,  502 => 323,  500 => 322,  498 => 321,  496 => 320,  494 => 319,  492 => 318,  490 => 317,  488 => 316,  486 => 315,  484 => 314,  482 => 313,  480 => 312,  478 => 311,  476 => 310,  474 => 309,  472 => 308,  470 => 307,  468 => 306,  466 => 305,  464 => 304,  462 => 303,  460 => 302,  458 => 301,  456 => 300,  454 => 299,  452 => 298,  450 => 297,  448 => 296,  446 => 295,  444 => 294,  442 => 293,  440 => 292,  438 => 291,  436 => 290,  434 => 289,  432 => 288,  430 => 287,  428 => 286,  426 => 285,  424 => 284,  422 => 283,  420 => 282,  418 => 281,  416 => 280,  414 => 279,  412 => 278,  386 => 253,  376 => 249,  372 => 248,  362 => 247,  356 => 246,  352 => 244,  348 => 243,  344 => 241,  334 => 237,  330 => 236,  324 => 235,  320 => 233,  316 => 232,  312 => 230,  302 => 226,  298 => 225,  292 => 224,  288 => 222,  284 => 221,  270 => 210,  266 => 208,  264 => 207,  254 => 198,  250 => 196,  246 => 194,  244 => 193,  237 => 188,  234 => 187,  232 => 186,  46 => 2,  44 => 1,);
  1077.     }
  1078.     public function getSourceContext()
  1079.     {
  1080.         return new Source("{% include '@Application/inc/buddybee_new_header.html.twig' %}
  1081. <style>
  1082.     .consultant-bio-img img {
  1083.         height: 154px;
  1084.         border-radius: 10%;
  1085.     }
  1086.     .small_language_img {
  1087.     }
  1088.     .consultant-bio-img .cons_image_view {
  1089.         height: 154px;
  1090.         width: 154px;
  1091.         border-radius: 10%;
  1092.         background-size: cover !important;
  1093.         background-position: center !important;
  1094.     }
  1095.     .consultant_search_bar.searchbar-content {
  1096.         position: relative;
  1097.     }
  1098.     .consultant_search_bar.searchbar-content a {
  1099.         position: absolute;
  1100.         right: 9px;
  1101.         top: 7px;
  1102.     }
  1103.     .filter_div img {
  1104.         /*display: block;*/
  1105.         color: #fff;
  1106.         /*padding: 10px 0;*/
  1107.         font-size: 14px;
  1108.         background: #1D5B9E;
  1109.         width: 40px;
  1110.         height: 40px;
  1111.         padding: 6px;
  1112.         text-align: center;
  1113.         line-height: 51px;
  1114.         border-radius: 50%;
  1115.     }
  1116.     .filter_div_btn {
  1117.     }
  1118.     .filter_div {
  1119.         display: inline-block;
  1120.         width: 70px;
  1121.         padding: 10px 0;
  1122.         position: relative;
  1123.     }
  1124.     .consultant-title .searchbar {
  1125.         width: 290px;
  1126.         display: inline-block;
  1127.         position: relative;
  1128.     }
  1129.     .filter_div_content {
  1130.         padding: 20px;
  1131.         width: 300px;
  1132.         min-height: 400px;
  1133.         height: auto;
  1134.         left: -115px;
  1135.         position: absolute;
  1136.         z-index: 99999;
  1137.         background: white;
  1138.         display: none;;
  1139.         /*border:1px solid darkblue;*/
  1140.         box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  1141.     }
  1142.     .filter_div_content .head {
  1143.         display: flex;
  1144.         justify-content: space-between;
  1145.         border-bottom: 1px solid #f1e4e4;
  1146.     }
  1147.     .filter_div_content .head .title {
  1148.         font-size: 13px;
  1149.         display: inline-block;
  1150.         float: left;
  1151.         margin-bottom: 0.5rem;
  1152.     }
  1153.     .filter_div_content .head .title.right {
  1154.         float: right;
  1155.         color: #1D5B9E;
  1156.         font-weight: bold;
  1157.         text-decoration: none;
  1158.     }
  1159.     .filter_div_content .body {
  1160.         text-align: left;
  1161.         /*padding-top: 15px;*/
  1162.     }
  1163.     .filter_div_content .body .title {
  1164.         margin-top: 15px;
  1165.         margin-bottom: 2px;
  1166.         font-size: 11px;
  1167.         text-align: left;
  1168.         text-transform: uppercase;
  1169.         color: #6c757d;
  1170.     }
  1171.     .filter_div_content .body .option {
  1172.     }
  1173.     .filter_div_content .body .form-check {
  1174.         text-align: left;
  1175.         width: 49%;
  1176.         display: inline-block;
  1177.     }
  1178.     .filter_div_content .body .form-check .form-check-label span {
  1179.         font-size: 13px;;
  1180.     }
  1181.     .filter_div_content .body .form-check .form-check-input:checked {
  1182.         background-color: #1D5B9E;
  1183.         border-color: #1D5B9E;
  1184.     }
  1185.     @media (min-width: 320px) and (max-width: 480px) {
  1186.         .consultant-title .searchbar {
  1187.             width: 250px;
  1188.         }
  1189.         .filter_div_content {
  1190.             left: unset;
  1191.             right: 0;
  1192.         }
  1193.     }
  1194.     @media (min-width: 481px) and (max-width: 540px) {
  1195.         .consultant-title .searchbar {
  1196.             width: 250px;
  1197.         }
  1198.         .filter_div_content {
  1199.             left: unset;
  1200.             right: 0;
  1201.         }
  1202.     }
  1203.     @media (min-width: 320px) and (max-width: 480px) {
  1204.         .consultant-bio-img .cons_image_view {
  1205.             height: 60px !important;
  1206.             width: 60px !important;
  1207.             margin: auto;
  1208.         }
  1209.         .consultant-bio-img  {
  1210.            text-align: center;
  1211.         }
  1212.         .book_btn_span {
  1213.             /*display: none;*/
  1214.         }
  1215.         .rating_value_span {
  1216.             display: block;
  1217.             padding: 0 21px;;
  1218.         }
  1219.     }
  1220. </style>
  1221. <section class=\"consultant-section\">
  1222.     {% set countries_data='_HAS_CONSULTANT_'|getCountriesBuddyBee('object') %}
  1223.     {% set language_list='_ALL_'|getLanguagesBuddyBee('object') %}
  1224.     <div class=\"consultant-title\">
  1225.         <div class=\"container\">
  1226.             <div class=\"row mb-5\">
  1227.                 <div class=\"col-md-3\"></div>
  1228.                 <div class=\"col-md-6\" style=\"position: relative;text-align: center\">
  1229.                     {% if ref=='_ADMIN_' %}
  1230.                     <h2>Meet the BuddyBee Admins</h2>
  1231.                     {% else %}
  1232.                     <h2>Meet the BuddyBee Consultant</h2>
  1233.                     {% endif %}
  1234.                     <div class=\"searchbar\" style=\"\">
  1235.                         <div class=\"searchbar-content consultant_search_bar\">
  1236.                             <input type=\"text\" placeholder=\"Search Consultant\" class=\"consultantSearch small_search\">
  1237.                             <a href=\"#\"><i class=\"fas fa-search\"></i></a>
  1238.                         </div>
  1239.                     </div>
  1240.                     <div class=\"filter_div\" style=\"width: 70px;\">
  1241.                         <a href=\"#\" class=\"filter_div_btn\">
  1242.                             {#<img style=\"width: 20px; height: 20px;\" src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/filter_image.png\"  alt=\"\">#}
  1243.                             {#<i class=\"fas fa-filter\">#}
  1244.                             <i class=\"\">
  1245.                                 <img style=\"\"
  1246.                                      src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/filter_image.png\"
  1247.                                      alt=\"\">
  1248.                             </i>
  1249.                         </a>
  1250.                         <div class=\"filter_div_content\" style=\"\">
  1251.                             <div class=\"head\">
  1252.                                 <h1 class=\"title\">Filter By</h1>
  1253.                                 <a class=\"title right\">Reset Filters</a>
  1254.                             </div>
  1255.                             <div class=\"body\">
  1256.                                 <h1 class=\"title\">Language</h1>
  1257.                                 {% for entry in language_list %}
  1258.                                     <div class=\"form-check\">
  1259.                                         <input class=\"form-check-input consFilter langFilter\" type=\"checkbox\"
  1260.                                                value=\"{{ entry.id }}\" id=\"langFilter{{ entry.id }}\" >
  1261.                                         <label class=\"form-check-label\" for=\"langFilter{{ entry.id }}\">
  1262.                                             <span>{{ entry.name }}</span>
  1263.                                         </label>
  1264.                                     </div>
  1265.                                 {% endfor %}
  1266.                                 <h1 class=\"title\">Country</h1>
  1267.                                 {% for entry in countries_data %}
  1268.                                     <div class=\"form-check\">
  1269.                                         <input class=\"form-check-input consFilter countryFilter\" type=\"checkbox\"
  1270.                                                value=\"{{ entry.id }}\" id=\"countryFilter{{ entry.id }}\" >
  1271.                                         <label class=\"form-check-label\" for=\"countryFilter{{ entry.id }}\">
  1272.                                             <span>{{ entry.name }}</span>
  1273.                                         </label>
  1274.                                     </div>
  1275.                                 {% endfor %}
  1276.                                 <h1 class=\"title\">Topics</h1>
  1277.                                 {% for entry in topic %}
  1278.                                     <div class=\"form-check\" style=\"width: 100%;\">
  1279.                                         <input class=\"form-check-input consFilter topicFilter\" type=\"checkbox\"
  1280.                                                value=\"{{ entry.id }}\" id=\"topicFilter{{ entry.id }}\"
  1281.                                                {% if topicId !=0 %}{% if topicId ==entry.id %}checked{% endif %} {% else %}{% endif %}>
  1282.                                         <label class=\"form-check-label\" for=\"topicFilter{{ entry.id }}\">
  1283.                                             <span>{{ entry.topicName }}</span>
  1284.                                         </label>
  1285.                                     </div>
  1286.                                 {% endfor %}
  1287.                             </div>
  1288.                         </div>
  1289.                     </div>
  1290.                 </div>
  1291.                 <div class=\"col-md-3\"></div>
  1292.             </div>
  1293.         </div>
  1294.     </div>
  1295.     <div class=\"consultant-list\">
  1296.         <div class=\"container\">
  1297.             <div class=\"row\">
  1298.                 <div class=\"col-md-3\">
  1299.                     <div class=\"viewed-consultant\">
  1300.                         <div class=\"viewed-consultant-title\">
  1301.                             <h6>Last Viewed</h6>
  1302.                         </div>
  1303.                         <div id=\"lvcl\">
  1304.                             {##}
  1305.                             {#<div class=\"viewed-consultant-content my-2\">#}
  1306.                             {#<div class=\"consultant-card d-flex\">#}
  1307.                             {#<div class=\"consultant-card-left\">#}
  1308.                             {#<div class=\"consultant-img\">#}
  1309.                             {#<img src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/consultant-3.png\" alt=\"consultant-3\">#}
  1310.                             {#<div class=\"cosultant-country\">#}
  1311.                             {#<img src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/flag-2.png\" alt=\"flag-2\">#}
  1312.                             {#</div>#}
  1313.                             {#</div>#}
  1314.                             {#</div>#}
  1315.                             {#<div class=\"consultant-card-right\">#}
  1316.                             {#<div class=\"consultant-title\">#}
  1317.                             {#<h4>Philip Ericsson</h4>#}
  1318.                             {#<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Magnis fames fames fames fames</p>#}
  1319.                             {#</div>#}
  1320.                             {#</div>#}
  1321.                             {#</div>#}
  1322.                             {#</div>#}
  1323.                             {#<div class=\"viewed-consultant-content\">#}
  1324.                             {#<div class=\"consultant-card d-flex\">#}
  1325.                             {#<div class=\"consultant-card-left\">#}
  1326.                             {#<div class=\"consultant-img\">#}
  1327.                             {#<img src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/consultant-3.png\" alt=\"consultant-3\">#}
  1328.                             {#<div class=\"cosultant-country\">#}
  1329.                             {#<img src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/flag-2.png\" alt=\"flag-2\">#}
  1330.                             {#</div>#}
  1331.                             {#</div>#}
  1332.                             {#</div>#}
  1333.                             {#<div class=\"consultant-card-right\">#}
  1334.                             {#<div class=\"consultant-title\">#}
  1335.                             {#<h4>Philip Ericsson</h4>#}
  1336.                             {#<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Magnis fames fames fames fames</p>#}
  1337.                             {#</div>#}
  1338.                             {#</div>#}
  1339.                             {#</div>#}
  1340.                             {#</div>#}
  1341.                             {#<div class=\"viewed-consultant-content my-2\">#}
  1342.                             {#<div class=\"consultant-card d-flex\">#}
  1343.                             {#<div class=\"consultant-card-left\">#}
  1344.                             {#<div class=\"consultant-img\">#}
  1345.                             {#<img src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/consultant-3.png\" alt=\"consultant-3\">#}
  1346.                             {#<div class=\"cosultant-country\">#}
  1347.                             {#<img src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/flag-2.png\" alt=\"flag-2\">#}
  1348.                             {#</div>#}
  1349.                             {#</div>#}
  1350.                             {#</div>#}
  1351.                             {#<div class=\"consultant-card-right\">#}
  1352.                             {#<div class=\"consultant-title\">#}
  1353.                             {#<h4>Philip Ericsson</h4>#}
  1354.                             {#<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Magnis fames fames fames fames</p>#}
  1355.                             {#</div>#}
  1356.                             {#</div>#}
  1357.                             {#</div>#}
  1358.                             {#</div>#}
  1359.                             {#<div class=\"viewed-consultant-content\">#}
  1360.                             {#<div class=\"consultant-card d-flex\">#}
  1361.                             {#<div class=\"consultant-card-left\">#}
  1362.                             {#<div class=\"consultant-img\">#}
  1363.                             {#<img src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/consultant-3.png\" alt=\"consultant-3\">#}
  1364.                             {#<div class=\"cosultant-country\">#}
  1365.                             {#<img src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/flag-2.png\" alt=\"flag-2\">#}
  1366.                             {#</div>#}
  1367.                             {#</div>#}
  1368.                             {#</div>#}
  1369.                             {#<div class=\"consultant-card-right\">#}
  1370.                             {#<div class=\"consultant-title\">#}
  1371.                             {#<h4>Philip Ericsson</h4>#}
  1372.                             {#<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Magnis fames fames fames fames</p>#}
  1373.                             {#</div>#}
  1374.                             {#</div>#}
  1375.                             {#</div>#}
  1376.                             {#</div>#}
  1377.                         </div>
  1378.                         <div class=\"more-consultant\">
  1379.                             {#<p style=\"text-align: center;\"><a href=\"#\">View More</a></p>#}
  1380.                         </div>
  1381.                     </div>
  1382.                 </div>
  1383.                 <div class=\"col-md-6 \">
  1384.                     <div class=\"pList\"></div>
  1385.                     <div class=\"page-pagination  mt-5\" id=\"consultant_pagination\">
  1386.                     </div>
  1387.                 </div>
  1388.                 <div class=\"col-md-3\">
  1389.                     <div class=\"consultancy-topic\">
  1390.                         <div class=\"consultancy-topic-title\">
  1391.                             <h6>Consultancy Topic</h6>
  1392.                         </div>
  1393.                         {% for data in topic %}
  1394.                             {% if countries_data[data.countryId] is defined %}
  1395.                             <div class=\"consultancy-topic-content\" style=\"cursor: pointer;\"
  1396.                                  onclick=\"window.location.href='{{ path('topic_list') }}/{{ data.id }}'\">
  1397.                                 <div class=\"consultant-card d-flex\">
  1398.                                     <div class=\"consultant-card-left\">
  1399.                                         <div class=\"consultant-img\">
  1400.                                             <img class=\"bordered-flag\" style=\"height: 68px; width:68px;\"
  1401.                                                  src=\"{{ absolute_url(path('dashboard')) }}{{ countries_data[data.countryId] is defined?countries_data[data.countryId].flagImageSquare:'buddybee_assets/images/country-1.png' }}\"
  1402.                                                  alt=\"country-1\">
  1403.                                         </div>
  1404.                                     </div>
  1405.                                     <div class=\"consultant-card-right\">
  1406.                                         <div class=\"consultant-title\">
  1407.                                             <h4>{{ data.topicName }}</h4>
  1408.                                             <p>{{ data.topicSummary }}</p>
  1409.                                         </div>
  1410.                                     </div>
  1411.                                 </div>
  1412.                             </div>
  1413.                             {% endif %}
  1414.                         {% endfor %}
  1415.                         {#                        <div class=\"more-consultant\">#}
  1416.                         {#                            <center><a href=\"#\">View More</a></center>#}
  1417.                         {#                        </div>#}
  1418.                     </div>
  1419.                 </div>
  1420.             </div>
  1421.         </div>
  1422.     </div>
  1423. </section>
  1424. {% include '@Application/footer/buddybee_new_footer.html.twig' %}
  1425. <script type=\"text/javascript\"
  1426.         src=\"{{ absolute_url(path('dashboard')) }}condensed_assets/pagination/pagination.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
  1427. <script>
  1428.     var countries_data ={{ countries_data|json_encode()|raw() }}
  1429.     var language_list ={{ language_list|json_encode()|raw() }}
  1430.     var topic_conditional_string = \"preferredTopicIdsAsConsultant like '%\\\"{{ topicId }}\\\"%'\"
  1431.     var config = {
  1432.         'mainTableAlias': \"mainTable\",
  1433.         'mainTableClass': \"CompanyGroupBundle\\\\Entity\\\\EntityApplicantDetails\",
  1434.         'mainTableIdField': \"Id\",
  1435. //                'otherConditions': \" (mainTable.CompanyId=1 and mainTable.status=1) \",
  1436. //        'otherConditions': \" ( mainTable.isConsultant=1 and mainTable.accountStatus=1  ) \",
  1437.         {% set THIS_USER_ID= 0 %}
  1438.         {% if (session[UserConstants.USER_ID] is defined ) %}
  1439.         {% set THIS_USER_ID =session[UserConstants.USER_ID] %}
  1440.         {% endif %}
  1441.     {% if ref=='_ADMIN_' %}
  1442.         {% if topicId !=0 %}
  1443.         'otherConditions': \" ( mainTable.isAdmin >=1 and mainTable.applicantId != {{ THIS_USER_ID }}  and mainTable.preferredTopicIdsAsConsultant like '%\\\"{{ topicId }}\\\"%'   ) \",
  1444.         {% else %}
  1445.         'otherConditions': \" ( mainTable.isAdmin >=1 and mainTable.applicantId != {{ THIS_USER_ID }}    ) \",
  1446.         {% endif %}
  1447.     {% else %}
  1448.         {% if topicId !=0 %}
  1449.         'otherConditions': \" ( mainTable.isConsultant=1 and mainTable.applicantId != {{ THIS_USER_ID }}  and mainTable.preferredTopicIdsAsConsultant like '%\\\"{{ topicId }}\\\"%'   ) \",
  1450.         {% else %}
  1451.         'otherConditions': \" ( mainTable.isConsultant=1 and mainTable.applicantId != {{ THIS_USER_ID }}    ) \",
  1452.         {% endif %}
  1453.     {% endif %}
  1454.         'dateFieldsToStr': ['createdAt'],
  1455.         'dateFieldsToStrFormat': ['m-d-Y h:i'],
  1456.         'convertToObjectFields': ['languagesData'],
  1457.         'skipColumnNames': [],
  1458.         'flagColNames': [],
  1459.         'flagConversionByCols': {},
  1460.         'joinTableList': [
  1461. //            {
  1462. //                'tableClass': \"CompanyGroupBundle\\\\Entity\\\\EntityApplicantDetails\",
  1463. //                'tableAlias': \"consultantTable\",
  1464. //                'onField': 'applicantId',
  1465. //                \"onMainTableField\": \"applicantId\",
  1466. //                \"fields\": {
  1467. //                    //'alisaFiled':'actiual field Name'
  1468. //                    'consultantFirstName': 'firstname',
  1469. //                    'consultantLastName': 'lastname',
  1470. //                    'consultantImage': 'image',
  1471. //
  1472. //                }
  1473. //            },
  1474. //                    {
  1475. //                        'tableClass': \"CompanyGroupBundle\\\\Entity\\\\EntityApplicantDetails\",
  1476. //                        'tableAlias': \"studentTable\",
  1477. //                        'onField': 'applicantId',
  1478. //                        \"onMainTableField\": \"studentId\",
  1479. //                        \"fields\": {
  1480. //                            //'alisaFiled':'actiual field Name'
  1481. //                            'studentFirstName': 'firstname',
  1482. //                            'studentLastName': 'lastname',
  1483. //                            'studentImage': 'image',
  1484. //
  1485. //                        }
  1486. //                    },
  1487.         ],
  1488.         'returnJson': 1,
  1489.         'getUnitListFlag': 1
  1490.     }
  1491.     var pika = null;
  1492.     function refresh_filter() {
  1493.         {% if ref=='_ADMIN_' %}
  1494.         var new_other_cond = \"( mainTable.isAdmin >= 1 and mainTable.applicantId != {{ THIS_USER_ID }}  and (1=0 \";
  1495.         {% else %}
  1496.         var new_other_cond = \"( mainTable.isConsultant=1 and mainTable.applicantId != {{ THIS_USER_ID }}  and (1=0 \";
  1497.         {% endif %}
  1498.         if (\$(\".langFilter:checked\").length)
  1499.             \$(\".langFilter:checked\").each(function (indu, elem) {
  1500.                 new_other_cond += \"or mainTable.languagesData like '%\\\"\" + \$(elem).val() + \"\\\"%' \";
  1501.             })
  1502.         else
  1503.             new_other_cond += \"or 1=1 \";
  1504.         new_other_cond += \") and (1=0 \"
  1505.         if (\$(\".countryFilter:checked\").length)
  1506.             \$(\".countryFilter:checked\").each(function (indu, elem) {
  1507.                 new_other_cond += \"or mainTable.currentCountryId = \" + \$(elem).val() + \" \";
  1508.             })
  1509.         else
  1510.             new_other_cond += \"or 1=1 \";
  1511.         new_other_cond += \") and (mainTable.preferredTopicIdsAsConsultant is null or mainTable.preferredTopicIdsAsConsultant='[]' or mainTable.preferredTopicIdsAsConsultant=''  \"
  1512.         if (\$(\".topicFilter:checked\").length)
  1513.             \$(\".topicFilter:checked\").each(function (indu, elem) {
  1514.                 new_other_cond += \"or mainTable.preferredTopicIdsAsConsultant like '%\\\"\" + \$(elem).val() + \"\\\"%' \";
  1515.             })
  1516.         else
  1517.             new_other_cond += \"or 1=1 \";
  1518.         {#{% if topicId !=0 %}#}
  1519.         {#new_other_cond+=\" ) and mainTable.preferredTopicIdsAsConsultant like '%\\\"{{ topicId }}\\\"%'   ) \";#}
  1520.         {#{% else %}#}
  1521.         new_other_cond += \" ) ) \"
  1522.         {#{% endif %}#}
  1523.         config.otherConditions = new_other_cond;
  1524.         if (pika != null)
  1525.             pika.pagination(1)
  1526.         else
  1527.             pika = \$('#consultant_pagination').pagination({
  1528.                 dataSource: \"{{ url('generic_datatable_ajax_company_group') }}?dataTableQry=1\",
  1529.                 locator: 'data',
  1530.                 //    totalNumberLocator: function(response) {
  1531.                 //        // you can return totalNumber by analyzing response content
  1532.                 //        return Math.floor(Math.random() * (1000 - 100)) + 100;
  1533.                 //    },
  1534.                 pageSize: 10,
  1535.                 classPrefix: \"pico\",
  1536.                 ulClassName: \"pagination justify-content-center\",
  1537. //            totalNumber: 6,
  1538.                 totalNumberLocator: function (response) {
  1539.                     // you can return totalNumber by analyzing response content
  1540.                     return response.totalObjectsCount != 0 ? (response.totalObjectsCount) : 0;
  1541.                 },
  1542.                 className: \"pagination-div\",
  1543. //                pageRange: null,
  1544. //            prevText :'<i class=\"material-icons\">chevron_left</i>',
  1545. //            nextText :'<i class=\"material-icons\">chevron_right</i>',
  1546.                 ajax: {
  1547.                     beforeSend: function () {
  1548.                         //            dataContainer.html('Loading data from flickr.com ...');
  1549.                     },
  1550.                     \"type\": 'POST',
  1551.                     \"data\": {
  1552.                         returnJson: 1,
  1553.                         config: config
  1554. //                           sessionData: sessionData,
  1555. //                           getUnitListFlag:getUnitListFlag
  1556.                     }
  1557.                 },
  1558.                 callback: function (data, pagination) {
  1559.                     // template method of yourself
  1560.                     var html = \"\";
  1561.                     // alert('working')
  1562.                     //    console.log(data)
  1563.                     \$('html,body').stop().animate({scrollTop: 0}, 500, 'swing', function () {
  1564. //                    alert(\"Finished animating\");
  1565.                     });
  1566.                     for (var k = 0; k < data.length; k++) {
  1567.                         var row_here = data[k]
  1568.                         {% if ref=='_ADMIN_' %}
  1569.                                 if (data[k].isAdmin <= 0)
  1570.                                     continue;
  1571.                         {% else %}
  1572.                             if (data[k].isConsultant = 0)
  1573.                                 continue;
  1574.                         {% endif %}
  1575.                         var speaks_content = \"\";
  1576.                         var languages_data = row_here.mainTable.languagesData;
  1577.                         for (var lol = 0; lol < languages_data.length; lol++) {
  1578.                             speaks_content += '<span> &nbsp;' +
  1579.                                     '<img class=\"small_language_img\" style=\"width: 20px; \" src=\"{{ absolute_url(path('dashboard')) }}' + (typeof language_list[languages_data[lol]] === 'undefined' ? 'buddybee_assets/images/flag-2.png' : language_list[languages_data[lol]].image) + '\"  alt=\"flag-2\">' +
  1580.                                     '&nbsp;' + language_list[languages_data[lol]].name + '</span>'
  1581.                         }
  1582.                         html += ' <div style=\"cursor:pointer;\" class=\"consultant-bio d-flex justify-content-between ' + (k != 0 ? ' mt-5' : '') + '\"  onclick=\"window.location.href=\\'{{ path('consultant_profile') }}/' + data[k].applicantId + '{{ topicId!=0?('?topicId='~topicId):'' }}\\'\">' +
  1583.                                 '<div class=\"consultant-bio-left\">' +
  1584.                                 '<div class=\"consultant-bio-img\">' +
  1585.                                 {#((row_here.mainTable.image!=null && row_here.mainTable.image!='')? '<img src=\"'+row_here.mainTable.image +'\" alt=\"\" class=\"img-fluid\" style=\"154px\">':#}
  1586.                                 {#'<img src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/consultant_image_ph_male.png\" alt=\"\" class=\"img-fluid\" style=\"154px\">') +#}
  1587.                                 {#'<div class=\"consultant-review\">' +                           #}
  1588.                                 ((row_here.mainTable.image != null && row_here.mainTable.image != '') ? '<div style=\"background:url(' + row_here.mainTable.image + ')\"  class=\"cons_image_view\" ></div>' :
  1589.                                         '<div style=\"background:url({{ absolute_url(path('dashboard')) }}buddybee_assets/images/consultant_image_ph_male.png)\"  class=\"cons_image_view\" ></div>') +
  1590.                                 '<div class=\"consultant-review\">' +
  1591.                                 (row_here.mainTable.rating >0?
  1592.                                 ((row_here.mainTable.rating >= 1 ? '<i class=\"fas fa-star\"></i>' : '<i class=\"fa fa-star\"></i>') +
  1593.                                 (row_here.mainTable.rating >= 2 ? '<i class=\"fas fa-star\"></i>' : '<i class=\"fa fa-star\"></i>') +
  1594.                                 (row_here.mainTable.rating >= 3 ? '<i class=\"fas fa-star\"></i>' : '<i class=\"fa fa-star\"></i>') +
  1595.                                 (row_here.mainTable.rating >= 4 ? '<i class=\"fas fa-star\"></i>' : '<i class=\"fa fa-star\"></i>') +
  1596.                                 (row_here.mainTable.rating >= 4.5 ? '<i class=\"fas fa-star\"></i>' : '<i class=\"fa fa-star\"></i>') +
  1597.                                 '<span class=\"rating_value_span\" style=\"font-weight:bold;\">&nbsp;' + ((1 * row_here.mainTable.rating).toFixed(1)) + '</span>'):
  1598.                                 ('<span class=\"rating_value_span\" style=\"font-weight:bold;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>'))
  1599.                                 +
  1600.                             (row_here.mainTable.scheduleAvailableFlag==1?('<span class=\"book_btn_span\"><a href=\"{{ path('consultant_profile') }}/' + row_here.mainTable.applicantId + '\" >Book</a></span>'):('<span class=\"book_btn_span\"><a style=\"background:orange;\" href=\"{{ path('consultant_profile') }}/' + row_here.mainTable.applicantId + '\" >Unavailable</a></span>')) +
  1601.                                 '</div>' +
  1602.                                 '</div>' +
  1603.                                 '</div>' +
  1604.                                 '<div class=\"consultant-bio-right\" style=\"min-height:8rem;\">' +
  1605.                                 '<h3>' + row_here.mainTable.firstname + ' ' + row_here.mainTable.lastname + '</h3>' +
  1606.                                 '<p><b>Profession: </b>' + ((row_here.mainTable.professionText != '' && row_here.mainTable.professionText != null) ? row_here.mainTable.professionText : 'Buddybee Consultant') + '</p>' +
  1607.                                 '<p><b>University: </b>' + ((row_here.mainTable.universityText != '' && row_here.mainTable.universityText != null) ? row_here.mainTable.universityText : '') + '</p>' +
  1608. //                       '<p><b>University: </b>Canadian English University College</p>' +
  1609.                                 '<p><b>Country: </b>' + (typeof countries_data[row_here.mainTable.currentCountryId] === 'undefined' ? '' : countries_data[row_here.mainTable.currentCountryId].name) + '</p>' +
  1610.                                 '<p><b>Speaks: </b>' + speaks_content + '</p>' +
  1611. //                           '<p><b>Interests: </b>'+((row_here.mainTable.interest != '' && row_here.mainTable.interest != null) ?row_here.mainTable.interest:'Learning new Things') +'</p>' +
  1612.                                 '<p><b>Education: </b>' + ((row_here.mainTable.educationText != '' && row_here.mainTable.educationText != null) ? row_here.mainTable.educationText : '') + '</p>' +
  1613.                                 '<p><b>Speciality: </b>' + ((row_here.mainTable.speciality != '' && row_here.mainTable.speciality != null) ? row_here.mainTable.speciality : '') + '</p>' +
  1614. //                           '<p><b>Speciality: </b>Badminton,Music,Culture & Heritage, Median & Arts</p>' +
  1615. //                       '<p><b>Education: </b>Canadian University International College</p>' +
  1616. //                       '<p><b>Speciality: </b>English (Native US/Canada)</p>' +
  1617.                                 '</div>' +
  1618.                                 '</div>'
  1619.                     }
  1620.                     //    console.log(data)
  1621.                     \$('.pList').html(html);
  1622.                 }
  1623.             })
  1624.     }
  1625.     \$(document).ready(function () {
  1626.         var lastViewedConsultantListStr = window.localStorage.getItem('lvcl');
  1627.         var lastViewedConsultantList = [];
  1628.         if (lastViewedConsultantListStr != 'null' && lastViewedConsultantListStr != null)
  1629.             lastViewedConsultantList = JSON.parse(lastViewedConsultantListStr);
  1630.         for (var p = 0; p < lastViewedConsultantList.length; p++) {
  1631.             var currConsDataForLastview = lastViewedConsultantList[p];
  1632.             var toappendStr = '<div class=\"viewed-consultant-content\" onclick=\"window.location.href=\\'' + currConsDataForLastview.prfUrl + '\\'\">' +
  1633.                     '<div class=\"consultant-card d-flex\">' +
  1634.                     '<div class=\"consultant-card-left\">' +
  1635.                     '<div class=\"consultant-img\" style=\"background: url(' + currConsDataForLastview.imageUrl + ');' +
  1636.                     'height: 68px;' +
  1637.                     'width: 68px;' +
  1638.                     'border-radius: 50%;' +
  1639.                     'background-size: cover;' +
  1640.                     'background-position: center;\">' +
  1641. //                    '<img src=\"'+currConsDataForLastview.imageUrl+'\" style=\"width:68px;\" alt=\"consultant-3\">'+
  1642.                     '<div class=\"cosultant-country\">' +
  1643.                     '<img style=\"width: 20px; height: 20px;\" src=\"{{ absolute_url(path('dashboard')) }}' + (typeof countries_data[currConsDataForLastview.currentCountryId] === 'undefined' ? 'buddybee_assets/images/flag-2.png' : countries_data[currConsDataForLastview.currentCountryId].flagImageSquare) + '\"  alt=\"\">' +
  1644.                     '</div>' +
  1645.                     '</div>' +
  1646.                     '</div>' +
  1647.                     '<div class=\"consultant-card-right\">' +
  1648.                     '<div class=\"consultant-title\">' +
  1649.                     '<h4>' + currConsDataForLastview.name + '</h4>' +
  1650.                     '<p>' + (typeof currConsDataForLastview.professionalTitle !== 'undefined' ? currConsDataForLastview.professionalTitle : 'Professional Consultant') + '</p>' +
  1651.                     '</div>' +
  1652.                     '</div>' +
  1653.                     '</div>' +
  1654.                     '</div>';
  1655.             \$('#lvcl').append(toappendStr);
  1656.             {#var currConsDataForLastview={#}
  1657.             {#imageUrl:'{{ consultantDetails.image }}',#}
  1658.             {#name:'{{ consultantDetails.firstname }} {{ consultantDetails.lastName }}',#}
  1659.             {#consSummary:'{{ consSummary }}',#}
  1660.             {#prfUrl:'{{ url('consultant_profile') }}/{{ consultantDetails.applicantId }}'#}
  1661.             {#};#}
  1662.         }
  1663.         \$('.consFilter').change(function () {
  1664.             refresh_filter()
  1665. //            op
  1666.         })
  1667.         refresh_filter()
  1668.         \$(document).mouseup(function (e) {
  1669.             var container = \$(\".filter_div_content\");
  1670.             // if the target of the click isn't the container nor a descendant of the container
  1671.             if (!container.is(e.target) && container.has(e.target).length === 0) {
  1672.                 container.hide();
  1673.             }
  1674.         });
  1675.         \$('.filter_div_btn').click(function (e) {
  1676.             e.preventDefault();
  1677.             \$('.filter_div_content').toggle()
  1678.         })
  1679.         var consultantSearch = \$(\".consultantSearch\").selectize({
  1680.             valueField: \"url\",
  1681.             labelField: \"name\",
  1682.             searchField: \"name\",
  1683.             create: false,
  1684.             preload: true,
  1685.             render: {
  1686.                 option: function (item, escape) {
  1687.                     return (
  1688.                             '<div style=\"padding: 2px;\">' +
  1689.                             '<span class=\"title\" style=\"    min-width: 2rem;display: inline-block;\">' +
  1690.                             ((item.image != null && item.image != '') ? '<img style=\"border-radius: 50%;height: 2rem;width: 2rem;\" src=\"' + item.image + '\" alt=\"\" class=\"img-fluid\" >' :
  1691.                                     '<img style=\"border-radius: 50%;height: 2rem;width: 2rem;\" src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/consultant_image_ph_male.png\" alt=\"\" class=\"img-fluid\" >') +
  1692.                             \"</span>\" +
  1693.                             '<span class=\"name\" style=\"padding-left:0.5rem;font-size: 14px;\">' +
  1694. //                        '<i class=\"icon ' +
  1695. //                        (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
  1696. //                        '\"></i>' +
  1697. //                        \"<div class='form-control mainDiv'>\" +
  1698. //                        '<span class=\"name\">' +
  1699.                             escape(item.name) +
  1700.                             \"</span>\" +
  1701.                                 // '<span class=\"description\">' +
  1702.                                 // escape(item.description) +
  1703. //                    \"</span>\" +
  1704.                             \"</div>\"
  1705.                     );
  1706.                     // return (
  1707.                     //     \"<div>\" +
  1708.                     //     '<span class=\"title\">' +
  1709.                     //     '<span class=\"name\"><i class=\"icon ' +
  1710.                     //     (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
  1711.                     //     '\"></i>' +
  1712.                     //     escape(item.name) +
  1713.                     //     \"</span>\" +
  1714.                     //
  1715.                     //     \"</span>\" +
  1716.                     //     '<span class=\"description\">' +
  1717.                     //     escape(item.description) +
  1718.                     //     \"</span>\" +
  1719.                     //
  1720.                     //     \"</div>\"
  1721.                     // );
  1722.                 },
  1723.             },
  1724.             onChange: function (value) {
  1725.                 if (!value.length) return;
  1726.                 var sval = value
  1727.                 consultantSearch.setValue([])
  1728.                 window.location.href = sval;
  1729.                 //addProductToListById(value);
  1730.                 // alert(value)
  1731.                 // small_search_box.clear()
  1732.                 // small_search_box.focus()
  1733.             },
  1734.             load: function (query, callback) {
  1735.                 if (!query.length) return callback();
  1736.                 \$.ajax({
  1737.                     url: \"{{ url('consultant_search_from_list') }}/\" + encodeURIComponent(query),
  1738.                     type: \"GET\",
  1739.                     error: function () {
  1740.                         callback();
  1741.                     },
  1742.                     success: function (res) {
  1743.                         //    console.log(res.data)
  1744.                         callback(res.data);
  1745.                     },
  1746.                 });
  1747.             },
  1748.         })[0].selectize;
  1749.     });
  1750. </script>
  1751. <style type=\"text/css\">
  1752.     body {
  1753.         /*-moz-transform: scale(0.5, 0.5); !* Moz-browsers *!*/
  1754.         zoom: 1; /* Other non-webkit browsers */
  1755.         zoom: 100%; /* Webkit browsers */
  1756.     }
  1757.     /*.modal-dialog {*/
  1758.     /*width: 75%;*/
  1759.     /*}*/
  1760.     .trans_amount {
  1761.         text-align: right;
  1762.     }
  1763. </style>
  1764. ""@Buddybee/pages/consultancySearchPage.html.twig""/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/src/ApplicationBundle/Modules/Buddybee/Resources/views/pages/consultancySearchPage.html.twig");
  1765.     }
  1766. }