var/cache/dev/twig/2e/2e50ee0cb78ddde91b0f4d2957eceaaff2e41416cd6da886ed87d76ae10147f3.php line 89

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