var/cache/dev/twig/7a/7a4c35a0a1d092d13394faec143516dcbfa4c45c84400229c9a3ac5b1c20e611.php line 82

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. /* @Application/footer/buddybee_new_footer.html.twig */
  15. class __TwigTemplate_4f74d870fc96caee5583fc7f1076c15f093ae8f34d31ec3021cf9dd68df3cba2 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""@Application/footer/buddybee_new_footer.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""@Application/footer/buddybee_new_footer.html.twig"));
  34.         // line 3
  35.         yield "    ";
  36.         if ( !array_key_exists("include_html"$context)) {
  37.             // line 4
  38.             yield "        ";
  39.             $context["include_html"] = 1;
  40.             // line 5
  41.             yield "        ";
  42.             if ((!== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'5$this->source); })()), "request", [], "any"falsefalsefalse5), "request", [], "any"falsefalsefalse5), "get", ["skipHTML"], "method"falsefalsefalse5), ""))) {
  43.                 // line 6
  44.                 yield "            ";
  45.                 $context["include_html"] = 0;
  46.                 // line 7
  47.                 yield "        ";
  48.             }
  49.             // line 8
  50.             yield "    ";
  51.         }
  52.         // line 9
  53.         if ((!== CoreExtension::compare((isset($context["include_html"]) || array_key_exists("include_html"$context) ? $context["include_html"] : (function () { throw new RuntimeError('Variable "include_html" does not exist.'9$this->source); })()), 1))) {
  54.             // line 10
  55.             yield "
  56. ";
  57.         }
  58.         // line 14
  59.         yield "
  60. ";
  61.         // line 15
  62.         yield from         $this->loadTemplate("@Application/framework/_deeplinkmodal_css.html.twig""@Application/footer/buddybee_new_footer.html.twig"15)->unwrap()->yield($context);
  63.         // line 16
  64.         $context["BUDDYBEE_ADMIN_LEVEL"] = ((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.'16$this->source); })()), "BUDDYBEE_ADMIN_LEVEL", [], "any"falsefalsefalse16), [], "array"truetruefalse16)) ? (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.'16$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.'16$this->source); })()), "BUDDYBEE_ADMIN_LEVEL", [], "any"falsefalsefalse16), [], "array"falsefalsefalse16)) : (0));
  65.         // line 17
  66.         yield from         $this->loadTemplate("@Application/modals/input_forms/verify_otp_modal.html.twig""@Application/footer/buddybee_new_footer.html.twig"17)->unwrap()->yield($context);
  67.         // line 18
  68.         yield "<script>
  69.     var notificationDetailBaseUrl = '";
  70.         // line 19
  71.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("buddybee_notification_view", ["id" => 0]);
  72.         yield "';
  73. </script>
  74. ";
  75.         // line 21
  76.         if ((=== CoreExtension::compare((isset($context["system_type"]) || array_key_exists("system_type"$context) ? $context["system_type"] : (function () { throw new RuntimeError('Variable "system_type" does not exist.'21$this->source); })()), "_BUDDYBEE_"))) {
  77.             // line 22
  78.             yield "<footer class=\"footer\">
  79.     <a class=\"nav-link cta book_now_cta\" href=\"";
  80.             // line 23
  81.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("consultant_search_page");
  82.             yield "\" style=\"text-transform: none;\"
  83.     ><span class=\"trn\" data-trn-key=\"_BOOK_NOW_CTA_\" style=\"vertical-align: middle;padding: 2px 6px;
  84.     display: inline-block;\"></span> <i class=\"fa fa-arrow-right\"></i></a>
  85.     ";
  86.             // line 29
  87.             yield "    ";
  88.             // line 30
  89.             yield "    ";
  90.             // line 31
  91.             yield "    ";
  92.             // line 32
  93.             yield "    ";
  94.             // line 33
  95.             yield "    ";
  96.             // line 34
  97.             yield "    ";
  98.             // line 35
  99.             yield "    ";
  100.             // line 36
  101.             yield "    ";
  102.             // line 37
  103.             yield "    ";
  104.             // line 38
  105.             yield "    ";
  106.             // line 39
  107.             yield "    ";
  108.             // line 40
  109.             yield "    ";
  110.             // line 41
  111.             yield "    ";
  112.             // line 42
  113.             yield "    ";
  114.             // line 43
  115.             yield "
  116.     ";
  117.             // line 45
  118.             yield "    ";
  119.             // line 46
  120.             yield "    ";
  121.             // line 47
  122.             yield "    <div class=\"modal  fade\" style=\"z-index: 99999;\" id=\"bookNowModal\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\"
  123.          aria-hidden=\"true\">
  124.         <div class=\"modal-dialog modal-dialog-centered\">
  125.             <div class=\"modal-content\">
  126.                 <div class=\"modal-header\" style=\"text-align: center;display: block;\">
  127.                     <h5 class=\"modal-title\" id=\"exampleModalLabel\" style=\"text-align: center;\">Select your
  128.                         Preference</h5>
  129.                     ";
  130.             // line 55
  131.             yield "                </div>
  132.                 ";
  133.             // line 56
  134.             yield from             $this->loadTemplate("@Application/framework/_constypeselectorbtn_css.html.twig""@Application/footer/buddybee_new_footer.html.twig"56)->unwrap()->yield($context);
  135.             // line 57
  136.             yield "                <div class=\"modal-body\">
  137.                     <div class=\"row\">
  138.                         <div class=\"col-md-12\" style=\"text-align: left;\">
  139.                             <a class=\"consTypeSelectorBtn \" id=\"\"
  140.                                href=\"";
  141.             // line 63
  142.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("admin_consultant_search_page");
  143.             yield "\">
  144.                                 <div class=\"\">
  145.                                     <p style=\"margin: 0px;text-transform: none;\">
  146.                                         ";
  147.             // line 67
  148.             yield "                                        ";
  149.             // line 68
  150.             yield "                                        ";
  151.             // line 69
  152.             yield "                                        ";
  153.             // line 70
  154.             yield "                                        ";
  155.             // line 71
  156.             yield "                                        ";
  157.             // line 72
  158.             yield "                                        ";
  159.             // line 73
  160.             yield "                                        ";
  161.             // line 74
  162.             yield "                                        ";
  163.             // line 75
  164.             yield "                                        ";
  165.             // line 76
  166.             yield "                                        Primary Consultancy</p>
  167.                                 </div>
  168.                             </a>
  169.                             <a class=\"consTypeSelectorBtn \" id=\"\"
  170.                                href=\"";
  171.             // line 82
  172.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("consultant_search_page");
  173.             yield "\">
  174.                                 <div class=\"\">
  175.                                     <p style=\"margin: 0px;text-transform: none;\">
  176.                                         ";
  177.             // line 86
  178.             yield "                                        ";
  179.             // line 87
  180.             yield "                                        ";
  181.             // line 88
  182.             yield "                                        ";
  183.             // line 89
  184.             yield "                                        ";
  185.             // line 90
  186.             yield "                                        ";
  187.             // line 91
  188.             yield "                                        ";
  189.             // line 92
  190.             yield "                                        ";
  191.             // line 93
  192.             yield "                                        ";
  193.             // line 94
  194.             yield "                                        ";
  195.             // line 95
  196.             yield "                                        Expert Consultancy</p>
  197.                                 </div>
  198.                             </a>
  199.                         </div>
  200.                     </div>
  201.                 </div>
  202.             </div>
  203.         </div>
  204.     </div>
  205.     <form action=\"";
  206.             // line 110
  207.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("recharge_account");
  208.             yield "\" method=\"post\" id=\"rechargeForm\">
  209.         ";
  210.             // line 113
  211.             yield "        ";
  212.             // line 114
  213.             yield "        ";
  214.             // line 115
  215.             yield "
  216.         <!-- Modal -->
  217.         <div class=\"modal fade\" id=\"rechargeAccountOwnModal\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\"
  218.              aria-hidden=\"true\">
  219.             <div class=\"modal-dialog modal-dialog-centered\">
  220.                 <div class=\"modal-content\">
  221.                     <div class=\"modal-header\" style=\"text-align: center;display: block;\">
  222.                         <h5 class=\"modal-title\" id=\"exampleModalLabel\" style=\"text-align: center;\">Add Fund to Your
  223.                             Account</h5>
  224.                         ";
  225.             // line 126
  226.             yield "                    </div>
  227.                     <div class=\"modal-body\">
  228.                         <div class=\"row\">
  229.                             <div class=\"col-md-12\" style=\"text-align: left;\">
  230.                                 <div class=\"form-group\">
  231.                                     <label for=\"\">Recharge Amount (Euro)</label>
  232.                                     <input type=\"number\" class=\"form-control\" name=\"rechargeAmount\" id=\"rechargeAmount\">
  233.                                 </div>
  234.                                 <div class=\"form-group\">
  235.                                     <label for=\"\">Bee Code</label>
  236.                                     <input type=\"text\" class=\"form-control\" name=\"rechargeBeeCode\" id=\"rechargeBeeCode\"
  237.                                            placeholder=\"if you have\" value=\"\">
  238.                                     <input type=\"hidden\" class=\"form-control\" name=\"rechargeApplicantId\"
  239.                                            id=\"rechargeApplicantId\" placeholder=\"if you have\"
  240.                                            value=\"";
  241.             // line 142
  242.             ((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.'142$this->source); })()), "USER_ID", [], "any"falsefalsefalse142), [], "array"truetruefalse142)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.'142$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.'142$this->source); })()), "USER_ID", [], "any"falsefalsefalse142), [], "array"falsefalsefalse142), "html"nulltrue)) : (yield 0));
  243.             yield "\">
  244.                                 </div>
  245.                                 <br>
  246.                                 <button type=\"button\" style=\"width: 48%;height: 3rem;\"
  247.                                         class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Close
  248.                                 </button>
  249.                                 <button type=\"button\" style=\"width: 48%;height: 3rem;\"
  250.                                         class=\"btn btn-primary recharge_submit\">Proceed
  251.                                 </button>
  252.                             </div>
  253.                         </div>
  254.                     </div>
  255.                     <div class=\"modal-footer\">
  256.                     </div>
  257.                 </div>
  258.             </div>
  259.         </div>
  260.     </form>
  261.     <div class=\"modal fade \" style=\"z-index:9999999999999999999\" id=\"deepLinkModal\" tabindex=\"-1\"
  262.          aria-labelledby=\"exampleModalLabel\"
  263.          aria-hidden=\"true\" data-bs-backdrop=\"false\">
  264.         <div class=\"modal-dialog modal-dialog-centered modal-xl\" style=\"
  265.    /*position:fixed;*/
  266.    align-items: end;
  267.    margin-bottom: 0px;
  268.    margin-left: 0px;
  269.    margin-right: 0px;
  270.    width: 100%;
  271.    top:auto;
  272.    right:auto;
  273.    left:auto;
  274.    bottom:0;\">
  275.             <div class=\"modal-content\" style=\"    text-align: center;
  276.     border-radius: 15px 15px 0 0;
  277.     \">
  278.                 <div class=\"modal-body\">
  279.                     <h5 class=\"modal-title\" id=\"exampleModalLabel\" style=\"    text-align: center;
  280.     font-size: 1rem;
  281.     color: #616467;
  282.     margin-bottom: 1rem;
  283.     margin-top: .5rem;
  284.     \">Explore BuddyBee with...</h5>
  285.                     <div class=\"row deep_link_choice _AND_\" style=\"margin-bottom:10px;\">
  286.                         <div class=\"col-md-8 col-sm-8\"
  287.                              style=\"text-align: left; display: flex; justify-content: space-evenly;\">
  288.                             <div style=\"background:url(";
  289.             // line 198
  290.             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);
  291.             yield "buddybee_assets/android-icon-192x192.png);
  292.                                     height: 40px;
  293.                                     width: 40px;
  294.                                     background-size: 100%;
  295.                                     background-repeat: no-repeat;
  296.                                     background-position: center;
  297.                                     border-radius: 29%;
  298.                                     display: inline-block;
  299.                                     border: 1px solid #d7dbe1;\" class=\"cons_image_view\">
  300.                             </div>
  301.                             <div style=\"
  302.                                         height: 40px;
  303.                                         width: 200px;
  304.                                         padding-top: 10px;;
  305.                                         padding-left: 10px;;
  306.                                         border-radius: 50%;display: inline-block\" class=\"\">
  307.                                 <p>BuddyBee App</p>
  308.                             </div>
  309.                         </div>
  310.                         <div class=\"col-md-4 col-sm-4\" style=\"text-align: left; padding-top: 5px;\">
  311.                             <button type=\"button\" style=\"width: 100%;
  312.     height: 33px;
  313.         font-size: 12px;
  314.     /*margin-top: 10px;    */
  315. color: #ffffff;
  316.     background-color: #1d5b9e;
  317.                                     font-weight: bold;
  318.                                     border: none;\"
  319.                                     class=\"btn btn_deep_link_selector btn-primary\" data-deeplink-choice=\"_AND_\"
  320.                                     data-bs-dismiss=\"modal\">Open
  321.                             </button>
  322.                         </div>
  323.                     </div>
  324.                     <div class=\"row deep_link_choice _IPHONE_\" style=\"margin-bottom:10px;\">
  325.                         <div class=\"col-md-8 col-sm-8\"
  326.                              style=\"text-align: left; display: flex; justify-content: space-evenly;\">
  327.                             <div style=\"background:url(";
  328.             // line 243
  329.             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);
  330.             yield "buddybee_assets/android-icon-192x192.png);
  331.                                     height: 40px;
  332.                                     width: 40px;
  333.                                     background-size: 100%;
  334.                                     background-repeat: no-repeat;
  335.                                     background-position: center;
  336.                                     border-radius: 29%;
  337.                                     display: inline-block;
  338.                                     border: 1px solid #d7dbe1;\" class=\"cons_image_view\">
  339.                             </div>
  340.                             <div style=\"
  341.                                         height: 40px;
  342.                                         width: 200px;
  343.                                         padding-top: 10px;;
  344.                                         padding-left: 10px;;
  345.                                         border-radius: 50%;display: inline-block\" class=\"\">
  346.                                 <p>BuddyBee App</p>
  347.                             </div>
  348.                         </div>
  349.                         <div class=\"col-md-4 col-sm-4\" style=\"text-align: left; padding-top: 5px;\">
  350.                             <button type=\"button\" style=\"width: 100%;
  351.     height: 33px;
  352.         font-size: 12px;
  353.     /*margin-top: 10px;    */
  354.     /*color: #261a0c;*/
  355.                                     /*background-color: #fac53a;*/
  356.                                     color: #ffffff;
  357.     background-color: #1d5b9e;
  358.                                     font-weight: bold;
  359.                                     border: none;\"
  360.                                     class=\"btn btn_deep_link_selector  btn-primary\" data-deeplink-choice=\"_IPHONE_\"
  361.                                     data-bs-dismiss=\"modal\">Open
  362.                             </button>
  363.                         </div>
  364.                     </div>
  365.                     <div class=\"row deep_link_choice _BROWSER_\" style=\"margin-bottom:10px;\">
  366.                         <div class=\"col-md-8 col-sm-8\"
  367.                              style=\"text-align: left; display: flex; justify-content: space-evenly;\">
  368.                             <div style=\"background:url(";
  369.             // line 291
  370.             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);
  371.             yield "buddybee_assets/chrome_logo.png);
  372.                                     height: 40px;
  373.                                     width: 40px;
  374.                                     background-size: 100%;
  375.                                     background-repeat: no-repeat;
  376.                                     background-position: center;
  377.                                     border-radius: 29%;
  378.                                     display: inline-block;
  379.                                     border: none;\" class=\"cons_image_view\">
  380.                             </div>
  381.                             <div style=\"
  382.                                         height: 40px;
  383.                                         width: 200px;
  384.                                         padding-top: 10px;;
  385.                                         padding-left: 10px;;
  386.                                         border-radius: 50%;display: inline-block\" class=\"\">
  387.                                 <p>Browser</p>
  388.                             </div>
  389.                         </div>
  390.                         <div class=\"col-md-4 col-sm-4\" style=\"text-align: left; padding-top: 5px;\">
  391.                             <button type=\"button\" style=\"width: 100%;
  392.     height: 33px;
  393.     font-size: 12px;
  394.     /*margin-top: 10px;*/
  395.     color: #1d5b9e;
  396.     /*color: #261a0c;*/
  397.                                     background-color: #dddad3;
  398.                                     font-weight: bold;
  399.                                     border: none;\"
  400.                                     class=\"btn btn_deep_link_selector btn-primary\" data-deeplink-choice=\"_BROWSER_\"
  401.                                     data-bs-dismiss=\"modal\">Continue
  402.                             </button>
  403.                         </div>
  404.                     </div>
  405.                 </div>
  406.             </div>
  407.         </div>
  408.     </div>
  409.     <div class=\"download-app\">
  410.         <div class=\"container\">
  411.             <div class=\"row\">
  412.                 <div class=\"col-md-8 my-auto\">
  413.                     <div class=\"download-app-content\">
  414.                         <span>BuddyBee on the go</span>
  415.                         <p>Start or schedule consultants anytime, anywhere with Android and iPhone apps</p>
  416.                         <div class=\"download-store\">
  417.                             ";
  418.             // line 349
  419.             yield "                            ";
  420.             // line 350
  421.             yield "                            ";
  422.             // line 351
  423.             yield "                            <a href=\"https://play.google.com/store/apps/details?id=eu.buddybee.consultancy\"
  424.                                target=\"_blank\"><img
  425.                                         src=\"";
  426.             // line 353
  427.             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);
  428.             yield "buddybee_assets/images/google-play.png\"
  429.                                         alt=\"google-play\"></a>
  430.                         </div>
  431.                     </div>
  432.                 </div>
  433.                 <div class=\"col-md-4\">
  434.                     <div class=\"download-app-img\">
  435.                         <img src=\"";
  436.             // line 361
  437.             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);
  438.             yield "buddybee_assets/images/video-call.png\"
  439.                              alt=\"video-call\">
  440.                     </div>
  441.                 </div>
  442.             </div>
  443.         </div>
  444.     </div>
  445.     <div class=\"container\">
  446.         <div class=\"image\" style=\"text-align: center;\">
  447.             <img src=\"https://buddybee.eu/buddybee_assets/images/aamarpay-footer.png\" alt=\"\" style=\"max-width: 50%;\">
  448.         </div>
  449.     </div>
  450.     <div class=\"footer-menu\">
  451.         <div class=\"container\">
  452.             <div class=\"row\">
  453.                 <div class=\"col-md-12\">
  454.                     <ul class=\"d-flex justify-content-between m-0\">
  455.                         <li><a href=\"#\">Copyright &copy;";
  456.             // line 378
  457.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("now""Y"), "html"nulltrue);
  458.             yield " BuddyBee</a></li>
  459.                         <li><a href=\"#\">Powered by &copy;";
  460.             // line 379
  461.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("now""Y"), "html"nulltrue);
  462.             yield " HoneyBee IoT Ltd. </a></li>
  463.                         ";
  464.             // line 381
  465.             yield "                        <li><a href=\"";
  466.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact_page");
  467.             yield "\">Contact</a></li>
  468.                         <li><a href=\"";
  469.             // line 382
  470.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("buddybee_terms_of_service");
  471.             yield "\">Terms of Service</a></li>
  472.                         <li><a href=\"";
  473.             // line 383
  474.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("buddybee_privacy_policy");
  475.             yield "\">Privacy Policy</a></li>
  476.                         <li><a href=\"";
  477.             // line 384
  478.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("buddybee_refund_policy");
  479.             yield "\">Refund Policy</a></li>
  480.                         <li><a href=\"";
  481.             // line 385
  482.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("buddybee_cancellation_policy");
  483.             yield "\">Cancellation Policy</a></li>
  484.                         <li><a href=\"";
  485.             // line 386
  486.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("help_page");
  487.             yield "\">Help</a></li>
  488.                         ";
  489.             // line 388
  490.             yield "                    </ul>
  491.                 </div>
  492.             </div>
  493.         </div>
  494.     </div>
  495. </footer>
  496. ";
  497.             // line 394
  498.             yield from             $this->loadTemplate("@Application/framework/_stepindicator_css.html.twig""@Application/footer/buddybee_new_footer.html.twig"394)->unwrap()->yield($context);
  499.             // line 395
  500.             yield from             $this->loadTemplate("@Application/framework/_promptforinfomodal_css.html.twig""@Application/footer/buddybee_new_footer.html.twig"395)->unwrap()->yield($context);
  501.             // line 396
  502.             yield from             $this->loadTemplate("@Application/framework/_selectpurchasemodal_css.html.twig""@Application/footer/buddybee_new_footer.html.twig"396)->unwrap()->yield($context);
  503.             // line 397
  504.             yield "
  505. <div class=\"modal fade\" id=\"promptForInfoModal\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\"
  506.      aria-hidden=\"true\">
  507.     <div class=\"modal-dialog modal-dialog-centered\">
  508.         <div class=\"modal-content\">
  509.             <div class=\"modal-header\" style=\"\">
  510.                 <h6 class=\"modal-title\" id=\"exampleModalLabel\" style=\"text-align: left;\">
  511.                     Please Fill up Your Info for Better Communication</h6>
  512.                 <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\">
  513.                     ";
  514.             // line 408
  515.             yield "                </button>
  516.             </div>
  517.             <div class=\"modal-body\">
  518.                 <div class=\"row\">
  519.                     ";
  520.             // line 416
  521.             if (CoreExtension::getAttribute($this->env$this->source, ($context["session"] ?? null), "triggerPromptInfoModalFlag", [], "array"truetruefalse416)) {
  522.                 // line 417
  523.                 yield "                        ";
  524.                 if ((=== CoreExtension::compare(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.'417$this->source); })()), "triggerPromptInfoModalFlag", [], "array"falsefalsefalse417), 1))) {
  525.                     // line 418
  526.                     yield "
  527.                             ";
  528.                     // line 419
  529.                     if (CoreExtension::getAttribute($this->env$this->source, ($context["session"] ?? null), "relevantRequiredPromptFields", [], "array"truetruefalse419)) {
  530.                         // line 420
  531.                         yield "
  532.                                 ";
  533.                         // line 421
  534.                         $context["relevantRequiredPromptFields"] = $this->extensions['ApplicationBundle\Twig\GeneralExtension']->jsonDecode(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.'421$this->source); })()), "relevantRequiredPromptFields", [], "array"falsefalsefalse421));
  535.                         // line 422
  536.                         yield "
  537.                                 ";
  538.                         // line 423
  539.                         if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields"$context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.'423$this->source); })()))) {
  540.                             // line 424
  541.                             yield "
  542.                                     <form id=\"promptForInfoModalForm\" action=\"#!\">
  543.                                         <!-- start step indicators -->
  544.                                         <div class=\"form-header d-flex mb-4\">
  545.                                             ";
  546.                             // line 431
  547.                             if (((CoreExtension::inFilter("email", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields"$context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.'431$this->source); })())) || CoreExtension::inFilter("phone", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields"$context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.'431$this->source); })()))) || CoreExtension::inFilter("currentCountryId", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields"$context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.'431$this->source); })())))) {
  548.                                 // line 432
  549.                                 yield "                                                <span class=\"stepIndicator\">Contact Info</span>
  550.                                             ";
  551.                             }
  552.                             // line 435
  553.                             yield "
  554.                                             ";
  555.                             // line 436
  556.                             if (((CoreExtension::inFilter("preferredTopicIdsAsConsultant", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields"$context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.'436$this->source); })())) || CoreExtension::inFilter("preferredTopicIdsAsStudent",                             // line 437
  557. (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields"$context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.'437$this->source); })()))) || CoreExtension::inFilter("preferredConsultancyTopicCountryIds",                             // line 438
  558. (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields"$context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.'438$this->source); })())))) {
  559.                                 // line 439
  560.                                 yield "                                                <span class=\"stepIndicator\">Preferences</span>
  561.                                             ";
  562.                             }
  563.                             // line 442
  564.                             yield "                                            ";
  565.                             // line 443
  566.                             yield "                                            ";
  567.                             // line 444
  568.                             yield "                                        </div>
  569.                                         <!-- end step indicators -->
  570.                                         <!-- step one -->
  571.                                         ";
  572.                             // line 448
  573.                             if (((CoreExtension::inFilter("email", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields"$context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.'448$this->source); })())) || CoreExtension::inFilter("phone", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields"$context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.'448$this->source); })()))) || CoreExtension::inFilter("currentCountryId", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields"$context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.'448$this->source); })())))) {
  574.                                 // line 449
  575.                                 yield "
  576.                                             ";
  577.                                 // line 451
  578.                                 yield "
  579.                                             <div class=\"step\">
  580.                                                 ";
  581.                                 // line 455
  582.                                 yield "
  583.                                                 ";
  584.                                 // line 456
  585.                                 if (CoreExtension::inFilter("email", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields"$context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.'456$this->source); })()))) {
  586.                                     // line 457
  587.                                     yield "                                                    <div class=\"mb-3\">
  588.                                                         <input type=\"email\" class=\"promptForInfoAutoUpdateData required\"
  589.                                                                data-set-method=\"setOAuthEmail\"
  590.                                                                data-field-type=\"_TEXT_\"
  591.                                                                data-relevant-prompt-field=\"email\"
  592.                                                                data-modify-trans-date=\"0\"
  593.                                                                placeholder=\"Your Email\">
  594.                                                     </div>
  595.                                                 ";
  596.                                 }
  597.                                 // line 467
  598.                                 yield "                                                ";
  599.                                 if (CoreExtension::inFilter("phone", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields"$context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.'467$this->source); })()))) {
  600.                                     // line 468
  601.                                     yield "                                                    <div class=\"mb-3\">
  602.                                                         <input type=\"phone\" class=\"promptForInfoAutoUpdateData required\"
  603.                                                                data-set-method=\"setPhone\"
  604.                                                                data-field-type=\"_TEXT_\"
  605.                                                                data-relevant-prompt-field=\"phone\"
  606.                                                                data-modify-trans-date=\"0\"
  607.                                                                placeholder=\"Your Phone No.\">
  608.                                                     </div>
  609.                                                 ";
  610.                                 }
  611.                                 // line 479
  612.                                 yield "                                                ";
  613.                                 if (CoreExtension::inFilter("currentCountryId", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields"$context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.'479$this->source); })()))) {
  614.                                     // line 480
  615.                                     yield "                                                    <p class=\" mb-4\">Your Current Country</p>
  616.                                                     <div class=\"mb-3\">
  617.                                                         <select class=\"promptForInfoAutoUpdateData required\"
  618.                                                                 data-set-method=\"setCurrentCountryId,setCountry\"
  619.                                                                 data-field-type=\"_VALUE_\"
  620.                                                                 data-relevant-prompt-field=\"currentCountryId\"
  621.                                                                 data-modify-trans-date=\"0\"
  622.                                                                 id=\"currentCountryIdPromptForInfo\"
  623.                                                                 name=\"currentCountryIdPromptForInfo[]\">
  624.                                                         </select>
  625.                                                     </div>
  626.                                                 ";
  627.                                 }
  628.                                 // line 494
  629.                                 yield "
  630.                                             </div>
  631.                                         ";
  632.                             }
  633.                             // line 497
  634.                             yield "
  635.                                         <!-- step two -->
  636.                                         ";
  637.                             // line 499
  638.                             if (((CoreExtension::inFilter("preferredTopicIdsAsConsultant", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields"$context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.'499$this->source); })())) || CoreExtension::inFilter("preferredTopicIdsAsStudent",                             // line 500
  639. (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields"$context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.'500$this->source); })()))) || CoreExtension::inFilter("preferredConsultancyTopicCountryIds",                             // line 501
  640. (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields"$context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.'501$this->source); })())))) {
  641.                                 // line 502
  642.                                 yield "
  643.                                             <div class=\"step\">
  644.                                                 ";
  645.                                 // line 504
  646.                                 if (CoreExtension::inFilter("preferredTopicIdsAsStudent", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields"$context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.'504$this->source); })()))) {
  647.                                     // line 505
  648.                                     yield "
  649.                                                     <p class=\" mb-4\">Your Preferred topics as Student</p>
  650.                                                     <div class=\"mb-3\">
  651.                                                         <select class=\" promptForInfoAutoUpdateData\"
  652.                                                                 data-set-method=\"setPreferredTopicIdsAsStudent\"
  653.                                                                 data-field-type=\"_JSON_\"
  654.                                                                 data-relevant-prompt-field=\"preferredTopicIdsAsStudent\"
  655.                                                                 data-modify-trans-date=\"0\"
  656.                                                                 id=\"preferredTopicIdsAsStudentPromptForInfo\"
  657.                                                                 name=\"preferredTopicIdsAsStudentPromptForInfo[]\"
  658.                                                                 multiple>
  659.                                                         </select>
  660.                                                     </div>
  661.                                                 ";
  662.                                 }
  663.                                 // line 521
  664.                                 yield "                                                ";
  665.                                 if (CoreExtension::inFilter("preferredTopicIdsAsConsultant", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields"$context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.'521$this->source); })()))) {
  666.                                     // line 522
  667.                                     yield "
  668.                                                     <p class=\" mb-4\">Your Preferred topics as Consultant</p>
  669.                                                     <div class=\"mb-3\">
  670.                                                         <select class=\" promptForInfoAutoUpdateData\"
  671.                                                                 data-set-method=\"setPreferredTopicIdsAsConsultant\"
  672.                                                                 data-field-type=\"_JSON_\"
  673.                                                                 data-relevant-prompt-field=\"preferredTopicIdsAsConsultant\"
  674.                                                                 data-modify-trans-date=\"0\"
  675.                                                                 id=\"preferredTopicIdsAsConsultantPromptForInfo\"
  676.                                                                 name=\"preferredTopicIdsAsConsultantPromptForInfo[]\"
  677.                                                                 multiple>
  678.                                                         </select>
  679.                                                     </div>
  680.                                                 ";
  681.                                 }
  682.                                 // line 538
  683.                                 yield "                                                ";
  684.                                 if (CoreExtension::inFilter("preferredConsultancyTopicCountryIds", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields"$context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.'538$this->source); })()))) {
  685.                                     // line 539
  686.                                     yield "
  687.                                                     <p class=\" mb-4\">Countries you wish to go</p>
  688.                                                     <div class=\"mb-3\">
  689.                                                         <select class=\" promptForInfoAutoUpdateData\"
  690.                                                                 data-set-method=\"setPreferredConsultancyTopicCountryIds\"
  691.                                                                 data-field-type=\"_JSON_\"
  692.                                                                 data-relevant-prompt-field=\"preferredConsultancyTopicCountryIds\"
  693.                                                                 data-modify-trans-date=\"0\"
  694.                                                                 id=\"preferredConsultancyTopicCountryIdsPromptForInfo\"
  695.                                                                 name=\"preferredConsultancyTopicCountryIdsPromptForInfo[]\"
  696.                                                                 multiple>
  697.                                                         </select>
  698.                                                     </div>
  699.                                                 ";
  700.                                 }
  701.                                 // line 556
  702.                                 yield "
  703.                                             </div>
  704.                                         ";
  705.                             }
  706.                             // line 559
  707.                             yield "
  708.                                         <!-- step three -->
  709.                                         <!-- start previous / next buttons -->
  710.                                         <div class=\"form-footer d-flex\">
  711.                                             <button type=\"button\" class=\"prevBtn\" id=\"promptForInfo_prevBtn\"
  712.                                                     onclick=\"promptInfo_nextPrev(-1)\">
  713.                                                 Previous
  714.                                             </button>
  715.                                             <button type=\"button\" class=\"nextBtn\" id=\"promptForInfo_nextBtn\"
  716.                                                     onclick=\"promptInfo_nextPrev(1)\">
  717.                                                 Next
  718.                                             </button>
  719.                                         </div>
  720.                                         <!-- end previous / next buttons -->
  721.                                     </form>
  722.                                 ";
  723.                         }
  724.                         // line 579
  725.                         yield "                            ";
  726.                     }
  727.                     // line 580
  728.                     yield "                        ";
  729.                 }
  730.                 // line 581
  731.                 yield "                    ";
  732.             }
  733.             // line 582
  734.             yield "                </div>
  735.             </div>
  736.             ";
  737.             // line 586
  738.             yield "
  739.             ";
  740.             // line 588
  741.             yield "        </div>
  742.     </div>
  743. </div>
  744. <div class=\"modal fade\" id=\"selectPurchaseModal\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\"
  745.      aria-hidden=\"true\">
  746.     <div class=\"modal-dialog modal-dialog-centered\">
  747.         <div class=\"modal-content\">
  748.             <div class=\"modal-header\" style=\"\">
  749.                 <h6 class=\"modal-title\" id=\"exampleModalLabel\" style=\"text-align: left;\">
  750.                     Get Consultation</h6>
  751.                 <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\">
  752.                     ";
  753.             // line 602
  754.             yield "                </button>
  755.             </div>
  756.             <div class=\"modal-body\">
  757.                 <div class=\"row\">
  758.                     ";
  759.             // line 609
  760.             yield from             $this->loadTemplate("@Application/framework/_box_selector_css.html.twig""@Application/footer/buddybee_new_footer.html.twig"609)->unwrap()->yield($context);
  761.             // line 610
  762.             yield "
  763.                     <form id=\"selectPurchaseModalForm\" action=\"#\">
  764.                         <!-- start step indicators -->
  765.                         <div class=\"form-header d-flex mb-4\">
  766.                             <span class=\"stepIndicator seq_0\" data-seq-id=\"0\">Select Country</span>
  767.                             <span class=\"stepIndicator seq_1\" data-seq-id=\"1\">Select Topic</span>
  768.                             <span class=\"stepIndicator seq_2\" data-seq-id=\"2\">Select Consultant</span>
  769.                             <span class=\"stepIndicator seq_3\" data-seq-id=\"3\">Select Schedule</span>
  770.                             <span class=\"stepIndicator seq_4\" data-seq-id=\"4\">Confirm</span>
  771.                             <span class=\"stepIndicator seq_5\" data-seq-id=\"5\">Payment</span>
  772.                         </div>
  773.                         <div class=\"step seq_0 \">
  774.                             <h5 class=\" \">Select a Country</h5>
  775.                             <div class=\"row clearfix cn_holder\">
  776.                                 ";
  777.             // line 631
  778.             if ( !array_key_exists("countries_data"$context)) {
  779.                 // line 632
  780.                 yield "                                    ";
  781.                 $context["countries_data"] = $this->extensions['ApplicationBundle\Twig\GeneralExtension']->getCountriesBuddyBee("");
  782.                 // line 633
  783.                 yield "                                ";
  784.             }
  785.             // line 634
  786.             yield "
  787.                                 ";
  788.             // line 635
  789.             $context['_parent'] = $context;
  790.             $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.'635$this->source); })()));
  791.             foreach ($context['_seq'] as $context["ind"] => $context["cntry"]) {
  792.                 // line 636
  793.                 yield "                                    <div class=\"box-selector cn_selector cn_";
  794.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["cntry"], "id", [], "any"falsefalsefalse636), "html"nulltrue);
  795.                 yield "  col-md-3 col-sm-6\"
  796.                                          data-id=\"";
  797.                 // line 637
  798.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["cntry"], "id", [], "any"falsefalsefalse637), "html"nulltrue);
  799.                 yield "\"
  800.                                          data-gen-class=\"cn_selector\"
  801.                                     >
  802.                                         <div class=\"inside\">
  803.                                             <div class=\"img\" href=\"";
  804.                 // line 642
  805.                 yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("dashboard");
  806.                 yield "\" style=\"
  807.                                                     background:url(' ";
  808.                 // line 643
  809.                 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);
  810.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["cntry"], "flagImage", [], "any"falsefalsefalse643), "html"nulltrue);
  811.                 yield "');
  812.                                                     height: 50px !important;
  813.                                                     width: 100%;
  814.                                                     /* max-width: 30% !important; */
  815.                                                     background-position: center;
  816.                                                     background-size: contain;
  817.                                                     background-repeat: no-repeat;
  818.                                                     \">
  819.                                             </div>
  820.                                             <h6 class=\"title\" style=\"height: 2rem;\">";
  821.                 // line 653
  822.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["cntry"], "name", [], "any"falsefalsefalse653), "html"nulltrue);
  823.                 yield "</h6>
  824.                                             ";
  825.                 // line 655
  826.                 yield "                                        </div>
  827.                                     </div>
  828.                                 ";
  829.             }
  830.             $_parent $context['_parent'];
  831.             unset($context['_seq'], $context['_iterated'], $context['ind'], $context['cntry'], $context['_parent'], $context['loop']);
  832.             $context array_intersect_key($context$_parent) + $_parent;
  833.             // line 659
  834.             yield "
  835.                             </div>
  836.                         </div>
  837.                         <div class=\"step seq_1 \">
  838.                             <h5 class=\" \">Select a Topic</h5>
  839.                             <div class=\"row clearfix topic_holder\">
  840.                             </div>
  841.                         </div>
  842.                         <div class=\"step seq_2\">
  843.                             <h5 class=\" \">Select a Consultant</h5>
  844.                             <div class=\"row clearfix cons_holder\">
  845.                             </div>
  846.                         </div>
  847.                         <div class=\"step seq_3\">
  848.                             <h5 class=\"view_if_has_schedules\">Select Month</h5>
  849.                             <div class=\"row clearfix sch_holder_month view_if_has_schedules\"></div>
  850.                             <h5 class=\"view_if_has_schedules\">Select Day</h5>
  851.                             <div class=\"row clearfix sch_holder_day view_if_has_schedules\"></div>
  852.                             <h5 class=\"view_if_has_schedules\">Select Time</h5>
  853.                             <div class=\"row clearfix sch_holder_time view_if_has_schedules\"></div>
  854.                             <p class=\"view_if_has_schedules\"> -------or------- </p>
  855.                             <h5 class=\" \">Select Preferred Schedule (Upto 3)</h5>
  856.                             <div class=\"row clearfix sch_holder\">
  857.                                 ";
  858.             // line 691
  859.             $context['_parent'] = $context;
  860.             $context['_seq'] = CoreExtension::ensureTraversable(range(13));
  861.             foreach ($context['_seq'] as $context["_key"] => $context["hh"]) {
  862.                 // line 692
  863.                 yield "                                    <div class=\"box-selector man_sch_selector man_sch_";
  864.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["hh"], "html"nulltrue);
  865.                 yield "  col-md-4 col-sm-6\"
  866.                                          data-id=\"";
  867.                 // line 693
  868.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["hh"], "html"nulltrue);
  869.                 yield "\"
  870.                                          data-gen-class=\"man_sch_selector\"
  871.                                     >
  872.                                         <div class=\"inside\">
  873.                                         <textarea
  874.                                                 class=\"add_basic_day_picker man_sch_selector_dp man_sch_selector_dp";
  875.                 // line 700
  876.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["hh"], "html"nulltrue);
  877.                 yield "  \"
  878.                                                 data-id=\"";
  879.                 // line 701
  880.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["hh"], "html"nulltrue);
  881.                 yield "\" placeholder=\"Click to set Schedule\"
  882.                                                 data-gen-class=\"man_sch_selector_dp\"></textarea>
  883.                                         </div>
  884.                                     </div>
  885.                                 ";
  886.             }
  887.             $_parent $context['_parent'];
  888.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['hh'], $context['_parent'], $context['loop']);
  889.             $context array_intersect_key($context$_parent) + $_parent;
  890.             // line 706
  891.             yield "
  892.                             </div>
  893.                         </div>
  894.                         <div class=\"step seq_4\">
  895.                             <h5 class=\" \">Your Purchase Summary</h5>
  896.                             <div class=\"row clearfix summary_holder\">
  897.                                 <p class=\"cntry_p\">Country : <span>Germany</span></p>
  898.                                 <p class=\"topic_p\"> Name & Type: <span>Single Consultation</span></p>
  899.                                 <p class=\"cons_p\">Consultant : <span>Ahmed Zahid Omar</span></p>
  900.                                 <p class=\"coins_p\">Coins : <span class=\"routineCoinNeededTotalSpan\"></span></p>
  901.                             </div>
  902.                             ";
  903.             // line 721
  904.             yield from             $this->loadTemplate("@Application/framework/_selectpurchasemodal_2_css.html.twig""@Application/footer/buddybee_new_footer.html.twig"721)->unwrap()->yield($context);
  905.             // line 722
  906.             yield "                            <table class=\"table table-condensed table-striped routineTable\">
  907.                                 <tbody></tbody>
  908.                                 <tfoot>
  909.                                 <tr>
  910.                                     <td>Total Bee Coins Needed</td>
  911.                                     <td style=\"text-align: left;\"><b class=\"routineCoinNeededTotalSpan\">0</b><br>
  912.                                     </td>
  913.                                     <td></td>
  914.                                 </tr>
  915.                                 </tfoot>
  916.                             </table>
  917.                         </div>
  918.                         <div class=\"step seq_5\">
  919.                             <h5 class=\" \">Direct Payment</h5>
  920.                             <div class=\"row\">
  921.                                 <div class=\"box-selector pm_selector pm_1  col-md-4 col-sm-6 paymentMethodSelectorBtn\"
  922.                                      data-id=\"1\"
  923.                                      data-gen-class=\"pm_selector\"
  924.                                 >
  925.                                     <div class=\"inside\">
  926.                                         <div class=\"img\" href=\"";
  927.             // line 747
  928.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("dashboard");
  929.             yield "\" style=\"
  930.                                                 background:url(";
  931.             // line 748
  932.             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);
  933.             yield "condensed_assets/images/stripe_logo.png);
  934.                                                 height: 50px !important;
  935.                                                 width: 100%;
  936.                                                 /* max-width: 30% !important; */
  937.                                                 background-position: center;
  938.                                                 background-size: contain;
  939.                                                 background-repeat: no-repeat;
  940.                                                 \">
  941.                                         </div>
  942.                                         <h6 class=\"title\" style=\"height: 2rem;\">Stripe</h6>
  943.                                         ";
  944.             // line 760
  945.             yield "                                    </div>
  946.                                 </div>
  947.                                 <div class=\"box-selector pm_selector pm_2  col-md-4 col-sm-6 paymentMethodSelectorBtn\"
  948.                                      data-id=\"2\"
  949.                                      data-gen-class=\"pm_selector\"
  950.                                 >
  951.                                     <div class=\"inside\">
  952.                                         <div class=\"img\" href=\"";
  953.             // line 768
  954.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("dashboard");
  955.             yield "\" style=\"
  956.                                                 background:url(";
  957.             // line 769
  958.             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);
  959.             yield "condensed_assets/images/bkash_logo.png);
  960.                                                 height: 50px !important;
  961.                                                 width: 100%;
  962.                                                 /* max-width: 30% !important; */
  963.                                                 background-position: center;
  964.                                                 background-size: contain;
  965.                                                 background-repeat: no-repeat;
  966.                                                 \">
  967.                                         </div>
  968.                                         <h6 class=\"title\" style=\"height: 2rem;\">Bkash</h6>
  969.                                         ";
  970.             // line 781
  971.             yield "                                    </div>
  972.                                 </div>
  973.                                 <div class=\"box-selector pm_selector pm_3  col-md-4 col-sm-6 paymentMethodSelectorBtn\"
  974.                                      data-id=\"3\"
  975.                                      data-gen-class=\"pm_selector\"
  976.                                 >
  977.                                     <div class=\"inside\">
  978.                                         <div class=\"img\" href=\"";
  979.             // line 789
  980.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("dashboard");
  981.             yield "\" style=\"
  982.                                                 background:url(";
  983.             // line 790
  984.             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);
  985.             yield "condensed_assets/images/aamarpay_logo.png);
  986.                                                 height: 50px !important;
  987.                                                 width: 100%;
  988.                                                 /* max-width: 30% !important; */
  989.                                                 background-position: center;
  990.                                                 background-size: contain;
  991.                                                 background-repeat: no-repeat;
  992.                                                 \">
  993.                                         </div>
  994.                                         <h6 class=\"title\" style=\"height: 2rem;\">Card</h6>
  995.                                         ";
  996.             // line 802
  997.             yield "                                    </div>
  998.                                 </div>
  999.                             </div>
  1000.                             <h5 class=\" \">Purchase Bee Card</h5>
  1001.                             <div class=\"row\">
  1002.                                 ";
  1003.             // line 809
  1004.             $context["encData"] = [];
  1005.             // line 814
  1006.             yield "                                ";
  1007.             // line 815
  1008.             yield "
  1009.                                 ";
  1010.             // line 817
  1011.             yield "                                ";
  1012.             // line 818
  1013.             yield "                                ";
  1014.             // line 819
  1015.             yield "                                ";
  1016.             // line 820
  1017.             yield "                                ";
  1018.             // line 821
  1019.             yield "                                ";
  1020.             // line 822
  1021.             yield "                                ";
  1022.             // line 823
  1023.             yield "                                ";
  1024.             // line 824
  1025.             yield "                                ";
  1026.             // line 825
  1027.             yield "                                ";
  1028.             // line 826
  1029.             yield "
  1030.                                 ";
  1031.             // line 829
  1032.             yield "                                ";
  1033.             $context["link_data"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("purchase_bee_card_page", ["encData" => $this->extensions['Nzo\UrlEncryptorBundle\Twig\EncryptorExtension']->encryptFilter(json_encode((isset($context["encData"]) || array_key_exists("encData"$context) ? $context["encData"] : (function () { throw new RuntimeError('Variable "encData" does not exist.'829$this->source); })())))]);
  1034.             // line 830
  1035.             yield "
  1036.                                 <div class=\"box-selector pm_selector pm_4  col-md-4 col-sm-6 paymentMethodSelectorBtn\"
  1037.                                      data-id=\"4\"
  1038.                                      data-gen-class=\"pm_selector\"
  1039.                                 >
  1040.                                     <div class=\"inside\">
  1041.                                         <div class=\"img\" href=\"";
  1042.             // line 837
  1043.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("dashboard");
  1044.             yield "\" style=\"
  1045.                                                 background: url(";
  1046.             // line 838
  1047.             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);
  1048.             yield "buddybee_assets/ms-icon-310x310.png);
  1049.                                                 height: 50px !important;
  1050.                                                 width: 100%;
  1051.                                                 /* max-width: 30% !important; */
  1052.                                                 background-position: center;
  1053.                                                 background-size: contain;
  1054.                                                 background-repeat: no-repeat;
  1055.                                                 \">
  1056.                                         </div>
  1057.                                         <h6 class=\"title\" style=\"height: 2rem;\">Claim Bee Card</h6>
  1058.                                         ";
  1059.             // line 850
  1060.             yield "                                    </div>
  1061.                                 </div>
  1062.                                 ";
  1063.             // line 853
  1064.             yield "                                ";
  1065.             // line 854
  1066.             yield "                                ";
  1067.             // line 855
  1068.             yield "
  1069.                                 ";
  1070.             // line 857
  1071.             yield "                                ";
  1072.             // line 858
  1073.             yield "                                ";
  1074.             // line 859
  1075.             yield "                                ";
  1076.             // line 860
  1077.             yield "                                ";
  1078.             // line 861
  1079.             yield "                                ";
  1080.             // line 862
  1081.             yield "                                ";
  1082.             // line 863
  1083.             yield "                                ";
  1084.             // line 864
  1085.             yield "                                ";
  1086.             // line 865
  1087.             yield "                                ";
  1088.             // line 866
  1089.             yield "                                ";
  1090.             // line 867
  1091.             yield "
  1092.                                 ";
  1093.             // line 869
  1094.             yield "                                ";
  1095.             // line 870
  1096.             yield "                                ";
  1097.             // line 871
  1098.             yield "                                ";
  1099.             // line 872
  1100.             yield "                                ";
  1101.             // line 873
  1102.             yield "                                ";
  1103.             // line 874
  1104.             yield "                                ";
  1105.             // line 875
  1106.             yield "                                ";
  1107.             // line 876
  1108.             yield "
  1109.                                 ";
  1110.             // line 878
  1111.             yield "                                ";
  1112.             // line 879
  1113.             yield "                                ";
  1114.             // line 880
  1115.             yield "                                ";
  1116.             // line 881
  1117.             yield "                                ";
  1118.             // line 882
  1119.             yield "                                ";
  1120.             // line 883
  1121.             yield "                                ";
  1122.             // line 884
  1123.             yield "                                ";
  1124.             // line 885
  1125.             yield "                                ";
  1126.             // line 886
  1127.             yield "                                ";
  1128.             // line 887
  1129.             yield "                                ";
  1130.             // line 888
  1131.             yield "
  1132.                                 ";
  1133.             // line 890
  1134.             yield "                                ";
  1135.             // line 891
  1136.             yield "                                ";
  1137.             // line 892
  1138.             yield "                                ";
  1139.             // line 893
  1140.             yield "                                ";
  1141.             // line 894
  1142.             yield "
  1143.                             </div>
  1144. ";
  1145.             // line 899
  1146.             yield "                            <div class=\"row clearfix \">
  1147.                                 <div class=\"box-selector  col-md-12 col-sm-6\"
  1148.                                      data-id=\"promo\"
  1149.                                      data-gen-class=\"\">
  1150.                                     <div class=\"inside\">
  1151.                                         <h6 class=\"title\" style=\"height: 2rem;font-size: 14px;\">Promo Code</h6>
  1152.                                         <input class=\"form-control    \"
  1153.                                                data-id=\"promo\" placeholder=\"Promo Code\"
  1154.                                                data-gen-class=\"\">
  1155.                                         <h6 class=\"title\" style=\"height: 2rem;font-size: 14px;\">&nbsp;</h6>
  1156.                                     </div>
  1157.                                 </div>
  1158.                             </div>
  1159.                         </div>
  1160.                         <div class=\"form-footer d-flex\">
  1161.                             <button type=\"button\" class=\"prevBtn\" id=\"selectPurchaseModal_prevBtn\">
  1162.                                 Previous
  1163.                             </button>
  1164.                             <button type=\"button\" class=\"nextBtn\" id=\"selectPurchaseModal_nextBtn\">
  1165.                                 Next
  1166.                             </button>
  1167.                         </div>
  1168.                     </form>
  1169.                 </div>
  1170.             </div>
  1171.             ";
  1172.             // line 936
  1173.             yield "
  1174.             ";
  1175.             // line 938
  1176.             yield "        </div>
  1177.     </div>
  1178. </div>
  1179. ";
  1180.         }
  1181.         // line 943
  1182.         yield "
  1183. ";
  1184.         // line 945
  1185.         yield "
  1186. <!-- back to top btn -->
  1187. <a id=\"back-top\"><i class=\"fas fa-chevron-up\"></i></a>
  1188. <!-- back to top btn -->
  1189. <!-- Option 1: Bootstrap Bundle with Popper -->
  1190. ";
  1191.         // line 953
  1192.         yield "        ";
  1193.         // line 954
  1194.         yield "        ";
  1195.         // line 955
  1196.         yield "
  1197.         ";
  1198.         // line 960
  1199.         yield "<script src=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js\"
  1200.         integrity=\"\"
  1201.         crossorigin=\"anonymous\"></script>
  1202. ";
  1203.         // line 965
  1204.         yield "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js\"></script>
  1205. ";
  1206.         // line 967
  1207.         yield "<!-- jquery cdn -->
  1208. <script type=\"text/javascript\"
  1209.         src=\"https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.13.3/js/standalone/selectize.min.js\"></script>
  1210. <script type=\"text/javascript\" src=\"";
  1211.         // line 971
  1212.         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);
  1213.         yield "jqueryui/jquery.form.js\"></script>
  1214. <!-- calender js -->
  1215. <script src=\"";
  1216.         // line 973
  1217.         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);
  1218.         yield "buddybee_assets/js/mini-event-calendar.min.js?version=";
  1219.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  1220.         yield "\"></script>
  1221. <!-- countdown js -->
  1222. <script src=\"";
  1223.         // line 975
  1224.         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);
  1225.         yield "buddybee_assets/js/jquery.countdown.min.js?version=";
  1226.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  1227.         yield "\"></script>
  1228. <!-- process circle js -->
  1229. <script src=\"";
  1230.         // line 977
  1231.         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);
  1232.         yield "buddybee_assets/js/progresscircle.js?version=";
  1233.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  1234.         yield "\"></script>
  1235. <!-- custom js-->
  1236. <script src=\"";
  1237.         // line 979
  1238.         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);
  1239.         yield "buddybee_assets/js/main.js?version=";
  1240.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  1241.         yield "\"></script>
  1242. <script src=\"";
  1243.         // line 980
  1244.         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);
  1245.         yield "buddybee_assets/js/imgProgress.js?version=";
  1246.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  1247.         yield "\"></script>
  1248. <!-- owl carousel -->
  1249. <script src=\"";
  1250.         // line 982
  1251.         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);
  1252.         yield "buddybee_assets/js/owl.carousel.min.js?version=";
  1253.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  1254.         yield "\"></script>
  1255. <!-- wow js -->
  1256. <script src=\"";
  1257.         // line 984
  1258.         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);
  1259.         yield "buddybee_assets/js/wow.min.js?version=";
  1260.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  1261.         yield "\"></script>
  1262. ";
  1263.         // line 986
  1264.         yield "<script src=\"";
  1265.         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);
  1266.         yield "buddybee_assets/js/moment.min.js?version=";
  1267.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  1268.         yield "\"></script>
  1269. <script type=\"text/javascript\" src=\"";
  1270.         // line 987
  1271.         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);
  1272.         yield "alertify/lib/alertify.min.js\"></script>
  1273. <script src=\"";
  1274.         // line 988
  1275.         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);
  1276.         yield "buddybee_assets/plugin/bootstrap-material-datetimepicker/js/bootstrap-material-datetimepicker.js?version=";
  1277.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  1278.         yield "\"></script>
  1279. <script src=\"";
  1280.         // line 989
  1281.         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);
  1282.         yield "js/jquery.translate.js?version=";
  1283.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  1284.         yield "\"></script>
  1285. <script src=\"";
  1286.         // line 990
  1287.         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);
  1288.         yield "buddybee_assets/js/bindWithDelay.js?version=";
  1289.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  1290.         yield "\"></script>
  1291. <script src=\"";
  1292.         // line 991
  1293.         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);
  1294.         yield "buddybee_assets/js/generic.js?version=";
  1295.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  1296.         yield "\"></script>
  1297. ";
  1298.         // line 992
  1299.         yield from         $this->loadTemplate("@Application/footer/activity_tracker_script.html.twig""@Application/footer/buddybee_new_footer.html.twig"992)->unwrap()->yield($context);
  1300.         // line 993
  1301.         yield "<script src=\"";
  1302.         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);
  1303.         yield "js/language_pack.js?version=";
  1304.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  1305.         yield "\"></script>
  1306. <script src=\"";
  1307.         // line 994
  1308.         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);
  1309.         yield "condensed_assets/ifvisible.js?version=";
  1310.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  1311.         yield "\"></script>
  1312. <link rel=\"stylesheet\" href=\"";
  1313.         // line 995
  1314.         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);
  1315.         yield "js/adminbsb/plugins/sweetalert/sweetalert.css\">
  1316. <script src=\"";
  1317.         // line 996
  1318.         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);
  1319.         yield "js/adminbsb/plugins/sweetalert/sweetalert.min.js\"></script>
  1320. <link rel=\"stylesheet\" href=\"";
  1321.         // line 998
  1322.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("css/cal_print.css"), "html"nulltrue);
  1323.         yield "\" media=\"print\">
  1324. <script type=\"text/javascript\"
  1325.         src=\"";
  1326.         // line 1000
  1327.         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);
  1328.         yield "buddybee_assets/plugin/fullcalendar3/fullcalendar.min.js\"></script>
  1329. <script type=\"text/javascript\"
  1330.         src=\"";
  1331.         // line 1002
  1332.         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);
  1333.         yield "buddybee_assets/plugin/fullcalendar3/scheduler/scheduler.min.js\"></script>
  1334. <script type=\"text/javascript\"
  1335.         src=\"https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js\"></script>
  1336. ";
  1337.         // line 1007
  1338.         yield from         $this->loadTemplate("@Application/framework/_btn_css.html.twig""@Application/footer/buddybee_new_footer.html.twig"1007)->unwrap()->yield($context);
  1339.         // line 1008
  1340.         yield "</body>
  1341. <script>
  1342.     var socketInitiated = 0;
  1343.     var offcanvasCalendarInitiated = 0;
  1344.     var offCalendarLastRefreshedTs = 0;
  1345.     var tb_pathToImage = \"";
  1346.         // line 1015
  1347.         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")) . "buddybee_assets/images/circle-pending-image.png"), "html"nulltrue);
  1348.         yield "\";
  1349.     var buddybee_socket = '';
  1350.     var buddybee_socket_user_name = '";
  1351.         // line 1018
  1352.         ((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.'1018$this->source); })()), "USER_NAME", [], "any"falsefalsefalse1018), [], "array"truetruefalse1018)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.'1018$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.'1018$this->source); })()), "USER_NAME", [], "any"falsefalsefalse1018), [], "array"falsefalsefalse1018), "html"nulltrue)) : (yield ""));
  1353.         yield "';
  1354.     var buddybee_socket_user_id = 'BBEE_";
  1355.         // line 1019
  1356.         ((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.'1019$this->source); })()), "USER_ID", [], "any"falsefalsefalse1019), [], "array"truetruefalse1019)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.'1019$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.'1019$this->source); })()), "USER_ID", [], "any"falsefalsefalse1019), [], "array"falsefalsefalse1019), "html"nulltrue)) : (yield 0));
  1357.         yield "';
  1358.     var current_user_user_id = ";
  1359.         // line 1020
  1360.         ((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.'1020$this->source); })()), "USER_ID", [], "any"falsefalsefalse1020), [], "array"truetruefalse1020)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.'1020$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.'1020$this->source); })()), "USER_ID", [], "any"falsefalsefalse1020), [], "array"falsefalsefalse1020), "html"nulltrue)) : (yield 0));
  1361.         yield ";
  1362.     var buddybee_socket_user_session_token = '";
  1363.         // line 1021
  1364.         ((CoreExtension::getAttribute($this->env$this->source, ($context["session"] ?? null), "token", [], "array"truetruefalse1021)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.'1021$this->source); })()), "token", [], "array"falsefalsefalse1021), "html"nulltrue)) : (yield "_GEN_"));
  1365.         yield "';
  1366.     ";
  1367.         // line 1023
  1368.         $context["curr_route"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1023$this->source); })()), "request", [], "any"falsefalsefalse1023), "attributes", [], "any"falsefalsefalse1023), "get", ["_route"], "method"falsefalsefalse1023);
  1369.         // line 1024
  1370.         yield "
  1371.     var CURRENT_ROUTE = '";
  1372.         // line 1026
  1373.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["curr_route"]) || array_key_exists("curr_route"$context) ? $context["curr_route"] : (function () { throw new RuntimeError('Variable "curr_route" does not exist.'1026$this->source); })()), "html"nulltrue);
  1374.         yield "';
  1375.     var deepLinkModalLastShown = window.localStorage.getItem('deepLinkModalLastShown');
  1376.     //    var deepLinkModalLastShown = 0;
  1377.     var currTsForDlM = ";
  1378.         // line 1031
  1379.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("""U"), "html"nulltrue);
  1380.         yield ";
  1381.     if (deepLinkModalLastShown == 'null' || deepLinkModalLastShown == null) {
  1382.         deepLinkModalLastShown = 0
  1383.     }
  1384.     var upcomingMeetingDataForRedirect = window.localStorage.getItem('UNMData');
  1385.     var upcomingNextMeetingIdForRedirect = window.localStorage.getItem('UNMId');
  1386.     var upcomingNextMeetingTsForRedirect = window.localStorage.getItem('UNMTs');
  1387.     if (upcomingMeetingDataForRedirect == 'null' || upcomingMeetingDataForRedirect == null) {
  1388.         upcomingMeetingDataForRedirect = \"[]\"
  1389.     }
  1390.     if (upcomingNextMeetingIdForRedirect == 'null' || upcomingNextMeetingIdForRedirect == null) {
  1391.         upcomingNextMeetingIdForRedirect = 0
  1392.     }
  1393.     if (upcomingNextMeetingTsForRedirect == 'null' || upcomingNextMeetingTsForRedirect == null) {
  1394.         upcomingNextMeetingTsForRedirect = 0
  1395.     }
  1396.     upcomingMeetingDataForRedirect = JSON.parse(upcomingMeetingDataForRedirect);
  1397.     var deepLinkModal = new bootstrap.Modal(document.getElementById('deepLinkModal'), {
  1398.         keyboard: false
  1399.     });
  1400.     var bookNowModal = new bootstrap.Modal(document.getElementById('bookNowModal'), {
  1401.         keyboard: false
  1402.     });
  1403.     var promptForInfoModal = new bootstrap.Modal(document.getElementById('promptForInfoModal'), {
  1404.         keyboard: false
  1405.     });
  1406.     var selectPurchaseModal = new bootstrap.Modal(document.getElementById('selectPurchaseModal'), {
  1407.         keyboard: false
  1408.     });
  1409.     ";
  1410.         // line 1069
  1411.         if ( !array_key_exists("countries_data"$context)) {
  1412.             // line 1070
  1413.             yield "    ";
  1414.             $context["countries_data"] = $this->extensions['ApplicationBundle\Twig\GeneralExtension']->getCountriesBuddyBee("");
  1415.             // line 1071
  1416.             yield "    ";
  1417.         }
  1418.         // line 1072
  1419.         yield "    var countries_data =";
  1420.         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.'1072$this->source); })()));
  1421.         yield "
  1422.     var topic_data_by_id = {}
  1423.     var perSessionMinute = 20; // Current tab is set to be the first tab (0)
  1424.     var COIN_GENERAL_MULT = 100; // Current tab is set to be the first tab (0)
  1425.     var currentTab = 0; // Current tab is set to be the first tab (0)
  1426.     var currentTabSelectPurchaseModal = 0; // Current tab is set to be the first tab (0)
  1427.     var triggerRefreshUpcomingSession = 0; // Current tab is set to be the first tab (0)
  1428.     // promptInfo_showTab(currentTab); // Display the current tab
  1429.     ";
  1430.         // line 1083
  1431.         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.'1083$this->source); })()), "USER_ID", [], "any"falsefalsefalse1083), [], "array"truetruefalse1083)) {
  1432.             // line 1084
  1433.             yield "
  1434.     function refreshOffCanvasCalendar(force) {
  1435.         force = force || 0
  1436.         if (offcanvasCalendarInitiated == 0) {
  1437. //            alert('here')
  1438.             \$('#calendarHere').fullCalendar({
  1439. //            \$('#scheduleCalendar').fullCalendar({
  1440.                 schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
  1441.                 height: 554,
  1442. //            header: false,
  1443.                 header: {
  1444.                     left: 'today prev,next',
  1445.                     center: 'title',
  1446.                     right: 'timelineDay,timelineWeek,timelineMonth,timelineYear,month',
  1447.                 },
  1448.                 buttonText: {
  1449.                     month: 'calendar',
  1450.                     timelineMonth: 'month',
  1451.                 },
  1452.                 eventClick: function (calEvent, jsEvent, view) {
  1453.                     //    console.log(calEvent)
  1454.                     swal({
  1455.                         title: calEvent.title,
  1456.                         text: 'Meeting On ' + calEvent.topic_name + ' on ' + moment.unix(calEvent.scheduled_time_ts).format('MMM DD, YYYY HH:mm'),
  1457.                         type: \"info\",
  1458.                         showCancelButton: true,
  1459. //            confirmButtonColor: \"#DD6B55\",
  1460.                         confirmButtonText: \"View!\",
  1461.                         cancelButtonText: \"Exit\",
  1462.                         closeOnConfirm: false,
  1463.                         closeOnCancel: true,
  1464.                         timer: 10000,
  1465.                     }, function (isConfirm) {
  1466.                         if (isConfirm) {
  1467.                             ";
  1468.             // line 1124
  1469.             if ((<= CoreExtension::compare((isset($context["BUDDYBEE_ADMIN_LEVEL"]) || array_key_exists("BUDDYBEE_ADMIN_LEVEL"$context) ? $context["BUDDYBEE_ADMIN_LEVEL"] : (function () { throw new RuntimeError('Variable "BUDDYBEE_ADMIN_LEVEL" does not exist.'1124$this->source); })()), 1))) {
  1470.                 // line 1125
  1471.                 yield "                            window.location.href = '";
  1472.                 yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("consultancy_session");
  1473.                 yield "/' + calEvent.id + '?adminView=1'
  1474.                             ";
  1475.             } else {
  1476.                 // line 1127
  1477.                 yield "                            window.location.href = '";
  1478.                 yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("consultancy_session");
  1479.                 yield "/' + calEvent.id + ''
  1480.                             ";
  1481.             }
  1482.             // line 1129
  1483.             yield "
  1484.                             swal(\"Sweet!\", \"Taking you there. Please Wait\", \"success\");
  1485.                         } else {
  1486. //                        swal(\"Oops\", \"You cannot do that!\", \"error\");
  1487.                         }
  1488.                     });
  1489. //                alert('Event: ' + calEvent.title);
  1490. //                alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY);
  1491. //                alert('View: ' + view.name);
  1492. //
  1493. //                // change the border color just for fun
  1494. //                \$(this).css('border-color', 'red');
  1495.                 },
  1496. //            themeSystem:'jquery-ui',
  1497.                 editable: true,
  1498.                 eventStartEditable: true,
  1499.                 eventDurationEditable: true,
  1500.                 droppable: true,
  1501.                 slotDuration: '00:30:00',
  1502.                 defaultView: 'month',
  1503.                 eventRender: function (eventObj, \$el) {
  1504. //                \$('#example').popover(options)
  1505.                     \$el.popover({
  1506.                         title: eventObj.topic_name,
  1507.                         content: 'Meeting Between ' + eventObj.title + ' on ' + moment.unix(eventObj.scheduled_time_ts).format('MMM DD, YYYY HH:mm'),
  1508.                         trigger: 'hover',
  1509.                         placement: 'top',
  1510.                         container: 'body',
  1511.                         html: true,
  1512.                         template: '<div class=\"popover\" role=\"tooltip\">' +
  1513.                             '<div class=\"arrow\">' +
  1514.                             '</div' +
  1515.                             '><h3 class=\"popover-header\">' +
  1516.                             '</h3>' +
  1517.                             '<div class=\"popover-body\">' +
  1518.                             '</div>' +
  1519.                             '<button class=\"btn btn-success\">PIKA</button>' +
  1520.                             '</div>'
  1521.                     });
  1522.                 },
  1523. //            resourceAreaHeaderContent: 'Rooms',
  1524.                 resourceColumns: [
  1525.                     {
  1526.                         labelText: 'Schedule',
  1527.                         field: 'title'
  1528.                     }
  1529. //                {
  1530. //                    labelText: 'Occupancy',
  1531. //                    field: 'occupancy'
  1532. //                }
  1533.                 ],
  1534.                 resources: [],
  1535.                 views: {
  1536.                     basic: {
  1537.                         // options apply to basicWeek and basicDay views
  1538.                     },
  1539.                     agenda: {
  1540.                         slotDuration: '00:30:00',
  1541.                         // options apply to agendaWeek and agendaDay views
  1542.                     },
  1543.                     week: {
  1544.                         // options apply to basicWeek and agendaWeek views
  1545.                     },
  1546.                     day: {
  1547.                         // options apply to basicDay and agendaDay views
  1548.                     },
  1549.                     timelineWeek: {
  1550.                         groupByResource: true,
  1551.                         slotDuration: '00:30:00',
  1552.                         // options apply to basicDay and agendaDay views
  1553.                     }
  1554.                 },
  1555.                 drop: function (date, allDay) {
  1556.                     // this function is called when something is dropped
  1557.                     // retrieve the dropped element's stored Event Object
  1558.                     var originalEventObject = \$(this).data('eventObject');
  1559.                     // we need to copy it, so that multiple events don't have a reference to the same object
  1560.                     var copiedEventObject = \$.extend({}, originalEventObject);
  1561.                     // assign it the date that was reported
  1562.                     copiedEventObject.start = date;
  1563.                     copiedEventObject.allDay = allDay;
  1564.                     copiedEventObject.className = originalEventObject.className;
  1565.                     // render the event on the calendar
  1566.                     // the last `true` argument determines if the event \"sticks\" (http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/)
  1567.                     \$('#scheduleCalendar').fullCalendar('renderEvent', copiedEventObject, true);
  1568.                     // is the \"remove after drop\" checkbox checked?
  1569.                     if (\$('#drop-remove').is(':checked')) {
  1570.                         // if so, remove the element from the \"Draggable Events\" list
  1571.                         \$(this).remove();
  1572.                     }
  1573.                 },
  1574.                 events: [],
  1575.             });
  1576.             offcanvasCalendarInitiated = 1;
  1577.         }
  1578.         var currOpTs = moment().unix();
  1579.         if ((offCalendarLastRefreshedTs + 120) < currOpTs || force == 1) {
  1580.             var pika_ind_id = 'NNNAI';
  1581.             \$.ajax({
  1582.                 url: BaseURL + \"select_data_ajax_public\",
  1583.                 type: 'POST',
  1584.                 dataType: 'json',
  1585.                 data: {
  1586.                     //returnJson: 1,     //required for CORS
  1587.                     //sessionData: sessionData   //required only if using cordova for CORS
  1588.                     query: '_EMPTY_',
  1589.                     tableName: \"entity_meeting_session\",
  1590.                     entity_group: 1,
  1591.                     valueField: \"session_id\",
  1592.                     textField: \"meeting_room_id\",
  1593. //                selectFieldList:[   ///skip this property for all fields
  1594. //                    'client_name','client_id','address'
  1595. //
  1596. //                ],
  1597.                     selectorId: 7,
  1598.                     isMultiple: 1,
  1599.                     itemLimit: '_ALL_',  // for all : '_ALL_'
  1600.                     offset: 0,  // default value:0 (from start)
  1601.                     orderByConditions: [  //sequential
  1602. //                    {
  1603. //                        field: 'rating',
  1604. //                        fieldValues: [5,1,9],
  1605. //                        sortType:'ASC'
  1606. //                    },
  1607. //                    {
  1608. //                        field: 'is_featured',
  1609. //                        sortType:'DESC'
  1610. //                    },
  1611.                         {
  1612.                             field: 'scheduled_time_ts',
  1613.                             sortType: 'ASC'
  1614.                         }
  1615.                     ],
  1616.                     dataId: pika_ind_id,
  1617. //                        textField: \"rendered_text\",
  1618. //
  1619. //                        renderTextFormat: \"#__id__ __name__\",
  1620. //                        andConditions: [
  1621. //                            //{type: \"like\", field: \"name\", value: query},
  1622. //                            {type: \"=\", field: \"delivery_receipt_id\", value: \$('.dr_id' + pika_ind_id).val()},
  1623. //                            {type: \"=\", field: \"product_id\", value: \$('.selectize_me_ssp' + pika_ind_id).val()},
  1624. //                            {type: \"=\", field: \"position\", value: 3}
  1625. //                        ],
  1626.                     mustConditions: [
  1627.                         //{type: \"like\", field: \"name\", value: query},
  1628.                         //{type: \"=\", field: \"delivery_rceipt_id\", value: \$('.dr_id' + pika_ind_id).val()},
  1629.                         //{type: \"in\", field: \"alottment_tagged\", value: [0,'null','']},
  1630. //                            {type: \"<=\", field: \"scheduled_time_ts\", value: moment().add('60', 'days').unix()},
  1631.                         {type: \">=\", field: \"scheduled_time_ts\", value: moment().subtract('45', 'days').unix()},
  1632. //                    {type: \"=\", field: \"product_id\", value: \$('.ssp' + pika_ind_id).val()},
  1633. //                    {type: \"=\", field: \"warehouse_id\", value: \$('#warehouseId').val()},
  1634. //                    {type: \"=\", field: \"warehouse_action_id\", value: \$('.wa' + pika_ind_id).val()},
  1635. //                    {type: \"=\", field: \"position\", value: 1}
  1636.                     ],
  1637.                     andOrConditions: [
  1638.                         ";
  1639.             // line 1303
  1640.             if ((<= CoreExtension::compare((isset($context["BUDDYBEE_ADMIN_LEVEL"]) || array_key_exists("BUDDYBEE_ADMIN_LEVEL"$context) ? $context["BUDDYBEE_ADMIN_LEVEL"] : (function () { throw new RuntimeError('Variable "BUDDYBEE_ADMIN_LEVEL" does not exist.'1303$this->source); })()), 5))) {
  1641.                 // line 1304
  1642.                 yield "
  1643.                         ";
  1644.             } elseif ((<= CoreExtension::compare(            // line 1305
  1645. (isset($context["BUDDYBEE_ADMIN_LEVEL"]) || array_key_exists("BUDDYBEE_ADMIN_LEVEL"$context) ? $context["BUDDYBEE_ADMIN_LEVEL"] : (function () { throw new RuntimeError('Variable "BUDDYBEE_ADMIN_LEVEL" does not exist.'1305$this->source); })()), 1))) {
  1646.                 // line 1306
  1647.                 yield "                                                                                                                                                                                                                                                                        ";
  1648.             } else {
  1649.                 // line 1317
  1650.                 yield "                        {type: \"=\", field: \"student_id\", value: ";
  1651.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.'1317$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.'1317$this->source); })()), "USER_ID", [], "any"falsefalsefalse1317), [], "array"falsefalsefalse1317), "html"nulltrue);
  1652.                 yield "},
  1653.                         {type: \"=\", field: \"consultant_id\", value: ";
  1654.                 // line 1318
  1655.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.'1318$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.'1318$this->source); })()), "USER_ID", [], "any"falsefalsefalse1318), [], "array"falsefalsefalse1318), "html"nulltrue);
  1656.                 yield "},
  1657.                         ";
  1658.             }
  1659.             // line 1321
  1660.             yield "//                    {type: \"like\", field: \"client_numerical_code\", value: query},
  1661. //                    {type: \"like\", field: \"client_name\", value: query},
  1662. //                    {type: \"like\", field: \"client_id\", value: query},
  1663. //                    {type: \"like\", field: \"contact_number\", value: query},
  1664. //                    {type: \"like\", field: \"email\", value: query},
  1665.                     ],
  1666.                     joinTableData: [
  1667.                         {
  1668.                             tableName: \"entity_applicant_details\",
  1669.                             joinFieldPrimary: \"student_id\",
  1670.                             joinOn: 'applicant_id',
  1671.                             selectPrefix: 'student_',
  1672.                             selectFieldList: [
  1673.                                 'firstname', 'lastname', 'image', 'professional_title'
  1674.                             ]
  1675.                         },
  1676.                         {
  1677.                             tableName: \"entity_create_topic\",
  1678.                             joinFieldPrimary: \"topic_id\",
  1679.                             joinOn: 'id',
  1680.                             selectPrefix: 'topic_',
  1681.                             selectFieldList: [
  1682.                                 'topic_name',
  1683.                             ]
  1684.                         },
  1685.                         {
  1686.                             tableName: \"entity_applicant_details\",
  1687.                             joinFieldPrimary: \"consultant_id\",
  1688.                             joinOn: 'applicant_id',
  1689.                             selectPrefix: 'consultant_',
  1690.                             selectFieldList: [
  1691.                                 'firstname', 'lastname', 'image', 'professional_title', 'current_country_id'
  1692.                             ]
  1693.                         },
  1694.                     ],
  1695.                     convertDateToStringFieldList: [
  1696.                         {field: 'created_at', format: 'U'}
  1697.                     ],
  1698.                     convertToObject: [
  1699. //                    'carton_product_by_code_ids','another'
  1700.                     ],
  1701.                     // setDataForSingle: 1,
  1702.                 },
  1703.                 error: function () {
  1704.                     // callback();
  1705.                 },
  1706.                 success: function (res) {
  1707.                     offCalendarLastRefreshedTs = moment().unix()
  1708. //                callback(res.data);
  1709.                     var str = '';
  1710.                     var currUnix = moment().unix();
  1711.                     var added_cntry_id = [];
  1712.                     var added_event_id = [];
  1713.                     \$('#calendarHere').fullCalendar('addResource', {
  1714.                         id: 'cntry__OTHER_COUNTRIES_',
  1715. //                    parentId: 'a',
  1716.                         title: 'Others'
  1717.                     });
  1718.                     for (var t = 0; t < res.data.length; t++) {
  1719.                         var c_data = res.data[t];
  1720.                         if (c_data.consultant_current_country_id == '' || c_data.consultant_current_country_id == 0 || c_data.consultant_current_country_id == null)
  1721.                             c_data.consultant_current_country_id = '_OTHER_COUNTRIES_';
  1722. //                        //    console.log('added_cntry_id')
  1723. //                        //    console.log(added_cntry_id)
  1724.                         if (added_cntry_id.indexOf(c_data.consultant_current_country_id) != -1) {
  1725.                         } else {
  1726.                             \$('#calendarHere').fullCalendar('addResource', {
  1727.                                 id: 'cntry_' + c_data.consultant_current_country_id,
  1728. //                            parentId: 'a',
  1729.                                 title: typeof countries_data[c_data.consultant_current_country_id] !== 'undefined' ? countries_data[c_data.consultant_current_country_id]['name'] : ''
  1730.                             });
  1731.                             added_cntry_id.push(c_data.consultant_current_country_id)
  1732.                         }
  1733.                         if (added_event_id.indexOf(c_data.consultant_id + '_' + c_data.student_id) != -1) {
  1734.                         } else {
  1735.                             \$('#calendarHere').fullCalendar('addResource', {
  1736.                                 id: 'r_' + c_data.consultant_id + '_' + c_data.student_id,
  1737.                                 parentId: 'cntry_' + c_data.consultant_current_country_id,
  1738.                                 title: c_data.consultant_firstname + ' -- ' + c_data.student_firstname
  1739.                             });
  1740.                             added_event_id.push(c_data.consultant_id + '_' + c_data.student_id)
  1741.                         }
  1742.                         var eventColor = 'darkgreen';
  1743.                         var textColor = '#fff';
  1744.                         var endTimeMoment = moment.unix(c_data.scheduled_time_ts).add(c_data.duration_left_min, 'minutes');
  1745.                         if (currUnix < c_data.scheduled_time_ts) {
  1746.                             //upcoming
  1747.                             if (c_data.is_paid_full == 1)
  1748.                                 eventColor = '#fb7400';
  1749.                             else
  1750.                                 eventColor = '#d586a3';
  1751. //                        textColor='#212529';
  1752.                         } else if (currUnix < endTimeMoment.unix())
  1753.                             eventColor = '#1d5b9e';  //ongoing
  1754.                         else
  1755.                             eventColor = 'darkgreen';  //completed
  1756.                         var eventObj2 = {
  1757.                             id: c_data.session_id,
  1758.                             color: eventColor,
  1759.                             textColor: textColor,
  1760.                             resourceId: 'r_' + c_data.consultant_id + '_' + c_data.student_id,
  1761.                             title: c_data.consultant_firstname + ' -- ' + c_data.student_firstname,
  1762.                             consultant_id: c_data.consultant_id,
  1763.                             student_id: c_data.student_id,
  1764.                             meeting_room_id: c_data.meeting_room_id,
  1765.                             scheduled_time_ts: c_data.scheduled_time_ts,
  1766.                             topic_id: c_data.topic_id,
  1767.                             topic_name: c_data.topic_topic_name,
  1768.                             session_value: c_data.session_value,
  1769.                             consultant_firstname: c_data.consultant_firstname,
  1770.                             consultant_lastname: c_data.consultant_lastname,
  1771.                             student_firstname: c_data.student_firstname,
  1772.                             student_lastname: c_data.student_lastname,
  1773.                             start: moment.unix(c_data.scheduled_time_ts).add(0, 'days'),
  1774.                             end: endTimeMoment,
  1775.                             allDay: false
  1776.                         };
  1777. //                    eventArray.push(eventObj2)
  1778.                         \$('#calendarHere').fullCalendar('renderEvent', eventObj2, true);
  1779.                     }
  1780.                 }
  1781.             });
  1782.         }
  1783.     }
  1784.     ";
  1785.         }
  1786.         // line 1466
  1787.         yield "
  1788.     function stepShowTab(n, parentSelector) {
  1789.         // alert('here')
  1790.         // This function will display the specified tab of the form...
  1791.         parentSelector = parentSelector || '#selectPurchaseModal'
  1792.         var prevN = -1;
  1793.         \$(parentSelector + ' .stepIndicator.active').each(function (gg, elem) {
  1794.             prevN = 1 * \$(elem).data('seqId');
  1795.         });
  1796.         var newN = 0;
  1797.         if (n === '+1') {
  1798.             newN = (1 * prevN) + 1;
  1799.         } else if (n === '-1') {
  1800.             newN = (1 * prevN) - 1;
  1801.         } else
  1802.             newN = n;
  1803.         if (!\$(parentSelector + ' .stepIndicator.seq_' + newN).length)
  1804.             newN = (1 * prevN);
  1805.         if (!\$(parentSelector + ' .stepIndicator.seq_' + (newN + 1)).length)
  1806.             \$(parentSelector + \" .nextBtn\").text('Confirm');
  1807.         else
  1808.             \$(parentSelector + \" .nextBtn\").text('Next');
  1809.         if (!\$(parentSelector + ' .stepIndicator.seq_' + (newN - 1)).length)
  1810.             \$(parentSelector + \" .prevBtn\").hide();
  1811.         else
  1812.             \$(parentSelector + \" .prevBtn\").show();
  1813.         // alert(prevN)
  1814.         // alert(newN)
  1815.         // alert(\$(parentSelector+' .stepIndicator.seq_'+(newN+1)).length)
  1816.         if (prevN == newN) {
  1817.             \$(parentSelector).modal('hide')
  1818.             return false;
  1819.         }
  1820.         \$(parentSelector + ' .stepIndicator').removeClass('active')
  1821.         \$(parentSelector + ' .step').hide()
  1822.         \$(parentSelector + '  .step.seq_' + newN).show()
  1823.         for (var gg = 0; gg <= newN; gg++)
  1824.             \$(parentSelector + '  .stepIndicator.seq_' + gg).addClass('active')
  1825.         var triggerFunc = \$(parentSelector + '  .step.seq_' + newN).attr('data-trigger-function');
  1826.         if (typeof triggerFunc !== 'undefined' && triggerFunc !== false) {
  1827.             window[triggerFunc]();
  1828.         }
  1829.     }
  1830.     function selectDataOnPurchaseModal(cntry_id, t_id, cons_id, sch_ids, additional_coins) {
  1831.         options = {
  1832.             countryId: 0,
  1833.             topicId: 0,
  1834.             consultantId: 0,
  1835.             scheduleIds: [],
  1836.         }
  1837.     }
  1838.     function submitPurchaseModalData() {
  1839.         var data = {}
  1840.     }
  1841.     function populateTopicListOnPurchaseModal(countryId, query) {
  1842.         var pika_ind_id = \"_NA_\";
  1843.         \$('#selectPurchaseModal .topic_holder').empty();
  1844.         \$.ajax({
  1845.             url: BaseURL + \"select_data_ajax_public\",
  1846.             type: 'POST',
  1847.             dataType: 'json',
  1848.             data: {
  1849.                 //returnJson: 1,
  1850.                 //sessionData: sessionData
  1851.                 query: query,
  1852.                 tableName: \"entity_create_topic\",
  1853.                 valueField: \"id\",
  1854.                 textField: \"topic_name\",
  1855.                 entity_group: 1,
  1856.                 selectorId: '_NA_',
  1857.                 isMultiple: 0,
  1858.                 dataId: pika_ind_id,
  1859. //                        isMultiple: 0,
  1860.                 //textField: \"rendered_text\",
  1861. //
  1862.                 //renderTextFormat: \"#__id__ __name__\",
  1863.                 andConditions: [],
  1864.                 andOrConditions: [],
  1865.                 mustConditions: [
  1866.                     {type: \"=\", field: \"consultancy_enabled\", value: 1},
  1867.                     {type: \"=\", field: \"country_id\", value: countryId},
  1868.                     ";
  1869.         // line 1583
  1870.         yield "                    ";
  1871.         // line 1584
  1872.         yield "                    ";
  1873.         // line 1585
  1874.         yield "                    ";
  1875.         // line 1586
  1876.         yield "                    ";
  1877.         // line 1587
  1878.         yield "
  1879.                     ";
  1880.         // line 1590
  1881.         yield "                    ";
  1882.         // line 1591
  1883.         yield "                    ";
  1884.         // line 1592
  1885.         yield "                    ";
  1886.         // line 1593
  1887.         yield "                    ";
  1888.         // line 1594
  1889.         yield "                    ";
  1890.         // line 1595
  1891.         yield "                ],
  1892.                 convertToObject: [
  1893.                     'routine_data'
  1894.                 ],
  1895.                 skipDefaultCompanyId: 1
  1896.                 // setDataForSingle: 1,
  1897.             },
  1898.             error: function () {
  1899.                 // callback();
  1900.             },
  1901.             success: function (res) {
  1902.                 topic_data_by_id = res.dataById
  1903.                 for (var jj = 0; jj < res.data.length; jj++) {
  1904.                     var dt = res.data[jj];
  1905.                     var is_package = 0;
  1906.                     if (dt['topic_marker'] != null)
  1907.                         if (dt['topic_marker'].indexOf('_package_') !== -1)
  1908.                             is_package = 1;
  1909.                     var ggStr = ' <div class=\"box-selector tp_selector tp_' + dt['id'] + '  col-md-3 col-sm-6\"' +
  1910.                         ' data-id=\"' + dt['id'] + '\" ' +
  1911.                         ' data-gen-class=\"tp_selector\" ' +
  1912.                         '>' +
  1913.                         '<div class=\"inside\">' +
  1914.                         ' <div class=\"img\"  style=\"' +
  1915.                         \"background:url(' ";
  1916.         // line 1622
  1917.         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);
  1918.         yield "\" + dt['topic_image'] + \"');\" +
  1919.                         ' height: 50px !important;width: 100%;background-position: center;background-size: contain;background-repeat: no-repeat;\"></div>' +
  1920.                         '<h6 class=\"title\" style=\"height: 3rem; font-size:12px\">' + dt['topic_name'] + '</h6> ' +
  1921.                         // '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
  1922.                         '<p class=\"sub-title\" style=\"text-align:center;\">' + (is_package == 1 ? 'Package' : (dt['meeting_type'] == 2 ? 'Offline Process' : 'Online Session')) + '</p>' +
  1923.                         // '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
  1924.                         '</div></div>';
  1925.                     \$('#selectPurchaseModal .topic_holder').append(ggStr);
  1926.                 }
  1927.             }
  1928.         });
  1929.     }
  1930.     function populateConsultantListOnPurchaseModal(tpId, query) {
  1931.         var pika_ind_id = \"_NA_\";
  1932.         \$('#selectPurchaseModal .cons_holder').empty();
  1933.         \$.ajax({
  1934.             url: BaseURL + \"select_data_ajax_public\",
  1935.             type: 'POST',
  1936.             dataType: 'json',
  1937.             data: {
  1938.                 //returnJson: 1,
  1939.                 //sessionData: sessionData
  1940.                 query: query,
  1941.                 tableName: \"entity_applicant_details\",
  1942.                 valueField: \"applicant_id\",
  1943.                 textField: \"firstname\",
  1944.                 entity_group: 1,
  1945.                 selectorId: '_NA_',
  1946.                 isMultiple: 0,
  1947.                 dataId: pika_ind_id,
  1948. //                        isMultiple: 0,
  1949.                 //textField: \"rendered_text\",
  1950. //
  1951.                 //renderTextFormat: \"#__id__ __name__\",
  1952.                 andConditions: [],
  1953.                 andOrConditions: [
  1954.                     {type: \"like\", field: \"preferred_topic_ids_as_consultant\", value: '\"' + tpId + '\"'},
  1955.                     {type: \"like\", field: \"preferred_topic_ids_as_consultant\", value: '[]'},
  1956.                     // {type: \"like\", field: \"preferred_topic_ids_as_consultant\", value: ''},
  1957.                     // {type: \"like\", field: \"preferred_topic_ids_as_consultant\", value: 'null'},
  1958.                     {type: \"=\", field: \"preferred_topic_ids_as_consultant\", value: 'null'},
  1959.                 ],
  1960.                 mustConditions: [
  1961.                     {type: \"=\", field: \"is_consultant\", value: 1},
  1962.                     ";
  1963.         // line 1677
  1964.         yield "                    ";
  1965.         // line 1678
  1966.         yield "                    ";
  1967.         // line 1679
  1968.         yield "                    ";
  1969.         // line 1680
  1970.         yield "                    ";
  1971.         // line 1681
  1972.         yield "
  1973.                     ";
  1974.         // line 1684
  1975.         yield "                    ";
  1976.         // line 1685
  1977.         yield "                    ";
  1978.         // line 1686
  1979.         yield "                    ";
  1980.         // line 1687
  1981.         yield "                    ";
  1982.         // line 1688
  1983.         yield "                    ";
  1984.         // line 1689
  1985.         yield "                ],
  1986.                 convertToObject: [
  1987.                     'routine_data'
  1988.                 ],
  1989.                 skipDefaultCompanyId: 1
  1990.                 // setDataForSingle: 1,
  1991.             },
  1992.             error: function () {
  1993.                 // callback();
  1994.             },
  1995.             success: function (res) {
  1996.                 // topic_data_by_id = res.dataById
  1997.                 for (var jj = 0; jj < res.data.length; jj++) {
  1998.                     var dt = res.data[jj];
  1999.                     var ggStr = ' <div class=\"box-selector cons_selector cons_' + dt['id'] + '  col-md-3 col-sm-6\"' +
  2000.                         ' data-id=\"' + dt['applicant_id'] + '\" ' +
  2001.                         ' data-gen-class=\"cons_selector\" ' +
  2002.                         '>' +
  2003.                         '<div class=\"inside\">' +
  2004.                         ' <div class=\"img\"  style=\"' +
  2005.                         \"background:url(' ";
  2006.         // line 1711
  2007.         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);
  2008.         yield "\" + dt['image'] + \"');\" +
  2009.                         ' height: 50px !important;width: 100%;background-position: center;background-size: contain;background-repeat: no-repeat;\"></div>' +
  2010.                         '<h6 class=\"title\" style=\"height: 2rem; font-size:12px\">' + dt['firstname'] + ' ' + dt['lastname'] + '</h6> ' +
  2011.                         // '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
  2012.                         '</div></div>';
  2013.                     \$('#selectPurchaseModal .cons_holder').append(ggStr);
  2014.                 }
  2015. //                        alert('pika master')
  2016.             }
  2017.         });
  2018.     }
  2019.     function populateScheduleListOnPurchaseModal(consId, durValue, query) {
  2020.         var pika_ind_id = \"_NA_\";
  2021.         // \$('#selectPurchaseModal .sch_holder').empty();
  2022.         \$('#selectPurchaseModal .sch_holder_month').empty();
  2023.         \$('#selectPurchaseModal .sch_holder_day').empty();
  2024.         \$('#selectPurchaseModal .sch_holder_time').empty();
  2025.         durValue = durValue || 30;
  2026.         var options = {
  2027.             '_NEXT_60_DAYS_': 1,
  2028. //                        '_THIS_DAY_':1,
  2029. //                        '_NEXT_DAYS_':20,
  2030.         }
  2031.         \$.ajax({
  2032.             url: BaseURL + 'get_consultant_schedules',
  2033.             type: 'POST',
  2034.             dataType: 'json',
  2035.             data: {
  2036.                 consultantId: consId,
  2037.                 startDateStr: '@' + moment().unix(),
  2038. //                    endDateStr: \$('#preferredScheduleDate').val() + ' 23:59:59 ' + moment().format(\"ZZ\"),
  2039.                 endDateStr: '',
  2040.                 durationMin: durValue,
  2041.                 // durationMin: sessionDurationSelector.getValue() != '' ? perSessionMinute * sessionDurationSelector.getValue() : 90,
  2042.                 options: options,
  2043.                 returnJson: 1
  2044.             },
  2045.             error: function () {
  2046.                 // callback();
  2047.             },
  2048.             success: function (res) {
  2049.                 ;
  2050.                 // \$('#').val(res.);
  2051.                 \$('#selectPurchaseModal .view_if_has_schedules').hide();
  2052.                 if (res.success == true) {
  2053. ////                            for (var l = 0; l < res.sessionsArray.length; l++) {
  2054. ////                                \$('#rescheduledSemesterSelector').append(\$(\"<option></option>\").attr(\"value\", res.sessionsArray[l].id).text(res.sessionsArray[l].name));
  2055. ////                            }
  2056.                     for (var jj = 0; jj < res.data.scheduleList.length; jj++) {
  2057.                         var sch_dt = res.data.scheduleList[jj];
  2058.                         var ggStr = ' <div class=\"box-selector sch_selector_time ' +
  2059.                             'sch_mon_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM') + ' ' +
  2060.                             'sch_day_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM_DD') + ' ' +
  2061.                             'sch_' + sch_dt['timeUnix'] + ' ' +
  2062.                             'sch_' + sch_dt['timeUnix'] + '  col-md-3 col-sm-6\"' +
  2063.                             ' data-id=\"' + sch_dt['timeUnix'] + '\" ' +
  2064.                             ' data-gen-class=\"sch_selector_time\" ' +
  2065.                             '>' +
  2066.                             '<div class=\"inside\">' +
  2067.                                 ";
  2068.         // line 1788
  2069.         yield "                                ";
  2070.         // line 1789
  2071.         yield "                                ";
  2072.         // line 1790
  2073.         yield "                            '<h6 class=\"title\" style=\"\">' + (moment.unix(sch_dt['timeUnix']).format('HH:mm')) + '</h6> ' +
  2074.                             // '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
  2075.                             '</div></div>';
  2076.                         var ggStrday = ' <div class=\"box-selector sch_selector_day ' +
  2077.                             'sch_mon_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM') + ' ' +
  2078.                             'sch_day_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM_DD') + '  col-md-3 col-sm-6\"' +
  2079.                             ' data-id=\"' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM_DD') + '\" ' +
  2080.                             ' data-gen-class=\"sch_selector_day\" ' +
  2081.                             '>' +
  2082.                             '<div class=\"inside\">' +
  2083.                                 ";
  2084.         // line 1802
  2085.         yield "                                ";
  2086.         // line 1803
  2087.         yield "                                ";
  2088.         // line 1804
  2089.         yield "                            '<h6 class=\"title\" style=\"\">' + (moment.unix(sch_dt['timeUnix']).format('DD')) + '</h6> ' +
  2090.                             // '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
  2091.                             '</div></div>';
  2092.                         var ggStrmon = ' <div class=\"box-selector sch_selector_mon ' +
  2093.                             'sch_mon_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM') + ' ' +
  2094.                             // 'sch_day'+moment.unix(sch_dt['timeUnix']).format('YYYY_MM')+' ' +
  2095.                             ' col-md-3 col-sm-6\"' +
  2096.                             ' data-id=\"' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM') + '\" ' +
  2097.                             ' data-gen-class=\"sch_selector_mon\" ' +
  2098.                             '>' +
  2099.                             '<div class=\"inside\">' +
  2100.                                 ";
  2101.         // line 1819
  2102.         yield "                                ";
  2103.         // line 1820
  2104.         yield "                                ";
  2105.         // line 1821
  2106.         yield "                            '<h6 class=\"title\" style=\"\">' + (moment.unix(sch_dt['timeUnix']).format('MMM')) + '</h6> ' +
  2107.                             // '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
  2108.                             '</div></div>';
  2109.                         if (!\$('.sch_selector_mon.sch_mon_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM')).length)
  2110.                             \$('#selectPurchaseModal .sch_holder_month').append(ggStrmon);
  2111.                         if (!\$('.sch_selector_day.sch_day_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM_DD')).length)
  2112.                             \$('#selectPurchaseModal .sch_holder_day').append(ggStrday);
  2113.                         \$('#selectPurchaseModal .sch_holder_time').append(ggStr);
  2114.                     }
  2115.                     if (res.data.scheduleList.length > 0) {
  2116.                         \$('#selectPurchaseModal h5.view_if_has_schedules').css('display', 'block');
  2117.                         \$('#selectPurchaseModal p.view_if_has_schedules').css('display', 'block');
  2118.                         \$('#selectPurchaseModal div.row.view_if_has_schedules').css('display', 'flex');
  2119.                     }
  2120.                     \$('.sch_' + res.data.closestDateTs).trigger('click');
  2121. //                     rescheduledconsultancyScheduleSelector.clear();
  2122. //                     rescheduledconsultancyScheduleSelector.disable();
  2123. //                     rescheduledconsultancyScheduleSelector.clearOptions();
  2124. //                     rescheduledconsultancyScheduleSelector.load(function (callback) {
  2125. //
  2126. //                         rescheduledconsultancyScheduleSelector.enable();
  2127. //                         var modifiedList = [];
  2128. //                         for (var l = 0; l < res.data.scheduleList.length; l++) {
  2129. //                             var sch_dt = res.data.scheduleList[l];
  2130. //                             sch_dt['time_user_zone'] = moment.unix(sch_dt['timeUnix']).format('MMM DD, YYYY HH:mm');
  2131. // //                                sch_dt['time_user_zone']=sch_dt['time'];
  2132. //                             modifiedList.push(sch_dt);
  2133. //                         }
  2134. //
  2135. //
  2136. //                         callback(modifiedList);
  2137. //
  2138. //
  2139. //                     });
  2140. //                     rescheduledconsultancyScheduleSelector.setValue(res.data.closestDateTs)
  2141.                 } else {
  2142.                 }
  2143.             }
  2144.         });
  2145.     }
  2146.     function refreshRoutinePackageListOnPurchaseModal(t_id) {
  2147.         var dt = [];
  2148.         \$('#selectPurchaseModal .routineTable tbody').empty();
  2149.         var topicIdForRoutine = t_id;
  2150.         // var sessionDurationSelectorValue=sessionDurationSelector.getValue();
  2151.         var sessionDurationSelectorValue = 100;
  2152.         // var scheduledTimeTsValue=consultancyScheduleSeletor.getValue();
  2153.         var scheduledTimeTsValue = moment().unix();
  2154.         if (typeof topic_data_by_id[topicIdForRoutine] !== 'undefined') {
  2155.             if (topic_data_by_id[topicIdForRoutine]['routine_data'].length) {
  2156.                 dt = topic_data_by_id[topicIdForRoutine]['routine_data'];
  2157.             } else {
  2158.                 dt = [
  2159.                     {
  2160.                         sequence: 1,
  2161.                         topicId: topicIdForRoutine,
  2162.                         topicName: topic_data_by_id[topicIdForRoutine]['topic_name'],
  2163.                         meetingType: topic_data_by_id[topicIdForRoutine]['meeting_type'],
  2164.                         duration: sessionDurationSelectorValue != '' ? (perSessionMinute * sessionDurationSelectorValue) / (COIN_GENERAL_MULT * 1) : 0,
  2165.                         offset: 0,
  2166.                         coins: sessionDurationSelectorValue != '' ? (1 * sessionDurationSelectorValue) : 0,
  2167.                         scheduledTimeTs: scheduledTimeTsValue != '' ? (1 * scheduledTimeTsValue) : 0,
  2168.                         nextSequenceStart: 0,
  2169.                         modifiable: 0,
  2170.                     }
  2171.                 ];
  2172.             }
  2173.         }
  2174.         for (var poi = 0; poi < dt.length; poi++) {
  2175.             var cc_pika = dt[poi];
  2176.             if (cc_pika['meetingType'] == 2) //offline
  2177.             {
  2178.                 \$('#selectPurchaseModal .routineTable tbody').append(
  2179.                     '<tr>' +
  2180.                     '<td>' + cc_pika.topicName + '</td>' +
  2181.                     '<td style=\"text-align: left;\"><b>Deliverable</b><br>' +
  2182.                     'Bee Coins: ' + cc_pika.coins + '<br>' +
  2183.                     (typeof cc_pika.scheduledDateTs !== 'undefined' ?
  2184.                             ('Lead Dt.<br>' + (cc_pika.scheduledTimeTs == 0 ? '' : moment.unix(cc_pika.scheduledDateTs).format('MMMM DD, YYYY HH:mm ZZ'))) :
  2185.                             ('')
  2186.                     ) +
  2187.                     '</td>' +
  2188.                     '<td>' +
  2189.                     '<input class=\"routineCoinNeeded\" name=\"routine_coins[]\" type=\"hidden\" value=\"' + cc_pika.coins + '\">' +
  2190.                     '<input class=\"routineTopicId\" name=\"routine_topic_id[]\" type=\"hidden\" value=\"' + cc_pika.topicId + '\">' +
  2191.                     (typeof cc_pika.modifiable == 1 ? '<a class=\"icon-check isChecked modifiable\" href=\"javascript:void(0);\"><i class=\"fa fa-check\"></i></a>' : '<a class=\"icon-check isChecked modifiable\" href=\"javascript:void(0);\"><i class=\"fa fa-check\"></i></a>') +
  2192.                     // '<a class=\"icon-delete\" href=\"javascript:void(0);\"><i class=\"fa fa-times\"></i></a>' +
  2193.                     '</td>' +
  2194.                     '</tr>'
  2195.                 )
  2196.             } else {
  2197.                 {
  2198.                     \$('#selectPurchaseModal .routineTable tbody').append(
  2199.                         '<tr>' +
  2200.                         '<td>' + cc_pika.topicName + '</td>' +
  2201.                         '<td style=\"text-align: left;\"><b>Online</b><br>' +
  2202.                         'Bee Coins: ' + cc_pika.coins + '<br>' +
  2203.                         'Duration: ' + cc_pika.duration + '<br>' +
  2204.                         (typeof cc_pika.scheduledTimeTs !== 'undefined' ?
  2205.                                 ('Scheduled Time: <br>' + (cc_pika.scheduledTimeTs == 0 ? '' : moment.unix(cc_pika.scheduledTimeTs).format('MMMM DD, YYYY HH:mm ZZ'))) :
  2206.                                 ('')
  2207.                         ) +
  2208.                         '</td>' +
  2209.                         '<td>' +
  2210.                         '<input class=\"routineCoinNeeded\" name=\"routine_coins[]\" type=\"hidden\" value=\"' + cc_pika.coins + '\">' +
  2211.                         '<input class=\"routineTopicId\" name=\"routine_topic_id[]\" type=\"hidden\" value=\"' + cc_pika.topicId + '\">' +
  2212.                         (typeof cc_pika.modifiable == 1 ? '<a class=\"icon-check isChecked modifiable\" href=\"javascript:void(0);\"><i class=\"fa fa-check\"></i></a>' :
  2213.                             '<a class=\"icon-check isChecked \" href=\"javascript:void(0);\"><i class=\"fa fa-check\"></i></a>') +
  2214.                         // '<a class=\"icon-delete\"  href=\"javascript:void(0);\"><i class=\"fa fa-check\"></i></a>' +
  2215.                         // '<a class=\"icon-delete\" href=\"javascript:void(0);\"><i class=\"fa fa-times\"></i></a>' +
  2216.                         '</td>' +
  2217.                         '</tr>'
  2218.                     )
  2219.                 }
  2220.             }
  2221.         }
  2222.         recalculateRoutinePackageOnPurchaseModal();
  2223.     }
  2224.     function recalculateRoutinePackageOnPurchaseModal() {
  2225.         var tot_coin = 0;
  2226.         \$('#selectPurchaseModal .routineTable .icon-check').each(function (indy, elem) {
  2227.             if (\$(elem).hasClass('isChecked'))
  2228.                 tot_coin += (1 * \$('#selectPurchaseModal .routineTable .routineCoinNeeded').eq(indy).val())
  2229.         })
  2230.         \$('#selectPurchaseModal .routineCoinNeededTotalInput').val(tot_coin)
  2231.         \$('#selectPurchaseModal .routineCoinNeededTotalSpan').text(tot_coin)
  2232.     }
  2233.     function initiate_prompt_info_modal() {
  2234.         if (\$('#promptForInfoModal #currentCountryIdPromptForInfo').length)
  2235.             \$('#promptForInfoModal #currentCountryIdPromptForInfo').selectize({
  2236.                 placeholder: 'Select Your Current Country',
  2237. //            options: APTL.productListArray,
  2238.                 options: [],
  2239.                 valueField: 'value',
  2240.                 labelField: 'text',
  2241.                 preload: 'focus',
  2242.                 searchField: ['text', 'value'],
  2243. //            render: {
  2244. //                option: function (item, escape) {
  2245. //                    return '<div class=\"p-l-10 p-r-10\">'
  2246. //                            + '<h6>' + escape(item[label_for_product]) + '</h6> '
  2247. //                            + '<span>Code:' + escape(item.productCode) + '</span> '
  2248. //                                //+ '<span>Name:'+item.name+'</span> '
  2249. //                                //+ '<span>DEBUG:'+item.score+'</span>'
  2250. //                            + '</div>';
  2251. //                }
  2252. //            },
  2253.                 onChange: function (value) {
  2254.                     if (!value) return;
  2255. //                productId = preliminary_reg_data_by_id[value]['product_id']
  2256. //                getbomData();
  2257. //
  2258.                 },
  2259.                 load: function (query, callback) {
  2260. //                        if (!query.length) return // callback();
  2261.                     if (!query.length) query = '_EMPTY_';
  2262.                     var pika_ind_id = \$(\$(this)[0].\$input[\"0\"]).attr('data-id')
  2263.                     \$.ajax({
  2264.                         url: BaseURL + \"select_data_ajax\",
  2265.                         type: 'POST',
  2266.                         dataType: 'json',
  2267.                         data: {
  2268.                             //returnJson: 1,
  2269.                             //sessionData: sessionData
  2270.                             query: query,
  2271.                             tableName: \"entity_countries\",
  2272.                             valueField: \"country_id\",
  2273.                             textField: \"name_en\",
  2274.                             entity_group: 1,
  2275.                             selectorId: \$(\$(this)[0].\$input[\"0\"]).attr('id'),
  2276.                             isMultiple: 0,
  2277.                             dataId: pika_ind_id,
  2278. //                        isMultiple: 0,
  2279.                             //textField: \"rendered_text\",
  2280. //
  2281.                             //renderTextFormat: \"#__id__ __name__\",
  2282.                             andConditions: [
  2283.                                 {type: \"like\", field: \"name_en\", value: query}
  2284.                             ],
  2285.                             mustConditions: [
  2286. //                            {type: \"=\", field: \"approved\", value: 1}
  2287.                             ],
  2288.                             convertToObject: [
  2289. //                            'accessories', 'issues'
  2290.                             ],
  2291.                             skipDefaultCompanyId: 1
  2292.                             // setDataForSingle: 1,
  2293.                         },
  2294.                         error: function () {
  2295.                             // callback();
  2296.                         },
  2297.                         success: function (res) {
  2298. //                        preliminary_reg_data_by_id = res.dataById
  2299.                             callback(res.data);
  2300.                             if (res.setValueArray.length != 0 && res.selectorId != '') {
  2301.                                 if (res.isMultiple == 1)
  2302.                                     \$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
  2303.                                 else
  2304.                                     \$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
  2305.                             }
  2306. //                        alert('pika master')
  2307.                         }
  2308.                     });
  2309.                 },
  2310.                 onLoad: function (data) {
  2311. //                //    console.log(data)
  2312. //                alert('here')
  2313.                     if (!data.length) return;
  2314. //                pbcs.open()
  2315.                     if (data.length == 1) {
  2316. //                    alert('hi')
  2317. //                    productionScheduleSelector.setValue(data[0].value)
  2318.                     }
  2319.                 }
  2320.             });
  2321.         if (\$('#promptForInfoModal #preferredConsultancyTopicCountryIdsPromptForInfo').length)
  2322.             \$('#promptForInfoModal #preferredConsultancyTopicCountryIdsPromptForInfo').selectize({
  2323.                 placeholder: 'Select Your Preferred Country',
  2324. //            options: APTL.productListArray,
  2325.                 options: [],
  2326.                 valueField: 'value',
  2327.                 labelField: 'text',
  2328.                 preload: 'focus',
  2329.                 searchField: ['text', 'value'],
  2330. //            render: {
  2331. //                option: function (item, escape) {
  2332. //                    return '<div class=\"p-l-10 p-r-10\">'
  2333. //                            + '<h6>' + escape(item[label_for_product]) + '</h6> '
  2334. //                            + '<span>Code:' + escape(item.productCode) + '</span> '
  2335. //                                //+ '<span>Name:'+item.name+'</span> '
  2336. //                                //+ '<span>DEBUG:'+item.score+'</span>'
  2337. //                            + '</div>';
  2338. //                }
  2339. //            },
  2340.                 onChange: function (value) {
  2341.                     if (!value) return;
  2342. //                productId = preliminary_reg_data_by_id[value]['product_id']
  2343. //                getbomData();
  2344. //
  2345.                 },
  2346.                 load: function (query, callback) {
  2347. //                        if (!query.length) return // callback();
  2348.                     if (!query.length) query = '_EMPTY_';
  2349.                     var pika_ind_id = \$(\$(this)[0].\$input[\"0\"]).attr('data-id')
  2350.                     \$.ajax({
  2351.                         url: BaseURL + \"select_data_ajax\",
  2352.                         type: 'POST',
  2353.                         dataType: 'json',
  2354.                         data: {
  2355.                             //returnJson: 1,
  2356.                             //sessionData: sessionData
  2357.                             query: query,
  2358.                             tableName: \"entity_countries\",
  2359.                             valueField: \"country_id\",
  2360.                             textField: \"name_en\",
  2361.                             entity_group: 1,
  2362.                             selectorId: \$(\$(this)[0].\$input[\"0\"]).attr('id'),
  2363.                             isMultiple: 1,
  2364.                             dataId: pika_ind_id,
  2365. //                        isMultiple: 0,
  2366.                             //textField: \"rendered_text\",
  2367. //
  2368.                             //renderTextFormat: \"#__id__ __name__\",
  2369.                             andConditions: [
  2370.                                 {type: \"like\", field: \"name_en\", value: query}
  2371.                             ],
  2372.                             mustConditions: [
  2373. //                            {type: \"=\", field: \"approved\", value: 1}
  2374.                             ],
  2375.                             convertToObject: [
  2376. //                            'accessories', 'issues'
  2377.                             ],
  2378.                             skipDefaultCompanyId: 1
  2379.                             // setDataForSingle: 1,
  2380.                         },
  2381.                         error: function () {
  2382.                             // callback();
  2383.                         },
  2384.                         success: function (res) {
  2385. //                        preliminary_reg_data_by_id = res.dataById
  2386.                             callback(res.data);
  2387.                             if (res.setValueArray.length != 0 && res.selectorId != '') {
  2388.                                 if (res.isMultiple == 1)
  2389.                                     \$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
  2390.                                 else
  2391.                                     \$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
  2392.                             }
  2393. //                        alert('pika master')
  2394.                         }
  2395.                     });
  2396.                 },
  2397.                 onLoad: function (data) {
  2398. //                //    console.log(data)
  2399. //                alert('here')
  2400.                     if (!data.length) return;
  2401. //                pbcs.open()
  2402.                     if (data.length == 1) {
  2403. //                    alert('hi')
  2404. //                    productionScheduleSelector.setValue(data[0].value)
  2405.                     }
  2406.                 }
  2407.             });
  2408.         if (\$('#promptForInfoModal #preferredTopicIdsAsStudentPromptForInfo').length)
  2409.             \$('#promptForInfoModal #preferredTopicIdsAsStudentPromptForInfo').selectize({
  2410.                 placeholder: 'Preferred Topic Ids as Student',
  2411.                 multiple: true,
  2412. //            options: APTL.productListArray,
  2413.                 options: [],
  2414.                 valueField: 'value',
  2415.                 labelField: 'text',
  2416.                 preload: 'focus',
  2417.                 searchField: ['text', 'value'],
  2418. //            render: {
  2419. //                option: function (item, escape) {
  2420. //                    return '<div class=\"p-l-10 p-r-10\">'
  2421. //                            + '<h6>' + escape(item[label_for_product]) + '</h6> '
  2422. //                            + '<span>Code:' + escape(item.productCode) + '</span> '
  2423. //                                //+ '<span>Name:'+item.name+'</span> '
  2424. //                                //+ '<span>DEBUG:'+item.score+'</span>'
  2425. //                            + '</div>';
  2426. //                }
  2427. //            },
  2428.                 onChange: function (value) {
  2429.                     if (!value) return;
  2430. //                productId = preliminary_reg_data_by_id[value]['product_id']
  2431. //                getbomData();
  2432. //
  2433.                 },
  2434.                 load: function (query, callback) {
  2435. //                        if (!query.length) return // callback();
  2436.                     if (!query.length) query = '_EMPTY_';
  2437.                     var pika_ind_id = \$(\$(this)[0].\$input[\"0\"]).attr('data-id')
  2438.                     \$.ajax({
  2439.                         url: BaseURL + \"select_data_ajax\",
  2440.                         type: 'POST',
  2441.                         dataType: 'json',
  2442.                         data: {
  2443.                             //returnJson: 1,
  2444.                             //sessionData: sessionData
  2445.                             query: query,
  2446.                             tableName: \"entity_create_topic\",
  2447.                             valueField: \"id\",
  2448.                             textField: \"topic_name\",
  2449.                             entity_group: 1,
  2450.                             selectorId: \$(\$(this)[0].\$input[\"0\"]).attr('id'),
  2451.                             isMultiple: 1,
  2452.                             dataId: pika_ind_id,
  2453. //                        isMultiple: 0,
  2454.                             //textField: \"rendered_text\",
  2455. //
  2456.                             //renderTextFormat: \"#__id__ __name__\",
  2457.                             andConditions: [
  2458.                                 {type: \"like\", field: \"topic_name\", value: query}
  2459.                             ],
  2460.                             mustConditions: [
  2461.                                 {type: \"=\", field: \"consultancy_enabled\", value: 1}
  2462.                             ],
  2463.                             convertToObject: [
  2464. //                            'accessories', 'issues'
  2465.                             ],
  2466.                             skipDefaultCompanyId: 1
  2467.                             // setDataForSingle: 1,
  2468.                         },
  2469.                         error: function () {
  2470.                             // callback();
  2471.                         },
  2472.                         success: function (res) {
  2473. //                        preliminary_reg_data_by_id = res.dataById
  2474.                             callback(res.data);
  2475.                             if (res.setValueArray.length != 0 && res.selectorId != '') {
  2476.                                 if (res.isMultiple == 1)
  2477.                                     \$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
  2478.                                 else
  2479.                                     \$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
  2480.                             }
  2481. //                        alert('pika master')
  2482.                         }
  2483.                     });
  2484.                 },
  2485.                 onLoad: function (data) {
  2486.                     //    console.log(data)
  2487. //                alert('here')
  2488.                     if (!data.length) return;
  2489. //                pbcs.open()
  2490.                     if (data.length == 1) {
  2491. //                    alert('hi')
  2492. //                    productionScheduleSelector.setValue(data[0].value)
  2493.                     }
  2494.                 }
  2495.             });
  2496.         if (\$('#promptForInfoModal #preferredTopicIdsAsConsultantPromptForInfo').length)
  2497.             \$('#promptForInfoModal #preferredTopicIdsAsConsultantPromptForInfo').selectize({
  2498.                 placeholder: 'Preferred Topic Ids as Consultant',
  2499.                 multiple: true,
  2500. //            options: APTL.productListArray,
  2501.                 options: [],
  2502.                 valueField: 'value',
  2503.                 labelField: 'text',
  2504.                 preload: 'focus',
  2505.                 searchField: ['text', 'value'],
  2506. //            render: {
  2507. //                option: function (item, escape) {
  2508. //                    return '<div class=\"p-l-10 p-r-10\">'
  2509. //                            + '<h6>' + escape(item[label_for_product]) + '</h6> '
  2510. //                            + '<span>Code:' + escape(item.productCode) + '</span> '
  2511. //                                //+ '<span>Name:'+item.name+'</span> '
  2512. //                                //+ '<span>DEBUG:'+item.score+'</span>'
  2513. //                            + '</div>';
  2514. //                }
  2515. //            },
  2516.                 onChange: function (value) {
  2517.                     if (!value) return;
  2518. //                productId = preliminary_reg_data_by_id[value]['product_id']
  2519. //                getbomData();
  2520. //
  2521.                 },
  2522.                 load: function (query, callback) {
  2523. //                        if (!query.length) return // callback();
  2524.                     if (!query.length) query = '_EMPTY_';
  2525.                     var pika_ind_id = \$(\$(this)[0].\$input[\"0\"]).attr('data-id')
  2526.                     \$.ajax({
  2527.                         url: BaseURL + \"select_data_ajax\",
  2528.                         type: 'POST',
  2529.                         dataType: 'json',
  2530.                         data: {
  2531.                             //returnJson: 1,
  2532.                             //sessionData: sessionData
  2533.                             query: query,
  2534.                             tableName: \"entity_create_topic\",
  2535.                             valueField: \"id\",
  2536.                             textField: \"topic_name\",
  2537.                             entity_group: 1,
  2538.                             selectorId: \$(\$(this)[0].\$input[\"0\"]).attr('id'),
  2539.                             isMultiple: 1,
  2540.                             dataId: pika_ind_id,
  2541. //                        isMultiple: 0,
  2542.                             //textField: \"rendered_text\",
  2543. //
  2544.                             //renderTextFormat: \"#__id__ __name__\",
  2545.                             andConditions: [
  2546.                                 {type: \"like\", field: \"topic_name\", value: query}
  2547.                             ],
  2548.                             mustConditions: [
  2549.                                 {type: \"=\", field: \"consultancy_enabled\", value: 1}
  2550.                             ],
  2551.                             convertToObject: [
  2552. //                            'accessories', 'issues'
  2553.                             ],
  2554.                             skipDefaultCompanyId: 1
  2555.                             // setDataForSingle: 1,
  2556.                         },
  2557.                         error: function () {
  2558.                             // callback();
  2559.                         },
  2560.                         success: function (res) {
  2561. //                        preliminary_reg_data_by_id = res.dataById
  2562.                             callback(res.data);
  2563.                             if (res.setValueArray.length != 0 && res.selectorId != '') {
  2564.                                 if (res.isMultiple == 1)
  2565.                                     \$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
  2566.                                 else
  2567.                                     \$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
  2568.                             }
  2569. //                        alert('pika master')
  2570.                         }
  2571.                     });
  2572.                 },
  2573.                 onLoad: function (data) {
  2574.                     //    console.log(data)
  2575. //                alert('here')
  2576.                     if (!data.length) return;
  2577. //                pbcs.open()
  2578.                     if (data.length == 1) {
  2579. //                    alert('hi')
  2580. //                    productionScheduleSelector.setValue(data[0].value)
  2581.                     }
  2582.                 }
  2583.             });
  2584.         \$('.promptForInfoAutoUpdateData').not('.selectize-control').change(function () {
  2585. //            //    console.log('* The text was changed');
  2586.             \$.post('";
  2587.         // line 2408
  2588.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("update_inline_value");
  2589.         yield "', {
  2590. //                        returnJson: 1,
  2591. //                        sessionData: sessionData
  2592.                 entityName: typeof \$(this).data('entityName') !== 'undefined' ? \$(this).data('entityName') : 'EntityApplicantDetails',
  2593.                 entityBundle: typeof \$(this).data('entityBundle') !== 'undefined' ? \$(this).data('entityBundle') : 'CompanyGroup',
  2594.                 setValue: \$(this).val(),
  2595.                 relevantRequiredPromptField: \$(this).data('relevantPromptField'),
  2596.                 clearRequiredPromptFlag: 1,
  2597.                 setMethod: \$(this).data('setMethod'),
  2598.                 findField: typeof \$(this).data('findField') !== 'undefined' ? \$(this).data('findField') : 'applicantId',
  2599.                 findValue: typeof \$(this).data('findValue') !== 'undefined' ? \$(this).data('findValue') : '";
  2600.         // line 2423
  2601.         ((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.'2423$this->source); })()), "USER_ID", [], "any"falsefalsefalse2423), [], "array"truetruefalse2423)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.'2423$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.'2423$this->source); })()), "USER_ID", [], "any"falsefalsefalse2423), [], "array"falsefalsefalse2423), "html"nulltrue)) : (yield 0));
  2602.         yield "',
  2603.                 fieldType: typeof \$(this).data('fieldType') !== 'undefined' ? \$(this).data('fieldType') : '_TEXT_',
  2604.                 modifyTransDateFlag: typeof \$(this).data('modifyTransDate') !== 'undefined' ? \$(this).data('modifyTransDate') : 0,
  2605.                 ";
  2606.         // line 2430
  2607.         yield "
  2608.             })
  2609.                 .done(function (data) {
  2610.                     //    console.log(data);
  2611. //                                if (data.success == true) {
  2612. //                                    swal({
  2613. //                                        title: \"Sweet!\",
  2614. //                                        text: \"Updated\",
  2615. //                                        imageUrl: BaseURL + \"images/thumbs-up.png\"
  2616. //                                    });
  2617. ////                                    alertify.success(\"Order Confirmation Done\");
  2618. //
  2619. //
  2620. //                                } else {
  2621. //                                    swal({
  2622. //                                        title: \"Sorry!\",
  2623. //                                        text: \"Your Action failed !\",
  2624. //                                        imageUrl: BaseURL + \"images/Bee_Sad_Emote.png\"
  2625. //                                    });
  2626. ////                                    alertify.success(\"Order Confirmation Failed\");
  2627. //
  2628. ////                            \$('#barcode_selector_cont').waitMe('hide');
  2629. //
  2630. //                                }
  2631.                 })
  2632.                 .fail(function () {
  2633.                 });
  2634.         });
  2635.         document.getElementById('promptForInfoModal').addEventListener('hidden.bs.modal', function (event) {
  2636.             \$('.promptForInfoAutoUpdateData').not('.selectize-control').trigger('change');
  2637.         })
  2638.         promptForInfoModal.show();
  2639.         promptInfo_showTab(currentTab); // Display the current tab
  2640.     }
  2641.     function promptInfo_showTab(n) {
  2642.         // This function will display the specified tab of the form...
  2643. //         stepShowTab(n,'#promptForInfoModal')
  2644. // retrunb false;
  2645.         \$('#promptForInfoModal .step').eq(n).show();
  2646.         //... and fix the Previous/Next buttons:
  2647.         if (n == 0) {
  2648.             document.getElementById(\"promptForInfo_prevBtn\").style.display = \"none\";
  2649.         } else {
  2650.             document.getElementById(\"promptForInfo_prevBtn\").style.display = \"inline\";
  2651.         }
  2652.         if (n == (\$('#promptForInfoModal .step').length - 1)) {
  2653.             document.getElementById(\"promptForInfo_nextBtn\").innerHTML = \"Finish\";
  2654.         } else {
  2655.             document.getElementById(\"promptForInfo_nextBtn\").innerHTML = \"Next\";
  2656.         }
  2657.         //... and run a function that will display the correct step indicator:
  2658.         \$('#promptForInfoModal .stepIndicator').removeClass('active')
  2659.         for (var gg = 0; gg <= n; gg++)
  2660.             \$('#promptForInfoModal .stepIndicator').eq(gg).addClass('active')
  2661.     }
  2662.     function promptInfo_nextPrev(n) {
  2663.         // Exit the function if any field in the current tab is invalid:
  2664.         if (n == 1 && !promptInfo_validateForm()) return false;
  2665.         \$('#promptForInfoModal  .step').eq(currentTab).hide();
  2666.         // Increase or decrease the current tab by 1:
  2667.         currentTab = currentTab + n;
  2668.         // if you have reached the end of the form...
  2669.         if (currentTab >= \$('#promptForInfoModal .step').length) {
  2670.             // ... the form gets submitted:
  2671.             // //    console.log(\$('#selectPurchaseModal .step'))
  2672.             // alert(\$('#selectPurchaseModal .step').length)
  2673. //            document.getElementById(\"signUpForm\").submit();
  2674.             promptForInfoModal.hide();
  2675.             return false;
  2676.         }
  2677.         // Otherwise, display the correct tab:
  2678.         promptInfo_showTab(currentTab);
  2679.     }
  2680.     function promptInfo_validateForm() {
  2681.         // This function deals with validation of the form fields
  2682.         var x, y, i, valid = true;
  2683. //        x = document.getElementsByClassName(\"step\");
  2684. //        y = x[currentTab].getElementsByTagName(\"input\");
  2685. //
  2686. //
  2687. //
  2688. //
  2689. //        // A loop that checks every input field in the current tab:
  2690. //        for (i = 0; i < y.length; i++) {
  2691. //            // If a field is empty...
  2692. //            if (y[i].value == \"\") {
  2693. //                // add an \"invalid\" class to the field:
  2694. //                y[i].className += \" invalid\";
  2695. //                // and set the current valid status to false
  2696. //                valid = false;
  2697. //            }
  2698. //        }
  2699. //        // If the valid status is true, mark the step as finished and valid:
  2700. //        if (valid) {
  2701. //            document.getElementsByClassName(\"stepIndicator\")[currentTab].className += \" finish\";
  2702. //        }
  2703.         \$('#promptForInfoModal .step input').each(function (indumia, elemele) {
  2704.             if (\$(elemele).hasClass('required') && \$(elemele).val() == '') {
  2705.                 \$(elemele).addClass('invalid')
  2706.                 valid = false;
  2707.             } else {
  2708.             }
  2709.         })
  2710.         if (valid) {
  2711.             \$('#promptForInfoModal .stepIndicator').eq(currentTab).addClass('finish')
  2712. //            document.getElementsByClassName(\"stepIndicator\")[currentTab].className += \" finish\";
  2713.         }
  2714.         return valid; // return the valid status
  2715.     }
  2716.     function promptInfo_fixStepIndicator(n) {
  2717.         // This function removes the \"active\" class of all steps...
  2718.         var i, x = document.getElementsByClassName(\"stepIndicator\");
  2719.         for (i = 0; i < x.length; i++) {
  2720.             x[i].className = x[i].className.replace(\" active\", \"\");
  2721.         }
  2722.         //... and adds the \"active\" class on the current step:
  2723.         x[n].className += \" active\";
  2724.     }
  2725.     function addScript(src) {
  2726.         var s = document.createElement('script');
  2727.         s.type = 'text/javascript';
  2728.         s.src = src;
  2729.         document.getElementsByTagName('head')[0].appendChild(s);
  2730.         return s;  // to remove it later
  2731.     }
  2732.     ";
  2733.         // line 2589
  2734.         if ((=== CoreExtension::compare((isset($context["system_type"]) || array_key_exists("system_type"$context) ? $context["system_type"] : (function () { throw new RuntimeError('Variable "system_type" does not exist.'2589$this->source); })()), "_BUDDYBEE_"))) {
  2735.             // line 2590
  2736.             yield "
  2737.     function checkAndRedirectToMeeting(force) {
  2738.         var curr_ts_now = moment().unix();
  2739. //        if(CURRENT_ROUTE=='consultancy_session' && force==0)
  2740. //        {
  2741. //            if(typeof currentMeetingSessionId !== 'undefined')
  2742. //            {
  2743. //                if(upcomingNextMeetingIdForRedirect==currentMeetingSessionId)
  2744. //                {
  2745. //                  return;
  2746. //                }
  2747. //
  2748. //            }
  2749. //
  2750. //        }
  2751.         if (upcomingNextMeetingTsForRedirect != 0) {
  2752.             if (curr_ts_now >= (upcomingNextMeetingTsForRedirect - 120))   //redirect before 2 min
  2753.             {
  2754.                 window.localStorage.setItem('UNMId', 0);
  2755.                 window.localStorage.setItem('UNMTs', 0);
  2756.                 window.location.href = \"";
  2757.             // line 2615
  2758.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("consultancy_session");
  2759.             yield "/\" + upcomingNextMeetingIdForRedirect;
  2760.             }
  2761.         }
  2762.     }
  2763.     function refreshUpcomingMeetingList() {
  2764. //        //    console.log('_______________________TRIGGERED_______________________')
  2765.         if (current_user_user_id != 0) {
  2766.             \$.ajax({
  2767.                 url: BaseURL + \"select_data_ajax_public\",
  2768.                 type: 'POST',
  2769.                 dataType: 'json',
  2770.                 data: {
  2771.                     //returnJson: 1,
  2772.                     //sessionData: sessionData
  2773.                     query: '',
  2774.                     tableName: \"entity_meeting_session\",
  2775.                     valueField: \"session_id\",
  2776. //                        textField: \"topic_name\",
  2777.                     entity_group: 1,
  2778.                     selectorId: '_NO_NEED_',
  2779.                     isMultiple: 0,
  2780.                     dataId: 0,
  2781. //                        isMultiple: 0,
  2782.                     textField: \"session_id\",
  2783. //
  2784.                     andOrConditions: [
  2785.                         {type: \"=\", field: \"consultant_id\", value: current_user_user_id},
  2786.                         {type: \"=\", field: \"student_id\", value: current_user_user_id}
  2787.                     ],
  2788.                     mustConditions: [
  2789. //                        {type: \"=\", field: \"is_paid_full\", value: 1},
  2790.                         {type: \">=\", field: \"scheduled_time_ts\", value: moment().unix()},
  2791.                         ";
  2792.             // line 2659
  2793.             yield "//                            {type: \"!=\", field: \"applicant_id\", value: \$('#rescheduledStudentId').val()}
  2794.                         ";
  2795.             // line 2661
  2796.             yield "                    ],
  2797.                     orderByConditions: [
  2798.                         {
  2799.                             field: 'scheduled_time_ts',
  2800.                             sortType: 'ASC'
  2801.                         }
  2802.                         ";
  2803.             // line 2668
  2804.             yield "//                            {type: \"!=\", field: \"applicant_id\", value: \$('#rescheduledStudentId').val()}
  2805.                         ";
  2806.             // line 2670
  2807.             yield "                    ],
  2808.                     convertToObject: [
  2809. //                            'accessories', 'issues'
  2810.                     ],
  2811.                     skipDefaultCompanyId: 1
  2812.                     // setDataForSingle: 1,
  2813.                 },
  2814.                 error: function () {
  2815.                     // callback();
  2816.                 },
  2817.                 success: function (res) {
  2818. //                        preliminary_reg_data_by_id = res.dataById
  2819.                     upcomingNextMeetingIdForRedirect = 0;
  2820.                     upcomingNextMeetingTsForRedirect = 0;
  2821.                     upcomingMeetingDataForRedirect = [];
  2822.                     for (var bogu = 0; bogu < res.data.length; bogu++) {
  2823.                         if (res.data[bogu].is_paid_full == 1) {
  2824.                             upcomingMeetingDataForRedirect.push({
  2825.                                 id: res.data[bogu].session_id,
  2826.                                 ts: res.data[bogu].scheduled_time_ts,
  2827.                             })
  2828.                         }
  2829.                     }
  2830.                     if (upcomingMeetingDataForRedirect.length != 0) {
  2831.                         upcomingNextMeetingIdForRedirect = upcomingMeetingDataForRedirect[0]['id'];
  2832.                         upcomingNextMeetingTsForRedirect = upcomingMeetingDataForRedirect[0]['ts'];
  2833.                     }
  2834.                     if (typeof refresh_upcoming_meeting_on_dashboard !== 'undefined')
  2835.                         refresh_upcoming_meeting_on_dashboard(res.data);
  2836. //                    if(CURRENT_ROUTE=='consultancy_session')
  2837. //                    {
  2838. //                        if(typeof currentMeetingSessionId !== 'undefined')
  2839. //                        {
  2840. //                            if(upcomingNextMeetingIdForRedirect==currentMeetingSessionId)
  2841. //                            {
  2842. //                                clearInterval(triggerRefreshUpcomingSession);
  2843. //                            }
  2844. //                            else
  2845. //                                checkAndRedirectToMeeting(0);
  2846. //
  2847. //                        }
  2848. //                        else
  2849. //                            checkAndRedirectToMeeting(0);
  2850. //
  2851. ////                        clearInterval(triggerRefreshUpcomingSession);
  2852. //
  2853. //                    }
  2854. //                    else
  2855.                     checkAndRedirectToMeeting(0);
  2856.                 }
  2857.             });
  2858.         }
  2859.     }
  2860.     function triggerRefreshUpcomingMeetingList(intervalHere) {
  2861.         if (current_user_user_id != 0) {
  2862.             triggerRefreshUpcomingSession = setInterval(function () {
  2863.                 refreshUpcomingMeetingList();
  2864.                 //seconds
  2865.             }, intervalHere)
  2866.         }
  2867.     }
  2868.     ";
  2869.         }
  2870.         // line 2748
  2871.         yield "</script>
  2872. ";
  2873.         // line 2750
  2874.         if ((=== CoreExtension::compare(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::BUDDYBEE_SOCKET_ENABLED"), 1))) {
  2875.             // line 2751
  2876.             yield "    ";
  2877.             // line 2752
  2878.             yield "    ";
  2879.             // line 2753
  2880.             yield "    ";
  2881.             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.'2753$this->source); })()), "USER_ID", [], "any"falsefalsefalse2753), [], "array"truetruefalse2753)) {
  2882.                 // line 2754
  2883.                 yield "
  2884.         ";
  2885.                 // line 2755
  2886.                 $context["buddybee_socket_server"] = Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::BUDDYBEE_SOCKET_SERVER");
  2887.                 // line 2756
  2888.                 yield "        ";
  2889.                 $context["buddybee_socket_server_full"] = ("https://" . (isset($context["buddybee_socket_server"]) || array_key_exists("buddybee_socket_server"$context) ? $context["buddybee_socket_server"] : (function () { throw new RuntimeError('Variable "buddybee_socket_server" does not exist.'2756$this->source); })()));
  2890.                 // line 2757
  2891.                 yield "
  2892.         ";
  2893.                 // line 2758
  2894.                 if (CoreExtension::inFilter("localhost:", (isset($context["buddybee_socket_server"]) || array_key_exists("buddybee_socket_server"$context) ? $context["buddybee_socket_server"] : (function () { throw new RuntimeError('Variable "buddybee_socket_server" does not exist.'2758$this->source); })()))) {
  2895.                     // line 2759
  2896.                     yield "            ";
  2897.                     $context["buddybee_socket_server_full"] = (((isset($context["url_wo_port"]) || array_key_exists("url_wo_port"$context) ? $context["url_wo_port"] : (function () { throw new RuntimeError('Variable "url_wo_port" does not exist.'2759$this->source); })()) . ":") . CoreExtension::getAttribute($this->env$this->sourceTwig\Extension\CoreExtension::split($this->env->getCharset(), (isset($context["buddybee_socket_server"]) || array_key_exists("buddybee_socket_server"$context) ? $context["buddybee_socket_server"] : (function () { throw new RuntimeError('Variable "buddybee_socket_server" does not exist.'2759$this->source); })()), "localhost:"), 1, [], "array"falsefalsefalse2759));
  2898.                     // line 2760
  2899.                     yield "        ";
  2900.                 } else {
  2901.                     // line 2761
  2902.                     yield "            ";
  2903.                     $context["buddybee_socket_server_full"] = ("https://" . (isset($context["buddybee_socket_server"]) || array_key_exists("buddybee_socket_server"$context) ? $context["buddybee_socket_server"] : (function () { throw new RuntimeError('Variable "buddybee_socket_server" does not exist.'2761$this->source); })()));
  2904.                     // line 2762
  2905.                     yield "        ";
  2906.                 }
  2907.                 // line 2763
  2908.                 yield "
  2909.         ";
  2910.                 // line 2765
  2911.                 yield "        ";
  2912.                 // line 2766
  2913.                 yield "        <script type=\"text/javascript\">
  2914.             var buddybeeKeepAliveCall = {};
  2915.             var lastActivityTs = 0;
  2916.             function refreshKeepAliveCall() {
  2917.                 buddybeeKeepAliveCall = setInterval(function () {
  2918.                     var nowTs = moment().unix(),
  2919.                         differenceFromStartTime = meetingStartTime.diff(now), // 86400000;
  2920.                         differenceFromEndTime = meetingEndTime.diff(now); // 86400000;
  2921.                     if (nowTs - lastActivityTs > 60) {
  2922.                         clearInterval(buddybeeKeepAliveCall);
  2923.                     } else {
  2924.                         buddybee_socket.emit('update_my_socket', {
  2925.                             userId: buddybee_socket_user_id,
  2926.                             token: buddybee_socket_user_session_token,
  2927.                         });
  2928.                     }
  2929.                     //seconds
  2930.                 }, 30000)
  2931.             }
  2932.             // //    console.log(io)
  2933.             function initiateBuddybeeSocket() {
  2934.                 lastActivityTs = moment().unix();
  2935.                 \$.getScript('";
  2936.                 // line 2801
  2937.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["buddybee_socket_server_full"]) || array_key_exists("buddybee_socket_server_full"$context) ? $context["buddybee_socket_server_full"] : (function () { throw new RuntimeError('Variable "buddybee_socket_server_full" does not exist.'2801$this->source); })()), "html"nulltrue);
  2938.                 yield "/socket.io/socket.io.js', function () {
  2939.                     ";
  2940.                 // line 2803
  2941.                 yield "                    if (io) {
  2942.                         ";
  2943.                 // line 2805
  2944.                 yield "                        buddybee_socket = io.connect('";
  2945.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["buddybee_socket_server_full"]) || array_key_exists("buddybee_socket_server_full"$context) ? $context["buddybee_socket_server_full"] : (function () { throw new RuntimeError('Variable "buddybee_socket_server_full" does not exist.'2805$this->source); })()), "html"nulltrue);
  2946.                 yield "');
  2947.                         buddybee_socket.emit('update_my_socket', {
  2948.                             userId: buddybee_socket_user_id,
  2949.                             token: buddybee_socket_user_session_token,
  2950.                             user_status: '_ON_',
  2951.                             force_broadcast: 1,
  2952.                         });
  2953. //                        buddybee_socket.on('_SEND_TEXT_TO_MOBILE_', function (dataObj) {
  2954. //                            //    console.log('_SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE_')
  2955. //                            //    console.log(dataObj)
  2956. //
  2957. //
  2958. //                        });
  2959.                         addScript(\"";
  2960.                 // line 2821
  2961.                 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);
  2962.                 yield "buddybee_assets/js/generic_buddybee_sockets.js?version=";
  2963.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  2964.                 yield "\")
  2965.                         ";
  2966.                 // line 2822
  2967.                 if (((=== CoreExtension::compare((isset($context["curr_route"]) || array_key_exists("curr_route"$context) ? $context["curr_route"] : (function () { throw new RuntimeError('Variable "curr_route" does not exist.'2822$this->source); })()), "consultancy_session")) || (=== CoreExtension::compare((isset($context["curr_route"]) || array_key_exists("curr_route"$context) ? $context["curr_route"] : (function () { throw new RuntimeError('Variable "curr_route" does not exist.'2822$this->source); })()), "_nothing_new_")))) {
  2968.                     // line 2823
  2969.                     yield "
  2970.                         ";
  2971.                 } else {
  2972.                     // line 2825
  2973.                     yield "
  2974.                         ifvisible.setIdleDuration(120);
  2975.                         ifvisible.onEvery(30, function () {
  2976. //                            //    console.log('not idle')
  2977.                             buddybee_socket.emit('update_my_socket', {
  2978.                                 userId: buddybee_socket_user_id,
  2979.                                 token: buddybee_socket_user_session_token,
  2980.                             });
  2981.                         });
  2982. //                        ifvisible.onEvery(300, function () {
  2983. ////                            //    console.log('not idle')
  2984. //                            buddybee_socket.emit('update_my_socket', {
  2985. //                                userId: buddybee_socket_user_id,
  2986. //                                token: buddybee_socket_user_session_token,
  2987. //                            });
  2988. //                        });
  2989.                         ifvisible.idle(function () {
  2990.                             document.body.style.opacity = 0.5;
  2991.                             buddybee_socket.emit('update_my_socket', {
  2992.                                 userId: buddybee_socket_user_id,
  2993.                                 token: buddybee_socket_user_session_token,
  2994.                                 user_status: '_AWAY_',
  2995.                                 force_broadcast: 1,
  2996.                             });
  2997.                         });
  2998.                         ifvisible.wakeup(function () {
  2999.                             document.body.style.opacity = 1;
  3000.                             buddybee_socket.emit('update_my_socket', {
  3001.                                 userId: buddybee_socket_user_id,
  3002.                                 token: buddybee_socket_user_session_token,
  3003.                                 user_status: '_ON_',
  3004.                                 force_broadcast: 1,
  3005.                             });
  3006.                         });
  3007.                         ";
  3008.                 }
  3009.                 // line 2863
  3010.                 yield "
  3011.                         // buddybee_socket.emit('update_my_socket', {
  3012.                         //     userId: buddybee_socket_user_id,
  3013.                         //     token: buddybee_socket_user_session_token,
  3014.                         // });
  3015.                         if (typeof pageSocketInit !== 'undefined')
  3016.                             pageSocketInit();
  3017.                         buddybee_socket.on('user_status_update', function (dataObj) {
  3018.                             //    console.log(dataObj)
  3019.                         });
  3020.                         buddybee_socket.on('_SOCKET_NOTIFICATION_HERE_', function (dataObj) {
  3021.                             if (typeof dataObj.targetRoute !== 'undefined') {
  3022.                                 if (dataObj.targetRoute == 'consultancy_session')
  3023.                                     refreshUpcomingMeetingList();
  3024.                             }
  3025.                             //    console.log(dataObj)
  3026.                         });
  3027.                         buddybee_socket.on('refresh_upcoming_meeting_list', function (dataObj) {
  3028.                             refreshUpcomingMeetingList();
  3029.                             //    console.log(dataObj)
  3030.                         });
  3031.                         //    console.log(buddybee_socket);
  3032.                     }
  3033.                 });
  3034.             }
  3035.         </script>
  3036.         ";
  3037.                 // line 2905
  3038.                 yield "
  3039.     ";
  3040.             }
  3041.             // line 2907
  3042.             yield "    ";
  3043.         }
  3044.         // line 2909
  3045.         yield "
  3046. <script>
  3047.     var honeybeeLocale = 'en';
  3048.     jQuery.browser = {
  3049.         msie: false,
  3050. //        version: 0
  3051.     };
  3052.     function check_filters_default() {
  3053. //                    alert(\"here\")
  3054.         \$('.filter_this').hide()
  3055.         \$('.filter_with_this').each(function () {
  3056. //            alert(\$(this).attr('id'))
  3057. //            alert(\$(this).val())
  3058.             if (\$(this).attr('type') == 'checkbox' && \$(this).prop('checked') == false)
  3059.                 return;
  3060.             if (\$(this).attr('type') == 'radio' && \$(this).is(':checked') == false)
  3061.                 return;
  3062.             var selector_name = '.filter_' + (\$(this).attr('id')) + '_' + \$(this).val();
  3063. //                        alert(selector_name)
  3064.             \$(selector_name).show()
  3065.         })
  3066.     }
  3067.     var userAgent = navigator.userAgent || navigator.vendor || window.opera;
  3068.     \$(document).ready(function () {
  3069.         ";
  3070.         // line 2940
  3071.         if (CoreExtension::getAttribute($this->env$this->source, ($context["session"] ?? null), "triggerPromptInfoModalFlag", [], "array"truetruefalse2940)) {
  3072.             // line 2941
  3073.             yield "        ";
  3074.             if ((=== CoreExtension::compare(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.'2941$this->source); })()), "triggerPromptInfoModalFlag", [], "array"falsefalsefalse2941), 1))) {
  3075.                 // line 2942
  3076.                 yield "        initiate_prompt_info_modal();
  3077.         ";
  3078.             }
  3079.             // line 2944
  3080.             yield "        ";
  3081.         }
  3082.         // line 2945
  3083.         yield "
  3084.         ";
  3085.         // line 2947
  3086.         if ((=== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'2947$this->source); })()), "session", [], "any"falsefalsefalse2947), "get", ["devAdminMode"], "method"falsefalsefalse2947), 1))) {
  3087.             // line 2948
  3088.             yield "
  3089.         ";
  3090.         }
  3091.         // line 2951
  3092.         yield "        \$('.book_now_cta').click(function (ev) {
  3093.             ev.preventDefault();
  3094.             selectPurchaseModal.show();
  3095.         })
  3096.         stepShowTab(currentTabSelectPurchaseModal, '#selectPurchaseModal')
  3097.         \$(document).on('click', '#selectPurchaseModal .routineTable tbody .icon-check.modifiable', function () {
  3098.             if (\$(this).hasClass('isChecked'))
  3099.                 \$(this).removeClass('isChecked');
  3100.             else
  3101.                 \$(this).addClass('isChecked')
  3102.             recalculateRoutinePackageOnPurchaseModal();
  3103.         })
  3104.         \$(document).on('click', '.offCanvasCalendarTrigger', function () {
  3105.             refreshOffCanvasCalendar()
  3106.         })
  3107.         \$(document).on('click', '.box-selector', function () {
  3108.             \$('.' + \$(this).data('genClass')).removeClass('active')
  3109.             \$(this).addClass('active')
  3110.         })
  3111.         \$(document).on('click', '#selectPurchaseModal .prevBtn', function () {
  3112.             //validate action here
  3113.             // if (!validateForm()) return false;
  3114.             stepShowTab('-1', '#selectPurchaseModal')
  3115.         })
  3116.         \$(document).on('click', '#selectPurchaseModal .stepIndicator', function () {
  3117.             //validate action here
  3118.             // if (!validateForm()) return false;
  3119.             stepShowTab(\$(this).data('seqId'), '#selectPurchaseModal')
  3120.         })
  3121.         \$(document).on('click', '#selectPurchaseModal .nextBtn', function () {
  3122.             //validate action here
  3123.             // if (!validateForm()) return false;
  3124.             stepShowTab('+1', '#selectPurchaseModal')
  3125.         })
  3126.         \$(document).on('click', '#selectPurchaseModal .cn_selector', function () {
  3127.             populateTopicListOnPurchaseModal(\$(this).data('id'));
  3128.             stepShowTab('+1', '#selectPurchaseModal')
  3129.             if (\$('.box-selector.cn_selector.active').length)
  3130.                 \$('.cntry_p span').text(\$('.box-selector.cn_selector.active .title').text())
  3131.         })
  3132.         \$(document).on('click', '#selectPurchaseModal .tp_selector', function () {
  3133.             refreshRoutinePackageListOnPurchaseModal(\$(this).data('id'));
  3134.             populateConsultantListOnPurchaseModal(\$(this).data('id'));
  3135.             stepShowTab('+1', '#selectPurchaseModal');
  3136.             if (\$('.box-selector.tp_selector.active').length)
  3137.                 \$('.topic_p span').text(\$('.box-selector.tp_selector.active .title').text() + ' ( ' + \$('.box-selector.tp_selector.active .sub-title').text() + ' )')
  3138.         })
  3139.         \$(document).on('click', '#selectPurchaseModal .cons_selector', function () {
  3140.             populateScheduleListOnPurchaseModal(\$(this).data('id'));
  3141.             stepShowTab('+1', '#selectPurchaseModal')
  3142.             if (\$('.box-selector.cons_selector.active').length)
  3143.                 \$('.cons_p span').text(\$('.box-selector.cons_selector.active .title').text())
  3144.         })
  3145.         \$(document).on('click', '#selectPurchaseModal .sch_selector_mon', function () {
  3146.             \$('#selectPurchaseModal .sch_selector_day').hide();
  3147.             // alert(\$(this).data('id'))
  3148.             \$('#selectPurchaseModal .sch_selector_day.sch_mon_' + \$(this).data('id')).show();
  3149.             // populateScheduleListOnPurchaseModal(\$(this).data('id'));
  3150.             // stepShowTab('+1','#selectPurchaseModal')
  3151.         })
  3152.         \$(document).on('click', '#selectPurchaseModal .sch_selector_day', function () {
  3153.             \$('#selectPurchaseModal .sch_selector_time').hide();
  3154.             \$('#selectPurchaseModal .sch_selector_time.sch_day_' + \$(this).data('id')).show();
  3155.             // populateScheduleListOnPurchaseModal(\$(this).data('id'));
  3156.             // stepShowTab('+1','#selectPurchaseModal')
  3157.         })
  3158.         \$(document).on('click', '#selectPurchaseModal .sch_selector_time', function () {
  3159.             // alert('here')
  3160.             \$('#selectPurchaseModal .sch_selector_mon.sch_mon_' + moment.unix(\$(this).data('id')).format('YYYY_MM')).trigger('click');
  3161.             \$('#selectPurchaseModal .sch_selector_day.sch_day_' + moment.unix(\$(this).data('id')).format('YYYY_MM_DD')).trigger('click');
  3162.         })
  3163.         if (CURRENT_ROUTE == 'consultancy_session') {
  3164. //            if (typeof currentMeetingSessionId !== 'undefined') {
  3165. //                if (upcomingNextMeetingIdForRedirect == currentMeetingSessionId) {
  3166. //                    clearInterval(triggerRefreshUpcomingSession);
  3167. //                }
  3168. //                else
  3169. //                    checkAndRedirectToMeeting(0);
  3170. //
  3171. //            }
  3172. //            else
  3173. //                checkAndRedirectToMeeting(0);
  3174. //                        clearInterval(triggerRefreshUpcomingSession);
  3175.         } else
  3176.             setTimeout(function () {
  3177.                 refreshUpcomingMeetingList();
  3178.                 triggerRefreshUpcomingMeetingList(60000);
  3179.             }, 20000);
  3180.         // Windows Phone must come first because its UA also contains \"Android\"
  3181.         // alert(userAgent);
  3182.         if ((currTsForDlM - deepLinkModalLastShown) > (3600 * 24)) {
  3183.             // alert('in DLM');
  3184.             if (/windows phone/i.test(userAgent)) {
  3185. //                alert(\"Android\");
  3186.                 \$('.deep_link_choice').hide();
  3187.                 \$('.deep_link_choice._AND_').show();
  3188.                 // \$('.deep_link_choice._IPHONE_').show();
  3189.                 \$('.deep_link_choice._BROWSER_').show();
  3190.                 deepLinkModal.show()
  3191.             }
  3192.             if (/Android/i.test(userAgent)) {
  3193. //                alert(\"Android\");
  3194.                 \$('.deep_link_choice').hide();
  3195.                 \$('.deep_link_choice._AND_').show();
  3196.                 // \$('.deep_link_choice._IPHONE_').show();
  3197.                 \$('.deep_link_choice._BROWSER_').show();
  3198.                 deepLinkModal.show()
  3199.             }
  3200.             // iOS detection from: http://stackoverflow.com/a/9039885/177710
  3201.             if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
  3202. //                alert(\"iOS\");
  3203.                 \$('.deep_link_choice').hide();
  3204.                 // \$('.deep_link_choice._AND_').show();
  3205.                 \$('.deep_link_choice._IPHONE_').show();
  3206.                 \$('.deep_link_choice._BROWSER_').show();
  3207.                 deepLinkModal.show()
  3208.             }
  3209.             window.localStorage.setItem('deepLinkModalLastShown', currTsForDlM)
  3210.         }
  3211.         // deepLinkModal.show()
  3212.         \$('#buddybee_preloader').fadeOut('slow', function () {
  3213.             \$(this).remove();
  3214.         });
  3215.         if (typeof initiateOtpModal !== 'undefined') {
  3216. //            initiateOtpModal()
  3217.         }
  3218.         ";
  3219.         // line 3130
  3220.         if ((=== CoreExtension::compare((isset($context["system_type"]) || array_key_exists("system_type"$context) ? $context["system_type"] : (function () { throw new RuntimeError('Variable "system_type" does not exist.'3130$this->source); })()), "_BUDDYBEE_"))) {
  3221.             // line 3131
  3222.             yield "
  3223.         \$(document).on('click', 'a', function (e) {
  3224.             if (\$(this).attr('href') == '";
  3225.             // line 3134
  3226.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("under_construction");
  3227.             yield "') {
  3228.                 e.preventDefault();
  3229.                 swal({
  3230.                     title: \"Oh Snap!\",
  3231.                     type: 'warning',
  3232.                     text: \"This page is Under Construction.\",
  3233.                     timer: 3000,
  3234.                     showConfirmButton: false
  3235.                 });
  3236.             }
  3237.             if (\$(this).attr('href') == '";
  3238.             // line 3144
  3239.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("user_logout");
  3240.             yield "') {
  3241. //                e.preventDefault();
  3242.                 if (buddybee_socket != '') {
  3243.                     buddybee_socket.emit('update_my_socket', {
  3244.                         userId: buddybee_socket_user_id,
  3245.                         user_status: '_OFF_',
  3246.                         force_broadcast: 1,
  3247.                     });
  3248.                 }
  3249.             }
  3250.         });
  3251.         ";
  3252.         }
  3253.         // line 3160
  3254.         yield "        \$(document).on('click', '.admin-menu-toggler', function (e) {
  3255.             \$('.buddybee_admin_sidebar').toggle()
  3256.         })
  3257.         \$(document).on('click', 'a.book_now_cta', function (e) {
  3258. //            e.preventDefault();
  3259. //            bookNowModal.show()
  3260.         })
  3261.         \$(document).on('change', '.filter_with_this', function () {
  3262.             check_filters_default()
  3263.         })
  3264.         \$(document).on('click', '.btn_deep_link_selector', function () {
  3265.             if (\$(this).attr('data-deeplink-choice') == '_AND_')
  3266.                 window.location.href = \"https://play.google.com/store/apps/details?id=eu.buddybee.consultancy\";
  3267.             // deepLinkModal.hide()
  3268.         })
  3269.         check_filters_default();
  3270.         \$('#currentClientTime').val(moment().format('YYYY-MM-DD HH:mm:ss'))
  3271.         ";
  3272.         // line 3191
  3273.         if ((=== CoreExtension::compare(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::BUDDYBEE_SOCKET_ENABLED"), 1))) {
  3274.             // line 3192
  3275.             yield "        ";
  3276.             // line 3193
  3277.             yield "        ";
  3278.             // line 3194
  3279.             yield "        ";
  3280.             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.'3194$this->source); })()), "USER_ID", [], "any"falsefalsefalse3194), [], "array"truetruefalse3194)) {
  3281.                 // line 3195
  3282.                 yield "
  3283.         initiateBuddybeeSocket();
  3284.         ";
  3285.             }
  3286.             // line 3200
  3287.             yield "        ";
  3288.         }
  3289.         // line 3201
  3290.         yield "
  3291.         \$('.schedule_date_picker').not('.datepicker').bootstrapMaterialDatePicker({
  3292.             format: 'MMMM DD, YYYY',
  3293.             clearButton: true,
  3294.             weekStart: 6,
  3295.             time: false,
  3296.             switchOnClick: true,
  3297.             monthPicker: true
  3298.             // format: 'HH:mm',
  3299.             // clearButton: true,
  3300.             // date: false,
  3301.             // switchOnClick:true
  3302.         });
  3303.         \$('.schedule_date_time_picker').not('.datepicker').bootstrapMaterialDatePicker({
  3304.             //format: 'dddd DD MMMM YYYY',
  3305.             // format: ' HH:mm',
  3306.             // clearButton: true,
  3307.             // weekStart: 6,
  3308.             // time: true,
  3309.             // switchOnClick: true,
  3310.             // monthPicker: false
  3311.             format: 'HH:mm',
  3312.             clearButton: true,
  3313.             date: false,
  3314.             switchOnClick: true
  3315.         });
  3316.         ";
  3317.         // line 3229
  3318.         yield "
  3319.         ";
  3320.         // line 3230
  3321.         if (((((=== CoreExtension::compare((isset($context["curr_route"]) || array_key_exists("curr_route"$context) ? $context["curr_route"] : (function () { throw new RuntimeError('Variable "curr_route" does not exist.'3230$this->source); })()), "applicant_dashboard")) || (=== CoreExtension::compare((isset($context["curr_route"]) || array_key_exists("curr_route"$context) ? $context["curr_route"] : (function () { throw new RuntimeError('Variable "curr_route" does not exist.'3230$this->source); })()), "dashboard"))) || (=== CoreExtension::compare((isset($context["curr_route"]) || array_key_exists("curr_route"$context) ? $context["curr_route"] : (function () { throw new RuntimeError('Variable "curr_route" does not exist.'3230$this->source); })()), "consultant_dashboard"))) || (=== CoreExtension::compare((isset($context["curr_route"]) || array_key_exists("curr_route"$context) ? $context["curr_route"] : (function () { throw new RuntimeError('Variable "curr_route" does not exist.'3230$this->source); })()), "buddybee_admin_dashboard")))) {
  3322.             // line 3231
  3323.             yield "        ";
  3324.             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.'3231$this->source); })()), "USER_ID", [], "any"falsefalsefalse3231), [], "array"truetruefalse3231)) {
  3325.                 // line 3232
  3326.                 yield "        ";
  3327.                 if ((!== CoreExtension::compare(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.'3232$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.'3232$this->source); })()), "USER_ID", [], "any"falsefalsefalse3232), [], "array"falsefalsefalse3232), 0))) {
  3328.                     // line 3233
  3329.                     yield "        var globLsDataStr = window.localStorage.getItem('lsData');
  3330.         var globLsData = {};
  3331.         if (globLsDataStr != 'null' && globLsDataStr != null)
  3332.             globLsData = JSON.parse(globLsDataStr);
  3333.         //    console.log(globLsData)
  3334.         if (typeof globLsData['checkoutPending'] !== 'undefined') {
  3335.             if (globLsData['checkoutPending'] == 1)
  3336.                 window.location.href = \"";
  3337.                     // line 3243
  3338.                     yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("pricing_plan_page");
  3339.                     yield "?autoRedirected=1\";
  3340.         }
  3341.         ";
  3342.                 }
  3343.                 // line 3246
  3344.                 yield "        ";
  3345.             }
  3346.             // line 3247
  3347.             yield "        ";
  3348.         }
  3349.         // line 3248
  3350.         yield "
  3351. //        //    console.log(globLsData)
  3352.         \$('#small_search_button').click(function () {
  3353. //            \$( '.small_search_content .selectize-control.searchbox.small_search' ).animate({
  3354. //                opacity: 0.25,
  3355. //                left: \"+=50\",
  3356. //                width: \"0\"
  3357. //            }, 5000, function() {
  3358. //                // Animation complete.
  3359. //            });
  3360.             if (\$('.small_search_content .selectize-control.searchbox.small_search').hasClass('search_shown')) {
  3361. //                \$('.small_search_content .selectize-control.searchbox.small_search').hide();
  3362.                 \$('.small_search_content .selectize-control.searchbox.small_search').removeClass('search_shown');
  3363. //                \$('.searchbar-content.small_search_content').css('border','1px solid #1d5b9e33;');
  3364.                 \$('.small_search_content .selectize-control.searchbox.small_search').animate({
  3365. //                opacity: 0.25,
  3366. //                left: \"+=50\",
  3367.                     width: \"0\"
  3368.                 }, 500, function () {
  3369.                     // Animation complete.
  3370.                     \$('.small_search_content .selectize-control.searchbox.small_search').hide();
  3371.                     \$('.small_search_content .selectize-control.searchbox.small_search').removeClass('search_shown');
  3372.                     \$('.searchbar-content.small_search_content').removeClass('search_shown');
  3373.                 });
  3374.             } else {
  3375. //                \$('.small_search_content .selectize-control.searchbox.small_search').show();
  3376. //                \$('.searchbar-content.small_search_content').css('border','1px solid #1d5b9e33;');
  3377.                 \$('.small_search_content .selectize-control.searchbox.small_search').css('display', 'inline-flex')
  3378.                 \$('.small_search_content .selectize-control.searchbox.small_search').addClass('search_shown');
  3379.                 \$('.searchbar-content.small_search_content').addClass('search_shown');
  3380.                 \$('.small_search_content .selectize-control.searchbox.small_search').animate({
  3381. //                opacity: 0.25,
  3382. //                left: \"+=50\",
  3383.                     width: \"224\"
  3384.                 }, 500, function () {
  3385.                     // Animation complete.
  3386. //                    \$('.searchbar-content.small_search_content').css('border','1px solid #1d5b9e33;');
  3387.                 });
  3388.             }
  3389.         })
  3390.         ";
  3391.         // line 3296
  3392.         yield "        ";
  3393.         // line 3297
  3394.         yield "        ";
  3395.         // line 3298
  3396.         yield "        ";
  3397.         // line 3299
  3398.         yield "        ";
  3399.         // line 3300
  3400.         yield "
  3401.         ";
  3402.         // line 3302
  3403.         yield "        ";
  3404.         // line 3303
  3405.         yield "        ";
  3406.         // line 3304
  3407.         yield "        ";
  3408.         // line 3305
  3409.         yield "        ";
  3410.         // line 3306
  3411.         yield "        ";
  3412.         // line 3307
  3413.         yield "        ";
  3414.         // line 3308
  3415.         yield "        ";
  3416.         // line 3309
  3417.         yield "
  3418.         ";
  3419.         // line 3311
  3420.         yield "
  3421.         ";
  3422.         // line 3313
  3423.         yield "        ";
  3424.         // line 3314
  3425.         yield "
  3426.         ";
  3427.         // line 3316
  3428.         yield "
  3429.         ";
  3430.         // line 3318
  3431.         yield "        ";
  3432.         // line 3319
  3433.         yield "
  3434.         ";
  3435.         // line 3321
  3436.         yield "        ";
  3437.         // line 3322
  3438.         yield "        ";
  3439.         // line 3323
  3440.         yield "        ";
  3441.         // line 3324
  3442.         yield "        ";
  3443.         // line 3325
  3444.         yield "        ";
  3445.         // line 3326
  3446.         yield "        ";
  3447.         // line 3327
  3448.         yield "        ";
  3449.         // line 3328
  3450.         yield "        ";
  3451.         // line 3329
  3452.         yield "        ";
  3453.         // line 3330
  3454.         yield "        ";
  3455.         // line 3331
  3456.         yield "        ";
  3457.         // line 3332
  3458.         yield "        ";
  3459.         // line 3333
  3460.         yield "        ";
  3461.         // line 3334
  3462.         yield "        ";
  3463.         // line 3335
  3464.         yield "        ";
  3465.         // line 3336
  3466.         yield "
  3467.         ";
  3468.         // line 3337
  3469.         if ((=== CoreExtension::compare((isset($context["system_type"]) || array_key_exists("system_type"$context) ? $context["system_type"] : (function () { throw new RuntimeError('Variable "system_type" does not exist.'3337$this->source); })()), "_BUDDYBEE_"))) {
  3470.             // line 3338
  3471.             yield "        var small_search_box = \$(\".searchbox\").selectize({
  3472.             valueField: \"url\",
  3473.             labelField: \"name\",
  3474.             searchField: \"name\",
  3475.             create: false,
  3476.             maxItems: 1,
  3477.             preload: 'focus',
  3478.             render: {
  3479.                 option: function (item, escape) {
  3480.                     return (
  3481.                         '<div style=\"padding: 10px;\">' +
  3482.                         '<span class=\"title\">' +
  3483.                         '<span class=\"name\" style=\"display:block;font-size: 18px;\">' +
  3484.                         //                        '<i class=\"icon ' +
  3485.                         //                        (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
  3486.                         //                        '\"></i>' +
  3487.                         //                        \"<div class='form-control mainDiv'>\" +
  3488.                         //                        '<span class=\"name\">' +
  3489.                         escape(item.name) +
  3490.                         \"</span>\" +
  3491.                         '<span class=\"description\" style=\"padding-top:2px; display: block\">' +
  3492.                         escape(item.description) +
  3493.                         \"</span>\" +
  3494.                         // '<span class=\"description\">' +
  3495.                         // escape(item.description) +
  3496.                         \"</span>\" +
  3497.                         \"</div>\"
  3498.                     );
  3499.                     // return (
  3500.                     //     \"<div>\" +
  3501.                     //     '<span class=\"title\">' +
  3502.                     //     '<span class=\"name\"><i class=\"icon ' +
  3503.                     //     (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
  3504.                     //     '\"></i>' +
  3505.                     //     escape(item.name) +
  3506.                     //     \"</span>\" +
  3507.                     //
  3508.                     //     \"</span>\" +
  3509.                     //     '<span class=\"description\">' +
  3510.                     //     escape(item.description) +
  3511.                     //     \"</span>\" +
  3512.                     //
  3513.                     //     \"</div>\"
  3514.                     // );
  3515.                 },
  3516.             },
  3517.             onChange: function (value) {
  3518.                 if (!value.length) return;
  3519.                 var sval = value
  3520.                 small_search_box.setValue([])
  3521.                 window.location.href = sval;
  3522.                 //addProductToListById(value);
  3523.                 // alert(value)
  3524.                 // small_search_box.clear()
  3525.                 // small_search_box.focus()
  3526.             },
  3527.             load: function (query, callback) {
  3528. //                if (!query.length) return callback();
  3529.                 \$.ajax({
  3530.                     url: \"";
  3531.             // line 3415
  3532.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("search_buddybee");
  3533.             yield "/\" + encodeURIComponent(query),
  3534.                     type: \"GET\",
  3535.                     error: function () {
  3536.                         callback();
  3537.                     },
  3538.                     success: function (res) {
  3539.                         //    console.log(res.data)
  3540.                         callback(res.data);
  3541.                     },
  3542.                 });
  3543.             },
  3544.         })[0].selectize;
  3545.         ";
  3546.         }
  3547.         // line 3428
  3548.         yield "
  3549.         \$('.selectize-control.searchbox .selectize-input.items input').addClass('trn')
  3550.         \$('.selectize-control.searchbox .selectize-input.items input').attr('data-trn-key', '_SMALL_SEARCH_PH_');
  3551.         _t = \$('body').translate({
  3552.             lang: \"en\",
  3553.             t: lang_pack
  3554.         });
  3555.         if (typeof (window.localStorage) !== \"undefined\")
  3556.             honeybeeLocale = window.localStorage.getItem('honeybeeLocale');
  3557. //    alert(honeybeeLocale)
  3558.         if (honeybeeLocale !== \"undefined\" && honeybeeLocale != 'null' && honeybeeLocale != null) {
  3559.             _t.lang(honeybeeLocale);
  3560.         } else {
  3561.             honeybeeLocale = 'en'
  3562.         }
  3563.         \$(\".locale_changer\").click(function (ev) {
  3564.             var lang = \$(this).attr(\"data-locale\");
  3565.             _t.lang(lang);
  3566.             honeybeeLocale = lang;
  3567.             \$(\".locale_changer\").removeClass('activeLocale')
  3568.             \$(this).addClass('activeLocale');
  3569.             \$(\".curr_locale_text\").text(\$(this).text());
  3570.             if (typeof (window.localStorage) !== \"undefined\")
  3571.                 honeybeeLocale = window.localStorage.setItem('honeybeeLocale', honeybeeLocale);
  3572. //            //    console.log(lang);
  3573.             ev.preventDefault();
  3574.         });
  3575.         ";
  3576.         // line 3463
  3577.         if ((=== CoreExtension::compare((isset($context["system_type"]) || array_key_exists("system_type"$context) ? $context["system_type"] : (function () { throw new RuntimeError('Variable "system_type" does not exist.'3463$this->source); })()), "_BUDDYBEE_"))) {
  3578.             // line 3464
  3579.             yield "        if (\$('#viewAsId').length) {
  3580.             \$('#viewAsId').selectize({
  3581.                 placeholder: 'Choose User',
  3582.                 multiple: false,
  3583. //            options: APTL.productListArray,
  3584.                 options: [],
  3585.                 valueField: 'value',
  3586.                 labelField: 'text',
  3587.                 searchField: ['text', 'value', 'phone', 'email', 'o_auth_email', 'firstname', 'lastname'],
  3588.                 preload: 'focus',
  3589.                 render: {
  3590.                     option: function (item, escape) {
  3591.                         return (
  3592.                             '<div style=\"padding: 2px; display:flex;\">' +
  3593.                             '<span class=\"title\" style=\"    min-width: 2rem;display: inline-block;\">' +
  3594.                             ((item.image != null && item.image != '') ? '<img style=\"border-radius: 50%;height: 2rem;width: 2rem;\" src=\"' + item.image + '\" alt=\"\" class=\"img-fluid\" >' :
  3595.                                 '<img style=\"border-radius: 50%;height: 2rem;width: 2rem;\" src=\"";
  3596.             // line 3482
  3597.             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);
  3598.             yield "buddybee_assets/images/consultant_image_ph_male.png\" alt=\"\" class=\"img-fluid\" >') +
  3599.                             \"</span>\" +
  3600.                             '<span class=\"name\" style=\"padding-left:0.5rem;font-size: 12px; display:inline-block;\">' +
  3601.                             //                        '<i class=\"icon ' +
  3602.                             //                        (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
  3603.                             //                        '\"></i>' +
  3604.                             //                        \"<div class='form-control mainDiv'>\" +
  3605.                             //                        '<span class=\"name\">' +
  3606.                             '#' + escape(item.applicant_id) + ' ' + escape(item.firstname) + ' ' + escape(item.lastname) + '<br> ' + escape(item.phone) + ' - ' + escape(item.o_auth_email) +
  3607.                             \"</span>\" +
  3608.                             // '<span class=\"description\">' +
  3609.                             // escape(item.description) +
  3610.                             //                    \"</span>\" +
  3611.                             \"</div>\"
  3612.                         );
  3613.                         // return (
  3614.                         //     \"<div>\" +
  3615.                         //     '<span class=\"title\">' +
  3616.                         //     '<span class=\"name\"><i class=\"icon ' +
  3617.                         //     (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
  3618.                         //     '\"></i>' +
  3619.                         //     escape(item.name) +
  3620.                         //     \"</span>\" +
  3621.                         //
  3622.                         //     \"</span>\" +
  3623.                         //     '<span class=\"description\">' +
  3624.                         //     escape(item.description) +
  3625.                         //     \"</span>\" +
  3626.                         //
  3627.                         //     \"</div>\"
  3628.                         // );
  3629.                     },
  3630.                 },
  3631.                 onChange: function (value) {
  3632.                     if (!value.length) return;
  3633.                     window.location.href = '";
  3634.             // line 3533
  3635.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("view_as_user_buddybee")), "html"nulltrue);
  3636.             yield "/' + value;
  3637.                     //addProductToListById(value);
  3638.                     // alert(value)
  3639.                     // small_search_box.clear()
  3640.                     // small_search_box.focus()
  3641.                 },
  3642.                 load: function (query, callback) {
  3643. //                        if (!query.length) return // callback();
  3644.                     if (!query.length) query = '_EMPTY_';
  3645.                     var pika_ind_id = \$(\$(this)[0].\$input[\"0\"]).attr('data-id')
  3646.                     \$.ajax({
  3647.                         url: BaseURL + \"select_data_ajax_public\",
  3648.                         type: 'POST',
  3649.                         dataType: 'json',
  3650.                         data: {
  3651.                             //returnJson: 1,
  3652.                             //sessionData: sessionData
  3653.                             query: query,
  3654.                             tableName: \"entity_applicant_details\",
  3655.                             valueField: \"applicant_id\",
  3656. //                        textField: \"topic_name\",
  3657.                             entity_group: 1,
  3658.                             selectorId: \$(\$(this)[0].\$input[\"0\"]).attr('id'),
  3659.                             isMultiple: 0,
  3660.                             dataId: pika_ind_id,
  3661. //                        isMultiple: 0,
  3662.                             textField: \"rendered_text\",
  3663. //
  3664.                             renderTextFormat: \" __firstname__  __lastname__\",
  3665.                             andOrConditions: [
  3666.                                 {type: \"like\", field: \"firstname\", value: query},
  3667.                                 {type: \"like\", field: \"lastname\", value: query},
  3668.                                 {type: \"like\", field: \"phone\", value: query},
  3669.                                 {type: \"like\", field: \"email\", value: query},
  3670.                                 {type: \"=\", field: \"applicant_id\", value: isNaN(query) ? '' : query}
  3671.                             ],
  3672.                             mustConditions: [
  3673.                                 ";
  3674.             // line 3579
  3675.             if ((<= CoreExtension::compare((isset($context["BUDDYBEE_ADMIN_LEVEL"]) || array_key_exists("BUDDYBEE_ADMIN_LEVEL"$context) ? $context["BUDDYBEE_ADMIN_LEVEL"] : (function () { throw new RuntimeError('Variable "BUDDYBEE_ADMIN_LEVEL" does not exist.'3579$this->source); })()), 5))) {
  3676.                 // line 3580
  3677.                 yield "
  3678.                                 ";
  3679.             } elseif ((<= CoreExtension::compare(            // line 3581
  3680. (isset($context["BUDDYBEE_ADMIN_LEVEL"]) || array_key_exists("BUDDYBEE_ADMIN_LEVEL"$context) ? $context["BUDDYBEE_ADMIN_LEVEL"] : (function () { throw new RuntimeError('Variable "BUDDYBEE_ADMIN_LEVEL" does not exist.'3581$this->source); })()), 1))) {
  3681.                 // line 3582
  3682.                 yield "                                {
  3683.                                     type: \"in\",
  3684.                                     field: \"is_admin\",
  3685.                                     value: [0, 'null']
  3686.                                 },
  3687.                                 {
  3688.                                     type: \"in\",
  3689.                                     field: \"assigned_sales_representative_id\",
  3690.                                     value: [0, 'null',";
  3691.                 // line 3590
  3692.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.'3590$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.'3590$this->source); })()), "USER_ID", [], "any"falsefalsefalse3590), [], "array"falsefalsefalse3590), "html"nulltrue);
  3693.                 yield "]
  3694.                                 },
  3695.                                 ";
  3696.             } else {
  3697.                 // line 3593
  3698.                 yield "
  3699.                                 ";
  3700.             }
  3701.             // line 3595
  3702.             yield "                                // {type: \"=\", field: \"is_consultant\", value: 1},
  3703.                                 ";
  3704.             // line 3598
  3705.             yield "//                            {type: \"!=\", field: \"applicant_id\", value: \$('#rescheduledStudentId').val()}
  3706.                                 ";
  3707.             // line 3600
  3708.             yield "                            ],
  3709.                             convertToObject: [
  3710. //                            'accessories', 'issues'
  3711.                             ],
  3712.                             skipDefaultCompanyId: 1
  3713.                             // setDataForSingle: 1,
  3714.                         },
  3715.                         error: function () {
  3716.                             // callback();
  3717.                         },
  3718.                         success: function (res) {
  3719. //                        preliminary_reg_data_by_id = res.dataById
  3720.                             callback(res.data);
  3721.                             if (res.setValueArray.length != 0 && res.selectorId != '') {
  3722.                                 if (res.isMultiple == 1)
  3723.                                     \$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
  3724.                                 else
  3725.                                     \$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
  3726.                             }
  3727. //                        alert('pika master')
  3728.                         }
  3729.                     });
  3730.                 },
  3731.             })[0].selectize;
  3732.         }
  3733.         \$('.recharge_submit').click(function (e) {
  3734.             e.preventDefault();
  3735.             \$('#rechargeForm').submit();
  3736.         });
  3737. //        alert('.locale_changer.'+honeybeeLocale)
  3738. //        alert(\$('.locale_changer.'+honeybeeLocale).text())
  3739.         \$(\".curr_locale_text\").text(\$('.locale_changer.' + honeybeeLocale).text());
  3740.         ";
  3741.         }
  3742.         // line 3640
  3743.         yield "
  3744.         \$('.add_basic_day_picker').not('.datepicker').bootstrapMaterialDatePicker({
  3745.             //format: 'dddd DD MMMM YYYY',
  3746.             format: 'MMMM DD, YYYY HH:mm',
  3747.             clearButton: true,
  3748.             weekStart: 6,
  3749.             time: true,
  3750.             switchOnClick: true,
  3751.             monthPicker: true
  3752.         });
  3753.     });
  3754. </script>
  3755. </html>
  3756. ";
  3757.         
  3758.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  3759.         
  3760.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  3761.         return; yield '';
  3762.     }
  3763.     /**
  3764.      * @codeCoverageIgnore
  3765.      */
  3766.     public function getTemplateName()
  3767.     {
  3768.         return "@Application/footer/buddybee_new_footer.html.twig";
  3769.     }
  3770.     /**
  3771.      * @codeCoverageIgnore
  3772.      */
  3773.     public function isTraitable()
  3774.     {
  3775.         return false;
  3776.     }
  3777.     /**
  3778.      * @codeCoverageIgnore
  3779.      */
  3780.     public function getDebugInfo()
  3781.     {
  3782.         return array (  4418 => 3640,  4376 => 3600,  4373 => 3598,  4369 => 3595,  4365 => 3593,  4359 => 3590,  4349 => 3582,  4347 => 3581,  4344 => 3580,  4342 => 3579,  4293 => 3533,  4239 => 3482,  4219 => 3464,  4217 => 3463,  4180 => 3428,  4164 => 3415,  4085 => 3338,  4083 => 3337,  4080 => 3336,  4078 => 3335,  4076 => 3334,  4074 => 3333,  4072 => 3332,  4070 => 3331,  4068 => 3330,  4066 => 3329,  4064 => 3328,  4062 => 3327,  4060 => 3326,  4058 => 3325,  4056 => 3324,  4054 => 3323,  4052 => 3322,  4050 => 3321,  4047 => 3319,  4045 => 3318,  4042 => 3316,  4039 => 3314,  4037 => 3313,  4034 => 3311,  4031 => 3309,  4029 => 3308,  4027 => 3307,  4025 => 3306,  4023 => 3305,  4021 => 3304,  4019 => 3303,  4017 => 3302,  4014 => 3300,  4012 => 3299,  4010 => 3298,  4008 => 3297,  4006 => 3296,  3957 => 3248,  3954 => 3247,  3951 => 3246,  3945 => 3243,  3933 => 3233,  3930 => 3232,  3927 => 3231,  3925 => 3230,  3922 => 3229,  3893 => 3201,  3890 => 3200,  3883 => 3195,  3880 => 3194,  3878 => 3193,  3876 => 3192,  3874 => 3191,  3841 => 3160,  3822 => 3144,  3809 => 3134,  3804 => 3131,  3802 => 3130,  3621 => 2951,  3616 => 2948,  3614 => 2947,  3610 => 2945,  3607 => 2944,  3603 => 2942,  3600 => 2941,  3598 => 2940,  3565 => 2909,  3562 => 2907,  3558 => 2905,  3515 => 2863,  3475 => 2825,  3471 => 2823,  3469 => 2822,  3463 => 2821,  3443 => 2805,  3440 => 2803,  3436 => 2801,  3399 => 2766,  3397 => 2765,  3394 => 2763,  3391 => 2762,  3388 => 2761,  3385 => 2760,  3382 => 2759,  3380 => 2758,  3377 => 2757,  3374 => 2756,  3372 => 2755,  3369 => 2754,  3366 => 2753,  3364 => 2752,  3362 => 2751,  3360 => 2750,  3356 => 2748,  3276 => 2670,  3273 => 2668,  3265 => 2661,  3262 => 2659,  3216 => 2615,  3189 => 2590,  3187 => 2589,  3026 => 2430,  3017 => 2423,  2999 => 2408,  2410 => 1821,  2408 => 1820,  2406 => 1819,  2390 => 1804,  2388 => 1803,  2386 => 1802,  2373 => 1790,  2371 => 1789,  2369 => 1788,  2290 => 1711,  2266 => 1689,  2264 => 1688,  2262 => 1687,  2260 => 1686,  2258 => 1685,  2256 => 1684,  2252 => 1681,  2250 => 1680,  2248 => 1679,  2246 => 1678,  2244 => 1677,  2187 => 1622,  2158 => 1595,  2156 => 1594,  2154 => 1593,  2152 => 1592,  2150 => 1591,  2148 => 1590,  2144 => 1587,  2142 => 1586,  2140 => 1585,  2138 => 1584,  2136 => 1583,  2018 => 1466,  1871 => 1321,  1865 => 1318,  1860 => 1317,  1857 => 1306,  1855 => 1305,  1852 => 1304,  1850 => 1303,  1674 => 1129,  1668 => 1127,  1662 => 1125,  1660 => 1124,  1618 => 1084,  1616 => 1083,  1601 => 1072,  1598 => 1071,  1595 => 1070,  1593 => 1069,  1552 => 1031,  1544 => 1026,  1540 => 1024,  1538 => 1023,  1533 => 1021,  1529 => 1020,  1525 => 1019,  1521 => 1018,  1515 => 1015,  1506 => 1008,  1504 => 1007,  1496 => 1002,  1491 => 1000,  1486 => 998,  1481 => 996,  1477 => 995,  1471 => 994,  1464 => 993,  1462 => 992,  1456 => 991,  1450 => 990,  1444 => 989,  1438 => 988,  1434 => 987,  1427 => 986,  1421 => 984,  1414 => 982,  1407 => 980,  1401 => 979,  1394 => 977,  1387 => 975,  1380 => 973,  1375 => 971,  1369 => 967,  1366 => 965,  1360 => 960,  1355 => 955,  1353 => 954,  1351 => 953,  1342 => 945,  1339 => 943,  1332 => 938,  1329 => 936,  1291 => 899,  1285 => 894,  1283 => 893,  1281 => 892,  1279 => 891,  1277 => 890,  1274 => 888,  1272 => 887,  1270 => 886,  1268 => 885,  1266 => 884,  1264 => 883,  1262 => 882,  1260 => 881,  1258 => 880,  1256 => 879,  1254 => 878,  1251 => 876,  1249 => 875,  1247 => 874,  1245 => 873,  1243 => 872,  1241 => 871,  1239 => 870,  1237 => 869,  1234 => 867,  1232 => 866,  1230 => 865,  1228 => 864,  1226 => 863,  1224 => 862,  1222 => 861,  1220 => 860,  1218 => 859,  1216 => 858,  1214 => 857,  1211 => 855,  1209 => 854,  1207 => 853,  1203 => 850,  1189 => 838,  1185 => 837,  1176 => 830,  1173 => 829,  1169 => 826,  1167 => 825,  1165 => 824,  1163 => 823,  1161 => 822,  1159 => 821,  1157 => 820,  1155 => 819,  1153 => 818,  1151 => 817,  1148 => 815,  1146 => 814,  1144 => 809,  1135 => 802,  1121 => 790,  1117 => 789,  1107 => 781,  1093 => 769,  1089 => 768,  1079 => 760,  1065 => 748,  1061 => 747,  1034 => 722,  1032 => 721,  1015 => 706,  1004 => 701,  1000 => 700,  990 => 693,  985 => 692,  981 => 691,  947 => 659,  938 => 655,  934 => 653,  920 => 643,  916 => 642,  908 => 637,  903 => 636,  899 => 635,  896 => 634,  893 => 633,  890 => 632,  888 => 631,  865 => 610,  863 => 609,  854 => 602,  839 => 588,  836 => 586,  831 => 582,  828 => 581,  825 => 580,  822 => 579,  800 => 559,  795 => 556,  776 => 539,  773 => 538,  755 => 522,  752 => 521,  734 => 505,  732 => 504,  728 => 502,  726 => 501,  725 => 500,  724 => 499,  720 => 497,  715 => 494,  699 => 480,  696 => 479,  683 => 468,  680 => 467,  668 => 457,  666 => 456,  663 => 455,  658 => 451,  655 => 449,  653 => 448,  647 => 444,  645 => 443,  643 => 442,  638 => 439,  636 => 438,  635 => 437,  634 => 436,  631 => 435,  626 => 432,  624 => 431,  615 => 424,  613 => 423,  610 => 422,  608 => 421,  605 => 420,  603 => 419,  600 => 418,  597 => 417,  595 => 416,  585 => 408,  573 => 397,  571 => 396,  569 => 395,  567 => 394,  559 => 388,  555 => 386,  551 => 385,  547 => 384,  543 => 383,  539 => 382,  534 => 381,  530 => 379,  526 => 378,  506 => 361,  495 => 353,  491 => 351,  489 => 350,  487 => 349,  427 => 291,  376 => 243,  328 => 198,  269 => 142,  251 => 126,  239 => 115,  237 => 114,  235 => 113,  230 => 110,  213 => 95,  211 => 94,  209 => 93,  207 => 92,  205 => 91,  203 => 90,  201 => 89,  199 => 88,  197 => 87,  195 => 86,  189 => 82,  181 => 76,  179 => 75,  177 => 74,  175 => 73,  173 => 72,  171 => 71,  169 => 70,  167 => 69,  165 => 68,  163 => 67,  157 => 63,  149 => 57,  147 => 56,  144 => 55,  135 => 47,  133 => 46,  131 => 45,  128 => 43,  126 => 42,  124 => 41,  122 => 40,  120 => 39,  118 => 38,  116 => 37,  114 => 36,  112 => 35,  110 => 34,  108 => 33,  106 => 32,  104 => 31,  102 => 30,  100 => 29,  92 => 23,  89 => 22,  87 => 21,  82 => 19,  79 => 18,  77 => 17,  75 => 16,  73 => 15,  70 => 14,  64 => 10,  62 => 9,  59 => 8,  56 => 7,  53 => 6,  50 => 5,  47 => 4,  44 => 3,);
  3783.     }
  3784.     public function getSourceContext()
  3785.     {
  3786.         return new Source("{# <script src=\"{{ asset('condensed_assets/javascript.js',) }}\"></script> #}
  3787. {# {{  dump( constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::NOTIFICATION_SERVER')) }}; #}
  3788.     {% if not include_html is defined %}
  3789.         {% set include_html=1 %}
  3790.         {% if  app.request.request.get('skipHTML') !='' %}
  3791.             {% set include_html= 0 %}
  3792.         {% endif %}
  3793.     {% endif %}
  3794. {% if include_html!=1 %}
  3795. {% endif %}
  3796. {% include '@Application/framework/_deeplinkmodal_css.html.twig' %}
  3797. {% set BUDDYBEE_ADMIN_LEVEL= session[UserConstants.BUDDYBEE_ADMIN_LEVEL] is defined? session[UserConstants.BUDDYBEE_ADMIN_LEVEL]:0 %}
  3798. {% include '@Application/modals/input_forms/verify_otp_modal.html.twig' %}
  3799. <script>
  3800.     var notificationDetailBaseUrl = '{{ url('buddybee_notification_view', {'id': 0}) }}';
  3801. </script>
  3802. {% if system_type=='_BUDDYBEE_' %}
  3803. <footer class=\"footer\">
  3804.     <a class=\"nav-link cta book_now_cta\" href=\"{{ url('consultant_search_page') }}\" style=\"text-transform: none;\"
  3805.     ><span class=\"trn\" data-trn-key=\"_BOOK_NOW_CTA_\" style=\"vertical-align: middle;padding: 2px 6px;
  3806.     display: inline-block;\"></span> <i class=\"fa fa-arrow-right\"></i></a>
  3807.     {#    <a class=\"nav-link cta twus\" style=\" #}
  3808.     {#    border: 2px solid #22b14c; #}
  3809.     {#    text-transform: capitalize; #}
  3810.     {#    color: #22b14c !important; #}
  3811.     {#    z-index: 9999999; #}
  3812.     {#    /*display: flex;*/ #}
  3813.     {#    flex-direction: row; #}
  3814.     {#    vertical-align: middle;\" href=\"{{ url('live_support_page_applicant') }}\" #}
  3815.     {#    ><span style=\"background: url('{{ absolute_url(path('dashboard')) }}buddybee_assets/images/video_call_icon.png'); #}
  3816.     {#                width: 30px; #}
  3817.     {#                height: 30px; #}
  3818.     {#                display: inline-block; #}
  3819.     {#                background-size: contain; #}
  3820.     {#                background-repeat: no-repeat; #}
  3821.     {#                background-position: center; #}
  3822.     {#                \"></span> <span class=\"trn\" data-trn-key=\"_TALK_WITH_US_CTA_\" style=\"vertical-align: middle;padding: 2px 6px; #}
  3823.     {#    display: block; #}
  3824.     {#    \"></span></a> #}
  3825.     <div class=\"modal  fade\" style=\"z-index: 99999;\" id=\"bookNowModal\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\"
  3826.          aria-hidden=\"true\">
  3827.         <div class=\"modal-dialog modal-dialog-centered\">
  3828.             <div class=\"modal-content\">
  3829.                 <div class=\"modal-header\" style=\"text-align: center;display: block;\">
  3830.                     <h5 class=\"modal-title\" id=\"exampleModalLabel\" style=\"text-align: center;\">Select your
  3831.                         Preference</h5>
  3832.                     {# <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button> #}
  3833.                 </div>
  3834.                 {% include '@Application/framework/_constypeselectorbtn_css.html.twig' %}
  3835.                 <div class=\"modal-body\">
  3836.                     <div class=\"row\">
  3837.                         <div class=\"col-md-12\" style=\"text-align: left;\">
  3838.                             <a class=\"consTypeSelectorBtn \" id=\"\"
  3839.                                href=\"{{ url('admin_consultant_search_page') }}\">
  3840.                                 <div class=\"\">
  3841.                                     <p style=\"margin: 0px;text-transform: none;\">
  3842.                                         {#                                                <span class=\"\" src=\"\" #}
  3843.                                         {#                                                      style=\"font-weight: normal; background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/bkash_logo.png); #}
  3844.                                         {#                                                              background-size: contain; #}
  3845.                                         {#                                                              background-repeat: no-repeat; #}
  3846.                                         {#                                                              background-position: left; #}
  3847.                                         {#                                                              width:3rem; #}
  3848.                                         {#                                                              height: 1rem; #}
  3849.                                         {#                                                              display: inline-block; #}
  3850.                                         {#                                                              margin: auto; #}
  3851.                                         {#                                                              vertical-align: middle;\"></span> #}
  3852.                                         Primary Consultancy</p>
  3853.                                 </div>
  3854.                             </a>
  3855.                             <a class=\"consTypeSelectorBtn \" id=\"\"
  3856.                                href=\"{{ url('consultant_search_page') }}\">
  3857.                                 <div class=\"\">
  3858.                                     <p style=\"margin: 0px;text-transform: none;\">
  3859.                                         {#                                                <span class=\"\" src=\"\" #}
  3860.                                         {#                                                      style=\"font-weight: normal; background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/bkash_logo.png); #}
  3861.                                         {#                                                              background-size: contain; #}
  3862.                                         {#                                                              background-repeat: no-repeat; #}
  3863.                                         {#                                                              background-position: left; #}
  3864.                                         {#                                                              width:3rem; #}
  3865.                                         {#                                                              height: 1rem; #}
  3866.                                         {#                                                              display: inline-block; #}
  3867.                                         {#                                                              margin: auto; #}
  3868.                                         {#                                                              vertical-align: middle;\"></span> #}
  3869.                                         Expert Consultancy</p>
  3870.                                 </div>
  3871.                             </a>
  3872.                         </div>
  3873.                     </div>
  3874.                 </div>
  3875.             </div>
  3876.         </div>
  3877.     </div>
  3878.     <form action=\"{{ path('recharge_account') }}\" method=\"post\" id=\"rechargeForm\">
  3879.         {# <button type=\"button\" class=\"btn btn-primary\" data-bs-toggle=\"modal\" data-bs-target=\"#reviewModal\"> #}
  3880.         {# Rate your Consultant #}
  3881.         {# </button> #}
  3882.         <!-- Modal -->
  3883.         <div class=\"modal fade\" id=\"rechargeAccountOwnModal\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\"
  3884.              aria-hidden=\"true\">
  3885.             <div class=\"modal-dialog modal-dialog-centered\">
  3886.                 <div class=\"modal-content\">
  3887.                     <div class=\"modal-header\" style=\"text-align: center;display: block;\">
  3888.                         <h5 class=\"modal-title\" id=\"exampleModalLabel\" style=\"text-align: center;\">Add Fund to Your
  3889.                             Account</h5>
  3890.                         {# <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button> #}
  3891.                     </div>
  3892.                     <div class=\"modal-body\">
  3893.                         <div class=\"row\">
  3894.                             <div class=\"col-md-12\" style=\"text-align: left;\">
  3895.                                 <div class=\"form-group\">
  3896.                                     <label for=\"\">Recharge Amount (Euro)</label>
  3897.                                     <input type=\"number\" class=\"form-control\" name=\"rechargeAmount\" id=\"rechargeAmount\">
  3898.                                 </div>
  3899.                                 <div class=\"form-group\">
  3900.                                     <label for=\"\">Bee Code</label>
  3901.                                     <input type=\"text\" class=\"form-control\" name=\"rechargeBeeCode\" id=\"rechargeBeeCode\"
  3902.                                            placeholder=\"if you have\" value=\"\">
  3903.                                     <input type=\"hidden\" class=\"form-control\" name=\"rechargeApplicantId\"
  3904.                                            id=\"rechargeApplicantId\" placeholder=\"if you have\"
  3905.                                            value=\"{{ session[UserConstants.USER_ID] is defined ?session[UserConstants.USER_ID]:0 }}\">
  3906.                                 </div>
  3907.                                 <br>
  3908.                                 <button type=\"button\" style=\"width: 48%;height: 3rem;\"
  3909.                                         class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Close
  3910.                                 </button>
  3911.                                 <button type=\"button\" style=\"width: 48%;height: 3rem;\"
  3912.                                         class=\"btn btn-primary recharge_submit\">Proceed
  3913.                                 </button>
  3914.                             </div>
  3915.                         </div>
  3916.                     </div>
  3917.                     <div class=\"modal-footer\">
  3918.                     </div>
  3919.                 </div>
  3920.             </div>
  3921.         </div>
  3922.     </form>
  3923.     <div class=\"modal fade \" style=\"z-index:9999999999999999999\" id=\"deepLinkModal\" tabindex=\"-1\"
  3924.          aria-labelledby=\"exampleModalLabel\"
  3925.          aria-hidden=\"true\" data-bs-backdrop=\"false\">
  3926.         <div class=\"modal-dialog modal-dialog-centered modal-xl\" style=\"
  3927.    /*position:fixed;*/
  3928.    align-items: end;
  3929.    margin-bottom: 0px;
  3930.    margin-left: 0px;
  3931.    margin-right: 0px;
  3932.    width: 100%;
  3933.    top:auto;
  3934.    right:auto;
  3935.    left:auto;
  3936.    bottom:0;\">
  3937.             <div class=\"modal-content\" style=\"    text-align: center;
  3938.     border-radius: 15px 15px 0 0;
  3939.     \">
  3940.                 <div class=\"modal-body\">
  3941.                     <h5 class=\"modal-title\" id=\"exampleModalLabel\" style=\"    text-align: center;
  3942.     font-size: 1rem;
  3943.     color: #616467;
  3944.     margin-bottom: 1rem;
  3945.     margin-top: .5rem;
  3946.     \">Explore BuddyBee with...</h5>
  3947.                     <div class=\"row deep_link_choice _AND_\" style=\"margin-bottom:10px;\">
  3948.                         <div class=\"col-md-8 col-sm-8\"
  3949.                              style=\"text-align: left; display: flex; justify-content: space-evenly;\">
  3950.                             <div style=\"background:url({{ absolute_url(path('dashboard')) }}buddybee_assets/android-icon-192x192.png);
  3951.                                     height: 40px;
  3952.                                     width: 40px;
  3953.                                     background-size: 100%;
  3954.                                     background-repeat: no-repeat;
  3955.                                     background-position: center;
  3956.                                     border-radius: 29%;
  3957.                                     display: inline-block;
  3958.                                     border: 1px solid #d7dbe1;\" class=\"cons_image_view\">
  3959.                             </div>
  3960.                             <div style=\"
  3961.                                         height: 40px;
  3962.                                         width: 200px;
  3963.                                         padding-top: 10px;;
  3964.                                         padding-left: 10px;;
  3965.                                         border-radius: 50%;display: inline-block\" class=\"\">
  3966.                                 <p>BuddyBee App</p>
  3967.                             </div>
  3968.                         </div>
  3969.                         <div class=\"col-md-4 col-sm-4\" style=\"text-align: left; padding-top: 5px;\">
  3970.                             <button type=\"button\" style=\"width: 100%;
  3971.     height: 33px;
  3972.         font-size: 12px;
  3973.     /*margin-top: 10px;    */
  3974. color: #ffffff;
  3975.     background-color: #1d5b9e;
  3976.                                     font-weight: bold;
  3977.                                     border: none;\"
  3978.                                     class=\"btn btn_deep_link_selector btn-primary\" data-deeplink-choice=\"_AND_\"
  3979.                                     data-bs-dismiss=\"modal\">Open
  3980.                             </button>
  3981.                         </div>
  3982.                     </div>
  3983.                     <div class=\"row deep_link_choice _IPHONE_\" style=\"margin-bottom:10px;\">
  3984.                         <div class=\"col-md-8 col-sm-8\"
  3985.                              style=\"text-align: left; display: flex; justify-content: space-evenly;\">
  3986.                             <div style=\"background:url({{ absolute_url(path('dashboard')) }}buddybee_assets/android-icon-192x192.png);
  3987.                                     height: 40px;
  3988.                                     width: 40px;
  3989.                                     background-size: 100%;
  3990.                                     background-repeat: no-repeat;
  3991.                                     background-position: center;
  3992.                                     border-radius: 29%;
  3993.                                     display: inline-block;
  3994.                                     border: 1px solid #d7dbe1;\" class=\"cons_image_view\">
  3995.                             </div>
  3996.                             <div style=\"
  3997.                                         height: 40px;
  3998.                                         width: 200px;
  3999.                                         padding-top: 10px;;
  4000.                                         padding-left: 10px;;
  4001.                                         border-radius: 50%;display: inline-block\" class=\"\">
  4002.                                 <p>BuddyBee App</p>
  4003.                             </div>
  4004.                         </div>
  4005.                         <div class=\"col-md-4 col-sm-4\" style=\"text-align: left; padding-top: 5px;\">
  4006.                             <button type=\"button\" style=\"width: 100%;
  4007.     height: 33px;
  4008.         font-size: 12px;
  4009.     /*margin-top: 10px;    */
  4010.     /*color: #261a0c;*/
  4011.                                     /*background-color: #fac53a;*/
  4012.                                     color: #ffffff;
  4013.     background-color: #1d5b9e;
  4014.                                     font-weight: bold;
  4015.                                     border: none;\"
  4016.                                     class=\"btn btn_deep_link_selector  btn-primary\" data-deeplink-choice=\"_IPHONE_\"
  4017.                                     data-bs-dismiss=\"modal\">Open
  4018.                             </button>
  4019.                         </div>
  4020.                     </div>
  4021.                     <div class=\"row deep_link_choice _BROWSER_\" style=\"margin-bottom:10px;\">
  4022.                         <div class=\"col-md-8 col-sm-8\"
  4023.                              style=\"text-align: left; display: flex; justify-content: space-evenly;\">
  4024.                             <div style=\"background:url({{ absolute_url(path('dashboard')) }}buddybee_assets/chrome_logo.png);
  4025.                                     height: 40px;
  4026.                                     width: 40px;
  4027.                                     background-size: 100%;
  4028.                                     background-repeat: no-repeat;
  4029.                                     background-position: center;
  4030.                                     border-radius: 29%;
  4031.                                     display: inline-block;
  4032.                                     border: none;\" class=\"cons_image_view\">
  4033.                             </div>
  4034.                             <div style=\"
  4035.                                         height: 40px;
  4036.                                         width: 200px;
  4037.                                         padding-top: 10px;;
  4038.                                         padding-left: 10px;;
  4039.                                         border-radius: 50%;display: inline-block\" class=\"\">
  4040.                                 <p>Browser</p>
  4041.                             </div>
  4042.                         </div>
  4043.                         <div class=\"col-md-4 col-sm-4\" style=\"text-align: left; padding-top: 5px;\">
  4044.                             <button type=\"button\" style=\"width: 100%;
  4045.     height: 33px;
  4046.     font-size: 12px;
  4047.     /*margin-top: 10px;*/
  4048.     color: #1d5b9e;
  4049.     /*color: #261a0c;*/
  4050.                                     background-color: #dddad3;
  4051.                                     font-weight: bold;
  4052.                                     border: none;\"
  4053.                                     class=\"btn btn_deep_link_selector btn-primary\" data-deeplink-choice=\"_BROWSER_\"
  4054.                                     data-bs-dismiss=\"modal\">Continue
  4055.                             </button>
  4056.                         </div>
  4057.                     </div>
  4058.                 </div>
  4059.             </div>
  4060.         </div>
  4061.     </div>
  4062.     <div class=\"download-app\">
  4063.         <div class=\"container\">
  4064.             <div class=\"row\">
  4065.                 <div class=\"col-md-8 my-auto\">
  4066.                     <div class=\"download-app-content\">
  4067.                         <span>BuddyBee on the go</span>
  4068.                         <p>Start or schedule consultants anytime, anywhere with Android and iPhone apps</p>
  4069.                         <div class=\"download-store\">
  4070.                             {# <a href=\"#\" target=\"_blank\"><img #}
  4071.                             {# src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/app-store.png\" #}
  4072.                             {# alt=\"app-store\"></a> #}
  4073.                             <a href=\"https://play.google.com/store/apps/details?id=eu.buddybee.consultancy\"
  4074.                                target=\"_blank\"><img
  4075.                                         src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/google-play.png\"
  4076.                                         alt=\"google-play\"></a>
  4077.                         </div>
  4078.                     </div>
  4079.                 </div>
  4080.                 <div class=\"col-md-4\">
  4081.                     <div class=\"download-app-img\">
  4082.                         <img src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/video-call.png\"
  4083.                              alt=\"video-call\">
  4084.                     </div>
  4085.                 </div>
  4086.             </div>
  4087.         </div>
  4088.     </div>
  4089.     <div class=\"container\">
  4090.         <div class=\"image\" style=\"text-align: center;\">
  4091.             <img src=\"https://buddybee.eu/buddybee_assets/images/aamarpay-footer.png\" alt=\"\" style=\"max-width: 50%;\">
  4092.         </div>
  4093.     </div>
  4094.     <div class=\"footer-menu\">
  4095.         <div class=\"container\">
  4096.             <div class=\"row\">
  4097.                 <div class=\"col-md-12\">
  4098.                     <ul class=\"d-flex justify-content-between m-0\">
  4099.                         <li><a href=\"#\">Copyright &copy;{{ 'now'|date('Y') }} BuddyBee</a></li>
  4100.                         <li><a href=\"#\">Powered by &copy;{{ 'now'|date('Y') }} HoneyBee IoT Ltd. </a></li>
  4101.                         {# <li><a href=\"#\">&copy;2021 Buddybee</a></li> #}
  4102.                         <li><a href=\"{{ url('contact_page') }}\">Contact</a></li>
  4103.                         <li><a href=\"{{ url('buddybee_terms_of_service') }}\">Terms of Service</a></li>
  4104.                         <li><a href=\"{{ url('buddybee_privacy_policy') }}\">Privacy Policy</a></li>
  4105.                         <li><a href=\"{{ url('buddybee_refund_policy') }}\">Refund Policy</a></li>
  4106.                         <li><a href=\"{{ url('buddybee_cancellation_policy') }}\">Cancellation Policy</a></li>
  4107.                         <li><a href=\"{{ url('help_page') }}\">Help</a></li>
  4108.                         {#                        <li><a href=\"{{ url('under_construction') }}\">Mission Statement</a></li> #}
  4109.                     </ul>
  4110.                 </div>
  4111.             </div>
  4112.         </div>
  4113.     </div>
  4114. </footer>
  4115. {% include '@Application/framework/_stepindicator_css.html.twig' %}
  4116. {% include '@Application/framework/_promptforinfomodal_css.html.twig' %}
  4117. {% include '@Application/framework/_selectpurchasemodal_css.html.twig' %}
  4118. <div class=\"modal fade\" id=\"promptForInfoModal\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\"
  4119.      aria-hidden=\"true\">
  4120.     <div class=\"modal-dialog modal-dialog-centered\">
  4121.         <div class=\"modal-content\">
  4122.             <div class=\"modal-header\" style=\"\">
  4123.                 <h6 class=\"modal-title\" id=\"exampleModalLabel\" style=\"text-align: left;\">
  4124.                     Please Fill up Your Info for Better Communication</h6>
  4125.                 <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\">
  4126.                     {# <span aria-hidden=\"true\">&times;</span> #}
  4127.                 </button>
  4128.             </div>
  4129.             <div class=\"modal-body\">
  4130.                 <div class=\"row\">
  4131.                     {% if session['triggerPromptInfoModalFlag'] is defined %}
  4132.                         {% if session['triggerPromptInfoModalFlag'] == 1 %}
  4133.                             {% if session['relevantRequiredPromptFields'] is defined %}
  4134.                                 {% set relevantRequiredPromptFields =session['relevantRequiredPromptFields']|jsonDecode() %}
  4135.                                 {% if not relevantRequiredPromptFields is empty %}
  4136.                                     <form id=\"promptForInfoModalForm\" action=\"#!\">
  4137.                                         <!-- start step indicators -->
  4138.                                         <div class=\"form-header d-flex mb-4\">
  4139.                                             {% if 'email' in relevantRequiredPromptFields  or 'phone' in relevantRequiredPromptFields or 'currentCountryId' in relevantRequiredPromptFields %}
  4140.                                                 <span class=\"stepIndicator\">Contact Info</span>
  4141.                                             {% endif %}
  4142.                                             {% if 'preferredTopicIdsAsConsultant' in relevantRequiredPromptFields
  4143.                                                 or 'preferredTopicIdsAsStudent' in relevantRequiredPromptFields
  4144.                                                 or 'preferredConsultancyTopicCountryIds' in relevantRequiredPromptFields %}
  4145.                                                 <span class=\"stepIndicator\">Preferences</span>
  4146.                                             {% endif %}
  4147.                                             {# <span class=\"stepIndicator\">Relevant Info</span> #}
  4148.                                             {# <span class=\"stepIndicator\">Preferences</span> #}
  4149.                                         </div>
  4150.                                         <!-- end step indicators -->
  4151.                                         <!-- step one -->
  4152.                                         {% if 'email' in relevantRequiredPromptFields  or 'phone' in relevantRequiredPromptFields or 'currentCountryId' in relevantRequiredPromptFields %}
  4153.                                             {# <span class=\"stepIndicator\">Contact Info</span> #}
  4154.                                             <div class=\"step\">
  4155.                                                 {# <p class=\"text-center mb-4\">Your Email Address</p> #}
  4156.                                                 {% if 'email' in relevantRequiredPromptFields %}
  4157.                                                     <div class=\"mb-3\">
  4158.                                                         <input type=\"email\" class=\"promptForInfoAutoUpdateData required\"
  4159.                                                                data-set-method=\"setOAuthEmail\"
  4160.                                                                data-field-type=\"_TEXT_\"
  4161.                                                                data-relevant-prompt-field=\"email\"
  4162.                                                                data-modify-trans-date=\"0\"
  4163.                                                                placeholder=\"Your Email\">
  4164.                                                     </div>
  4165.                                                 {% endif %}
  4166.                                                 {% if 'phone' in relevantRequiredPromptFields %}
  4167.                                                     <div class=\"mb-3\">
  4168.                                                         <input type=\"phone\" class=\"promptForInfoAutoUpdateData required\"
  4169.                                                                data-set-method=\"setPhone\"
  4170.                                                                data-field-type=\"_TEXT_\"
  4171.                                                                data-relevant-prompt-field=\"phone\"
  4172.                                                                data-modify-trans-date=\"0\"
  4173.                                                                placeholder=\"Your Phone No.\">
  4174.                                                     </div>
  4175.                                                 {% endif %}
  4176.                                                 {% if 'currentCountryId' in relevantRequiredPromptFields %}
  4177.                                                     <p class=\" mb-4\">Your Current Country</p>
  4178.                                                     <div class=\"mb-3\">
  4179.                                                         <select class=\"promptForInfoAutoUpdateData required\"
  4180.                                                                 data-set-method=\"setCurrentCountryId,setCountry\"
  4181.                                                                 data-field-type=\"_VALUE_\"
  4182.                                                                 data-relevant-prompt-field=\"currentCountryId\"
  4183.                                                                 data-modify-trans-date=\"0\"
  4184.                                                                 id=\"currentCountryIdPromptForInfo\"
  4185.                                                                 name=\"currentCountryIdPromptForInfo[]\">
  4186.                                                         </select>
  4187.                                                     </div>
  4188.                                                 {% endif %}
  4189.                                             </div>
  4190.                                         {% endif %}
  4191.                                         <!-- step two -->
  4192.                                         {% if 'preferredTopicIdsAsConsultant' in relevantRequiredPromptFields
  4193.                                             or 'preferredTopicIdsAsStudent' in relevantRequiredPromptFields
  4194.                                             or 'preferredConsultancyTopicCountryIds' in relevantRequiredPromptFields %}
  4195.                                             <div class=\"step\">
  4196.                                                 {% if  'preferredTopicIdsAsStudent' in relevantRequiredPromptFields %}
  4197.                                                     <p class=\" mb-4\">Your Preferred topics as Student</p>
  4198.                                                     <div class=\"mb-3\">
  4199.                                                         <select class=\" promptForInfoAutoUpdateData\"
  4200.                                                                 data-set-method=\"setPreferredTopicIdsAsStudent\"
  4201.                                                                 data-field-type=\"_JSON_\"
  4202.                                                                 data-relevant-prompt-field=\"preferredTopicIdsAsStudent\"
  4203.                                                                 data-modify-trans-date=\"0\"
  4204.                                                                 id=\"preferredTopicIdsAsStudentPromptForInfo\"
  4205.                                                                 name=\"preferredTopicIdsAsStudentPromptForInfo[]\"
  4206.                                                                 multiple>
  4207.                                                         </select>
  4208.                                                     </div>
  4209.                                                 {% endif %}
  4210.                                                 {% if 'preferredTopicIdsAsConsultant' in relevantRequiredPromptFields %}
  4211.                                                     <p class=\" mb-4\">Your Preferred topics as Consultant</p>
  4212.                                                     <div class=\"mb-3\">
  4213.                                                         <select class=\" promptForInfoAutoUpdateData\"
  4214.                                                                 data-set-method=\"setPreferredTopicIdsAsConsultant\"
  4215.                                                                 data-field-type=\"_JSON_\"
  4216.                                                                 data-relevant-prompt-field=\"preferredTopicIdsAsConsultant\"
  4217.                                                                 data-modify-trans-date=\"0\"
  4218.                                                                 id=\"preferredTopicIdsAsConsultantPromptForInfo\"
  4219.                                                                 name=\"preferredTopicIdsAsConsultantPromptForInfo[]\"
  4220.                                                                 multiple>
  4221.                                                         </select>
  4222.                                                     </div>
  4223.                                                 {% endif %}
  4224.                                                 {% if 'preferredConsultancyTopicCountryIds' in relevantRequiredPromptFields %}
  4225.                                                     <p class=\" mb-4\">Countries you wish to go</p>
  4226.                                                     <div class=\"mb-3\">
  4227.                                                         <select class=\" promptForInfoAutoUpdateData\"
  4228.                                                                 data-set-method=\"setPreferredConsultancyTopicCountryIds\"
  4229.                                                                 data-field-type=\"_JSON_\"
  4230.                                                                 data-relevant-prompt-field=\"preferredConsultancyTopicCountryIds\"
  4231.                                                                 data-modify-trans-date=\"0\"
  4232.                                                                 id=\"preferredConsultancyTopicCountryIdsPromptForInfo\"
  4233.                                                                 name=\"preferredConsultancyTopicCountryIdsPromptForInfo[]\"
  4234.                                                                 multiple>
  4235.                                                         </select>
  4236.                                                     </div>
  4237.                                                 {% endif %}
  4238.                                             </div>
  4239.                                         {% endif %}
  4240.                                         <!-- step three -->
  4241.                                         <!-- start previous / next buttons -->
  4242.                                         <div class=\"form-footer d-flex\">
  4243.                                             <button type=\"button\" class=\"prevBtn\" id=\"promptForInfo_prevBtn\"
  4244.                                                     onclick=\"promptInfo_nextPrev(-1)\">
  4245.                                                 Previous
  4246.                                             </button>
  4247.                                             <button type=\"button\" class=\"nextBtn\" id=\"promptForInfo_nextBtn\"
  4248.                                                     onclick=\"promptInfo_nextPrev(1)\">
  4249.                                                 Next
  4250.                                             </button>
  4251.                                         </div>
  4252.                                         <!-- end previous / next buttons -->
  4253.                                     </form>
  4254.                                 {% endif %}
  4255.                             {% endif %}
  4256.                         {% endif %}
  4257.                     {% endif %}
  4258.                 </div>
  4259.             </div>
  4260.             {# <div class=\"modal-footer\"> #}
  4261.             {# </div> #}
  4262.         </div>
  4263.     </div>
  4264. </div>
  4265. <div class=\"modal fade\" id=\"selectPurchaseModal\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\"
  4266.      aria-hidden=\"true\">
  4267.     <div class=\"modal-dialog modal-dialog-centered\">
  4268.         <div class=\"modal-content\">
  4269.             <div class=\"modal-header\" style=\"\">
  4270.                 <h6 class=\"modal-title\" id=\"exampleModalLabel\" style=\"text-align: left;\">
  4271.                     Get Consultation</h6>
  4272.                 <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\">
  4273.                     {# <span aria-hidden=\"true\">&times;</span> #}
  4274.                 </button>
  4275.             </div>
  4276.             <div class=\"modal-body\">
  4277.                 <div class=\"row\">
  4278.                     {% include '@Application/framework/_box_selector_css.html.twig' %}
  4279.                     <form id=\"selectPurchaseModalForm\" action=\"#\">
  4280.                         <!-- start step indicators -->
  4281.                         <div class=\"form-header d-flex mb-4\">
  4282.                             <span class=\"stepIndicator seq_0\" data-seq-id=\"0\">Select Country</span>
  4283.                             <span class=\"stepIndicator seq_1\" data-seq-id=\"1\">Select Topic</span>
  4284.                             <span class=\"stepIndicator seq_2\" data-seq-id=\"2\">Select Consultant</span>
  4285.                             <span class=\"stepIndicator seq_3\" data-seq-id=\"3\">Select Schedule</span>
  4286.                             <span class=\"stepIndicator seq_4\" data-seq-id=\"4\">Confirm</span>
  4287.                             <span class=\"stepIndicator seq_5\" data-seq-id=\"5\">Payment</span>
  4288.                         </div>
  4289.                         <div class=\"step seq_0 \">
  4290.                             <h5 class=\" \">Select a Country</h5>
  4291.                             <div class=\"row clearfix cn_holder\">
  4292.                                 {% if not countries_data is defined %}
  4293.                                     {% set countries_data=''|getCountriesBuddyBee %}
  4294.                                 {% endif %}
  4295.                                 {% for ind,cntry in countries_data %}
  4296.                                     <div class=\"box-selector cn_selector cn_{{ cntry.id }}  col-md-3 col-sm-6\"
  4297.                                          data-id=\"{{ cntry.id }}\"
  4298.                                          data-gen-class=\"cn_selector\"
  4299.                                     >
  4300.                                         <div class=\"inside\">
  4301.                                             <div class=\"img\" href=\"{{ url('dashboard') }}\" style=\"
  4302.                                                     background:url(' {{ absolute_url(path('dashboard')) }}{{ cntry.flagImage }}');
  4303.                                                     height: 50px !important;
  4304.                                                     width: 100%;
  4305.                                                     /* max-width: 30% !important; */
  4306.                                                     background-position: center;
  4307.                                                     background-size: contain;
  4308.                                                     background-repeat: no-repeat;
  4309.                                                     \">
  4310.                                             </div>
  4311.                                             <h6 class=\"title\" style=\"height: 2rem;\">{{ cntry.name }}</h6>
  4312.                                             {#                                            <p class=\"sub-title\">&nbsp;</p> #}
  4313.                                         </div>
  4314.                                     </div>
  4315.                                 {% endfor %}
  4316.                             </div>
  4317.                         </div>
  4318.                         <div class=\"step seq_1 \">
  4319.                             <h5 class=\" \">Select a Topic</h5>
  4320.                             <div class=\"row clearfix topic_holder\">
  4321.                             </div>
  4322.                         </div>
  4323.                         <div class=\"step seq_2\">
  4324.                             <h5 class=\" \">Select a Consultant</h5>
  4325.                             <div class=\"row clearfix cons_holder\">
  4326.                             </div>
  4327.                         </div>
  4328.                         <div class=\"step seq_3\">
  4329.                             <h5 class=\"view_if_has_schedules\">Select Month</h5>
  4330.                             <div class=\"row clearfix sch_holder_month view_if_has_schedules\"></div>
  4331.                             <h5 class=\"view_if_has_schedules\">Select Day</h5>
  4332.                             <div class=\"row clearfix sch_holder_day view_if_has_schedules\"></div>
  4333.                             <h5 class=\"view_if_has_schedules\">Select Time</h5>
  4334.                             <div class=\"row clearfix sch_holder_time view_if_has_schedules\"></div>
  4335.                             <p class=\"view_if_has_schedules\"> -------or------- </p>
  4336.                             <h5 class=\" \">Select Preferred Schedule (Upto 3)</h5>
  4337.                             <div class=\"row clearfix sch_holder\">
  4338.                                 {% for hh in 1..3 %}
  4339.                                     <div class=\"box-selector man_sch_selector man_sch_{{ hh }}  col-md-4 col-sm-6\"
  4340.                                          data-id=\"{{ hh }}\"
  4341.                                          data-gen-class=\"man_sch_selector\"
  4342.                                     >
  4343.                                         <div class=\"inside\">
  4344.                                         <textarea
  4345.                                                 class=\"add_basic_day_picker man_sch_selector_dp man_sch_selector_dp{{ hh }}  \"
  4346.                                                 data-id=\"{{ hh }}\" placeholder=\"Click to set Schedule\"
  4347.                                                 data-gen-class=\"man_sch_selector_dp\"></textarea>
  4348.                                         </div>
  4349.                                     </div>
  4350.                                 {% endfor %}
  4351.                             </div>
  4352.                         </div>
  4353.                         <div class=\"step seq_4\">
  4354.                             <h5 class=\" \">Your Purchase Summary</h5>
  4355.                             <div class=\"row clearfix summary_holder\">
  4356.                                 <p class=\"cntry_p\">Country : <span>Germany</span></p>
  4357.                                 <p class=\"topic_p\"> Name & Type: <span>Single Consultation</span></p>
  4358.                                 <p class=\"cons_p\">Consultant : <span>Ahmed Zahid Omar</span></p>
  4359.                                 <p class=\"coins_p\">Coins : <span class=\"routineCoinNeededTotalSpan\"></span></p>
  4360.                             </div>
  4361.                             {% include '@Application/framework/_selectpurchasemodal_2_css.html.twig' %}
  4362.                             <table class=\"table table-condensed table-striped routineTable\">
  4363.                                 <tbody></tbody>
  4364.                                 <tfoot>
  4365.                                 <tr>
  4366.                                     <td>Total Bee Coins Needed</td>
  4367.                                     <td style=\"text-align: left;\"><b class=\"routineCoinNeededTotalSpan\">0</b><br>
  4368.                                     </td>
  4369.                                     <td></td>
  4370.                                 </tr>
  4371.                                 </tfoot>
  4372.                             </table>
  4373.                         </div>
  4374.                         <div class=\"step seq_5\">
  4375.                             <h5 class=\" \">Direct Payment</h5>
  4376.                             <div class=\"row\">
  4377.                                 <div class=\"box-selector pm_selector pm_1  col-md-4 col-sm-6 paymentMethodSelectorBtn\"
  4378.                                      data-id=\"1\"
  4379.                                      data-gen-class=\"pm_selector\"
  4380.                                 >
  4381.                                     <div class=\"inside\">
  4382.                                         <div class=\"img\" href=\"{{ url('dashboard') }}\" style=\"
  4383.                                                 background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/stripe_logo.png);
  4384.                                                 height: 50px !important;
  4385.                                                 width: 100%;
  4386.                                                 /* max-width: 30% !important; */
  4387.                                                 background-position: center;
  4388.                                                 background-size: contain;
  4389.                                                 background-repeat: no-repeat;
  4390.                                                 \">
  4391.                                         </div>
  4392.                                         <h6 class=\"title\" style=\"height: 2rem;\">Stripe</h6>
  4393.                                         {#                                            <p class=\"sub-title\">&nbsp;</p> #}
  4394.                                     </div>
  4395.                                 </div>
  4396.                                 <div class=\"box-selector pm_selector pm_2  col-md-4 col-sm-6 paymentMethodSelectorBtn\"
  4397.                                      data-id=\"2\"
  4398.                                      data-gen-class=\"pm_selector\"
  4399.                                 >
  4400.                                     <div class=\"inside\">
  4401.                                         <div class=\"img\" href=\"{{ url('dashboard') }}\" style=\"
  4402.                                                 background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/bkash_logo.png);
  4403.                                                 height: 50px !important;
  4404.                                                 width: 100%;
  4405.                                                 /* max-width: 30% !important; */
  4406.                                                 background-position: center;
  4407.                                                 background-size: contain;
  4408.                                                 background-repeat: no-repeat;
  4409.                                                 \">
  4410.                                         </div>
  4411.                                         <h6 class=\"title\" style=\"height: 2rem;\">Bkash</h6>
  4412.                                         {#                                            <p class=\"sub-title\">&nbsp;</p> #}
  4413.                                     </div>
  4414.                                 </div>
  4415.                                 <div class=\"box-selector pm_selector pm_3  col-md-4 col-sm-6 paymentMethodSelectorBtn\"
  4416.                                      data-id=\"3\"
  4417.                                      data-gen-class=\"pm_selector\"
  4418.                                 >
  4419.                                     <div class=\"inside\">
  4420.                                         <div class=\"img\" href=\"{{ url('dashboard') }}\" style=\"
  4421.                                                 background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/aamarpay_logo.png);
  4422.                                                 height: 50px !important;
  4423.                                                 width: 100%;
  4424.                                                 /* max-width: 30% !important; */
  4425.                                                 background-position: center;
  4426.                                                 background-size: contain;
  4427.                                                 background-repeat: no-repeat;
  4428.                                                 \">
  4429.                                         </div>
  4430.                                         <h6 class=\"title\" style=\"height: 2rem;\">Card</h6>
  4431.                                         {#                                            <p class=\"sub-title\">&nbsp;</p> #}
  4432.                                     </div>
  4433.                                 </div>
  4434.                             </div>
  4435.                             <h5 class=\" \">Purchase Bee Card</h5>
  4436.                             <div class=\"row\">
  4437.                                 {% set encData={
  4438.                                 } %}
  4439.                                 {#                                {% set encData={ #}
  4440.                                 {#                                    \"rtlId\": retailerId is defined?retailerId:0 , #}
  4441.                                 {#                                    \"schTs\": scheduleId is defined?scheduleId:0 , #}
  4442.                                 {#                                    \"cnsId\":consultantDetails is defined and not consultantDetails is null ?consultantDetails.applicantId:0, #}
  4443.                                 {#                                    \"stdntId\": session[UserConstants.USER_ID] is defined ?session[UserConstants.USER_ID]:0 , #}
  4444.                                 {#                                    \"aams\": autoAssignMeetingSession is defined ?autoAssignMeetingSession:0  , #}
  4445.                                 {#                                    \"rpsc\": requiredPurchaseSessionCount is defined ?requiredPurchaseSessionCount:0, #}
  4446.                                 {#                                    \"scc\":sessionConsumeCount is defined?sessionConsumeCount:0, #}
  4447.                                 {#                                    \"tId\":topic is defined and not topic is null? topic.id:0, #}
  4448.                                 {#                                    \"dur\":sessionDuration is defined?sessionDuration:0, #}
  4449.                                 {#                                    \"sem\":topicSessionValue is defined? topicSessionValue:0 , #}
  4450.                                 {#                                } %} #}
  4451.                                 {% set link_data=url('purchase_bee_card_page',{ 'encData':(encData|json_encode) | nzo_encrypt  } ) %}
  4452.                                 <div class=\"box-selector pm_selector pm_4  col-md-4 col-sm-6 paymentMethodSelectorBtn\"
  4453.                                      data-id=\"4\"
  4454.                                      data-gen-class=\"pm_selector\"
  4455.                                 >
  4456.                                     <div class=\"inside\">
  4457.                                         <div class=\"img\" href=\"{{ url('dashboard') }}\" style=\"
  4458.                                                 background: url({{ absolute_url(path('dashboard')) }}buddybee_assets/ms-icon-310x310.png);
  4459.                                                 height: 50px !important;
  4460.                                                 width: 100%;
  4461.                                                 /* max-width: 30% !important; */
  4462.                                                 background-position: center;
  4463.                                                 background-size: contain;
  4464.                                                 background-repeat: no-repeat;
  4465.                                                 \">
  4466.                                         </div>
  4467.                                         <h6 class=\"title\" style=\"height: 2rem;\">Claim Bee Card</h6>
  4468.                                         {#                                            <p class=\"sub-title\">&nbsp;</p> #}
  4469.                                     </div>
  4470.                                 </div>
  4471.                                 {#                                <div class=\"box-selector pm_selector pm_5  col-md-4 col-sm-6 paymentMethodSelectorBtn\" #}
  4472.                                 {#                                     data-id=\"5\" #}
  4473.                                 {#                                     data-gen-class=\"pm_selector\" #}
  4474.                                 {#                                > #}
  4475.                                 {#                                    <div class=\"inside\"> #}
  4476.                                 {#                                        <div class=\"img\" href=\"{{ url('dashboard') }}\" style=\" #}
  4477.                                 {#                                                background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/bkash_logo.png); #}
  4478.                                 {#                                                height: 50px !important; #}
  4479.                                 {#                                                width: 100%; #}
  4480.                                 {#                                                /* max-width: 30% !important; */ #}
  4481.                                 {#                                                background-position: center; #}
  4482.                                 {#                                                background-size: contain; #}
  4483.                                 {#                                                background-repeat: no-repeat; #}
  4484.                                 {#                                                \"> #}
  4485.                                 {#                                        </div> #}
  4486.                                 {#                                        <h6 class=\"title\" style=\"height: 2rem;\">Bkash</h6> #}
  4487.                                 {#                                        #}{#                                            <p class=\"sub-title\">&nbsp;</p> #}
  4488.                                 {#                                    </div> #}
  4489.                                 {#                                </div> #}
  4490.                                 {#                                <div class=\"box-selector pm_selector pm_6  col-md-4 col-sm-6 paymentMethodSelectorBtn\" #}
  4491.                                 {#                                     data-id=\"6\" #}
  4492.                                 {#                                     data-gen-class=\"pm_selector\" #}
  4493.                                 {#                                > #}
  4494.                                 {#                                    <div class=\"inside\"> #}
  4495.                                 {#                                        <div class=\"img\" href=\"{{ url('dashboard') }}\" style=\" #}
  4496.                                 {#                                                background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/aamarpay_logo.png); #}
  4497.                                 {#                                                height: 50px !important; #}
  4498.                                 {#                                                width: 100%; #}
  4499.                                 {#                                                /* max-width: 30% !important; */ #}
  4500.                                 {#                                                background-position: center; #}
  4501.                                 {#                                                background-size: contain; #}
  4502.                                 {#                                                background-repeat: no-repeat; #}
  4503.                                 {#                                                \"> #}
  4504.                                 {#                                        </div> #}
  4505.                                 {#                                        <h6 class=\"title\" style=\"height: 2rem;\">Card</h6> #}
  4506.                                 {#                                        #}{#                                            <p class=\"sub-title\">&nbsp;</p> #}
  4507.                                 {#                                    </div> #}
  4508.                                 {#                                </div> #}
  4509.                             </div>
  4510. {#                            <h5 class=\" \">Others</h5>#}
  4511.                             <div class=\"row clearfix \">
  4512.                                 <div class=\"box-selector  col-md-12 col-sm-6\"
  4513.                                      data-id=\"promo\"
  4514.                                      data-gen-class=\"\">
  4515.                                     <div class=\"inside\">
  4516.                                         <h6 class=\"title\" style=\"height: 2rem;font-size: 14px;\">Promo Code</h6>
  4517.                                         <input class=\"form-control    \"
  4518.                                                data-id=\"promo\" placeholder=\"Promo Code\"
  4519.                                                data-gen-class=\"\">
  4520.                                         <h6 class=\"title\" style=\"height: 2rem;font-size: 14px;\">&nbsp;</h6>
  4521.                                     </div>
  4522.                                 </div>
  4523.                             </div>
  4524.                         </div>
  4525.                         <div class=\"form-footer d-flex\">
  4526.                             <button type=\"button\" class=\"prevBtn\" id=\"selectPurchaseModal_prevBtn\">
  4527.                                 Previous
  4528.                             </button>
  4529.                             <button type=\"button\" class=\"nextBtn\" id=\"selectPurchaseModal_nextBtn\">
  4530.                                 Next
  4531.                             </button>
  4532.                         </div>
  4533.                     </form>
  4534.                 </div>
  4535.             </div>
  4536.             {# <div class=\"modal-footer\"> #}
  4537.             {# </div> #}
  4538.         </div>
  4539.     </div>
  4540. </div>
  4541. {% endif %}
  4542. {# some over riding css for buttons and stuffs #}
  4543. <!-- back to top btn -->
  4544. <a id=\"back-top\"><i class=\"fas fa-chevron-up\"></i></a>
  4545. <!-- back to top btn -->
  4546. <!-- Option 1: Bootstrap Bundle with Popper -->
  4547. {# <script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js\" #}
  4548.         {#        integrity=\"sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4\" #}
  4549.         {#        crossorigin=\"anonymous\"> #}
  4550.         {# </script> #}
  4551. {# temp start #}
  4552. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js\"
  4553.         integrity=\"\"
  4554.         crossorigin=\"anonymous\"></script>
  4555. {# temp end #}
  4556. <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js\"></script>
  4557. {# <script src=\"https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js\" integrity=\"sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd\" crossorigin=\"anonymous\"></script> #}
  4558. <!-- jquery cdn -->
  4559. <script type=\"text/javascript\"
  4560.         src=\"https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.13.3/js/standalone/selectize.min.js\"></script>
  4561. <script type=\"text/javascript\" src=\"{{ absolute_url(path('dashboard')) }}jqueryui/jquery.form.js\"></script>
  4562. <!-- calender js -->
  4563. <script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/mini-event-calendar.min.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
  4564. <!-- countdown js -->
  4565. <script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/jquery.countdown.min.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
  4566. <!-- process circle js -->
  4567. <script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/progresscircle.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
  4568. <!-- custom js-->
  4569. <script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/main.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
  4570. <script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/imgProgress.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
  4571. <!-- owl carousel -->
  4572. <script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/owl.carousel.min.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
  4573. <!-- wow js -->
  4574. <script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/wow.min.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
  4575. {# <script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/AppOffcanvas.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script> #}
  4576. <script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/moment.min.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
  4577. <script type=\"text/javascript\" src=\"{{ absolute_url(path('dashboard')) }}alertify/lib/alertify.min.js\"></script>
  4578. <script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/plugin/bootstrap-material-datetimepicker/js/bootstrap-material-datetimepicker.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
  4579. <script src=\"{{ absolute_url(path('dashboard')) }}js/jquery.translate.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
  4580. <script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/bindWithDelay.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
  4581. <script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/generic.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
  4582. {% include '@Application/footer/activity_tracker_script.html.twig' %}
  4583. <script src=\"{{ absolute_url(path('dashboard')) }}js/language_pack.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
  4584. <script src=\"{{ absolute_url(path('dashboard')) }}condensed_assets/ifvisible.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
  4585. <link rel=\"stylesheet\" href=\"{{ absolute_url(path('dashboard')) }}js/adminbsb/plugins/sweetalert/sweetalert.css\">
  4586. <script src=\"{{ absolute_url(path('dashboard')) }}js/adminbsb/plugins/sweetalert/sweetalert.min.js\"></script>
  4587. <link rel=\"stylesheet\" href=\"{{ asset('css/cal_print.css') }}\" media=\"print\">
  4588. <script type=\"text/javascript\"
  4589.         src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/plugin/fullcalendar3/fullcalendar.min.js\"></script>
  4590. <script type=\"text/javascript\"
  4591.         src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/plugin/fullcalendar3/scheduler/scheduler.min.js\"></script>
  4592. <script type=\"text/javascript\"
  4593.         src=\"https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js\"></script>
  4594. {% include '@Application/framework/_btn_css.html.twig' %}
  4595. </body>
  4596. <script>
  4597.     var socketInitiated = 0;
  4598.     var offcanvasCalendarInitiated = 0;
  4599.     var offCalendarLastRefreshedTs = 0;
  4600.     var tb_pathToImage = \"{{ absolute_url(path('dashboard'))~'buddybee_assets/images/circle-pending-image.png' }}\";
  4601.     var buddybee_socket = '';
  4602.     var buddybee_socket_user_name = '{{ session[UserConstants.USER_NAME] is defined? session[UserConstants.USER_NAME]:'' }}';
  4603.     var buddybee_socket_user_id = 'BBEE_{{ session[UserConstants.USER_ID] is defined? session[UserConstants.USER_ID]:0 }}';
  4604.     var current_user_user_id = {{ session[UserConstants.USER_ID] is defined? session[UserConstants.USER_ID]:0 }};
  4605.     var buddybee_socket_user_session_token = '{{ session['token'] is defined? session['token']:'_GEN_' }}';
  4606.     {% set curr_route=app.request.attributes.get('_route') %}
  4607.     var CURRENT_ROUTE = '{{ curr_route }}';
  4608.     var deepLinkModalLastShown = window.localStorage.getItem('deepLinkModalLastShown');
  4609.     //    var deepLinkModalLastShown = 0;
  4610.     var currTsForDlM = {{ ''|date('U') }};
  4611.     if (deepLinkModalLastShown == 'null' || deepLinkModalLastShown == null) {
  4612.         deepLinkModalLastShown = 0
  4613.     }
  4614.     var upcomingMeetingDataForRedirect = window.localStorage.getItem('UNMData');
  4615.     var upcomingNextMeetingIdForRedirect = window.localStorage.getItem('UNMId');
  4616.     var upcomingNextMeetingTsForRedirect = window.localStorage.getItem('UNMTs');
  4617.     if (upcomingMeetingDataForRedirect == 'null' || upcomingMeetingDataForRedirect == null) {
  4618.         upcomingMeetingDataForRedirect = \"[]\"
  4619.     }
  4620.     if (upcomingNextMeetingIdForRedirect == 'null' || upcomingNextMeetingIdForRedirect == null) {
  4621.         upcomingNextMeetingIdForRedirect = 0
  4622.     }
  4623.     if (upcomingNextMeetingTsForRedirect == 'null' || upcomingNextMeetingTsForRedirect == null) {
  4624.         upcomingNextMeetingTsForRedirect = 0
  4625.     }
  4626.     upcomingMeetingDataForRedirect = JSON.parse(upcomingMeetingDataForRedirect);
  4627.     var deepLinkModal = new bootstrap.Modal(document.getElementById('deepLinkModal'), {
  4628.         keyboard: false
  4629.     });
  4630.     var bookNowModal = new bootstrap.Modal(document.getElementById('bookNowModal'), {
  4631.         keyboard: false
  4632.     });
  4633.     var promptForInfoModal = new bootstrap.Modal(document.getElementById('promptForInfoModal'), {
  4634.         keyboard: false
  4635.     });
  4636.     var selectPurchaseModal = new bootstrap.Modal(document.getElementById('selectPurchaseModal'), {
  4637.         keyboard: false
  4638.     });
  4639.     {% if not countries_data is defined %}
  4640.     {% set countries_data=''|getCountriesBuddyBee %}
  4641.     {% endif %}
  4642.     var countries_data ={{ countries_data|json_encode()|raw() }}
  4643.     var topic_data_by_id = {}
  4644.     var perSessionMinute = 20; // Current tab is set to be the first tab (0)
  4645.     var COIN_GENERAL_MULT = 100; // Current tab is set to be the first tab (0)
  4646.     var currentTab = 0; // Current tab is set to be the first tab (0)
  4647.     var currentTabSelectPurchaseModal = 0; // Current tab is set to be the first tab (0)
  4648.     var triggerRefreshUpcomingSession = 0; // Current tab is set to be the first tab (0)
  4649.     // promptInfo_showTab(currentTab); // Display the current tab
  4650.     {% if (session[UserConstants.USER_ID] is defined ) %}
  4651.     function refreshOffCanvasCalendar(force) {
  4652.         force = force || 0
  4653.         if (offcanvasCalendarInitiated == 0) {
  4654. //            alert('here')
  4655.             \$('#calendarHere').fullCalendar({
  4656. //            \$('#scheduleCalendar').fullCalendar({
  4657.                 schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
  4658.                 height: 554,
  4659. //            header: false,
  4660.                 header: {
  4661.                     left: 'today prev,next',
  4662.                     center: 'title',
  4663.                     right: 'timelineDay,timelineWeek,timelineMonth,timelineYear,month',
  4664.                 },
  4665.                 buttonText: {
  4666.                     month: 'calendar',
  4667.                     timelineMonth: 'month',
  4668.                 },
  4669.                 eventClick: function (calEvent, jsEvent, view) {
  4670.                     //    console.log(calEvent)
  4671.                     swal({
  4672.                         title: calEvent.title,
  4673.                         text: 'Meeting On ' + calEvent.topic_name + ' on ' + moment.unix(calEvent.scheduled_time_ts).format('MMM DD, YYYY HH:mm'),
  4674.                         type: \"info\",
  4675.                         showCancelButton: true,
  4676. //            confirmButtonColor: \"#DD6B55\",
  4677.                         confirmButtonText: \"View!\",
  4678.                         cancelButtonText: \"Exit\",
  4679.                         closeOnConfirm: false,
  4680.                         closeOnCancel: true,
  4681.                         timer: 10000,
  4682.                     }, function (isConfirm) {
  4683.                         if (isConfirm) {
  4684.                             {% if BUDDYBEE_ADMIN_LEVEL >=1 %}
  4685.                             window.location.href = '{{ path('consultancy_session') }}/' + calEvent.id + '?adminView=1'
  4686.                             {% else %}
  4687.                             window.location.href = '{{ path('consultancy_session') }}/' + calEvent.id + ''
  4688.                             {% endif %}
  4689.                             swal(\"Sweet!\", \"Taking you there. Please Wait\", \"success\");
  4690.                         } else {
  4691. //                        swal(\"Oops\", \"You cannot do that!\", \"error\");
  4692.                         }
  4693.                     });
  4694. //                alert('Event: ' + calEvent.title);
  4695. //                alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY);
  4696. //                alert('View: ' + view.name);
  4697. //
  4698. //                // change the border color just for fun
  4699. //                \$(this).css('border-color', 'red');
  4700.                 },
  4701. //            themeSystem:'jquery-ui',
  4702.                 editable: true,
  4703.                 eventStartEditable: true,
  4704.                 eventDurationEditable: true,
  4705.                 droppable: true,
  4706.                 slotDuration: '00:30:00',
  4707.                 defaultView: 'month',
  4708.                 eventRender: function (eventObj, \$el) {
  4709. //                \$('#example').popover(options)
  4710.                     \$el.popover({
  4711.                         title: eventObj.topic_name,
  4712.                         content: 'Meeting Between ' + eventObj.title + ' on ' + moment.unix(eventObj.scheduled_time_ts).format('MMM DD, YYYY HH:mm'),
  4713.                         trigger: 'hover',
  4714.                         placement: 'top',
  4715.                         container: 'body',
  4716.                         html: true,
  4717.                         template: '<div class=\"popover\" role=\"tooltip\">' +
  4718.                             '<div class=\"arrow\">' +
  4719.                             '</div' +
  4720.                             '><h3 class=\"popover-header\">' +
  4721.                             '</h3>' +
  4722.                             '<div class=\"popover-body\">' +
  4723.                             '</div>' +
  4724.                             '<button class=\"btn btn-success\">PIKA</button>' +
  4725.                             '</div>'
  4726.                     });
  4727.                 },
  4728. //            resourceAreaHeaderContent: 'Rooms',
  4729.                 resourceColumns: [
  4730.                     {
  4731.                         labelText: 'Schedule',
  4732.                         field: 'title'
  4733.                     }
  4734. //                {
  4735. //                    labelText: 'Occupancy',
  4736. //                    field: 'occupancy'
  4737. //                }
  4738.                 ],
  4739.                 resources: [],
  4740.                 views: {
  4741.                     basic: {
  4742.                         // options apply to basicWeek and basicDay views
  4743.                     },
  4744.                     agenda: {
  4745.                         slotDuration: '00:30:00',
  4746.                         // options apply to agendaWeek and agendaDay views
  4747.                     },
  4748.                     week: {
  4749.                         // options apply to basicWeek and agendaWeek views
  4750.                     },
  4751.                     day: {
  4752.                         // options apply to basicDay and agendaDay views
  4753.                     },
  4754.                     timelineWeek: {
  4755.                         groupByResource: true,
  4756.                         slotDuration: '00:30:00',
  4757.                         // options apply to basicDay and agendaDay views
  4758.                     }
  4759.                 },
  4760.                 drop: function (date, allDay) {
  4761.                     // this function is called when something is dropped
  4762.                     // retrieve the dropped element's stored Event Object
  4763.                     var originalEventObject = \$(this).data('eventObject');
  4764.                     // we need to copy it, so that multiple events don't have a reference to the same object
  4765.                     var copiedEventObject = \$.extend({}, originalEventObject);
  4766.                     // assign it the date that was reported
  4767.                     copiedEventObject.start = date;
  4768.                     copiedEventObject.allDay = allDay;
  4769.                     copiedEventObject.className = originalEventObject.className;
  4770.                     // render the event on the calendar
  4771.                     // the last `true` argument determines if the event \"sticks\" (http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/)
  4772.                     \$('#scheduleCalendar').fullCalendar('renderEvent', copiedEventObject, true);
  4773.                     // is the \"remove after drop\" checkbox checked?
  4774.                     if (\$('#drop-remove').is(':checked')) {
  4775.                         // if so, remove the element from the \"Draggable Events\" list
  4776.                         \$(this).remove();
  4777.                     }
  4778.                 },
  4779.                 events: [],
  4780.             });
  4781.             offcanvasCalendarInitiated = 1;
  4782.         }
  4783.         var currOpTs = moment().unix();
  4784.         if ((offCalendarLastRefreshedTs + 120) < currOpTs || force == 1) {
  4785.             var pika_ind_id = 'NNNAI';
  4786.             \$.ajax({
  4787.                 url: BaseURL + \"select_data_ajax_public\",
  4788.                 type: 'POST',
  4789.                 dataType: 'json',
  4790.                 data: {
  4791.                     //returnJson: 1,     //required for CORS
  4792.                     //sessionData: sessionData   //required only if using cordova for CORS
  4793.                     query: '_EMPTY_',
  4794.                     tableName: \"entity_meeting_session\",
  4795.                     entity_group: 1,
  4796.                     valueField: \"session_id\",
  4797.                     textField: \"meeting_room_id\",
  4798. //                selectFieldList:[   ///skip this property for all fields
  4799. //                    'client_name','client_id','address'
  4800. //
  4801. //                ],
  4802.                     selectorId: 7,
  4803.                     isMultiple: 1,
  4804.                     itemLimit: '_ALL_',  // for all : '_ALL_'
  4805.                     offset: 0,  // default value:0 (from start)
  4806.                     orderByConditions: [  //sequential
  4807. //                    {
  4808. //                        field: 'rating',
  4809. //                        fieldValues: [5,1,9],
  4810. //                        sortType:'ASC'
  4811. //                    },
  4812. //                    {
  4813. //                        field: 'is_featured',
  4814. //                        sortType:'DESC'
  4815. //                    },
  4816.                         {
  4817.                             field: 'scheduled_time_ts',
  4818.                             sortType: 'ASC'
  4819.                         }
  4820.                     ],
  4821.                     dataId: pika_ind_id,
  4822. //                        textField: \"rendered_text\",
  4823. //
  4824. //                        renderTextFormat: \"#__id__ __name__\",
  4825. //                        andConditions: [
  4826. //                            //{type: \"like\", field: \"name\", value: query},
  4827. //                            {type: \"=\", field: \"delivery_receipt_id\", value: \$('.dr_id' + pika_ind_id).val()},
  4828. //                            {type: \"=\", field: \"product_id\", value: \$('.selectize_me_ssp' + pika_ind_id).val()},
  4829. //                            {type: \"=\", field: \"position\", value: 3}
  4830. //                        ],
  4831.                     mustConditions: [
  4832.                         //{type: \"like\", field: \"name\", value: query},
  4833.                         //{type: \"=\", field: \"delivery_rceipt_id\", value: \$('.dr_id' + pika_ind_id).val()},
  4834.                         //{type: \"in\", field: \"alottment_tagged\", value: [0,'null','']},
  4835. //                            {type: \"<=\", field: \"scheduled_time_ts\", value: moment().add('60', 'days').unix()},
  4836.                         {type: \">=\", field: \"scheduled_time_ts\", value: moment().subtract('45', 'days').unix()},
  4837. //                    {type: \"=\", field: \"product_id\", value: \$('.ssp' + pika_ind_id).val()},
  4838. //                    {type: \"=\", field: \"warehouse_id\", value: \$('#warehouseId').val()},
  4839. //                    {type: \"=\", field: \"warehouse_action_id\", value: \$('.wa' + pika_ind_id).val()},
  4840. //                    {type: \"=\", field: \"position\", value: 1}
  4841.                     ],
  4842.                     andOrConditions: [
  4843.                         {% if BUDDYBEE_ADMIN_LEVEL>=5 %}
  4844.                         {% elseif BUDDYBEE_ADMIN_LEVEL >=1 %}
  4845.                         {# { #}
  4846.                         {# type: \"in\", #}
  4847.                         {# field: \"is_admin\", #}
  4848.                         {# value: [0, 'null'] #}
  4849.                         {# }, #}
  4850.                         {# { #}
  4851.                         {# type: \"in\", #}
  4852.                         {# field: \"assigned_sales_representative_id\", #}
  4853.                         {# value: [0, 'null',{{ session[UserConstants.USER_ID] }}] #}
  4854.                         {# }, #}
  4855.                         {% else %}
  4856.                         {type: \"=\", field: \"student_id\", value: {{ session[UserConstants.USER_ID] }}},
  4857.                         {type: \"=\", field: \"consultant_id\", value: {{ session[UserConstants.USER_ID] }}},
  4858.                         {% endif %}
  4859. //                    {type: \"like\", field: \"client_numerical_code\", value: query},
  4860. //                    {type: \"like\", field: \"client_name\", value: query},
  4861. //                    {type: \"like\", field: \"client_id\", value: query},
  4862. //                    {type: \"like\", field: \"contact_number\", value: query},
  4863. //                    {type: \"like\", field: \"email\", value: query},
  4864.                     ],
  4865.                     joinTableData: [
  4866.                         {
  4867.                             tableName: \"entity_applicant_details\",
  4868.                             joinFieldPrimary: \"student_id\",
  4869.                             joinOn: 'applicant_id',
  4870.                             selectPrefix: 'student_',
  4871.                             selectFieldList: [
  4872.                                 'firstname', 'lastname', 'image', 'professional_title'
  4873.                             ]
  4874.                         },
  4875.                         {
  4876.                             tableName: \"entity_create_topic\",
  4877.                             joinFieldPrimary: \"topic_id\",
  4878.                             joinOn: 'id',
  4879.                             selectPrefix: 'topic_',
  4880.                             selectFieldList: [
  4881.                                 'topic_name',
  4882.                             ]
  4883.                         },
  4884.                         {
  4885.                             tableName: \"entity_applicant_details\",
  4886.                             joinFieldPrimary: \"consultant_id\",
  4887.                             joinOn: 'applicant_id',
  4888.                             selectPrefix: 'consultant_',
  4889.                             selectFieldList: [
  4890.                                 'firstname', 'lastname', 'image', 'professional_title', 'current_country_id'
  4891.                             ]
  4892.                         },
  4893.                     ],
  4894.                     convertDateToStringFieldList: [
  4895.                         {field: 'created_at', format: 'U'}
  4896.                     ],
  4897.                     convertToObject: [
  4898. //                    'carton_product_by_code_ids','another'
  4899.                     ],
  4900.                     // setDataForSingle: 1,
  4901.                 },
  4902.                 error: function () {
  4903.                     // callback();
  4904.                 },
  4905.                 success: function (res) {
  4906.                     offCalendarLastRefreshedTs = moment().unix()
  4907. //                callback(res.data);
  4908.                     var str = '';
  4909.                     var currUnix = moment().unix();
  4910.                     var added_cntry_id = [];
  4911.                     var added_event_id = [];
  4912.                     \$('#calendarHere').fullCalendar('addResource', {
  4913.                         id: 'cntry__OTHER_COUNTRIES_',
  4914. //                    parentId: 'a',
  4915.                         title: 'Others'
  4916.                     });
  4917.                     for (var t = 0; t < res.data.length; t++) {
  4918.                         var c_data = res.data[t];
  4919.                         if (c_data.consultant_current_country_id == '' || c_data.consultant_current_country_id == 0 || c_data.consultant_current_country_id == null)
  4920.                             c_data.consultant_current_country_id = '_OTHER_COUNTRIES_';
  4921. //                        //    console.log('added_cntry_id')
  4922. //                        //    console.log(added_cntry_id)
  4923.                         if (added_cntry_id.indexOf(c_data.consultant_current_country_id) != -1) {
  4924.                         } else {
  4925.                             \$('#calendarHere').fullCalendar('addResource', {
  4926.                                 id: 'cntry_' + c_data.consultant_current_country_id,
  4927. //                            parentId: 'a',
  4928.                                 title: typeof countries_data[c_data.consultant_current_country_id] !== 'undefined' ? countries_data[c_data.consultant_current_country_id]['name'] : ''
  4929.                             });
  4930.                             added_cntry_id.push(c_data.consultant_current_country_id)
  4931.                         }
  4932.                         if (added_event_id.indexOf(c_data.consultant_id + '_' + c_data.student_id) != -1) {
  4933.                         } else {
  4934.                             \$('#calendarHere').fullCalendar('addResource', {
  4935.                                 id: 'r_' + c_data.consultant_id + '_' + c_data.student_id,
  4936.                                 parentId: 'cntry_' + c_data.consultant_current_country_id,
  4937.                                 title: c_data.consultant_firstname + ' -- ' + c_data.student_firstname
  4938.                             });
  4939.                             added_event_id.push(c_data.consultant_id + '_' + c_data.student_id)
  4940.                         }
  4941.                         var eventColor = 'darkgreen';
  4942.                         var textColor = '#fff';
  4943.                         var endTimeMoment = moment.unix(c_data.scheduled_time_ts).add(c_data.duration_left_min, 'minutes');
  4944.                         if (currUnix < c_data.scheduled_time_ts) {
  4945.                             //upcoming
  4946.                             if (c_data.is_paid_full == 1)
  4947.                                 eventColor = '#fb7400';
  4948.                             else
  4949.                                 eventColor = '#d586a3';
  4950. //                        textColor='#212529';
  4951.                         } else if (currUnix < endTimeMoment.unix())
  4952.                             eventColor = '#1d5b9e';  //ongoing
  4953.                         else
  4954.                             eventColor = 'darkgreen';  //completed
  4955.                         var eventObj2 = {
  4956.                             id: c_data.session_id,
  4957.                             color: eventColor,
  4958.                             textColor: textColor,
  4959.                             resourceId: 'r_' + c_data.consultant_id + '_' + c_data.student_id,
  4960.                             title: c_data.consultant_firstname + ' -- ' + c_data.student_firstname,
  4961.                             consultant_id: c_data.consultant_id,
  4962.                             student_id: c_data.student_id,
  4963.                             meeting_room_id: c_data.meeting_room_id,
  4964.                             scheduled_time_ts: c_data.scheduled_time_ts,
  4965.                             topic_id: c_data.topic_id,
  4966.                             topic_name: c_data.topic_topic_name,
  4967.                             session_value: c_data.session_value,
  4968.                             consultant_firstname: c_data.consultant_firstname,
  4969.                             consultant_lastname: c_data.consultant_lastname,
  4970.                             student_firstname: c_data.student_firstname,
  4971.                             student_lastname: c_data.student_lastname,
  4972.                             start: moment.unix(c_data.scheduled_time_ts).add(0, 'days'),
  4973.                             end: endTimeMoment,
  4974.                             allDay: false
  4975.                         };
  4976. //                    eventArray.push(eventObj2)
  4977.                         \$('#calendarHere').fullCalendar('renderEvent', eventObj2, true);
  4978.                     }
  4979.                 }
  4980.             });
  4981.         }
  4982.     }
  4983.     {% endif %}
  4984.     function stepShowTab(n, parentSelector) {
  4985.         // alert('here')
  4986.         // This function will display the specified tab of the form...
  4987.         parentSelector = parentSelector || '#selectPurchaseModal'
  4988.         var prevN = -1;
  4989.         \$(parentSelector + ' .stepIndicator.active').each(function (gg, elem) {
  4990.             prevN = 1 * \$(elem).data('seqId');
  4991.         });
  4992.         var newN = 0;
  4993.         if (n === '+1') {
  4994.             newN = (1 * prevN) + 1;
  4995.         } else if (n === '-1') {
  4996.             newN = (1 * prevN) - 1;
  4997.         } else
  4998.             newN = n;
  4999.         if (!\$(parentSelector + ' .stepIndicator.seq_' + newN).length)
  5000.             newN = (1 * prevN);
  5001.         if (!\$(parentSelector + ' .stepIndicator.seq_' + (newN + 1)).length)
  5002.             \$(parentSelector + \" .nextBtn\").text('Confirm');
  5003.         else
  5004.             \$(parentSelector + \" .nextBtn\").text('Next');
  5005.         if (!\$(parentSelector + ' .stepIndicator.seq_' + (newN - 1)).length)
  5006.             \$(parentSelector + \" .prevBtn\").hide();
  5007.         else
  5008.             \$(parentSelector + \" .prevBtn\").show();
  5009.         // alert(prevN)
  5010.         // alert(newN)
  5011.         // alert(\$(parentSelector+' .stepIndicator.seq_'+(newN+1)).length)
  5012.         if (prevN == newN) {
  5013.             \$(parentSelector).modal('hide')
  5014.             return false;
  5015.         }
  5016.         \$(parentSelector + ' .stepIndicator').removeClass('active')
  5017.         \$(parentSelector + ' .step').hide()
  5018.         \$(parentSelector + '  .step.seq_' + newN).show()
  5019.         for (var gg = 0; gg <= newN; gg++)
  5020.             \$(parentSelector + '  .stepIndicator.seq_' + gg).addClass('active')
  5021.         var triggerFunc = \$(parentSelector + '  .step.seq_' + newN).attr('data-trigger-function');
  5022.         if (typeof triggerFunc !== 'undefined' && triggerFunc !== false) {
  5023.             window[triggerFunc]();
  5024.         }
  5025.     }
  5026.     function selectDataOnPurchaseModal(cntry_id, t_id, cons_id, sch_ids, additional_coins) {
  5027.         options = {
  5028.             countryId: 0,
  5029.             topicId: 0,
  5030.             consultantId: 0,
  5031.             scheduleIds: [],
  5032.         }
  5033.     }
  5034.     function submitPurchaseModalData() {
  5035.         var data = {}
  5036.     }
  5037.     function populateTopicListOnPurchaseModal(countryId, query) {
  5038.         var pika_ind_id = \"_NA_\";
  5039.         \$('#selectPurchaseModal .topic_holder').empty();
  5040.         \$.ajax({
  5041.             url: BaseURL + \"select_data_ajax_public\",
  5042.             type: 'POST',
  5043.             dataType: 'json',
  5044.             data: {
  5045.                 //returnJson: 1,
  5046.                 //sessionData: sessionData
  5047.                 query: query,
  5048.                 tableName: \"entity_create_topic\",
  5049.                 valueField: \"id\",
  5050.                 textField: \"topic_name\",
  5051.                 entity_group: 1,
  5052.                 selectorId: '_NA_',
  5053.                 isMultiple: 0,
  5054.                 dataId: pika_ind_id,
  5055. //                        isMultiple: 0,
  5056.                 //textField: \"rendered_text\",
  5057. //
  5058.                 //renderTextFormat: \"#__id__ __name__\",
  5059.                 andConditions: [],
  5060.                 andOrConditions: [],
  5061.                 mustConditions: [
  5062.                     {type: \"=\", field: \"consultancy_enabled\", value: 1},
  5063.                     {type: \"=\", field: \"country_id\", value: countryId},
  5064.                     {#                    {% if not curr_data is empty %} #}
  5065.                     {#                    {type: \"in\", field: \"id\", value: {{ curr_data|json_encode|raw() }} }, #}
  5066.                     {#                    {% else %} #}
  5067.                     {#                    {% if consultantDetails.isAdmin>0 %} #}
  5068.                     {#                    {type: \"like\", field: \"topic_marker\", value: '_support_ _report_to_admin_'}, #}
  5069.                     {#                    {% else %} #}
  5070.                     {#                    {type: \"!=\", field: \"only_bookable_by_admin\", value: '1'}, #}
  5071.                     {#                    {type: \"not like\", field: \"topic_marker\", value: '_support_'}, #}
  5072.                     {#                    {type: \"not like\", field: \"topic_marker\", value: '_report_to_admin_'}, #}
  5073.                     {#                    {% endif %} #}
  5074.                     {#                    {% endif %} #}
  5075.                 ],
  5076.                 convertToObject: [
  5077.                     'routine_data'
  5078.                 ],
  5079.                 skipDefaultCompanyId: 1
  5080.                 // setDataForSingle: 1,
  5081.             },
  5082.             error: function () {
  5083.                 // callback();
  5084.             },
  5085.             success: function (res) {
  5086.                 topic_data_by_id = res.dataById
  5087.                 for (var jj = 0; jj < res.data.length; jj++) {
  5088.                     var dt = res.data[jj];
  5089.                     var is_package = 0;
  5090.                     if (dt['topic_marker'] != null)
  5091.                         if (dt['topic_marker'].indexOf('_package_') !== -1)
  5092.                             is_package = 1;
  5093.                     var ggStr = ' <div class=\"box-selector tp_selector tp_' + dt['id'] + '  col-md-3 col-sm-6\"' +
  5094.                         ' data-id=\"' + dt['id'] + '\" ' +
  5095.                         ' data-gen-class=\"tp_selector\" ' +
  5096.                         '>' +
  5097.                         '<div class=\"inside\">' +
  5098.                         ' <div class=\"img\"  style=\"' +
  5099.                         \"background:url(' {{ absolute_url(path('dashboard')) }}\" + dt['topic_image'] + \"');\" +
  5100.                         ' height: 50px !important;width: 100%;background-position: center;background-size: contain;background-repeat: no-repeat;\"></div>' +
  5101.                         '<h6 class=\"title\" style=\"height: 3rem; font-size:12px\">' + dt['topic_name'] + '</h6> ' +
  5102.                         // '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
  5103.                         '<p class=\"sub-title\" style=\"text-align:center;\">' + (is_package == 1 ? 'Package' : (dt['meeting_type'] == 2 ? 'Offline Process' : 'Online Session')) + '</p>' +
  5104.                         // '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
  5105.                         '</div></div>';
  5106.                     \$('#selectPurchaseModal .topic_holder').append(ggStr);
  5107.                 }
  5108.             }
  5109.         });
  5110.     }
  5111.     function populateConsultantListOnPurchaseModal(tpId, query) {
  5112.         var pika_ind_id = \"_NA_\";
  5113.         \$('#selectPurchaseModal .cons_holder').empty();
  5114.         \$.ajax({
  5115.             url: BaseURL + \"select_data_ajax_public\",
  5116.             type: 'POST',
  5117.             dataType: 'json',
  5118.             data: {
  5119.                 //returnJson: 1,
  5120.                 //sessionData: sessionData
  5121.                 query: query,
  5122.                 tableName: \"entity_applicant_details\",
  5123.                 valueField: \"applicant_id\",
  5124.                 textField: \"firstname\",
  5125.                 entity_group: 1,
  5126.                 selectorId: '_NA_',
  5127.                 isMultiple: 0,
  5128.                 dataId: pika_ind_id,
  5129. //                        isMultiple: 0,
  5130.                 //textField: \"rendered_text\",
  5131. //
  5132.                 //renderTextFormat: \"#__id__ __name__\",
  5133.                 andConditions: [],
  5134.                 andOrConditions: [
  5135.                     {type: \"like\", field: \"preferred_topic_ids_as_consultant\", value: '\"' + tpId + '\"'},
  5136.                     {type: \"like\", field: \"preferred_topic_ids_as_consultant\", value: '[]'},
  5137.                     // {type: \"like\", field: \"preferred_topic_ids_as_consultant\", value: ''},
  5138.                     // {type: \"like\", field: \"preferred_topic_ids_as_consultant\", value: 'null'},
  5139.                     {type: \"=\", field: \"preferred_topic_ids_as_consultant\", value: 'null'},
  5140.                 ],
  5141.                 mustConditions: [
  5142.                     {type: \"=\", field: \"is_consultant\", value: 1},
  5143.                     {#                    {% if not curr_data is empty %} #}
  5144.                     {#                    {type: \"in\", field: \"id\", value: {{ curr_data|json_encode|raw() }} }, #}
  5145.                     {#                    {% else %} #}
  5146.                     {#                    {% if consultantDetails.isAdmin>0 %} #}
  5147.                     {#                    {type: \"like\", field: \"topic_marker\", value: '_support_ _report_to_admin_'}, #}
  5148.                     {#                    {% else %} #}
  5149.                     {#                    {type: \"!=\", field: \"only_bookable_by_admin\", value: '1'}, #}
  5150.                     {#                    {type: \"not like\", field: \"topic_marker\", value: '_support_'}, #}
  5151.                     {#                    {type: \"not like\", field: \"topic_marker\", value: '_report_to_admin_'}, #}
  5152.                     {#                    {% endif %} #}
  5153.                     {#                    {% endif %} #}
  5154.                 ],
  5155.                 convertToObject: [
  5156.                     'routine_data'
  5157.                 ],
  5158.                 skipDefaultCompanyId: 1
  5159.                 // setDataForSingle: 1,
  5160.             },
  5161.             error: function () {
  5162.                 // callback();
  5163.             },
  5164.             success: function (res) {
  5165.                 // topic_data_by_id = res.dataById
  5166.                 for (var jj = 0; jj < res.data.length; jj++) {
  5167.                     var dt = res.data[jj];
  5168.                     var ggStr = ' <div class=\"box-selector cons_selector cons_' + dt['id'] + '  col-md-3 col-sm-6\"' +
  5169.                         ' data-id=\"' + dt['applicant_id'] + '\" ' +
  5170.                         ' data-gen-class=\"cons_selector\" ' +
  5171.                         '>' +
  5172.                         '<div class=\"inside\">' +
  5173.                         ' <div class=\"img\"  style=\"' +
  5174.                         \"background:url(' {{ absolute_url(path('dashboard')) }}\" + dt['image'] + \"');\" +
  5175.                         ' height: 50px !important;width: 100%;background-position: center;background-size: contain;background-repeat: no-repeat;\"></div>' +
  5176.                         '<h6 class=\"title\" style=\"height: 2rem; font-size:12px\">' + dt['firstname'] + ' ' + dt['lastname'] + '</h6> ' +
  5177.                         // '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
  5178.                         '</div></div>';
  5179.                     \$('#selectPurchaseModal .cons_holder').append(ggStr);
  5180.                 }
  5181. //                        alert('pika master')
  5182.             }
  5183.         });
  5184.     }
  5185.     function populateScheduleListOnPurchaseModal(consId, durValue, query) {
  5186.         var pika_ind_id = \"_NA_\";
  5187.         // \$('#selectPurchaseModal .sch_holder').empty();
  5188.         \$('#selectPurchaseModal .sch_holder_month').empty();
  5189.         \$('#selectPurchaseModal .sch_holder_day').empty();
  5190.         \$('#selectPurchaseModal .sch_holder_time').empty();
  5191.         durValue = durValue || 30;
  5192.         var options = {
  5193.             '_NEXT_60_DAYS_': 1,
  5194. //                        '_THIS_DAY_':1,
  5195. //                        '_NEXT_DAYS_':20,
  5196.         }
  5197.         \$.ajax({
  5198.             url: BaseURL + 'get_consultant_schedules',
  5199.             type: 'POST',
  5200.             dataType: 'json',
  5201.             data: {
  5202.                 consultantId: consId,
  5203.                 startDateStr: '@' + moment().unix(),
  5204. //                    endDateStr: \$('#preferredScheduleDate').val() + ' 23:59:59 ' + moment().format(\"ZZ\"),
  5205.                 endDateStr: '',
  5206.                 durationMin: durValue,
  5207.                 // durationMin: sessionDurationSelector.getValue() != '' ? perSessionMinute * sessionDurationSelector.getValue() : 90,
  5208.                 options: options,
  5209.                 returnJson: 1
  5210.             },
  5211.             error: function () {
  5212.                 // callback();
  5213.             },
  5214.             success: function (res) {
  5215.                 ;
  5216.                 // \$('#').val(res.);
  5217.                 \$('#selectPurchaseModal .view_if_has_schedules').hide();
  5218.                 if (res.success == true) {
  5219. ////                            for (var l = 0; l < res.sessionsArray.length; l++) {
  5220. ////                                \$('#rescheduledSemesterSelector').append(\$(\"<option></option>\").attr(\"value\", res.sessionsArray[l].id).text(res.sessionsArray[l].name));
  5221. ////                            }
  5222.                     for (var jj = 0; jj < res.data.scheduleList.length; jj++) {
  5223.                         var sch_dt = res.data.scheduleList[jj];
  5224.                         var ggStr = ' <div class=\"box-selector sch_selector_time ' +
  5225.                             'sch_mon_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM') + ' ' +
  5226.                             'sch_day_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM_DD') + ' ' +
  5227.                             'sch_' + sch_dt['timeUnix'] + ' ' +
  5228.                             'sch_' + sch_dt['timeUnix'] + '  col-md-3 col-sm-6\"' +
  5229.                             ' data-id=\"' + sch_dt['timeUnix'] + '\" ' +
  5230.                             ' data-gen-class=\"sch_selector_time\" ' +
  5231.                             '>' +
  5232.                             '<div class=\"inside\">' +
  5233.                                 {# ' <div class=\"img\"  style=\"' + #}
  5234.                                 {# \"background:url(' {{ absolute_url(path('dashboard')) }}\"+dt['image']+\"');\"+ #}
  5235.                                 {# ' height: 50px !important;width: 100%;background-position: center;background-size: contain;background-repeat: no-repeat;\"></div>' + #}
  5236.                             '<h6 class=\"title\" style=\"\">' + (moment.unix(sch_dt['timeUnix']).format('HH:mm')) + '</h6> ' +
  5237.                             // '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
  5238.                             '</div></div>';
  5239.                         var ggStrday = ' <div class=\"box-selector sch_selector_day ' +
  5240.                             'sch_mon_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM') + ' ' +
  5241.                             'sch_day_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM_DD') + '  col-md-3 col-sm-6\"' +
  5242.                             ' data-id=\"' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM_DD') + '\" ' +
  5243.                             ' data-gen-class=\"sch_selector_day\" ' +
  5244.                             '>' +
  5245.                             '<div class=\"inside\">' +
  5246.                                 {# ' <div class=\"img\"  style=\"' + #}
  5247.                                 {# \"background:url(' {{ absolute_url(path('dashboard')) }}\"+dt['image']+\"');\"+ #}
  5248.                                 {# ' height: 50px !important;width: 100%;background-position: center;background-size: contain;background-repeat: no-repeat;\"></div>' + #}
  5249.                             '<h6 class=\"title\" style=\"\">' + (moment.unix(sch_dt['timeUnix']).format('DD')) + '</h6> ' +
  5250.                             // '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
  5251.                             '</div></div>';
  5252.                         var ggStrmon = ' <div class=\"box-selector sch_selector_mon ' +
  5253.                             'sch_mon_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM') + ' ' +
  5254.                             // 'sch_day'+moment.unix(sch_dt['timeUnix']).format('YYYY_MM')+' ' +
  5255.                             ' col-md-3 col-sm-6\"' +
  5256.                             ' data-id=\"' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM') + '\" ' +
  5257.                             ' data-gen-class=\"sch_selector_mon\" ' +
  5258.                             '>' +
  5259.                             '<div class=\"inside\">' +
  5260.                                 {# ' <div class=\"img\"  style=\"' + #}
  5261.                                 {#    #}{# \"background:url(' {{ absolute_url(path('dashboard')) }}\"+dt['image']+\"');\"+ #}
  5262.                                 {# ' height: 50px !important;width: 100%;background-position: center;background-size: contain;background-repeat: no-repeat;\"></div>' + #}
  5263.                             '<h6 class=\"title\" style=\"\">' + (moment.unix(sch_dt['timeUnix']).format('MMM')) + '</h6> ' +
  5264.                             // '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
  5265.                             '</div></div>';
  5266.                         if (!\$('.sch_selector_mon.sch_mon_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM')).length)
  5267.                             \$('#selectPurchaseModal .sch_holder_month').append(ggStrmon);
  5268.                         if (!\$('.sch_selector_day.sch_day_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM_DD')).length)
  5269.                             \$('#selectPurchaseModal .sch_holder_day').append(ggStrday);
  5270.                         \$('#selectPurchaseModal .sch_holder_time').append(ggStr);
  5271.                     }
  5272.                     if (res.data.scheduleList.length > 0) {
  5273.                         \$('#selectPurchaseModal h5.view_if_has_schedules').css('display', 'block');
  5274.                         \$('#selectPurchaseModal p.view_if_has_schedules').css('display', 'block');
  5275.                         \$('#selectPurchaseModal div.row.view_if_has_schedules').css('display', 'flex');
  5276.                     }
  5277.                     \$('.sch_' + res.data.closestDateTs).trigger('click');
  5278. //                     rescheduledconsultancyScheduleSelector.clear();
  5279. //                     rescheduledconsultancyScheduleSelector.disable();
  5280. //                     rescheduledconsultancyScheduleSelector.clearOptions();
  5281. //                     rescheduledconsultancyScheduleSelector.load(function (callback) {
  5282. //
  5283. //                         rescheduledconsultancyScheduleSelector.enable();
  5284. //                         var modifiedList = [];
  5285. //                         for (var l = 0; l < res.data.scheduleList.length; l++) {
  5286. //                             var sch_dt = res.data.scheduleList[l];
  5287. //                             sch_dt['time_user_zone'] = moment.unix(sch_dt['timeUnix']).format('MMM DD, YYYY HH:mm');
  5288. // //                                sch_dt['time_user_zone']=sch_dt['time'];
  5289. //                             modifiedList.push(sch_dt);
  5290. //                         }
  5291. //
  5292. //
  5293. //                         callback(modifiedList);
  5294. //
  5295. //
  5296. //                     });
  5297. //                     rescheduledconsultancyScheduleSelector.setValue(res.data.closestDateTs)
  5298.                 } else {
  5299.                 }
  5300.             }
  5301.         });
  5302.     }
  5303.     function refreshRoutinePackageListOnPurchaseModal(t_id) {
  5304.         var dt = [];
  5305.         \$('#selectPurchaseModal .routineTable tbody').empty();
  5306.         var topicIdForRoutine = t_id;
  5307.         // var sessionDurationSelectorValue=sessionDurationSelector.getValue();
  5308.         var sessionDurationSelectorValue = 100;
  5309.         // var scheduledTimeTsValue=consultancyScheduleSeletor.getValue();
  5310.         var scheduledTimeTsValue = moment().unix();
  5311.         if (typeof topic_data_by_id[topicIdForRoutine] !== 'undefined') {
  5312.             if (topic_data_by_id[topicIdForRoutine]['routine_data'].length) {
  5313.                 dt = topic_data_by_id[topicIdForRoutine]['routine_data'];
  5314.             } else {
  5315.                 dt = [
  5316.                     {
  5317.                         sequence: 1,
  5318.                         topicId: topicIdForRoutine,
  5319.                         topicName: topic_data_by_id[topicIdForRoutine]['topic_name'],
  5320.                         meetingType: topic_data_by_id[topicIdForRoutine]['meeting_type'],
  5321.                         duration: sessionDurationSelectorValue != '' ? (perSessionMinute * sessionDurationSelectorValue) / (COIN_GENERAL_MULT * 1) : 0,
  5322.                         offset: 0,
  5323.                         coins: sessionDurationSelectorValue != '' ? (1 * sessionDurationSelectorValue) : 0,
  5324.                         scheduledTimeTs: scheduledTimeTsValue != '' ? (1 * scheduledTimeTsValue) : 0,
  5325.                         nextSequenceStart: 0,
  5326.                         modifiable: 0,
  5327.                     }
  5328.                 ];
  5329.             }
  5330.         }
  5331.         for (var poi = 0; poi < dt.length; poi++) {
  5332.             var cc_pika = dt[poi];
  5333.             if (cc_pika['meetingType'] == 2) //offline
  5334.             {
  5335.                 \$('#selectPurchaseModal .routineTable tbody').append(
  5336.                     '<tr>' +
  5337.                     '<td>' + cc_pika.topicName + '</td>' +
  5338.                     '<td style=\"text-align: left;\"><b>Deliverable</b><br>' +
  5339.                     'Bee Coins: ' + cc_pika.coins + '<br>' +
  5340.                     (typeof cc_pika.scheduledDateTs !== 'undefined' ?
  5341.                             ('Lead Dt.<br>' + (cc_pika.scheduledTimeTs == 0 ? '' : moment.unix(cc_pika.scheduledDateTs).format('MMMM DD, YYYY HH:mm ZZ'))) :
  5342.                             ('')
  5343.                     ) +
  5344.                     '</td>' +
  5345.                     '<td>' +
  5346.                     '<input class=\"routineCoinNeeded\" name=\"routine_coins[]\" type=\"hidden\" value=\"' + cc_pika.coins + '\">' +
  5347.                     '<input class=\"routineTopicId\" name=\"routine_topic_id[]\" type=\"hidden\" value=\"' + cc_pika.topicId + '\">' +
  5348.                     (typeof cc_pika.modifiable == 1 ? '<a class=\"icon-check isChecked modifiable\" href=\"javascript:void(0);\"><i class=\"fa fa-check\"></i></a>' : '<a class=\"icon-check isChecked modifiable\" href=\"javascript:void(0);\"><i class=\"fa fa-check\"></i></a>') +
  5349.                     // '<a class=\"icon-delete\" href=\"javascript:void(0);\"><i class=\"fa fa-times\"></i></a>' +
  5350.                     '</td>' +
  5351.                     '</tr>'
  5352.                 )
  5353.             } else {
  5354.                 {
  5355.                     \$('#selectPurchaseModal .routineTable tbody').append(
  5356.                         '<tr>' +
  5357.                         '<td>' + cc_pika.topicName + '</td>' +
  5358.                         '<td style=\"text-align: left;\"><b>Online</b><br>' +
  5359.                         'Bee Coins: ' + cc_pika.coins + '<br>' +
  5360.                         'Duration: ' + cc_pika.duration + '<br>' +
  5361.                         (typeof cc_pika.scheduledTimeTs !== 'undefined' ?
  5362.                                 ('Scheduled Time: <br>' + (cc_pika.scheduledTimeTs == 0 ? '' : moment.unix(cc_pika.scheduledTimeTs).format('MMMM DD, YYYY HH:mm ZZ'))) :
  5363.                                 ('')
  5364.                         ) +
  5365.                         '</td>' +
  5366.                         '<td>' +
  5367.                         '<input class=\"routineCoinNeeded\" name=\"routine_coins[]\" type=\"hidden\" value=\"' + cc_pika.coins + '\">' +
  5368.                         '<input class=\"routineTopicId\" name=\"routine_topic_id[]\" type=\"hidden\" value=\"' + cc_pika.topicId + '\">' +
  5369.                         (typeof cc_pika.modifiable == 1 ? '<a class=\"icon-check isChecked modifiable\" href=\"javascript:void(0);\"><i class=\"fa fa-check\"></i></a>' :
  5370.                             '<a class=\"icon-check isChecked \" href=\"javascript:void(0);\"><i class=\"fa fa-check\"></i></a>') +
  5371.                         // '<a class=\"icon-delete\"  href=\"javascript:void(0);\"><i class=\"fa fa-check\"></i></a>' +
  5372.                         // '<a class=\"icon-delete\" href=\"javascript:void(0);\"><i class=\"fa fa-times\"></i></a>' +
  5373.                         '</td>' +
  5374.                         '</tr>'
  5375.                     )
  5376.                 }
  5377.             }
  5378.         }
  5379.         recalculateRoutinePackageOnPurchaseModal();
  5380.     }
  5381.     function recalculateRoutinePackageOnPurchaseModal() {
  5382.         var tot_coin = 0;
  5383.         \$('#selectPurchaseModal .routineTable .icon-check').each(function (indy, elem) {
  5384.             if (\$(elem).hasClass('isChecked'))
  5385.                 tot_coin += (1 * \$('#selectPurchaseModal .routineTable .routineCoinNeeded').eq(indy).val())
  5386.         })
  5387.         \$('#selectPurchaseModal .routineCoinNeededTotalInput').val(tot_coin)
  5388.         \$('#selectPurchaseModal .routineCoinNeededTotalSpan').text(tot_coin)
  5389.     }
  5390.     function initiate_prompt_info_modal() {
  5391.         if (\$('#promptForInfoModal #currentCountryIdPromptForInfo').length)
  5392.             \$('#promptForInfoModal #currentCountryIdPromptForInfo').selectize({
  5393.                 placeholder: 'Select Your Current Country',
  5394. //            options: APTL.productListArray,
  5395.                 options: [],
  5396.                 valueField: 'value',
  5397.                 labelField: 'text',
  5398.                 preload: 'focus',
  5399.                 searchField: ['text', 'value'],
  5400. //            render: {
  5401. //                option: function (item, escape) {
  5402. //                    return '<div class=\"p-l-10 p-r-10\">'
  5403. //                            + '<h6>' + escape(item[label_for_product]) + '</h6> '
  5404. //                            + '<span>Code:' + escape(item.productCode) + '</span> '
  5405. //                                //+ '<span>Name:'+item.name+'</span> '
  5406. //                                //+ '<span>DEBUG:'+item.score+'</span>'
  5407. //                            + '</div>';
  5408. //                }
  5409. //            },
  5410.                 onChange: function (value) {
  5411.                     if (!value) return;
  5412. //                productId = preliminary_reg_data_by_id[value]['product_id']
  5413. //                getbomData();
  5414. //
  5415.                 },
  5416.                 load: function (query, callback) {
  5417. //                        if (!query.length) return // callback();
  5418.                     if (!query.length) query = '_EMPTY_';
  5419.                     var pika_ind_id = \$(\$(this)[0].\$input[\"0\"]).attr('data-id')
  5420.                     \$.ajax({
  5421.                         url: BaseURL + \"select_data_ajax\",
  5422.                         type: 'POST',
  5423.                         dataType: 'json',
  5424.                         data: {
  5425.                             //returnJson: 1,
  5426.                             //sessionData: sessionData
  5427.                             query: query,
  5428.                             tableName: \"entity_countries\",
  5429.                             valueField: \"country_id\",
  5430.                             textField: \"name_en\",
  5431.                             entity_group: 1,
  5432.                             selectorId: \$(\$(this)[0].\$input[\"0\"]).attr('id'),
  5433.                             isMultiple: 0,
  5434.                             dataId: pika_ind_id,
  5435. //                        isMultiple: 0,
  5436.                             //textField: \"rendered_text\",
  5437. //
  5438.                             //renderTextFormat: \"#__id__ __name__\",
  5439.                             andConditions: [
  5440.                                 {type: \"like\", field: \"name_en\", value: query}
  5441.                             ],
  5442.                             mustConditions: [
  5443. //                            {type: \"=\", field: \"approved\", value: 1}
  5444.                             ],
  5445.                             convertToObject: [
  5446. //                            'accessories', 'issues'
  5447.                             ],
  5448.                             skipDefaultCompanyId: 1
  5449.                             // setDataForSingle: 1,
  5450.                         },
  5451.                         error: function () {
  5452.                             // callback();
  5453.                         },
  5454.                         success: function (res) {
  5455. //                        preliminary_reg_data_by_id = res.dataById
  5456.                             callback(res.data);
  5457.                             if (res.setValueArray.length != 0 && res.selectorId != '') {
  5458.                                 if (res.isMultiple == 1)
  5459.                                     \$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
  5460.                                 else
  5461.                                     \$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
  5462.                             }
  5463. //                        alert('pika master')
  5464.                         }
  5465.                     });
  5466.                 },
  5467.                 onLoad: function (data) {
  5468. //                //    console.log(data)
  5469. //                alert('here')
  5470.                     if (!data.length) return;
  5471. //                pbcs.open()
  5472.                     if (data.length == 1) {
  5473. //                    alert('hi')
  5474. //                    productionScheduleSelector.setValue(data[0].value)
  5475.                     }
  5476.                 }
  5477.             });
  5478.         if (\$('#promptForInfoModal #preferredConsultancyTopicCountryIdsPromptForInfo').length)
  5479.             \$('#promptForInfoModal #preferredConsultancyTopicCountryIdsPromptForInfo').selectize({
  5480.                 placeholder: 'Select Your Preferred Country',
  5481. //            options: APTL.productListArray,
  5482.                 options: [],
  5483.                 valueField: 'value',
  5484.                 labelField: 'text',
  5485.                 preload: 'focus',
  5486.                 searchField: ['text', 'value'],
  5487. //            render: {
  5488. //                option: function (item, escape) {
  5489. //                    return '<div class=\"p-l-10 p-r-10\">'
  5490. //                            + '<h6>' + escape(item[label_for_product]) + '</h6> '
  5491. //                            + '<span>Code:' + escape(item.productCode) + '</span> '
  5492. //                                //+ '<span>Name:'+item.name+'</span> '
  5493. //                                //+ '<span>DEBUG:'+item.score+'</span>'
  5494. //                            + '</div>';
  5495. //                }
  5496. //            },
  5497.                 onChange: function (value) {
  5498.                     if (!value) return;
  5499. //                productId = preliminary_reg_data_by_id[value]['product_id']
  5500. //                getbomData();
  5501. //
  5502.                 },
  5503.                 load: function (query, callback) {
  5504. //                        if (!query.length) return // callback();
  5505.                     if (!query.length) query = '_EMPTY_';
  5506.                     var pika_ind_id = \$(\$(this)[0].\$input[\"0\"]).attr('data-id')
  5507.                     \$.ajax({
  5508.                         url: BaseURL + \"select_data_ajax\",
  5509.                         type: 'POST',
  5510.                         dataType: 'json',
  5511.                         data: {
  5512.                             //returnJson: 1,
  5513.                             //sessionData: sessionData
  5514.                             query: query,
  5515.                             tableName: \"entity_countries\",
  5516.                             valueField: \"country_id\",
  5517.                             textField: \"name_en\",
  5518.                             entity_group: 1,
  5519.                             selectorId: \$(\$(this)[0].\$input[\"0\"]).attr('id'),
  5520.                             isMultiple: 1,
  5521.                             dataId: pika_ind_id,
  5522. //                        isMultiple: 0,
  5523.                             //textField: \"rendered_text\",
  5524. //
  5525.                             //renderTextFormat: \"#__id__ __name__\",
  5526.                             andConditions: [
  5527.                                 {type: \"like\", field: \"name_en\", value: query}
  5528.                             ],
  5529.                             mustConditions: [
  5530. //                            {type: \"=\", field: \"approved\", value: 1}
  5531.                             ],
  5532.                             convertToObject: [
  5533. //                            'accessories', 'issues'
  5534.                             ],
  5535.                             skipDefaultCompanyId: 1
  5536.                             // setDataForSingle: 1,
  5537.                         },
  5538.                         error: function () {
  5539.                             // callback();
  5540.                         },
  5541.                         success: function (res) {
  5542. //                        preliminary_reg_data_by_id = res.dataById
  5543.                             callback(res.data);
  5544.                             if (res.setValueArray.length != 0 && res.selectorId != '') {
  5545.                                 if (res.isMultiple == 1)
  5546.                                     \$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
  5547.                                 else
  5548.                                     \$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
  5549.                             }
  5550. //                        alert('pika master')
  5551.                         }
  5552.                     });
  5553.                 },
  5554.                 onLoad: function (data) {
  5555. //                //    console.log(data)
  5556. //                alert('here')
  5557.                     if (!data.length) return;
  5558. //                pbcs.open()
  5559.                     if (data.length == 1) {
  5560. //                    alert('hi')
  5561. //                    productionScheduleSelector.setValue(data[0].value)
  5562.                     }
  5563.                 }
  5564.             });
  5565.         if (\$('#promptForInfoModal #preferredTopicIdsAsStudentPromptForInfo').length)
  5566.             \$('#promptForInfoModal #preferredTopicIdsAsStudentPromptForInfo').selectize({
  5567.                 placeholder: 'Preferred Topic Ids as Student',
  5568.                 multiple: true,
  5569. //            options: APTL.productListArray,
  5570.                 options: [],
  5571.                 valueField: 'value',
  5572.                 labelField: 'text',
  5573.                 preload: 'focus',
  5574.                 searchField: ['text', 'value'],
  5575. //            render: {
  5576. //                option: function (item, escape) {
  5577. //                    return '<div class=\"p-l-10 p-r-10\">'
  5578. //                            + '<h6>' + escape(item[label_for_product]) + '</h6> '
  5579. //                            + '<span>Code:' + escape(item.productCode) + '</span> '
  5580. //                                //+ '<span>Name:'+item.name+'</span> '
  5581. //                                //+ '<span>DEBUG:'+item.score+'</span>'
  5582. //                            + '</div>';
  5583. //                }
  5584. //            },
  5585.                 onChange: function (value) {
  5586.                     if (!value) return;
  5587. //                productId = preliminary_reg_data_by_id[value]['product_id']
  5588. //                getbomData();
  5589. //
  5590.                 },
  5591.                 load: function (query, callback) {
  5592. //                        if (!query.length) return // callback();
  5593.                     if (!query.length) query = '_EMPTY_';
  5594.                     var pika_ind_id = \$(\$(this)[0].\$input[\"0\"]).attr('data-id')
  5595.                     \$.ajax({
  5596.                         url: BaseURL + \"select_data_ajax\",
  5597.                         type: 'POST',
  5598.                         dataType: 'json',
  5599.                         data: {
  5600.                             //returnJson: 1,
  5601.                             //sessionData: sessionData
  5602.                             query: query,
  5603.                             tableName: \"entity_create_topic\",
  5604.                             valueField: \"id\",
  5605.                             textField: \"topic_name\",
  5606.                             entity_group: 1,
  5607.                             selectorId: \$(\$(this)[0].\$input[\"0\"]).attr('id'),
  5608.                             isMultiple: 1,
  5609.                             dataId: pika_ind_id,
  5610. //                        isMultiple: 0,
  5611.                             //textField: \"rendered_text\",
  5612. //
  5613.                             //renderTextFormat: \"#__id__ __name__\",
  5614.                             andConditions: [
  5615.                                 {type: \"like\", field: \"topic_name\", value: query}
  5616.                             ],
  5617.                             mustConditions: [
  5618.                                 {type: \"=\", field: \"consultancy_enabled\", value: 1}
  5619.                             ],
  5620.                             convertToObject: [
  5621. //                            'accessories', 'issues'
  5622.                             ],
  5623.                             skipDefaultCompanyId: 1
  5624.                             // setDataForSingle: 1,
  5625.                         },
  5626.                         error: function () {
  5627.                             // callback();
  5628.                         },
  5629.                         success: function (res) {
  5630. //                        preliminary_reg_data_by_id = res.dataById
  5631.                             callback(res.data);
  5632.                             if (res.setValueArray.length != 0 && res.selectorId != '') {
  5633.                                 if (res.isMultiple == 1)
  5634.                                     \$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
  5635.                                 else
  5636.                                     \$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
  5637.                             }
  5638. //                        alert('pika master')
  5639.                         }
  5640.                     });
  5641.                 },
  5642.                 onLoad: function (data) {
  5643.                     //    console.log(data)
  5644. //                alert('here')
  5645.                     if (!data.length) return;
  5646. //                pbcs.open()
  5647.                     if (data.length == 1) {
  5648. //                    alert('hi')
  5649. //                    productionScheduleSelector.setValue(data[0].value)
  5650.                     }
  5651.                 }
  5652.             });
  5653.         if (\$('#promptForInfoModal #preferredTopicIdsAsConsultantPromptForInfo').length)
  5654.             \$('#promptForInfoModal #preferredTopicIdsAsConsultantPromptForInfo').selectize({
  5655.                 placeholder: 'Preferred Topic Ids as Consultant',
  5656.                 multiple: true,
  5657. //            options: APTL.productListArray,
  5658.                 options: [],
  5659.                 valueField: 'value',
  5660.                 labelField: 'text',
  5661.                 preload: 'focus',
  5662.                 searchField: ['text', 'value'],
  5663. //            render: {
  5664. //                option: function (item, escape) {
  5665. //                    return '<div class=\"p-l-10 p-r-10\">'
  5666. //                            + '<h6>' + escape(item[label_for_product]) + '</h6> '
  5667. //                            + '<span>Code:' + escape(item.productCode) + '</span> '
  5668. //                                //+ '<span>Name:'+item.name+'</span> '
  5669. //                                //+ '<span>DEBUG:'+item.score+'</span>'
  5670. //                            + '</div>';
  5671. //                }
  5672. //            },
  5673.                 onChange: function (value) {
  5674.                     if (!value) return;
  5675. //                productId = preliminary_reg_data_by_id[value]['product_id']
  5676. //                getbomData();
  5677. //
  5678.                 },
  5679.                 load: function (query, callback) {
  5680. //                        if (!query.length) return // callback();
  5681.                     if (!query.length) query = '_EMPTY_';
  5682.                     var pika_ind_id = \$(\$(this)[0].\$input[\"0\"]).attr('data-id')
  5683.                     \$.ajax({
  5684.                         url: BaseURL + \"select_data_ajax\",
  5685.                         type: 'POST',
  5686.                         dataType: 'json',
  5687.                         data: {
  5688.                             //returnJson: 1,
  5689.                             //sessionData: sessionData
  5690.                             query: query,
  5691.                             tableName: \"entity_create_topic\",
  5692.                             valueField: \"id\",
  5693.                             textField: \"topic_name\",
  5694.                             entity_group: 1,
  5695.                             selectorId: \$(\$(this)[0].\$input[\"0\"]).attr('id'),
  5696.                             isMultiple: 1,
  5697.                             dataId: pika_ind_id,
  5698. //                        isMultiple: 0,
  5699.                             //textField: \"rendered_text\",
  5700. //
  5701.                             //renderTextFormat: \"#__id__ __name__\",
  5702.                             andConditions: [
  5703.                                 {type: \"like\", field: \"topic_name\", value: query}
  5704.                             ],
  5705.                             mustConditions: [
  5706.                                 {type: \"=\", field: \"consultancy_enabled\", value: 1}
  5707.                             ],
  5708.                             convertToObject: [
  5709. //                            'accessories', 'issues'
  5710.                             ],
  5711.                             skipDefaultCompanyId: 1
  5712.                             // setDataForSingle: 1,
  5713.                         },
  5714.                         error: function () {
  5715.                             // callback();
  5716.                         },
  5717.                         success: function (res) {
  5718. //                        preliminary_reg_data_by_id = res.dataById
  5719.                             callback(res.data);
  5720.                             if (res.setValueArray.length != 0 && res.selectorId != '') {
  5721.                                 if (res.isMultiple == 1)
  5722.                                     \$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
  5723.                                 else
  5724.                                     \$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
  5725.                             }
  5726. //                        alert('pika master')
  5727.                         }
  5728.                     });
  5729.                 },
  5730.                 onLoad: function (data) {
  5731.                     //    console.log(data)
  5732. //                alert('here')
  5733.                     if (!data.length) return;
  5734. //                pbcs.open()
  5735.                     if (data.length == 1) {
  5736. //                    alert('hi')
  5737. //                    productionScheduleSelector.setValue(data[0].value)
  5738.                     }
  5739.                 }
  5740.             });
  5741.         \$('.promptForInfoAutoUpdateData').not('.selectize-control').change(function () {
  5742. //            //    console.log('* The text was changed');
  5743.             \$.post('{{ url('update_inline_value') }}', {
  5744. //                        returnJson: 1,
  5745. //                        sessionData: sessionData
  5746.                 entityName: typeof \$(this).data('entityName') !== 'undefined' ? \$(this).data('entityName') : 'EntityApplicantDetails',
  5747.                 entityBundle: typeof \$(this).data('entityBundle') !== 'undefined' ? \$(this).data('entityBundle') : 'CompanyGroup',
  5748.                 setValue: \$(this).val(),
  5749.                 relevantRequiredPromptField: \$(this).data('relevantPromptField'),
  5750.                 clearRequiredPromptFlag: 1,
  5751.                 setMethod: \$(this).data('setMethod'),
  5752.                 findField: typeof \$(this).data('findField') !== 'undefined' ? \$(this).data('findField') : 'applicantId',
  5753.                 findValue: typeof \$(this).data('findValue') !== 'undefined' ? \$(this).data('findValue') : '{{ session[UserConstants.USER_ID] is defined? session[UserConstants.USER_ID]:0 }}',
  5754.                 fieldType: typeof \$(this).data('fieldType') !== 'undefined' ? \$(this).data('fieldType') : '_TEXT_',
  5755.                 modifyTransDateFlag: typeof \$(this).data('modifyTransDate') !== 'undefined' ? \$(this).data('modifyTransDate') : 0,
  5756.                 {# findValue: {{ consultantDetails.applicantId }}, #}
  5757.             })
  5758.                 .done(function (data) {
  5759.                     //    console.log(data);
  5760. //                                if (data.success == true) {
  5761. //                                    swal({
  5762. //                                        title: \"Sweet!\",
  5763. //                                        text: \"Updated\",
  5764. //                                        imageUrl: BaseURL + \"images/thumbs-up.png\"
  5765. //                                    });
  5766. ////                                    alertify.success(\"Order Confirmation Done\");
  5767. //
  5768. //
  5769. //                                } else {
  5770. //                                    swal({
  5771. //                                        title: \"Sorry!\",
  5772. //                                        text: \"Your Action failed !\",
  5773. //                                        imageUrl: BaseURL + \"images/Bee_Sad_Emote.png\"
  5774. //                                    });
  5775. ////                                    alertify.success(\"Order Confirmation Failed\");
  5776. //
  5777. ////                            \$('#barcode_selector_cont').waitMe('hide');
  5778. //
  5779. //                                }
  5780.                 })
  5781.                 .fail(function () {
  5782.                 });
  5783.         });
  5784.         document.getElementById('promptForInfoModal').addEventListener('hidden.bs.modal', function (event) {
  5785.             \$('.promptForInfoAutoUpdateData').not('.selectize-control').trigger('change');
  5786.         })
  5787.         promptForInfoModal.show();
  5788.         promptInfo_showTab(currentTab); // Display the current tab
  5789.     }
  5790.     function promptInfo_showTab(n) {
  5791.         // This function will display the specified tab of the form...
  5792. //         stepShowTab(n,'#promptForInfoModal')
  5793. // retrunb false;
  5794.         \$('#promptForInfoModal .step').eq(n).show();
  5795.         //... and fix the Previous/Next buttons:
  5796.         if (n == 0) {
  5797.             document.getElementById(\"promptForInfo_prevBtn\").style.display = \"none\";
  5798.         } else {
  5799.             document.getElementById(\"promptForInfo_prevBtn\").style.display = \"inline\";
  5800.         }
  5801.         if (n == (\$('#promptForInfoModal .step').length - 1)) {
  5802.             document.getElementById(\"promptForInfo_nextBtn\").innerHTML = \"Finish\";
  5803.         } else {
  5804.             document.getElementById(\"promptForInfo_nextBtn\").innerHTML = \"Next\";
  5805.         }
  5806.         //... and run a function that will display the correct step indicator:
  5807.         \$('#promptForInfoModal .stepIndicator').removeClass('active')
  5808.         for (var gg = 0; gg <= n; gg++)
  5809.             \$('#promptForInfoModal .stepIndicator').eq(gg).addClass('active')
  5810.     }
  5811.     function promptInfo_nextPrev(n) {
  5812.         // Exit the function if any field in the current tab is invalid:
  5813.         if (n == 1 && !promptInfo_validateForm()) return false;
  5814.         \$('#promptForInfoModal  .step').eq(currentTab).hide();
  5815.         // Increase or decrease the current tab by 1:
  5816.         currentTab = currentTab + n;
  5817.         // if you have reached the end of the form...
  5818.         if (currentTab >= \$('#promptForInfoModal .step').length) {
  5819.             // ... the form gets submitted:
  5820.             // //    console.log(\$('#selectPurchaseModal .step'))
  5821.             // alert(\$('#selectPurchaseModal .step').length)
  5822. //            document.getElementById(\"signUpForm\").submit();
  5823.             promptForInfoModal.hide();
  5824.             return false;
  5825.         }
  5826.         // Otherwise, display the correct tab:
  5827.         promptInfo_showTab(currentTab);
  5828.     }
  5829.     function promptInfo_validateForm() {
  5830.         // This function deals with validation of the form fields
  5831.         var x, y, i, valid = true;
  5832. //        x = document.getElementsByClassName(\"step\");
  5833. //        y = x[currentTab].getElementsByTagName(\"input\");
  5834. //
  5835. //
  5836. //
  5837. //
  5838. //        // A loop that checks every input field in the current tab:
  5839. //        for (i = 0; i < y.length; i++) {
  5840. //            // If a field is empty...
  5841. //            if (y[i].value == \"\") {
  5842. //                // add an \"invalid\" class to the field:
  5843. //                y[i].className += \" invalid\";
  5844. //                // and set the current valid status to false
  5845. //                valid = false;
  5846. //            }
  5847. //        }
  5848. //        // If the valid status is true, mark the step as finished and valid:
  5849. //        if (valid) {
  5850. //            document.getElementsByClassName(\"stepIndicator\")[currentTab].className += \" finish\";
  5851. //        }
  5852.         \$('#promptForInfoModal .step input').each(function (indumia, elemele) {
  5853.             if (\$(elemele).hasClass('required') && \$(elemele).val() == '') {
  5854.                 \$(elemele).addClass('invalid')
  5855.                 valid = false;
  5856.             } else {
  5857.             }
  5858.         })
  5859.         if (valid) {
  5860.             \$('#promptForInfoModal .stepIndicator').eq(currentTab).addClass('finish')
  5861. //            document.getElementsByClassName(\"stepIndicator\")[currentTab].className += \" finish\";
  5862.         }
  5863.         return valid; // return the valid status
  5864.     }
  5865.     function promptInfo_fixStepIndicator(n) {
  5866.         // This function removes the \"active\" class of all steps...
  5867.         var i, x = document.getElementsByClassName(\"stepIndicator\");
  5868.         for (i = 0; i < x.length; i++) {
  5869.             x[i].className = x[i].className.replace(\" active\", \"\");
  5870.         }
  5871.         //... and adds the \"active\" class on the current step:
  5872.         x[n].className += \" active\";
  5873.     }
  5874.     function addScript(src) {
  5875.         var s = document.createElement('script');
  5876.         s.type = 'text/javascript';
  5877.         s.src = src;
  5878.         document.getElementsByTagName('head')[0].appendChild(s);
  5879.         return s;  // to remove it later
  5880.     }
  5881.     {% if system_type=='_BUDDYBEE_' %}
  5882.     function checkAndRedirectToMeeting(force) {
  5883.         var curr_ts_now = moment().unix();
  5884. //        if(CURRENT_ROUTE=='consultancy_session' && force==0)
  5885. //        {
  5886. //            if(typeof currentMeetingSessionId !== 'undefined')
  5887. //            {
  5888. //                if(upcomingNextMeetingIdForRedirect==currentMeetingSessionId)
  5889. //                {
  5890. //                  return;
  5891. //                }
  5892. //
  5893. //            }
  5894. //
  5895. //        }
  5896.         if (upcomingNextMeetingTsForRedirect != 0) {
  5897.             if (curr_ts_now >= (upcomingNextMeetingTsForRedirect - 120))   //redirect before 2 min
  5898.             {
  5899.                 window.localStorage.setItem('UNMId', 0);
  5900.                 window.localStorage.setItem('UNMTs', 0);
  5901.                 window.location.href = \"{{ url('consultancy_session') }}/\" + upcomingNextMeetingIdForRedirect;
  5902.             }
  5903.         }
  5904.     }
  5905.     function refreshUpcomingMeetingList() {
  5906. //        //    console.log('_______________________TRIGGERED_______________________')
  5907.         if (current_user_user_id != 0) {
  5908.             \$.ajax({
  5909.                 url: BaseURL + \"select_data_ajax_public\",
  5910.                 type: 'POST',
  5911.                 dataType: 'json',
  5912.                 data: {
  5913.                     //returnJson: 1,
  5914.                     //sessionData: sessionData
  5915.                     query: '',
  5916.                     tableName: \"entity_meeting_session\",
  5917.                     valueField: \"session_id\",
  5918. //                        textField: \"topic_name\",
  5919.                     entity_group: 1,
  5920.                     selectorId: '_NO_NEED_',
  5921.                     isMultiple: 0,
  5922.                     dataId: 0,
  5923. //                        isMultiple: 0,
  5924.                     textField: \"session_id\",
  5925. //
  5926.                     andOrConditions: [
  5927.                         {type: \"=\", field: \"consultant_id\", value: current_user_user_id},
  5928.                         {type: \"=\", field: \"student_id\", value: current_user_user_id}
  5929.                     ],
  5930.                     mustConditions: [
  5931. //                        {type: \"=\", field: \"is_paid_full\", value: 1},
  5932.                         {type: \">=\", field: \"scheduled_time_ts\", value: moment().unix()},
  5933.                         {# {% if not curr_data is empty %} #}
  5934. //                            {type: \"!=\", field: \"applicant_id\", value: \$('#rescheduledStudentId').val()}
  5935.                         {# {% endif %} #}
  5936.                     ],
  5937.                     orderByConditions: [
  5938.                         {
  5939.                             field: 'scheduled_time_ts',
  5940.                             sortType: 'ASC'
  5941.                         }
  5942.                         {# {% if not curr_data is empty %} #}
  5943. //                            {type: \"!=\", field: \"applicant_id\", value: \$('#rescheduledStudentId').val()}
  5944.                         {# {% endif %} #}
  5945.                     ],
  5946.                     convertToObject: [
  5947. //                            'accessories', 'issues'
  5948.                     ],
  5949.                     skipDefaultCompanyId: 1
  5950.                     // setDataForSingle: 1,
  5951.                 },
  5952.                 error: function () {
  5953.                     // callback();
  5954.                 },
  5955.                 success: function (res) {
  5956. //                        preliminary_reg_data_by_id = res.dataById
  5957.                     upcomingNextMeetingIdForRedirect = 0;
  5958.                     upcomingNextMeetingTsForRedirect = 0;
  5959.                     upcomingMeetingDataForRedirect = [];
  5960.                     for (var bogu = 0; bogu < res.data.length; bogu++) {
  5961.                         if (res.data[bogu].is_paid_full == 1) {
  5962.                             upcomingMeetingDataForRedirect.push({
  5963.                                 id: res.data[bogu].session_id,
  5964.                                 ts: res.data[bogu].scheduled_time_ts,
  5965.                             })
  5966.                         }
  5967.                     }
  5968.                     if (upcomingMeetingDataForRedirect.length != 0) {
  5969.                         upcomingNextMeetingIdForRedirect = upcomingMeetingDataForRedirect[0]['id'];
  5970.                         upcomingNextMeetingTsForRedirect = upcomingMeetingDataForRedirect[0]['ts'];
  5971.                     }
  5972.                     if (typeof refresh_upcoming_meeting_on_dashboard !== 'undefined')
  5973.                         refresh_upcoming_meeting_on_dashboard(res.data);
  5974. //                    if(CURRENT_ROUTE=='consultancy_session')
  5975. //                    {
  5976. //                        if(typeof currentMeetingSessionId !== 'undefined')
  5977. //                        {
  5978. //                            if(upcomingNextMeetingIdForRedirect==currentMeetingSessionId)
  5979. //                            {
  5980. //                                clearInterval(triggerRefreshUpcomingSession);
  5981. //                            }
  5982. //                            else
  5983. //                                checkAndRedirectToMeeting(0);
  5984. //
  5985. //                        }
  5986. //                        else
  5987. //                            checkAndRedirectToMeeting(0);
  5988. //
  5989. ////                        clearInterval(triggerRefreshUpcomingSession);
  5990. //
  5991. //                    }
  5992. //                    else
  5993.                     checkAndRedirectToMeeting(0);
  5994.                 }
  5995.             });
  5996.         }
  5997.     }
  5998.     function triggerRefreshUpcomingMeetingList(intervalHere) {
  5999.         if (current_user_user_id != 0) {
  6000.             triggerRefreshUpcomingSession = setInterval(function () {
  6001.                 refreshUpcomingMeetingList();
  6002.                 //seconds
  6003.             }, intervalHere)
  6004.         }
  6005.     }
  6006.     {% endif %}
  6007. </script>
  6008. {% if constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::BUDDYBEE_SOCKET_ENABLED')==1 %}
  6009.     {# now check softone #}
  6010.     {# {% if notification_enabled==1 %} #}
  6011.     {% if session[UserConstants.USER_ID] is defined %}
  6012.         {% set buddybee_socket_server=constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::BUDDYBEE_SOCKET_SERVER') %}
  6013.         {% set buddybee_socket_server_full = 'https://'~buddybee_socket_server %}
  6014.         {% if 'localhost:' in buddybee_socket_server %}
  6015.             {% set buddybee_socket_server_full = url_wo_port ~':'~ buddybee_socket_server|split('localhost:')[1] %}
  6016.         {% else %}
  6017.             {% set buddybee_socket_server_full = 'https://'~buddybee_socket_server %}
  6018.         {% endif %}
  6019.         {# <script type=\"text/javascript\" src=\"{{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::NOTIFICATION_SERVER')=='localhost:5000'?url_wo_port~':5000':constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::NOTIFICATION_SERVER') }}/socket.io/socket.io.js\"></script> #}
  6020.         {# <script type=\"text/javascript\" src=\"{{ buddybee_socket_server_full }}/socket.io/socket.io.js\"></script> #}
  6021.         <script type=\"text/javascript\">
  6022.             var buddybeeKeepAliveCall = {};
  6023.             var lastActivityTs = 0;
  6024.             function refreshKeepAliveCall() {
  6025.                 buddybeeKeepAliveCall = setInterval(function () {
  6026.                     var nowTs = moment().unix(),
  6027.                         differenceFromStartTime = meetingStartTime.diff(now), // 86400000;
  6028.                         differenceFromEndTime = meetingEndTime.diff(now); // 86400000;
  6029.                     if (nowTs - lastActivityTs > 60) {
  6030.                         clearInterval(buddybeeKeepAliveCall);
  6031.                     } else {
  6032.                         buddybee_socket.emit('update_my_socket', {
  6033.                             userId: buddybee_socket_user_id,
  6034.                             token: buddybee_socket_user_session_token,
  6035.                         });
  6036.                     }
  6037.                     //seconds
  6038.                 }, 30000)
  6039.             }
  6040.             // //    console.log(io)
  6041.             function initiateBuddybeeSocket() {
  6042.                 lastActivityTs = moment().unix();
  6043.                 \$.getScript('{{ buddybee_socket_server_full }}/socket.io/socket.io.js', function () {
  6044.                     {# \$.getScript('{{ absolute_url(path('dashboard')) }}buddybee_assets/js/socket-io.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}', function () { #}
  6045.                     if (io) {
  6046.                         {# socket=io.connect( '{{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::NOTIFICATION_SERVER') }}' ); #}
  6047.                         buddybee_socket = io.connect('{{ buddybee_socket_server_full }}');
  6048.                         buddybee_socket.emit('update_my_socket', {
  6049.                             userId: buddybee_socket_user_id,
  6050.                             token: buddybee_socket_user_session_token,
  6051.                             user_status: '_ON_',
  6052.                             force_broadcast: 1,
  6053.                         });
  6054. //                        buddybee_socket.on('_SEND_TEXT_TO_MOBILE_', function (dataObj) {
  6055. //                            //    console.log('_SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE__SEND_TEXT_TO_MOBILE_')
  6056. //                            //    console.log(dataObj)
  6057. //
  6058. //
  6059. //                        });
  6060.                         addScript(\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/generic_buddybee_sockets.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\")
  6061.                         {% if curr_route =='consultancy_session' or  curr_route =='_nothing_new_' %}
  6062.                         {% else %}
  6063.                         ifvisible.setIdleDuration(120);
  6064.                         ifvisible.onEvery(30, function () {
  6065. //                            //    console.log('not idle')
  6066.                             buddybee_socket.emit('update_my_socket', {
  6067.                                 userId: buddybee_socket_user_id,
  6068.                                 token: buddybee_socket_user_session_token,
  6069.                             });
  6070.                         });
  6071. //                        ifvisible.onEvery(300, function () {
  6072. ////                            //    console.log('not idle')
  6073. //                            buddybee_socket.emit('update_my_socket', {
  6074. //                                userId: buddybee_socket_user_id,
  6075. //                                token: buddybee_socket_user_session_token,
  6076. //                            });
  6077. //                        });
  6078.                         ifvisible.idle(function () {
  6079.                             document.body.style.opacity = 0.5;
  6080.                             buddybee_socket.emit('update_my_socket', {
  6081.                                 userId: buddybee_socket_user_id,
  6082.                                 token: buddybee_socket_user_session_token,
  6083.                                 user_status: '_AWAY_',
  6084.                                 force_broadcast: 1,
  6085.                             });
  6086.                         });
  6087.                         ifvisible.wakeup(function () {
  6088.                             document.body.style.opacity = 1;
  6089.                             buddybee_socket.emit('update_my_socket', {
  6090.                                 userId: buddybee_socket_user_id,
  6091.                                 token: buddybee_socket_user_session_token,
  6092.                                 user_status: '_ON_',
  6093.                                 force_broadcast: 1,
  6094.                             });
  6095.                         });
  6096.                         {% endif %}
  6097.                         // buddybee_socket.emit('update_my_socket', {
  6098.                         //     userId: buddybee_socket_user_id,
  6099.                         //     token: buddybee_socket_user_session_token,
  6100.                         // });
  6101.                         if (typeof pageSocketInit !== 'undefined')
  6102.                             pageSocketInit();
  6103.                         buddybee_socket.on('user_status_update', function (dataObj) {
  6104.                             //    console.log(dataObj)
  6105.                         });
  6106.                         buddybee_socket.on('_SOCKET_NOTIFICATION_HERE_', function (dataObj) {
  6107.                             if (typeof dataObj.targetRoute !== 'undefined') {
  6108.                                 if (dataObj.targetRoute == 'consultancy_session')
  6109.                                     refreshUpcomingMeetingList();
  6110.                             }
  6111.                             //    console.log(dataObj)
  6112.                         });
  6113.                         buddybee_socket.on('refresh_upcoming_meeting_list', function (dataObj) {
  6114.                             refreshUpcomingMeetingList();
  6115.                             //    console.log(dataObj)
  6116.                         });
  6117.                         //    console.log(buddybee_socket);
  6118.                     }
  6119.                 });
  6120.             }
  6121.         </script>
  6122.         {# <script src=\"{{ absolute_url(path('dashboard')) }}js/inno_notify.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script> #}
  6123.     {% endif %}
  6124.     {# {% endif %} #}
  6125. {% endif %}
  6126. <script>
  6127.     var honeybeeLocale = 'en';
  6128.     jQuery.browser = {
  6129.         msie: false,
  6130. //        version: 0
  6131.     };
  6132.     function check_filters_default() {
  6133. //                    alert(\"here\")
  6134.         \$('.filter_this').hide()
  6135.         \$('.filter_with_this').each(function () {
  6136. //            alert(\$(this).attr('id'))
  6137. //            alert(\$(this).val())
  6138.             if (\$(this).attr('type') == 'checkbox' && \$(this).prop('checked') == false)
  6139.                 return;
  6140.             if (\$(this).attr('type') == 'radio' && \$(this).is(':checked') == false)
  6141.                 return;
  6142.             var selector_name = '.filter_' + (\$(this).attr('id')) + '_' + \$(this).val();
  6143. //                        alert(selector_name)
  6144.             \$(selector_name).show()
  6145.         })
  6146.     }
  6147.     var userAgent = navigator.userAgent || navigator.vendor || window.opera;
  6148.     \$(document).ready(function () {
  6149.         {% if session['triggerPromptInfoModalFlag'] is defined %}
  6150.         {% if session['triggerPromptInfoModalFlag'] == 1 %}
  6151.         initiate_prompt_info_modal();
  6152.         {% endif %}
  6153.         {% endif %}
  6154.         {% if app.session.get('devAdminMode') ==1 %}
  6155.         {% endif %}
  6156.         \$('.book_now_cta').click(function (ev) {
  6157.             ev.preventDefault();
  6158.             selectPurchaseModal.show();
  6159.         })
  6160.         stepShowTab(currentTabSelectPurchaseModal, '#selectPurchaseModal')
  6161.         \$(document).on('click', '#selectPurchaseModal .routineTable tbody .icon-check.modifiable', function () {
  6162.             if (\$(this).hasClass('isChecked'))
  6163.                 \$(this).removeClass('isChecked');
  6164.             else
  6165.                 \$(this).addClass('isChecked')
  6166.             recalculateRoutinePackageOnPurchaseModal();
  6167.         })
  6168.         \$(document).on('click', '.offCanvasCalendarTrigger', function () {
  6169.             refreshOffCanvasCalendar()
  6170.         })
  6171.         \$(document).on('click', '.box-selector', function () {
  6172.             \$('.' + \$(this).data('genClass')).removeClass('active')
  6173.             \$(this).addClass('active')
  6174.         })
  6175.         \$(document).on('click', '#selectPurchaseModal .prevBtn', function () {
  6176.             //validate action here
  6177.             // if (!validateForm()) return false;
  6178.             stepShowTab('-1', '#selectPurchaseModal')
  6179.         })
  6180.         \$(document).on('click', '#selectPurchaseModal .stepIndicator', function () {
  6181.             //validate action here
  6182.             // if (!validateForm()) return false;
  6183.             stepShowTab(\$(this).data('seqId'), '#selectPurchaseModal')
  6184.         })
  6185.         \$(document).on('click', '#selectPurchaseModal .nextBtn', function () {
  6186.             //validate action here
  6187.             // if (!validateForm()) return false;
  6188.             stepShowTab('+1', '#selectPurchaseModal')
  6189.         })
  6190.         \$(document).on('click', '#selectPurchaseModal .cn_selector', function () {
  6191.             populateTopicListOnPurchaseModal(\$(this).data('id'));
  6192.             stepShowTab('+1', '#selectPurchaseModal')
  6193.             if (\$('.box-selector.cn_selector.active').length)
  6194.                 \$('.cntry_p span').text(\$('.box-selector.cn_selector.active .title').text())
  6195.         })
  6196.         \$(document).on('click', '#selectPurchaseModal .tp_selector', function () {
  6197.             refreshRoutinePackageListOnPurchaseModal(\$(this).data('id'));
  6198.             populateConsultantListOnPurchaseModal(\$(this).data('id'));
  6199.             stepShowTab('+1', '#selectPurchaseModal');
  6200.             if (\$('.box-selector.tp_selector.active').length)
  6201.                 \$('.topic_p span').text(\$('.box-selector.tp_selector.active .title').text() + ' ( ' + \$('.box-selector.tp_selector.active .sub-title').text() + ' )')
  6202.         })
  6203.         \$(document).on('click', '#selectPurchaseModal .cons_selector', function () {
  6204.             populateScheduleListOnPurchaseModal(\$(this).data('id'));
  6205.             stepShowTab('+1', '#selectPurchaseModal')
  6206.             if (\$('.box-selector.cons_selector.active').length)
  6207.                 \$('.cons_p span').text(\$('.box-selector.cons_selector.active .title').text())
  6208.         })
  6209.         \$(document).on('click', '#selectPurchaseModal .sch_selector_mon', function () {
  6210.             \$('#selectPurchaseModal .sch_selector_day').hide();
  6211.             // alert(\$(this).data('id'))
  6212.             \$('#selectPurchaseModal .sch_selector_day.sch_mon_' + \$(this).data('id')).show();
  6213.             // populateScheduleListOnPurchaseModal(\$(this).data('id'));
  6214.             // stepShowTab('+1','#selectPurchaseModal')
  6215.         })
  6216.         \$(document).on('click', '#selectPurchaseModal .sch_selector_day', function () {
  6217.             \$('#selectPurchaseModal .sch_selector_time').hide();
  6218.             \$('#selectPurchaseModal .sch_selector_time.sch_day_' + \$(this).data('id')).show();
  6219.             // populateScheduleListOnPurchaseModal(\$(this).data('id'));
  6220.             // stepShowTab('+1','#selectPurchaseModal')
  6221.         })
  6222.         \$(document).on('click', '#selectPurchaseModal .sch_selector_time', function () {
  6223.             // alert('here')
  6224.             \$('#selectPurchaseModal .sch_selector_mon.sch_mon_' + moment.unix(\$(this).data('id')).format('YYYY_MM')).trigger('click');
  6225.             \$('#selectPurchaseModal .sch_selector_day.sch_day_' + moment.unix(\$(this).data('id')).format('YYYY_MM_DD')).trigger('click');
  6226.         })
  6227.         if (CURRENT_ROUTE == 'consultancy_session') {
  6228. //            if (typeof currentMeetingSessionId !== 'undefined') {
  6229. //                if (upcomingNextMeetingIdForRedirect == currentMeetingSessionId) {
  6230. //                    clearInterval(triggerRefreshUpcomingSession);
  6231. //                }
  6232. //                else
  6233. //                    checkAndRedirectToMeeting(0);
  6234. //
  6235. //            }
  6236. //            else
  6237. //                checkAndRedirectToMeeting(0);
  6238. //                        clearInterval(triggerRefreshUpcomingSession);
  6239.         } else
  6240.             setTimeout(function () {
  6241.                 refreshUpcomingMeetingList();
  6242.                 triggerRefreshUpcomingMeetingList(60000);
  6243.             }, 20000);
  6244.         // Windows Phone must come first because its UA also contains \"Android\"
  6245.         // alert(userAgent);
  6246.         if ((currTsForDlM - deepLinkModalLastShown) > (3600 * 24)) {
  6247.             // alert('in DLM');
  6248.             if (/windows phone/i.test(userAgent)) {
  6249. //                alert(\"Android\");
  6250.                 \$('.deep_link_choice').hide();
  6251.                 \$('.deep_link_choice._AND_').show();
  6252.                 // \$('.deep_link_choice._IPHONE_').show();
  6253.                 \$('.deep_link_choice._BROWSER_').show();
  6254.                 deepLinkModal.show()
  6255.             }
  6256.             if (/Android/i.test(userAgent)) {
  6257. //                alert(\"Android\");
  6258.                 \$('.deep_link_choice').hide();
  6259.                 \$('.deep_link_choice._AND_').show();
  6260.                 // \$('.deep_link_choice._IPHONE_').show();
  6261.                 \$('.deep_link_choice._BROWSER_').show();
  6262.                 deepLinkModal.show()
  6263.             }
  6264.             // iOS detection from: http://stackoverflow.com/a/9039885/177710
  6265.             if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
  6266. //                alert(\"iOS\");
  6267.                 \$('.deep_link_choice').hide();
  6268.                 // \$('.deep_link_choice._AND_').show();
  6269.                 \$('.deep_link_choice._IPHONE_').show();
  6270.                 \$('.deep_link_choice._BROWSER_').show();
  6271.                 deepLinkModal.show()
  6272.             }
  6273.             window.localStorage.setItem('deepLinkModalLastShown', currTsForDlM)
  6274.         }
  6275.         // deepLinkModal.show()
  6276.         \$('#buddybee_preloader').fadeOut('slow', function () {
  6277.             \$(this).remove();
  6278.         });
  6279.         if (typeof initiateOtpModal !== 'undefined') {
  6280. //            initiateOtpModal()
  6281.         }
  6282.         {% if system_type=='_BUDDYBEE_' %}
  6283.         \$(document).on('click', 'a', function (e) {
  6284.             if (\$(this).attr('href') == '{{ url('under_construction') }}') {
  6285.                 e.preventDefault();
  6286.                 swal({
  6287.                     title: \"Oh Snap!\",
  6288.                     type: 'warning',
  6289.                     text: \"This page is Under Construction.\",
  6290.                     timer: 3000,
  6291.                     showConfirmButton: false
  6292.                 });
  6293.             }
  6294.             if (\$(this).attr('href') == '{{ url('user_logout') }}') {
  6295. //                e.preventDefault();
  6296.                 if (buddybee_socket != '') {
  6297.                     buddybee_socket.emit('update_my_socket', {
  6298.                         userId: buddybee_socket_user_id,
  6299.                         user_status: '_OFF_',
  6300.                         force_broadcast: 1,
  6301.                     });
  6302.                 }
  6303.             }
  6304.         });
  6305.         {% endif %}
  6306.         \$(document).on('click', '.admin-menu-toggler', function (e) {
  6307.             \$('.buddybee_admin_sidebar').toggle()
  6308.         })
  6309.         \$(document).on('click', 'a.book_now_cta', function (e) {
  6310. //            e.preventDefault();
  6311. //            bookNowModal.show()
  6312.         })
  6313.         \$(document).on('change', '.filter_with_this', function () {
  6314.             check_filters_default()
  6315.         })
  6316.         \$(document).on('click', '.btn_deep_link_selector', function () {
  6317.             if (\$(this).attr('data-deeplink-choice') == '_AND_')
  6318.                 window.location.href = \"https://play.google.com/store/apps/details?id=eu.buddybee.consultancy\";
  6319.             // deepLinkModal.hide()
  6320.         })
  6321.         check_filters_default();
  6322.         \$('#currentClientTime').val(moment().format('YYYY-MM-DD HH:mm:ss'))
  6323.         {% if constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::BUDDYBEE_SOCKET_ENABLED')==1 %}
  6324.         {# now check softone #}
  6325.         {# {% if notification_enabled==1 %} #}
  6326.         {% if session[UserConstants.USER_ID] is defined %}
  6327.         initiateBuddybeeSocket();
  6328.         {% endif %}
  6329.         {% endif %}
  6330.         \$('.schedule_date_picker').not('.datepicker').bootstrapMaterialDatePicker({
  6331.             format: 'MMMM DD, YYYY',
  6332.             clearButton: true,
  6333.             weekStart: 6,
  6334.             time: false,
  6335.             switchOnClick: true,
  6336.             monthPicker: true
  6337.             // format: 'HH:mm',
  6338.             // clearButton: true,
  6339.             // date: false,
  6340.             // switchOnClick:true
  6341.         });
  6342.         \$('.schedule_date_time_picker').not('.datepicker').bootstrapMaterialDatePicker({
  6343.             //format: 'dddd DD MMMM YYYY',
  6344.             // format: ' HH:mm',
  6345.             // clearButton: true,
  6346.             // weekStart: 6,
  6347.             // time: true,
  6348.             // switchOnClick: true,
  6349.             // monthPicker: false
  6350.             format: 'HH:mm',
  6351.             clearButton: true,
  6352.             date: false,
  6353.             switchOnClick: true
  6354.         });
  6355.         {# alert('{{ curr_route }}') #}
  6356.         {% if curr_route=='applicant_dashboard' or  curr_route=='dashboard' or curr_route=='consultant_dashboard' or curr_route=='buddybee_admin_dashboard' %}
  6357.         {% if session[UserConstants.USER_ID] is defined %}
  6358.         {% if session[UserConstants.USER_ID]!=0 %}
  6359.         var globLsDataStr = window.localStorage.getItem('lsData');
  6360.         var globLsData = {};
  6361.         if (globLsDataStr != 'null' && globLsDataStr != null)
  6362.             globLsData = JSON.parse(globLsDataStr);
  6363.         //    console.log(globLsData)
  6364.         if (typeof globLsData['checkoutPending'] !== 'undefined') {
  6365.             if (globLsData['checkoutPending'] == 1)
  6366.                 window.location.href = \"{{ url('pricing_plan_page') }}?autoRedirected=1\";
  6367.         }
  6368.         {% endif %}
  6369.         {% endif %}
  6370.         {% endif %}
  6371. //        //    console.log(globLsData)
  6372.         \$('#small_search_button').click(function () {
  6373. //            \$( '.small_search_content .selectize-control.searchbox.small_search' ).animate({
  6374. //                opacity: 0.25,
  6375. //                left: \"+=50\",
  6376. //                width: \"0\"
  6377. //            }, 5000, function() {
  6378. //                // Animation complete.
  6379. //            });
  6380.             if (\$('.small_search_content .selectize-control.searchbox.small_search').hasClass('search_shown')) {
  6381. //                \$('.small_search_content .selectize-control.searchbox.small_search').hide();
  6382.                 \$('.small_search_content .selectize-control.searchbox.small_search').removeClass('search_shown');
  6383. //                \$('.searchbar-content.small_search_content').css('border','1px solid #1d5b9e33;');
  6384.                 \$('.small_search_content .selectize-control.searchbox.small_search').animate({
  6385. //                opacity: 0.25,
  6386. //                left: \"+=50\",
  6387.                     width: \"0\"
  6388.                 }, 500, function () {
  6389.                     // Animation complete.
  6390.                     \$('.small_search_content .selectize-control.searchbox.small_search').hide();
  6391.                     \$('.small_search_content .selectize-control.searchbox.small_search').removeClass('search_shown');
  6392.                     \$('.searchbar-content.small_search_content').removeClass('search_shown');
  6393.                 });
  6394.             } else {
  6395. //                \$('.small_search_content .selectize-control.searchbox.small_search').show();
  6396. //                \$('.searchbar-content.small_search_content').css('border','1px solid #1d5b9e33;');
  6397.                 \$('.small_search_content .selectize-control.searchbox.small_search').css('display', 'inline-flex')
  6398.                 \$('.small_search_content .selectize-control.searchbox.small_search').addClass('search_shown');
  6399.                 \$('.searchbar-content.small_search_content').addClass('search_shown');
  6400.                 \$('.small_search_content .selectize-control.searchbox.small_search').animate({
  6401. //                opacity: 0.25,
  6402. //                left: \"+=50\",
  6403.                     width: \"224\"
  6404.                 }, 500, function () {
  6405.                     // Animation complete.
  6406. //                    \$('.searchbar-content.small_search_content').css('border','1px solid #1d5b9e33;');
  6407.                 });
  6408.             }
  6409.         })
  6410.         {# var small_search_box=\$(\".searchbox\").selectize({ #}
  6411.         {# valueField: \"url\", #}
  6412.         {# labelField: \"name\", #}
  6413.         {# searchField: \"name\", #}
  6414.         {# create: false, #}
  6415.         {# preload:true, #}
  6416.         {# score: function (search) { #}
  6417.         {# var score = this.getScoreFunction(search); #}
  6418.         {# return function (item) { #}
  6419.         {# return score(item) * (1 + Math.min(item.watchers / 100, 1)); #}
  6420.         {# }; #}
  6421.         {# }, #}
  6422.         {# onChange: function (value) { #}
  6423.         {# if (!value.length) return; #}
  6424.         {# window.location.href=value; #}
  6425.         {# //addProductToListById(value); #}
  6426.         {# // alert(value) #}
  6427.         {# // small_search_box.clear() #}
  6428.         {# // small_search_box.focus() #}
  6429.         {# }, #}
  6430.         {# load: function (query, callback) { #}
  6431.         {# if (!query.length) return callback(); #}
  6432.         {# \$.ajax({ #}
  6433.         {# url: \"{{ url('search_buddybee') }}/\" + encodeURIComponent(query), #}
  6434.         {# type: \"GET\", #}
  6435.         {# error: function () { #}
  6436.         {# callback(); #}
  6437.         {# }, #}
  6438.         {# success: function (res) { #}
  6439.         {# //    console.log(res.data) #}
  6440.         {# callback(res.data.slice(0, 10)); #}
  6441.         {# }, #}
  6442.         {# }); #}
  6443.         {# }, #}
  6444.         {# })[0].selectize; #}
  6445.         {% if system_type=='_BUDDYBEE_' %}
  6446.         var small_search_box = \$(\".searchbox\").selectize({
  6447.             valueField: \"url\",
  6448.             labelField: \"name\",
  6449.             searchField: \"name\",
  6450.             create: false,
  6451.             maxItems: 1,
  6452.             preload: 'focus',
  6453.             render: {
  6454.                 option: function (item, escape) {
  6455.                     return (
  6456.                         '<div style=\"padding: 10px;\">' +
  6457.                         '<span class=\"title\">' +
  6458.                         '<span class=\"name\" style=\"display:block;font-size: 18px;\">' +
  6459.                         //                        '<i class=\"icon ' +
  6460.                         //                        (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
  6461.                         //                        '\"></i>' +
  6462.                         //                        \"<div class='form-control mainDiv'>\" +
  6463.                         //                        '<span class=\"name\">' +
  6464.                         escape(item.name) +
  6465.                         \"</span>\" +
  6466.                         '<span class=\"description\" style=\"padding-top:2px; display: block\">' +
  6467.                         escape(item.description) +
  6468.                         \"</span>\" +
  6469.                         // '<span class=\"description\">' +
  6470.                         // escape(item.description) +
  6471.                         \"</span>\" +
  6472.                         \"</div>\"
  6473.                     );
  6474.                     // return (
  6475.                     //     \"<div>\" +
  6476.                     //     '<span class=\"title\">' +
  6477.                     //     '<span class=\"name\"><i class=\"icon ' +
  6478.                     //     (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
  6479.                     //     '\"></i>' +
  6480.                     //     escape(item.name) +
  6481.                     //     \"</span>\" +
  6482.                     //
  6483.                     //     \"</span>\" +
  6484.                     //     '<span class=\"description\">' +
  6485.                     //     escape(item.description) +
  6486.                     //     \"</span>\" +
  6487.                     //
  6488.                     //     \"</div>\"
  6489.                     // );
  6490.                 },
  6491.             },
  6492.             onChange: function (value) {
  6493.                 if (!value.length) return;
  6494.                 var sval = value
  6495.                 small_search_box.setValue([])
  6496.                 window.location.href = sval;
  6497.                 //addProductToListById(value);
  6498.                 // alert(value)
  6499.                 // small_search_box.clear()
  6500.                 // small_search_box.focus()
  6501.             },
  6502.             load: function (query, callback) {
  6503. //                if (!query.length) return callback();
  6504.                 \$.ajax({
  6505.                     url: \"{{ url('search_buddybee') }}/\" + encodeURIComponent(query),
  6506.                     type: \"GET\",
  6507.                     error: function () {
  6508.                         callback();
  6509.                     },
  6510.                     success: function (res) {
  6511.                         //    console.log(res.data)
  6512.                         callback(res.data);
  6513.                     },
  6514.                 });
  6515.             },
  6516.         })[0].selectize;
  6517.         {% endif %}
  6518.         \$('.selectize-control.searchbox .selectize-input.items input').addClass('trn')
  6519.         \$('.selectize-control.searchbox .selectize-input.items input').attr('data-trn-key', '_SMALL_SEARCH_PH_');
  6520.         _t = \$('body').translate({
  6521.             lang: \"en\",
  6522.             t: lang_pack
  6523.         });
  6524.         if (typeof (window.localStorage) !== \"undefined\")
  6525.             honeybeeLocale = window.localStorage.getItem('honeybeeLocale');
  6526. //    alert(honeybeeLocale)
  6527.         if (honeybeeLocale !== \"undefined\" && honeybeeLocale != 'null' && honeybeeLocale != null) {
  6528.             _t.lang(honeybeeLocale);
  6529.         } else {
  6530.             honeybeeLocale = 'en'
  6531.         }
  6532.         \$(\".locale_changer\").click(function (ev) {
  6533.             var lang = \$(this).attr(\"data-locale\");
  6534.             _t.lang(lang);
  6535.             honeybeeLocale = lang;
  6536.             \$(\".locale_changer\").removeClass('activeLocale')
  6537.             \$(this).addClass('activeLocale');
  6538.             \$(\".curr_locale_text\").text(\$(this).text());
  6539.             if (typeof (window.localStorage) !== \"undefined\")
  6540.                 honeybeeLocale = window.localStorage.setItem('honeybeeLocale', honeybeeLocale);
  6541. //            //    console.log(lang);
  6542.             ev.preventDefault();
  6543.         });
  6544.         {% if system_type=='_BUDDYBEE_' %}
  6545.         if (\$('#viewAsId').length) {
  6546.             \$('#viewAsId').selectize({
  6547.                 placeholder: 'Choose User',
  6548.                 multiple: false,
  6549. //            options: APTL.productListArray,
  6550.                 options: [],
  6551.                 valueField: 'value',
  6552.                 labelField: 'text',
  6553.                 searchField: ['text', 'value', 'phone', 'email', 'o_auth_email', 'firstname', 'lastname'],
  6554.                 preload: 'focus',
  6555.                 render: {
  6556.                     option: function (item, escape) {
  6557.                         return (
  6558.                             '<div style=\"padding: 2px; display:flex;\">' +
  6559.                             '<span class=\"title\" style=\"    min-width: 2rem;display: inline-block;\">' +
  6560.                             ((item.image != null && item.image != '') ? '<img style=\"border-radius: 50%;height: 2rem;width: 2rem;\" src=\"' + item.image + '\" alt=\"\" class=\"img-fluid\" >' :
  6561.                                 '<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\" >') +
  6562.                             \"</span>\" +
  6563.                             '<span class=\"name\" style=\"padding-left:0.5rem;font-size: 12px; display:inline-block;\">' +
  6564.                             //                        '<i class=\"icon ' +
  6565.                             //                        (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
  6566.                             //                        '\"></i>' +
  6567.                             //                        \"<div class='form-control mainDiv'>\" +
  6568.                             //                        '<span class=\"name\">' +
  6569.                             '#' + escape(item.applicant_id) + ' ' + escape(item.firstname) + ' ' + escape(item.lastname) + '<br> ' + escape(item.phone) + ' - ' + escape(item.o_auth_email) +
  6570.                             \"</span>\" +
  6571.                             // '<span class=\"description\">' +
  6572.                             // escape(item.description) +
  6573.                             //                    \"</span>\" +
  6574.                             \"</div>\"
  6575.                         );
  6576.                         // return (
  6577.                         //     \"<div>\" +
  6578.                         //     '<span class=\"title\">' +
  6579.                         //     '<span class=\"name\"><i class=\"icon ' +
  6580.                         //     (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
  6581.                         //     '\"></i>' +
  6582.                         //     escape(item.name) +
  6583.                         //     \"</span>\" +
  6584.                         //
  6585.                         //     \"</span>\" +
  6586.                         //     '<span class=\"description\">' +
  6587.                         //     escape(item.description) +
  6588.                         //     \"</span>\" +
  6589.                         //
  6590.                         //     \"</div>\"
  6591.                         // );
  6592.                     },
  6593.                 },
  6594.                 onChange: function (value) {
  6595.                     if (!value.length) return;
  6596.                     window.location.href = '{{ absolute_url(path('view_as_user_buddybee')) }}/' + value;
  6597.                     //addProductToListById(value);
  6598.                     // alert(value)
  6599.                     // small_search_box.clear()
  6600.                     // small_search_box.focus()
  6601.                 },
  6602.                 load: function (query, callback) {
  6603. //                        if (!query.length) return // callback();
  6604.                     if (!query.length) query = '_EMPTY_';
  6605.                     var pika_ind_id = \$(\$(this)[0].\$input[\"0\"]).attr('data-id')
  6606.                     \$.ajax({
  6607.                         url: BaseURL + \"select_data_ajax_public\",
  6608.                         type: 'POST',
  6609.                         dataType: 'json',
  6610.                         data: {
  6611.                             //returnJson: 1,
  6612.                             //sessionData: sessionData
  6613.                             query: query,
  6614.                             tableName: \"entity_applicant_details\",
  6615.                             valueField: \"applicant_id\",
  6616. //                        textField: \"topic_name\",
  6617.                             entity_group: 1,
  6618.                             selectorId: \$(\$(this)[0].\$input[\"0\"]).attr('id'),
  6619.                             isMultiple: 0,
  6620.                             dataId: pika_ind_id,
  6621. //                        isMultiple: 0,
  6622.                             textField: \"rendered_text\",
  6623. //
  6624.                             renderTextFormat: \" __firstname__  __lastname__\",
  6625.                             andOrConditions: [
  6626.                                 {type: \"like\", field: \"firstname\", value: query},
  6627.                                 {type: \"like\", field: \"lastname\", value: query},
  6628.                                 {type: \"like\", field: \"phone\", value: query},
  6629.                                 {type: \"like\", field: \"email\", value: query},
  6630.                                 {type: \"=\", field: \"applicant_id\", value: isNaN(query) ? '' : query}
  6631.                             ],
  6632.                             mustConditions: [
  6633.                                 {% if BUDDYBEE_ADMIN_LEVEL>=5 %}
  6634.                                 {% elseif BUDDYBEE_ADMIN_LEVEL >=1 %}
  6635.                                 {
  6636.                                     type: \"in\",
  6637.                                     field: \"is_admin\",
  6638.                                     value: [0, 'null']
  6639.                                 },
  6640.                                 {
  6641.                                     type: \"in\",
  6642.                                     field: \"assigned_sales_representative_id\",
  6643.                                     value: [0, 'null',{{ session[UserConstants.USER_ID] }}]
  6644.                                 },
  6645.                                 {% else %}
  6646.                                 {% endif %}
  6647.                                 // {type: \"=\", field: \"is_consultant\", value: 1},
  6648.                                 {# {% if not curr_data is empty %} #}
  6649. //                            {type: \"!=\", field: \"applicant_id\", value: \$('#rescheduledStudentId').val()}
  6650.                                 {# {% endif %} #}
  6651.                             ],
  6652.                             convertToObject: [
  6653. //                            'accessories', 'issues'
  6654.                             ],
  6655.                             skipDefaultCompanyId: 1
  6656.                             // setDataForSingle: 1,
  6657.                         },
  6658.                         error: function () {
  6659.                             // callback();
  6660.                         },
  6661.                         success: function (res) {
  6662. //                        preliminary_reg_data_by_id = res.dataById
  6663.                             callback(res.data);
  6664.                             if (res.setValueArray.length != 0 && res.selectorId != '') {
  6665.                                 if (res.isMultiple == 1)
  6666.                                     \$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
  6667.                                 else
  6668.                                     \$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
  6669.                             }
  6670. //                        alert('pika master')
  6671.                         }
  6672.                     });
  6673.                 },
  6674.             })[0].selectize;
  6675.         }
  6676.         \$('.recharge_submit').click(function (e) {
  6677.             e.preventDefault();
  6678.             \$('#rechargeForm').submit();
  6679.         });
  6680. //        alert('.locale_changer.'+honeybeeLocale)
  6681. //        alert(\$('.locale_changer.'+honeybeeLocale).text())
  6682.         \$(\".curr_locale_text\").text(\$('.locale_changer.' + honeybeeLocale).text());
  6683.         {% endif %}
  6684.         \$('.add_basic_day_picker').not('.datepicker').bootstrapMaterialDatePicker({
  6685.             //format: 'dddd DD MMMM YYYY',
  6686.             format: 'MMMM DD, YYYY HH:mm',
  6687.             clearButton: true,
  6688.             weekStart: 6,
  6689.             time: true,
  6690.             switchOnClick: true,
  6691.             monthPicker: true
  6692.         });
  6693.     });
  6694. </script>
  6695. </html>
  6696. ""@Application/footer/buddybee_new_footer.html.twig""/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/src/ApplicationBundle/Resources/views/footer/buddybee_new_footer.html.twig");
  6697.     }
  6698. }