<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @Application/footer/buddybee_new_footer.html.twig */
class __TwigTemplate_4f74d870fc96caee5583fc7f1076c15f093ae8f34d31ec3021cf9dd68df3cba2 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Application/footer/buddybee_new_footer.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Application/footer/buddybee_new_footer.html.twig"));
// line 3
yield " ";
if ( !array_key_exists("include_html", $context)) {
// line 4
yield " ";
$context["include_html"] = 1;
// line 5
yield " ";
if ((0 !== CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 5), "request", [], "any", false, false, false, 5), "get", ["skipHTML"], "method", false, false, false, 5), ""))) {
// line 6
yield " ";
$context["include_html"] = 0;
// line 7
yield " ";
}
// line 8
yield " ";
}
// line 9
if ((0 !== 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))) {
// line 10
yield "
";
}
// line 14
yield "
";
// line 15
yield from $this->loadTemplate("@Application/framework/_deeplinkmodal_css.html.twig", "@Application/footer/buddybee_new_footer.html.twig", 15)->unwrap()->yield($context);
// line 16
$context["BUDDYBEE_ADMIN_LEVEL"] = ((CoreExtension::getAttribute($this->env, $this->source, ($context["session"] ?? null), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 16, $this->source); })()), "BUDDYBEE_ADMIN_LEVEL", [], "any", false, false, false, 16), [], "array", true, true, false, 16)) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["session"]) || array_key_exists("session", $context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.', 16, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 16, $this->source); })()), "BUDDYBEE_ADMIN_LEVEL", [], "any", false, false, false, 16), [], "array", false, false, false, 16)) : (0));
// line 17
yield from $this->loadTemplate("@Application/modals/input_forms/verify_otp_modal.html.twig", "@Application/footer/buddybee_new_footer.html.twig", 17)->unwrap()->yield($context);
// line 18
yield "<script>
var notificationDetailBaseUrl = '";
// line 19
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("buddybee_notification_view", ["id" => 0]);
yield "';
</script>
";
// line 21
if ((0 === CoreExtension::compare((isset($context["system_type"]) || array_key_exists("system_type", $context) ? $context["system_type"] : (function () { throw new RuntimeError('Variable "system_type" does not exist.', 21, $this->source); })()), "_BUDDYBEE_"))) {
// line 22
yield "<footer class=\"footer\">
<a class=\"nav-link cta book_now_cta\" href=\"";
// line 23
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("consultant_search_page");
yield "\" style=\"text-transform: none;\"
><span class=\"trn\" data-trn-key=\"_BOOK_NOW_CTA_\" style=\"vertical-align: middle;padding: 2px 6px;
display: inline-block;\"></span> <i class=\"fa fa-arrow-right\"></i></a>
";
// line 29
yield " ";
// line 30
yield " ";
// line 31
yield " ";
// line 32
yield " ";
// line 33
yield " ";
// line 34
yield " ";
// line 35
yield " ";
// line 36
yield " ";
// line 37
yield " ";
// line 38
yield " ";
// line 39
yield " ";
// line 40
yield " ";
// line 41
yield " ";
// line 42
yield " ";
// line 43
yield "
";
// line 45
yield " ";
// line 46
yield " ";
// line 47
yield " <div class=\"modal fade\" style=\"z-index: 99999;\" id=\"bookNowModal\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\"
aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\">
<div class=\"modal-content\">
<div class=\"modal-header\" style=\"text-align: center;display: block;\">
<h5 class=\"modal-title\" id=\"exampleModalLabel\" style=\"text-align: center;\">Select your
Preference</h5>
";
// line 55
yield " </div>
";
// line 56
yield from $this->loadTemplate("@Application/framework/_constypeselectorbtn_css.html.twig", "@Application/footer/buddybee_new_footer.html.twig", 56)->unwrap()->yield($context);
// line 57
yield " <div class=\"modal-body\">
<div class=\"row\">
<div class=\"col-md-12\" style=\"text-align: left;\">
<a class=\"consTypeSelectorBtn \" id=\"\"
href=\"";
// line 63
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("admin_consultant_search_page");
yield "\">
<div class=\"\">
<p style=\"margin: 0px;text-transform: none;\">
";
// line 67
yield " ";
// line 68
yield " ";
// line 69
yield " ";
// line 70
yield " ";
// line 71
yield " ";
// line 72
yield " ";
// line 73
yield " ";
// line 74
yield " ";
// line 75
yield " ";
// line 76
yield " Primary Consultancy</p>
</div>
</a>
<a class=\"consTypeSelectorBtn \" id=\"\"
href=\"";
// line 82
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("consultant_search_page");
yield "\">
<div class=\"\">
<p style=\"margin: 0px;text-transform: none;\">
";
// line 86
yield " ";
// line 87
yield " ";
// line 88
yield " ";
// line 89
yield " ";
// line 90
yield " ";
// line 91
yield " ";
// line 92
yield " ";
// line 93
yield " ";
// line 94
yield " ";
// line 95
yield " Expert Consultancy</p>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<form action=\"";
// line 110
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("recharge_account");
yield "\" method=\"post\" id=\"rechargeForm\">
";
// line 113
yield " ";
// line 114
yield " ";
// line 115
yield "
<!-- Modal -->
<div class=\"modal fade\" id=\"rechargeAccountOwnModal\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\"
aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\">
<div class=\"modal-content\">
<div class=\"modal-header\" style=\"text-align: center;display: block;\">
<h5 class=\"modal-title\" id=\"exampleModalLabel\" style=\"text-align: center;\">Add Fund to Your
Account</h5>
";
// line 126
yield " </div>
<div class=\"modal-body\">
<div class=\"row\">
<div class=\"col-md-12\" style=\"text-align: left;\">
<div class=\"form-group\">
<label for=\"\">Recharge Amount (Euro)</label>
<input type=\"number\" class=\"form-control\" name=\"rechargeAmount\" id=\"rechargeAmount\">
</div>
<div class=\"form-group\">
<label for=\"\">Bee Code</label>
<input type=\"text\" class=\"form-control\" name=\"rechargeBeeCode\" id=\"rechargeBeeCode\"
placeholder=\"if you have\" value=\"\">
<input type=\"hidden\" class=\"form-control\" name=\"rechargeApplicantId\"
id=\"rechargeApplicantId\" placeholder=\"if you have\"
value=\"";
// line 142
((CoreExtension::getAttribute($this->env, $this->source, ($context["session"] ?? null), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 142, $this->source); })()), "USER_ID", [], "any", false, false, false, 142), [], "array", true, true, false, 142)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["session"]) || array_key_exists("session", $context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.', 142, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 142, $this->source); })()), "USER_ID", [], "any", false, false, false, 142), [], "array", false, false, false, 142), "html", null, true)) : (yield 0));
yield "\">
</div>
<br>
<button type=\"button\" style=\"width: 48%;height: 3rem;\"
class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Close
</button>
<button type=\"button\" style=\"width: 48%;height: 3rem;\"
class=\"btn btn-primary recharge_submit\">Proceed
</button>
</div>
</div>
</div>
<div class=\"modal-footer\">
</div>
</div>
</div>
</div>
</form>
<div class=\"modal fade \" style=\"z-index:9999999999999999999\" id=\"deepLinkModal\" tabindex=\"-1\"
aria-labelledby=\"exampleModalLabel\"
aria-hidden=\"true\" data-bs-backdrop=\"false\">
<div class=\"modal-dialog modal-dialog-centered modal-xl\" style=\"
/*position:fixed;*/
align-items: end;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
width: 100%;
top:auto;
right:auto;
left:auto;
bottom:0;\">
<div class=\"modal-content\" style=\" text-align: center;
border-radius: 15px 15px 0 0;
\">
<div class=\"modal-body\">
<h5 class=\"modal-title\" id=\"exampleModalLabel\" style=\" text-align: center;
font-size: 1rem;
color: #616467;
margin-bottom: 1rem;
margin-top: .5rem;
\">Explore BuddyBee with...</h5>
<div class=\"row deep_link_choice _AND_\" style=\"margin-bottom:10px;\">
<div class=\"col-md-8 col-sm-8\"
style=\"text-align: left; display: flex; justify-content: space-evenly;\">
<div style=\"background:url(";
// line 198
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", null, true);
yield "buddybee_assets/android-icon-192x192.png);
height: 40px;
width: 40px;
background-size: 100%;
background-repeat: no-repeat;
background-position: center;
border-radius: 29%;
display: inline-block;
border: 1px solid #d7dbe1;\" class=\"cons_image_view\">
</div>
<div style=\"
height: 40px;
width: 200px;
padding-top: 10px;;
padding-left: 10px;;
border-radius: 50%;display: inline-block\" class=\"\">
<p>BuddyBee App</p>
</div>
</div>
<div class=\"col-md-4 col-sm-4\" style=\"text-align: left; padding-top: 5px;\">
<button type=\"button\" style=\"width: 100%;
height: 33px;
font-size: 12px;
/*margin-top: 10px; */
color: #ffffff;
background-color: #1d5b9e;
font-weight: bold;
border: none;\"
class=\"btn btn_deep_link_selector btn-primary\" data-deeplink-choice=\"_AND_\"
data-bs-dismiss=\"modal\">Open
</button>
</div>
</div>
<div class=\"row deep_link_choice _IPHONE_\" style=\"margin-bottom:10px;\">
<div class=\"col-md-8 col-sm-8\"
style=\"text-align: left; display: flex; justify-content: space-evenly;\">
<div style=\"background:url(";
// line 243
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", null, true);
yield "buddybee_assets/android-icon-192x192.png);
height: 40px;
width: 40px;
background-size: 100%;
background-repeat: no-repeat;
background-position: center;
border-radius: 29%;
display: inline-block;
border: 1px solid #d7dbe1;\" class=\"cons_image_view\">
</div>
<div style=\"
height: 40px;
width: 200px;
padding-top: 10px;;
padding-left: 10px;;
border-radius: 50%;display: inline-block\" class=\"\">
<p>BuddyBee App</p>
</div>
</div>
<div class=\"col-md-4 col-sm-4\" style=\"text-align: left; padding-top: 5px;\">
<button type=\"button\" style=\"width: 100%;
height: 33px;
font-size: 12px;
/*margin-top: 10px; */
/*color: #261a0c;*/
/*background-color: #fac53a;*/
color: #ffffff;
background-color: #1d5b9e;
font-weight: bold;
border: none;\"
class=\"btn btn_deep_link_selector btn-primary\" data-deeplink-choice=\"_IPHONE_\"
data-bs-dismiss=\"modal\">Open
</button>
</div>
</div>
<div class=\"row deep_link_choice _BROWSER_\" style=\"margin-bottom:10px;\">
<div class=\"col-md-8 col-sm-8\"
style=\"text-align: left; display: flex; justify-content: space-evenly;\">
<div style=\"background:url(";
// line 291
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", null, true);
yield "buddybee_assets/chrome_logo.png);
height: 40px;
width: 40px;
background-size: 100%;
background-repeat: no-repeat;
background-position: center;
border-radius: 29%;
display: inline-block;
border: none;\" class=\"cons_image_view\">
</div>
<div style=\"
height: 40px;
width: 200px;
padding-top: 10px;;
padding-left: 10px;;
border-radius: 50%;display: inline-block\" class=\"\">
<p>Browser</p>
</div>
</div>
<div class=\"col-md-4 col-sm-4\" style=\"text-align: left; padding-top: 5px;\">
<button type=\"button\" style=\"width: 100%;
height: 33px;
font-size: 12px;
/*margin-top: 10px;*/
color: #1d5b9e;
/*color: #261a0c;*/
background-color: #dddad3;
font-weight: bold;
border: none;\"
class=\"btn btn_deep_link_selector btn-primary\" data-deeplink-choice=\"_BROWSER_\"
data-bs-dismiss=\"modal\">Continue
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"download-app\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-8 my-auto\">
<div class=\"download-app-content\">
<span>BuddyBee on the go</span>
<p>Start or schedule consultants anytime, anywhere with Android and iPhone apps</p>
<div class=\"download-store\">
";
// line 349
yield " ";
// line 350
yield " ";
// line 351
yield " <a href=\"https://play.google.com/store/apps/details?id=eu.buddybee.consultancy\"
target=\"_blank\"><img
src=\"";
// line 353
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", null, true);
yield "buddybee_assets/images/google-play.png\"
alt=\"google-play\"></a>
</div>
</div>
</div>
<div class=\"col-md-4\">
<div class=\"download-app-img\">
<img src=\"";
// line 361
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", null, true);
yield "buddybee_assets/images/video-call.png\"
alt=\"video-call\">
</div>
</div>
</div>
</div>
</div>
<div class=\"container\">
<div class=\"image\" style=\"text-align: center;\">
<img src=\"https://buddybee.eu/buddybee_assets/images/aamarpay-footer.png\" alt=\"\" style=\"max-width: 50%;\">
</div>
</div>
<div class=\"footer-menu\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-12\">
<ul class=\"d-flex justify-content-between m-0\">
<li><a href=\"#\">Copyright ©";
// line 378
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "Y"), "html", null, true);
yield " BuddyBee</a></li>
<li><a href=\"#\">Powered by ©";
// line 379
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "Y"), "html", null, true);
yield " HoneyBee IoT Ltd. </a></li>
";
// line 381
yield " <li><a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact_page");
yield "\">Contact</a></li>
<li><a href=\"";
// line 382
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("buddybee_terms_of_service");
yield "\">Terms of Service</a></li>
<li><a href=\"";
// line 383
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("buddybee_privacy_policy");
yield "\">Privacy Policy</a></li>
<li><a href=\"";
// line 384
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("buddybee_refund_policy");
yield "\">Refund Policy</a></li>
<li><a href=\"";
// line 385
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("buddybee_cancellation_policy");
yield "\">Cancellation Policy</a></li>
<li><a href=\"";
// line 386
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("help_page");
yield "\">Help</a></li>
";
// line 388
yield " </ul>
</div>
</div>
</div>
</div>
</footer>
";
// line 394
yield from $this->loadTemplate("@Application/framework/_stepindicator_css.html.twig", "@Application/footer/buddybee_new_footer.html.twig", 394)->unwrap()->yield($context);
// line 395
yield from $this->loadTemplate("@Application/framework/_promptforinfomodal_css.html.twig", "@Application/footer/buddybee_new_footer.html.twig", 395)->unwrap()->yield($context);
// line 396
yield from $this->loadTemplate("@Application/framework/_selectpurchasemodal_css.html.twig", "@Application/footer/buddybee_new_footer.html.twig", 396)->unwrap()->yield($context);
// line 397
yield "
<div class=\"modal fade\" id=\"promptForInfoModal\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\"
aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\">
<div class=\"modal-content\">
<div class=\"modal-header\" style=\"\">
<h6 class=\"modal-title\" id=\"exampleModalLabel\" style=\"text-align: left;\">
Please Fill up Your Info for Better Communication</h6>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\">
";
// line 408
yield " </button>
</div>
<div class=\"modal-body\">
<div class=\"row\">
";
// line 416
if (CoreExtension::getAttribute($this->env, $this->source, ($context["session"] ?? null), "triggerPromptInfoModalFlag", [], "array", true, true, false, 416)) {
// line 417
yield " ";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["session"]) || array_key_exists("session", $context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.', 417, $this->source); })()), "triggerPromptInfoModalFlag", [], "array", false, false, false, 417), 1))) {
// line 418
yield "
";
// line 419
if (CoreExtension::getAttribute($this->env, $this->source, ($context["session"] ?? null), "relevantRequiredPromptFields", [], "array", true, true, false, 419)) {
// line 420
yield "
";
// line 421
$context["relevantRequiredPromptFields"] = $this->extensions['ApplicationBundle\Twig\GeneralExtension']->jsonDecode(CoreExtension::getAttribute($this->env, $this->source, (isset($context["session"]) || array_key_exists("session", $context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.', 421, $this->source); })()), "relevantRequiredPromptFields", [], "array", false, false, false, 421));
// line 422
yield "
";
// line 423
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields", $context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.', 423, $this->source); })()))) {
// line 424
yield "
<form id=\"promptForInfoModalForm\" action=\"#!\">
<!-- start step indicators -->
<div class=\"form-header d-flex mb-4\">
";
// line 431
if (((CoreExtension::inFilter("email", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields", $context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.', 431, $this->source); })())) || CoreExtension::inFilter("phone", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields", $context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.', 431, $this->source); })()))) || CoreExtension::inFilter("currentCountryId", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields", $context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.', 431, $this->source); })())))) {
// line 432
yield " <span class=\"stepIndicator\">Contact Info</span>
";
}
// line 435
yield "
";
// line 436
if (((CoreExtension::inFilter("preferredTopicIdsAsConsultant", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields", $context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.', 436, $this->source); })())) || CoreExtension::inFilter("preferredTopicIdsAsStudent", // line 437
(isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields", $context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.', 437, $this->source); })()))) || CoreExtension::inFilter("preferredConsultancyTopicCountryIds", // line 438
(isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields", $context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.', 438, $this->source); })())))) {
// line 439
yield " <span class=\"stepIndicator\">Preferences</span>
";
}
// line 442
yield " ";
// line 443
yield " ";
// line 444
yield " </div>
<!-- end step indicators -->
<!-- step one -->
";
// line 448
if (((CoreExtension::inFilter("email", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields", $context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.', 448, $this->source); })())) || CoreExtension::inFilter("phone", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields", $context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.', 448, $this->source); })()))) || CoreExtension::inFilter("currentCountryId", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields", $context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.', 448, $this->source); })())))) {
// line 449
yield "
";
// line 451
yield "
<div class=\"step\">
";
// line 455
yield "
";
// line 456
if (CoreExtension::inFilter("email", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields", $context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.', 456, $this->source); })()))) {
// line 457
yield " <div class=\"mb-3\">
<input type=\"email\" class=\"promptForInfoAutoUpdateData required\"
data-set-method=\"setOAuthEmail\"
data-field-type=\"_TEXT_\"
data-relevant-prompt-field=\"email\"
data-modify-trans-date=\"0\"
placeholder=\"Your Email\">
</div>
";
}
// line 467
yield " ";
if (CoreExtension::inFilter("phone", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields", $context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.', 467, $this->source); })()))) {
// line 468
yield " <div class=\"mb-3\">
<input type=\"phone\" class=\"promptForInfoAutoUpdateData required\"
data-set-method=\"setPhone\"
data-field-type=\"_TEXT_\"
data-relevant-prompt-field=\"phone\"
data-modify-trans-date=\"0\"
placeholder=\"Your Phone No.\">
</div>
";
}
// line 479
yield " ";
if (CoreExtension::inFilter("currentCountryId", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields", $context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.', 479, $this->source); })()))) {
// line 480
yield " <p class=\" mb-4\">Your Current Country</p>
<div class=\"mb-3\">
<select class=\"promptForInfoAutoUpdateData required\"
data-set-method=\"setCurrentCountryId,setCountry\"
data-field-type=\"_VALUE_\"
data-relevant-prompt-field=\"currentCountryId\"
data-modify-trans-date=\"0\"
id=\"currentCountryIdPromptForInfo\"
name=\"currentCountryIdPromptForInfo[]\">
</select>
</div>
";
}
// line 494
yield "
</div>
";
}
// line 497
yield "
<!-- step two -->
";
// line 499
if (((CoreExtension::inFilter("preferredTopicIdsAsConsultant", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields", $context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.', 499, $this->source); })())) || CoreExtension::inFilter("preferredTopicIdsAsStudent", // line 500
(isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields", $context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.', 500, $this->source); })()))) || CoreExtension::inFilter("preferredConsultancyTopicCountryIds", // line 501
(isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields", $context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.', 501, $this->source); })())))) {
// line 502
yield "
<div class=\"step\">
";
// line 504
if (CoreExtension::inFilter("preferredTopicIdsAsStudent", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields", $context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.', 504, $this->source); })()))) {
// line 505
yield "
<p class=\" mb-4\">Your Preferred topics as Student</p>
<div class=\"mb-3\">
<select class=\" promptForInfoAutoUpdateData\"
data-set-method=\"setPreferredTopicIdsAsStudent\"
data-field-type=\"_JSON_\"
data-relevant-prompt-field=\"preferredTopicIdsAsStudent\"
data-modify-trans-date=\"0\"
id=\"preferredTopicIdsAsStudentPromptForInfo\"
name=\"preferredTopicIdsAsStudentPromptForInfo[]\"
multiple>
</select>
</div>
";
}
// line 521
yield " ";
if (CoreExtension::inFilter("preferredTopicIdsAsConsultant", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields", $context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.', 521, $this->source); })()))) {
// line 522
yield "
<p class=\" mb-4\">Your Preferred topics as Consultant</p>
<div class=\"mb-3\">
<select class=\" promptForInfoAutoUpdateData\"
data-set-method=\"setPreferredTopicIdsAsConsultant\"
data-field-type=\"_JSON_\"
data-relevant-prompt-field=\"preferredTopicIdsAsConsultant\"
data-modify-trans-date=\"0\"
id=\"preferredTopicIdsAsConsultantPromptForInfo\"
name=\"preferredTopicIdsAsConsultantPromptForInfo[]\"
multiple>
</select>
</div>
";
}
// line 538
yield " ";
if (CoreExtension::inFilter("preferredConsultancyTopicCountryIds", (isset($context["relevantRequiredPromptFields"]) || array_key_exists("relevantRequiredPromptFields", $context) ? $context["relevantRequiredPromptFields"] : (function () { throw new RuntimeError('Variable "relevantRequiredPromptFields" does not exist.', 538, $this->source); })()))) {
// line 539
yield "
<p class=\" mb-4\">Countries you wish to go</p>
<div class=\"mb-3\">
<select class=\" promptForInfoAutoUpdateData\"
data-set-method=\"setPreferredConsultancyTopicCountryIds\"
data-field-type=\"_JSON_\"
data-relevant-prompt-field=\"preferredConsultancyTopicCountryIds\"
data-modify-trans-date=\"0\"
id=\"preferredConsultancyTopicCountryIdsPromptForInfo\"
name=\"preferredConsultancyTopicCountryIdsPromptForInfo[]\"
multiple>
</select>
</div>
";
}
// line 556
yield "
</div>
";
}
// line 559
yield "
<!-- step three -->
<!-- start previous / next buttons -->
<div class=\"form-footer d-flex\">
<button type=\"button\" class=\"prevBtn\" id=\"promptForInfo_prevBtn\"
onclick=\"promptInfo_nextPrev(-1)\">
Previous
</button>
<button type=\"button\" class=\"nextBtn\" id=\"promptForInfo_nextBtn\"
onclick=\"promptInfo_nextPrev(1)\">
Next
</button>
</div>
<!-- end previous / next buttons -->
</form>
";
}
// line 579
yield " ";
}
// line 580
yield " ";
}
// line 581
yield " ";
}
// line 582
yield " </div>
</div>
";
// line 586
yield "
";
// line 588
yield " </div>
</div>
</div>
<div class=\"modal fade\" id=\"selectPurchaseModal\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\"
aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\">
<div class=\"modal-content\">
<div class=\"modal-header\" style=\"\">
<h6 class=\"modal-title\" id=\"exampleModalLabel\" style=\"text-align: left;\">
Get Consultation</h6>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\">
";
// line 602
yield " </button>
</div>
<div class=\"modal-body\">
<div class=\"row\">
";
// line 609
yield from $this->loadTemplate("@Application/framework/_box_selector_css.html.twig", "@Application/footer/buddybee_new_footer.html.twig", 609)->unwrap()->yield($context);
// line 610
yield "
<form id=\"selectPurchaseModalForm\" action=\"#\">
<!-- start step indicators -->
<div class=\"form-header d-flex mb-4\">
<span class=\"stepIndicator seq_0\" data-seq-id=\"0\">Select Country</span>
<span class=\"stepIndicator seq_1\" data-seq-id=\"1\">Select Topic</span>
<span class=\"stepIndicator seq_2\" data-seq-id=\"2\">Select Consultant</span>
<span class=\"stepIndicator seq_3\" data-seq-id=\"3\">Select Schedule</span>
<span class=\"stepIndicator seq_4\" data-seq-id=\"4\">Confirm</span>
<span class=\"stepIndicator seq_5\" data-seq-id=\"5\">Payment</span>
</div>
<div class=\"step seq_0 \">
<h5 class=\" \">Select a Country</h5>
<div class=\"row clearfix cn_holder\">
";
// line 631
if ( !array_key_exists("countries_data", $context)) {
// line 632
yield " ";
$context["countries_data"] = $this->extensions['ApplicationBundle\Twig\GeneralExtension']->getCountriesBuddyBee("");
// line 633
yield " ";
}
// line 634
yield "
";
// line 635
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["countries_data"]) || array_key_exists("countries_data", $context) ? $context["countries_data"] : (function () { throw new RuntimeError('Variable "countries_data" does not exist.', 635, $this->source); })()));
foreach ($context['_seq'] as $context["ind"] => $context["cntry"]) {
// line 636
yield " <div class=\"box-selector cn_selector cn_";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["cntry"], "id", [], "any", false, false, false, 636), "html", null, true);
yield " col-md-3 col-sm-6\"
data-id=\"";
// line 637
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["cntry"], "id", [], "any", false, false, false, 637), "html", null, true);
yield "\"
data-gen-class=\"cn_selector\"
>
<div class=\"inside\">
<div class=\"img\" href=\"";
// line 642
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("dashboard");
yield "\" style=\"
background:url(' ";
// line 643
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", null, true);
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["cntry"], "flagImage", [], "any", false, false, false, 643), "html", null, true);
yield "');
height: 50px !important;
width: 100%;
/* max-width: 30% !important; */
background-position: center;
background-size: contain;
background-repeat: no-repeat;
\">
</div>
<h6 class=\"title\" style=\"height: 2rem;\">";
// line 653
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["cntry"], "name", [], "any", false, false, false, 653), "html", null, true);
yield "</h6>
";
// line 655
yield " </div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['ind'], $context['cntry'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 659
yield "
</div>
</div>
<div class=\"step seq_1 \">
<h5 class=\" \">Select a Topic</h5>
<div class=\"row clearfix topic_holder\">
</div>
</div>
<div class=\"step seq_2\">
<h5 class=\" \">Select a Consultant</h5>
<div class=\"row clearfix cons_holder\">
</div>
</div>
<div class=\"step seq_3\">
<h5 class=\"view_if_has_schedules\">Select Month</h5>
<div class=\"row clearfix sch_holder_month view_if_has_schedules\"></div>
<h5 class=\"view_if_has_schedules\">Select Day</h5>
<div class=\"row clearfix sch_holder_day view_if_has_schedules\"></div>
<h5 class=\"view_if_has_schedules\">Select Time</h5>
<div class=\"row clearfix sch_holder_time view_if_has_schedules\"></div>
<p class=\"view_if_has_schedules\"> -------or------- </p>
<h5 class=\" \">Select Preferred Schedule (Upto 3)</h5>
<div class=\"row clearfix sch_holder\">
";
// line 691
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(range(1, 3));
foreach ($context['_seq'] as $context["_key"] => $context["hh"]) {
// line 692
yield " <div class=\"box-selector man_sch_selector man_sch_";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["hh"], "html", null, true);
yield " col-md-4 col-sm-6\"
data-id=\"";
// line 693
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["hh"], "html", null, true);
yield "\"
data-gen-class=\"man_sch_selector\"
>
<div class=\"inside\">
<textarea
class=\"add_basic_day_picker man_sch_selector_dp man_sch_selector_dp";
// line 700
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["hh"], "html", null, true);
yield " \"
data-id=\"";
// line 701
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["hh"], "html", null, true);
yield "\" placeholder=\"Click to set Schedule\"
data-gen-class=\"man_sch_selector_dp\"></textarea>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['hh'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 706
yield "
</div>
</div>
<div class=\"step seq_4\">
<h5 class=\" \">Your Purchase Summary</h5>
<div class=\"row clearfix summary_holder\">
<p class=\"cntry_p\">Country : <span>Germany</span></p>
<p class=\"topic_p\"> Name & Type: <span>Single Consultation</span></p>
<p class=\"cons_p\">Consultant : <span>Ahmed Zahid Omar</span></p>
<p class=\"coins_p\">Coins : <span class=\"routineCoinNeededTotalSpan\"></span></p>
</div>
";
// line 721
yield from $this->loadTemplate("@Application/framework/_selectpurchasemodal_2_css.html.twig", "@Application/footer/buddybee_new_footer.html.twig", 721)->unwrap()->yield($context);
// line 722
yield " <table class=\"table table-condensed table-striped routineTable\">
<tbody></tbody>
<tfoot>
<tr>
<td>Total Bee Coins Needed</td>
<td style=\"text-align: left;\"><b class=\"routineCoinNeededTotalSpan\">0</b><br>
</td>
<td></td>
</tr>
</tfoot>
</table>
</div>
<div class=\"step seq_5\">
<h5 class=\" \">Direct Payment</h5>
<div class=\"row\">
<div class=\"box-selector pm_selector pm_1 col-md-4 col-sm-6 paymentMethodSelectorBtn\"
data-id=\"1\"
data-gen-class=\"pm_selector\"
>
<div class=\"inside\">
<div class=\"img\" href=\"";
// line 747
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("dashboard");
yield "\" style=\"
background:url(";
// line 748
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", null, true);
yield "condensed_assets/images/stripe_logo.png);
height: 50px !important;
width: 100%;
/* max-width: 30% !important; */
background-position: center;
background-size: contain;
background-repeat: no-repeat;
\">
</div>
<h6 class=\"title\" style=\"height: 2rem;\">Stripe</h6>
";
// line 760
yield " </div>
</div>
<div class=\"box-selector pm_selector pm_2 col-md-4 col-sm-6 paymentMethodSelectorBtn\"
data-id=\"2\"
data-gen-class=\"pm_selector\"
>
<div class=\"inside\">
<div class=\"img\" href=\"";
// line 768
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("dashboard");
yield "\" style=\"
background:url(";
// line 769
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", null, true);
yield "condensed_assets/images/bkash_logo.png);
height: 50px !important;
width: 100%;
/* max-width: 30% !important; */
background-position: center;
background-size: contain;
background-repeat: no-repeat;
\">
</div>
<h6 class=\"title\" style=\"height: 2rem;\">Bkash</h6>
";
// line 781
yield " </div>
</div>
<div class=\"box-selector pm_selector pm_3 col-md-4 col-sm-6 paymentMethodSelectorBtn\"
data-id=\"3\"
data-gen-class=\"pm_selector\"
>
<div class=\"inside\">
<div class=\"img\" href=\"";
// line 789
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("dashboard");
yield "\" style=\"
background:url(";
// line 790
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", null, true);
yield "condensed_assets/images/aamarpay_logo.png);
height: 50px !important;
width: 100%;
/* max-width: 30% !important; */
background-position: center;
background-size: contain;
background-repeat: no-repeat;
\">
</div>
<h6 class=\"title\" style=\"height: 2rem;\">Card</h6>
";
// line 802
yield " </div>
</div>
</div>
<h5 class=\" \">Purchase Bee Card</h5>
<div class=\"row\">
";
// line 809
$context["encData"] = [];
// line 814
yield " ";
// line 815
yield "
";
// line 817
yield " ";
// line 818
yield " ";
// line 819
yield " ";
// line 820
yield " ";
// line 821
yield " ";
// line 822
yield " ";
// line 823
yield " ";
// line 824
yield " ";
// line 825
yield " ";
// line 826
yield "
";
// line 829
yield " ";
$context["link_data"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("purchase_bee_card_page", ["encData" => $this->extensions['Nzo\UrlEncryptorBundle\Twig\EncryptorExtension']->encryptFilter(json_encode((isset($context["encData"]) || array_key_exists("encData", $context) ? $context["encData"] : (function () { throw new RuntimeError('Variable "encData" does not exist.', 829, $this->source); })())))]);
// line 830
yield "
<div class=\"box-selector pm_selector pm_4 col-md-4 col-sm-6 paymentMethodSelectorBtn\"
data-id=\"4\"
data-gen-class=\"pm_selector\"
>
<div class=\"inside\">
<div class=\"img\" href=\"";
// line 837
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("dashboard");
yield "\" style=\"
background: url(";
// line 838
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", null, true);
yield "buddybee_assets/ms-icon-310x310.png);
height: 50px !important;
width: 100%;
/* max-width: 30% !important; */
background-position: center;
background-size: contain;
background-repeat: no-repeat;
\">
</div>
<h6 class=\"title\" style=\"height: 2rem;\">Claim Bee Card</h6>
";
// line 850
yield " </div>
</div>
";
// line 853
yield " ";
// line 854
yield " ";
// line 855
yield "
";
// line 857
yield " ";
// line 858
yield " ";
// line 859
yield " ";
// line 860
yield " ";
// line 861
yield " ";
// line 862
yield " ";
// line 863
yield " ";
// line 864
yield " ";
// line 865
yield " ";
// line 866
yield " ";
// line 867
yield "
";
// line 869
yield " ";
// line 870
yield " ";
// line 871
yield " ";
// line 872
yield " ";
// line 873
yield " ";
// line 874
yield " ";
// line 875
yield " ";
// line 876
yield "
";
// line 878
yield " ";
// line 879
yield " ";
// line 880
yield " ";
// line 881
yield " ";
// line 882
yield " ";
// line 883
yield " ";
// line 884
yield " ";
// line 885
yield " ";
// line 886
yield " ";
// line 887
yield " ";
// line 888
yield "
";
// line 890
yield " ";
// line 891
yield " ";
// line 892
yield " ";
// line 893
yield " ";
// line 894
yield "
</div>
";
// line 899
yield " <div class=\"row clearfix \">
<div class=\"box-selector col-md-12 col-sm-6\"
data-id=\"promo\"
data-gen-class=\"\">
<div class=\"inside\">
<h6 class=\"title\" style=\"height: 2rem;font-size: 14px;\">Promo Code</h6>
<input class=\"form-control \"
data-id=\"promo\" placeholder=\"Promo Code\"
data-gen-class=\"\">
<h6 class=\"title\" style=\"height: 2rem;font-size: 14px;\"> </h6>
</div>
</div>
</div>
</div>
<div class=\"form-footer d-flex\">
<button type=\"button\" class=\"prevBtn\" id=\"selectPurchaseModal_prevBtn\">
Previous
</button>
<button type=\"button\" class=\"nextBtn\" id=\"selectPurchaseModal_nextBtn\">
Next
</button>
</div>
</form>
</div>
</div>
";
// line 936
yield "
";
// line 938
yield " </div>
</div>
</div>
";
}
// line 943
yield "
";
// line 945
yield "
<!-- back to top btn -->
<a id=\"back-top\"><i class=\"fas fa-chevron-up\"></i></a>
<!-- back to top btn -->
<!-- Option 1: Bootstrap Bundle with Popper -->
";
// line 953
yield " ";
// line 954
yield " ";
// line 955
yield "
";
// line 960
yield "<script src=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js\"
integrity=\"\"
crossorigin=\"anonymous\"></script>
";
// line 965
yield "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js\"></script>
";
// line 967
yield "<!-- jquery cdn -->
<script type=\"text/javascript\"
src=\"https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.13.3/js/standalone/selectize.min.js\"></script>
<script type=\"text/javascript\" src=\"";
// line 971
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", null, true);
yield "jqueryui/jquery.form.js\"></script>
<!-- calender js -->
<script src=\"";
// line 973
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html", null, true);
yield "buddybee_assets/js/mini-event-calendar.min.js?version=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html", null, true);
yield "\"></script>
<!-- countdown js -->
<script src=\"";
// line 975
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", null, true);
yield "buddybee_assets/js/jquery.countdown.min.js?version=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html", null, true);
yield "\"></script>
<!-- process circle js -->
<script src=\"";
// line 977
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", null, true);
yield "buddybee_assets/js/progresscircle.js?version=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html", null, true);
yield "\"></script>
<!-- custom js-->
<script src=\"";
// line 979
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", null, true);
yield "buddybee_assets/js/main.js?version=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 980
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", null, true);
yield "buddybee_assets/js/imgProgress.js?version=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html", null, true);
yield "\"></script>
<!-- owl carousel -->
<script src=\"";
// line 982
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", null, true);
yield "buddybee_assets/js/owl.carousel.min.js?version=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html", null, true);
yield "\"></script>
<!-- wow js -->
<script src=\"";
// line 984
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html", null, true);
yield "buddybee_assets/js/wow.min.js?version=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html", null, true);
yield "\"></script>
";
// line 986
yield "<script src=\"";
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", null, true);
yield "buddybee_assets/js/moment.min.js?version=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html", null, true);
yield "\"></script>
<script type=\"text/javascript\" src=\"";
// line 987
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", null, true);
yield "alertify/lib/alertify.min.js\"></script>
<script src=\"";
// line 988
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", null, true);
yield "buddybee_assets/plugin/bootstrap-material-datetimepicker/js/bootstrap-material-datetimepicker.js?version=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 989
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", null, true);
yield "js/jquery.translate.js?version=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 990
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", null, true);
yield "buddybee_assets/js/bindWithDelay.js?version=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 991
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", null, true);
yield "buddybee_assets/js/generic.js?version=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html", null, true);
yield "\"></script>
";
// line 992
yield from $this->loadTemplate("@Application/footer/activity_tracker_script.html.twig", "@Application/footer/buddybee_new_footer.html.twig", 992)->unwrap()->yield($context);
// line 993
yield "<script src=\"";
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", null, true);
yield "js/language_pack.js?version=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 994
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", null, true);
yield "condensed_assets/ifvisible.js?version=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html", null, true);
yield "\"></script>
<link rel=\"stylesheet\" href=\"";
// line 995
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", null, true);
yield "js/adminbsb/plugins/sweetalert/sweetalert.css\">
<script src=\"";
// line 996
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", null, true);
yield "js/adminbsb/plugins/sweetalert/sweetalert.min.js\"></script>
<link rel=\"stylesheet\" href=\"";
// line 998
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("css/cal_print.css"), "html", null, true);
yield "\" media=\"print\">
<script type=\"text/javascript\"
src=\"";
// line 1000
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", null, true);
yield "buddybee_assets/plugin/fullcalendar3/fullcalendar.min.js\"></script>
<script type=\"text/javascript\"
src=\"";
// line 1002
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", null, true);
yield "buddybee_assets/plugin/fullcalendar3/scheduler/scheduler.min.js\"></script>
<script type=\"text/javascript\"
src=\"https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js\"></script>
";
// line 1007
yield from $this->loadTemplate("@Application/framework/_btn_css.html.twig", "@Application/footer/buddybee_new_footer.html.twig", 1007)->unwrap()->yield($context);
// line 1008
yield "</body>
<script>
var socketInitiated = 0;
var offcanvasCalendarInitiated = 0;
var offCalendarLastRefreshedTs = 0;
var tb_pathToImage = \"";
// line 1015
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", null, true);
yield "\";
var buddybee_socket = '';
var buddybee_socket_user_name = '";
// line 1018
((CoreExtension::getAttribute($this->env, $this->source, ($context["session"] ?? null), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 1018, $this->source); })()), "USER_NAME", [], "any", false, false, false, 1018), [], "array", true, true, false, 1018)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["session"]) || array_key_exists("session", $context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.', 1018, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 1018, $this->source); })()), "USER_NAME", [], "any", false, false, false, 1018), [], "array", false, false, false, 1018), "html", null, true)) : (yield ""));
yield "';
var buddybee_socket_user_id = 'BBEE_";
// line 1019
((CoreExtension::getAttribute($this->env, $this->source, ($context["session"] ?? null), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 1019, $this->source); })()), "USER_ID", [], "any", false, false, false, 1019), [], "array", true, true, false, 1019)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["session"]) || array_key_exists("session", $context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.', 1019, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 1019, $this->source); })()), "USER_ID", [], "any", false, false, false, 1019), [], "array", false, false, false, 1019), "html", null, true)) : (yield 0));
yield "';
var current_user_user_id = ";
// line 1020
((CoreExtension::getAttribute($this->env, $this->source, ($context["session"] ?? null), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 1020, $this->source); })()), "USER_ID", [], "any", false, false, false, 1020), [], "array", true, true, false, 1020)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["session"]) || array_key_exists("session", $context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.', 1020, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 1020, $this->source); })()), "USER_ID", [], "any", false, false, false, 1020), [], "array", false, false, false, 1020), "html", null, true)) : (yield 0));
yield ";
var buddybee_socket_user_session_token = '";
// line 1021
((CoreExtension::getAttribute($this->env, $this->source, ($context["session"] ?? null), "token", [], "array", true, true, false, 1021)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["session"]) || array_key_exists("session", $context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.', 1021, $this->source); })()), "token", [], "array", false, false, false, 1021), "html", null, true)) : (yield "_GEN_"));
yield "';
";
// line 1023
$context["curr_route"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1023, $this->source); })()), "request", [], "any", false, false, false, 1023), "attributes", [], "any", false, false, false, 1023), "get", ["_route"], "method", false, false, false, 1023);
// line 1024
yield "
var CURRENT_ROUTE = '";
// line 1026
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["curr_route"]) || array_key_exists("curr_route", $context) ? $context["curr_route"] : (function () { throw new RuntimeError('Variable "curr_route" does not exist.', 1026, $this->source); })()), "html", null, true);
yield "';
var deepLinkModalLastShown = window.localStorage.getItem('deepLinkModalLastShown');
// var deepLinkModalLastShown = 0;
var currTsForDlM = ";
// line 1031
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("", "U"), "html", null, true);
yield ";
if (deepLinkModalLastShown == 'null' || deepLinkModalLastShown == null) {
deepLinkModalLastShown = 0
}
var upcomingMeetingDataForRedirect = window.localStorage.getItem('UNMData');
var upcomingNextMeetingIdForRedirect = window.localStorage.getItem('UNMId');
var upcomingNextMeetingTsForRedirect = window.localStorage.getItem('UNMTs');
if (upcomingMeetingDataForRedirect == 'null' || upcomingMeetingDataForRedirect == null) {
upcomingMeetingDataForRedirect = \"[]\"
}
if (upcomingNextMeetingIdForRedirect == 'null' || upcomingNextMeetingIdForRedirect == null) {
upcomingNextMeetingIdForRedirect = 0
}
if (upcomingNextMeetingTsForRedirect == 'null' || upcomingNextMeetingTsForRedirect == null) {
upcomingNextMeetingTsForRedirect = 0
}
upcomingMeetingDataForRedirect = JSON.parse(upcomingMeetingDataForRedirect);
var deepLinkModal = new bootstrap.Modal(document.getElementById('deepLinkModal'), {
keyboard: false
});
var bookNowModal = new bootstrap.Modal(document.getElementById('bookNowModal'), {
keyboard: false
});
var promptForInfoModal = new bootstrap.Modal(document.getElementById('promptForInfoModal'), {
keyboard: false
});
var selectPurchaseModal = new bootstrap.Modal(document.getElementById('selectPurchaseModal'), {
keyboard: false
});
";
// line 1069
if ( !array_key_exists("countries_data", $context)) {
// line 1070
yield " ";
$context["countries_data"] = $this->extensions['ApplicationBundle\Twig\GeneralExtension']->getCountriesBuddyBee("");
// line 1071
yield " ";
}
// line 1072
yield " var countries_data =";
yield json_encode((isset($context["countries_data"]) || array_key_exists("countries_data", $context) ? $context["countries_data"] : (function () { throw new RuntimeError('Variable "countries_data" does not exist.', 1072, $this->source); })()));
yield "
var topic_data_by_id = {}
var perSessionMinute = 20; // Current tab is set to be the first tab (0)
var COIN_GENERAL_MULT = 100; // Current tab is set to be the first tab (0)
var currentTab = 0; // Current tab is set to be the first tab (0)
var currentTabSelectPurchaseModal = 0; // Current tab is set to be the first tab (0)
var triggerRefreshUpcomingSession = 0; // Current tab is set to be the first tab (0)
// promptInfo_showTab(currentTab); // Display the current tab
";
// line 1083
if (CoreExtension::getAttribute($this->env, $this->source, ($context["session"] ?? null), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 1083, $this->source); })()), "USER_ID", [], "any", false, false, false, 1083), [], "array", true, true, false, 1083)) {
// line 1084
yield "
function refreshOffCanvasCalendar(force) {
force = force || 0
if (offcanvasCalendarInitiated == 0) {
// alert('here')
\$('#calendarHere').fullCalendar({
// \$('#scheduleCalendar').fullCalendar({
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
height: 554,
// header: false,
header: {
left: 'today prev,next',
center: 'title',
right: 'timelineDay,timelineWeek,timelineMonth,timelineYear,month',
},
buttonText: {
month: 'calendar',
timelineMonth: 'month',
},
eventClick: function (calEvent, jsEvent, view) {
// console.log(calEvent)
swal({
title: calEvent.title,
text: 'Meeting On ' + calEvent.topic_name + ' on ' + moment.unix(calEvent.scheduled_time_ts).format('MMM DD, YYYY HH:mm'),
type: \"info\",
showCancelButton: true,
// confirmButtonColor: \"#DD6B55\",
confirmButtonText: \"View!\",
cancelButtonText: \"Exit\",
closeOnConfirm: false,
closeOnCancel: true,
timer: 10000,
}, function (isConfirm) {
if (isConfirm) {
";
// line 1124
if ((0 <= CoreExtension::compare((isset($context["BUDDYBEE_ADMIN_LEVEL"]) || array_key_exists("BUDDYBEE_ADMIN_LEVEL", $context) ? $context["BUDDYBEE_ADMIN_LEVEL"] : (function () { throw new RuntimeError('Variable "BUDDYBEE_ADMIN_LEVEL" does not exist.', 1124, $this->source); })()), 1))) {
// line 1125
yield " window.location.href = '";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("consultancy_session");
yield "/' + calEvent.id + '?adminView=1'
";
} else {
// line 1127
yield " window.location.href = '";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("consultancy_session");
yield "/' + calEvent.id + ''
";
}
// line 1129
yield "
swal(\"Sweet!\", \"Taking you there. Please Wait\", \"success\");
} else {
// swal(\"Oops\", \"You cannot do that!\", \"error\");
}
});
// alert('Event: ' + calEvent.title);
// alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY);
// alert('View: ' + view.name);
//
// // change the border color just for fun
// \$(this).css('border-color', 'red');
},
// themeSystem:'jquery-ui',
editable: true,
eventStartEditable: true,
eventDurationEditable: true,
droppable: true,
slotDuration: '00:30:00',
defaultView: 'month',
eventRender: function (eventObj, \$el) {
// \$('#example').popover(options)
\$el.popover({
title: eventObj.topic_name,
content: 'Meeting Between ' + eventObj.title + ' on ' + moment.unix(eventObj.scheduled_time_ts).format('MMM DD, YYYY HH:mm'),
trigger: 'hover',
placement: 'top',
container: 'body',
html: true,
template: '<div class=\"popover\" role=\"tooltip\">' +
'<div class=\"arrow\">' +
'</div' +
'><h3 class=\"popover-header\">' +
'</h3>' +
'<div class=\"popover-body\">' +
'</div>' +
'<button class=\"btn btn-success\">PIKA</button>' +
'</div>'
});
},
// resourceAreaHeaderContent: 'Rooms',
resourceColumns: [
{
labelText: 'Schedule',
field: 'title'
}
// {
// labelText: 'Occupancy',
// field: 'occupancy'
// }
],
resources: [],
views: {
basic: {
// options apply to basicWeek and basicDay views
},
agenda: {
slotDuration: '00:30:00',
// options apply to agendaWeek and agendaDay views
},
week: {
// options apply to basicWeek and agendaWeek views
},
day: {
// options apply to basicDay and agendaDay views
},
timelineWeek: {
groupByResource: true,
slotDuration: '00:30:00',
// options apply to basicDay and agendaDay views
}
},
drop: function (date, allDay) {
// this function is called when something is dropped
// retrieve the dropped element's stored Event Object
var originalEventObject = \$(this).data('eventObject');
// we need to copy it, so that multiple events don't have a reference to the same object
var copiedEventObject = \$.extend({}, originalEventObject);
// assign it the date that was reported
copiedEventObject.start = date;
copiedEventObject.allDay = allDay;
copiedEventObject.className = originalEventObject.className;
// render the event on the calendar
// the last `true` argument determines if the event \"sticks\" (http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/)
\$('#scheduleCalendar').fullCalendar('renderEvent', copiedEventObject, true);
// is the \"remove after drop\" checkbox checked?
if (\$('#drop-remove').is(':checked')) {
// if so, remove the element from the \"Draggable Events\" list
\$(this).remove();
}
},
events: [],
});
offcanvasCalendarInitiated = 1;
}
var currOpTs = moment().unix();
if ((offCalendarLastRefreshedTs + 120) < currOpTs || force == 1) {
var pika_ind_id = 'NNNAI';
\$.ajax({
url: BaseURL + \"select_data_ajax_public\",
type: 'POST',
dataType: 'json',
data: {
//returnJson: 1, //required for CORS
//sessionData: sessionData //required only if using cordova for CORS
query: '_EMPTY_',
tableName: \"entity_meeting_session\",
entity_group: 1,
valueField: \"session_id\",
textField: \"meeting_room_id\",
// selectFieldList:[ ///skip this property for all fields
// 'client_name','client_id','address'
//
// ],
selectorId: 7,
isMultiple: 1,
itemLimit: '_ALL_', // for all : '_ALL_'
offset: 0, // default value:0 (from start)
orderByConditions: [ //sequential
// {
// field: 'rating',
// fieldValues: [5,1,9],
// sortType:'ASC'
// },
// {
// field: 'is_featured',
// sortType:'DESC'
// },
{
field: 'scheduled_time_ts',
sortType: 'ASC'
}
],
dataId: pika_ind_id,
// textField: \"rendered_text\",
//
// renderTextFormat: \"#__id__ __name__\",
// andConditions: [
// //{type: \"like\", field: \"name\", value: query},
// {type: \"=\", field: \"delivery_receipt_id\", value: \$('.dr_id' + pika_ind_id).val()},
// {type: \"=\", field: \"product_id\", value: \$('.selectize_me_ssp' + pika_ind_id).val()},
// {type: \"=\", field: \"position\", value: 3}
// ],
mustConditions: [
//{type: \"like\", field: \"name\", value: query},
//{type: \"=\", field: \"delivery_rceipt_id\", value: \$('.dr_id' + pika_ind_id).val()},
//{type: \"in\", field: \"alottment_tagged\", value: [0,'null','']},
// {type: \"<=\", field: \"scheduled_time_ts\", value: moment().add('60', 'days').unix()},
{type: \">=\", field: \"scheduled_time_ts\", value: moment().subtract('45', 'days').unix()},
// {type: \"=\", field: \"product_id\", value: \$('.ssp' + pika_ind_id).val()},
// {type: \"=\", field: \"warehouse_id\", value: \$('#warehouseId').val()},
// {type: \"=\", field: \"warehouse_action_id\", value: \$('.wa' + pika_ind_id).val()},
// {type: \"=\", field: \"position\", value: 1}
],
andOrConditions: [
";
// line 1303
if ((0 <= CoreExtension::compare((isset($context["BUDDYBEE_ADMIN_LEVEL"]) || array_key_exists("BUDDYBEE_ADMIN_LEVEL", $context) ? $context["BUDDYBEE_ADMIN_LEVEL"] : (function () { throw new RuntimeError('Variable "BUDDYBEE_ADMIN_LEVEL" does not exist.', 1303, $this->source); })()), 5))) {
// line 1304
yield "
";
} elseif ((0 <= CoreExtension::compare( // line 1305
(isset($context["BUDDYBEE_ADMIN_LEVEL"]) || array_key_exists("BUDDYBEE_ADMIN_LEVEL", $context) ? $context["BUDDYBEE_ADMIN_LEVEL"] : (function () { throw new RuntimeError('Variable "BUDDYBEE_ADMIN_LEVEL" does not exist.', 1305, $this->source); })()), 1))) {
// line 1306
yield " ";
} else {
// line 1317
yield " {type: \"=\", field: \"student_id\", value: ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["session"]) || array_key_exists("session", $context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.', 1317, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 1317, $this->source); })()), "USER_ID", [], "any", false, false, false, 1317), [], "array", false, false, false, 1317), "html", null, true);
yield "},
{type: \"=\", field: \"consultant_id\", value: ";
// line 1318
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["session"]) || array_key_exists("session", $context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.', 1318, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 1318, $this->source); })()), "USER_ID", [], "any", false, false, false, 1318), [], "array", false, false, false, 1318), "html", null, true);
yield "},
";
}
// line 1321
yield "// {type: \"like\", field: \"client_numerical_code\", value: query},
// {type: \"like\", field: \"client_name\", value: query},
// {type: \"like\", field: \"client_id\", value: query},
// {type: \"like\", field: \"contact_number\", value: query},
// {type: \"like\", field: \"email\", value: query},
],
joinTableData: [
{
tableName: \"entity_applicant_details\",
joinFieldPrimary: \"student_id\",
joinOn: 'applicant_id',
selectPrefix: 'student_',
selectFieldList: [
'firstname', 'lastname', 'image', 'professional_title'
]
},
{
tableName: \"entity_create_topic\",
joinFieldPrimary: \"topic_id\",
joinOn: 'id',
selectPrefix: 'topic_',
selectFieldList: [
'topic_name',
]
},
{
tableName: \"entity_applicant_details\",
joinFieldPrimary: \"consultant_id\",
joinOn: 'applicant_id',
selectPrefix: 'consultant_',
selectFieldList: [
'firstname', 'lastname', 'image', 'professional_title', 'current_country_id'
]
},
],
convertDateToStringFieldList: [
{field: 'created_at', format: 'U'}
],
convertToObject: [
// 'carton_product_by_code_ids','another'
],
// setDataForSingle: 1,
},
error: function () {
// callback();
},
success: function (res) {
offCalendarLastRefreshedTs = moment().unix()
// callback(res.data);
var str = '';
var currUnix = moment().unix();
var added_cntry_id = [];
var added_event_id = [];
\$('#calendarHere').fullCalendar('addResource', {
id: 'cntry__OTHER_COUNTRIES_',
// parentId: 'a',
title: 'Others'
});
for (var t = 0; t < res.data.length; t++) {
var c_data = res.data[t];
if (c_data.consultant_current_country_id == '' || c_data.consultant_current_country_id == 0 || c_data.consultant_current_country_id == null)
c_data.consultant_current_country_id = '_OTHER_COUNTRIES_';
// // console.log('added_cntry_id')
// // console.log(added_cntry_id)
if (added_cntry_id.indexOf(c_data.consultant_current_country_id) != -1) {
} else {
\$('#calendarHere').fullCalendar('addResource', {
id: 'cntry_' + c_data.consultant_current_country_id,
// parentId: 'a',
title: typeof countries_data[c_data.consultant_current_country_id] !== 'undefined' ? countries_data[c_data.consultant_current_country_id]['name'] : ''
});
added_cntry_id.push(c_data.consultant_current_country_id)
}
if (added_event_id.indexOf(c_data.consultant_id + '_' + c_data.student_id) != -1) {
} else {
\$('#calendarHere').fullCalendar('addResource', {
id: 'r_' + c_data.consultant_id + '_' + c_data.student_id,
parentId: 'cntry_' + c_data.consultant_current_country_id,
title: c_data.consultant_firstname + ' -- ' + c_data.student_firstname
});
added_event_id.push(c_data.consultant_id + '_' + c_data.student_id)
}
var eventColor = 'darkgreen';
var textColor = '#fff';
var endTimeMoment = moment.unix(c_data.scheduled_time_ts).add(c_data.duration_left_min, 'minutes');
if (currUnix < c_data.scheduled_time_ts) {
//upcoming
if (c_data.is_paid_full == 1)
eventColor = '#fb7400';
else
eventColor = '#d586a3';
// textColor='#212529';
} else if (currUnix < endTimeMoment.unix())
eventColor = '#1d5b9e'; //ongoing
else
eventColor = 'darkgreen'; //completed
var eventObj2 = {
id: c_data.session_id,
color: eventColor,
textColor: textColor,
resourceId: 'r_' + c_data.consultant_id + '_' + c_data.student_id,
title: c_data.consultant_firstname + ' -- ' + c_data.student_firstname,
consultant_id: c_data.consultant_id,
student_id: c_data.student_id,
meeting_room_id: c_data.meeting_room_id,
scheduled_time_ts: c_data.scheduled_time_ts,
topic_id: c_data.topic_id,
topic_name: c_data.topic_topic_name,
session_value: c_data.session_value,
consultant_firstname: c_data.consultant_firstname,
consultant_lastname: c_data.consultant_lastname,
student_firstname: c_data.student_firstname,
student_lastname: c_data.student_lastname,
start: moment.unix(c_data.scheduled_time_ts).add(0, 'days'),
end: endTimeMoment,
allDay: false
};
// eventArray.push(eventObj2)
\$('#calendarHere').fullCalendar('renderEvent', eventObj2, true);
}
}
});
}
}
";
}
// line 1466
yield "
function stepShowTab(n, parentSelector) {
// alert('here')
// This function will display the specified tab of the form...
parentSelector = parentSelector || '#selectPurchaseModal'
var prevN = -1;
\$(parentSelector + ' .stepIndicator.active').each(function (gg, elem) {
prevN = 1 * \$(elem).data('seqId');
});
var newN = 0;
if (n === '+1') {
newN = (1 * prevN) + 1;
} else if (n === '-1') {
newN = (1 * prevN) - 1;
} else
newN = n;
if (!\$(parentSelector + ' .stepIndicator.seq_' + newN).length)
newN = (1 * prevN);
if (!\$(parentSelector + ' .stepIndicator.seq_' + (newN + 1)).length)
\$(parentSelector + \" .nextBtn\").text('Confirm');
else
\$(parentSelector + \" .nextBtn\").text('Next');
if (!\$(parentSelector + ' .stepIndicator.seq_' + (newN - 1)).length)
\$(parentSelector + \" .prevBtn\").hide();
else
\$(parentSelector + \" .prevBtn\").show();
// alert(prevN)
// alert(newN)
// alert(\$(parentSelector+' .stepIndicator.seq_'+(newN+1)).length)
if (prevN == newN) {
\$(parentSelector).modal('hide')
return false;
}
\$(parentSelector + ' .stepIndicator').removeClass('active')
\$(parentSelector + ' .step').hide()
\$(parentSelector + ' .step.seq_' + newN).show()
for (var gg = 0; gg <= newN; gg++)
\$(parentSelector + ' .stepIndicator.seq_' + gg).addClass('active')
var triggerFunc = \$(parentSelector + ' .step.seq_' + newN).attr('data-trigger-function');
if (typeof triggerFunc !== 'undefined' && triggerFunc !== false) {
window[triggerFunc]();
}
}
function selectDataOnPurchaseModal(cntry_id, t_id, cons_id, sch_ids, additional_coins) {
options = {
countryId: 0,
topicId: 0,
consultantId: 0,
scheduleIds: [],
}
}
function submitPurchaseModalData() {
var data = {}
}
function populateTopicListOnPurchaseModal(countryId, query) {
var pika_ind_id = \"_NA_\";
\$('#selectPurchaseModal .topic_holder').empty();
\$.ajax({
url: BaseURL + \"select_data_ajax_public\",
type: 'POST',
dataType: 'json',
data: {
//returnJson: 1,
//sessionData: sessionData
query: query,
tableName: \"entity_create_topic\",
valueField: \"id\",
textField: \"topic_name\",
entity_group: 1,
selectorId: '_NA_',
isMultiple: 0,
dataId: pika_ind_id,
// isMultiple: 0,
//textField: \"rendered_text\",
//
//renderTextFormat: \"#__id__ __name__\",
andConditions: [],
andOrConditions: [],
mustConditions: [
{type: \"=\", field: \"consultancy_enabled\", value: 1},
{type: \"=\", field: \"country_id\", value: countryId},
";
// line 1583
yield " ";
// line 1584
yield " ";
// line 1585
yield " ";
// line 1586
yield " ";
// line 1587
yield "
";
// line 1590
yield " ";
// line 1591
yield " ";
// line 1592
yield " ";
// line 1593
yield " ";
// line 1594
yield " ";
// line 1595
yield " ],
convertToObject: [
'routine_data'
],
skipDefaultCompanyId: 1
// setDataForSingle: 1,
},
error: function () {
// callback();
},
success: function (res) {
topic_data_by_id = res.dataById
for (var jj = 0; jj < res.data.length; jj++) {
var dt = res.data[jj];
var is_package = 0;
if (dt['topic_marker'] != null)
if (dt['topic_marker'].indexOf('_package_') !== -1)
is_package = 1;
var ggStr = ' <div class=\"box-selector tp_selector tp_' + dt['id'] + ' col-md-3 col-sm-6\"' +
' data-id=\"' + dt['id'] + '\" ' +
' data-gen-class=\"tp_selector\" ' +
'>' +
'<div class=\"inside\">' +
' <div class=\"img\" style=\"' +
\"background:url(' ";
// line 1622
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", null, true);
yield "\" + dt['topic_image'] + \"');\" +
' height: 50px !important;width: 100%;background-position: center;background-size: contain;background-repeat: no-repeat;\"></div>' +
'<h6 class=\"title\" style=\"height: 3rem; font-size:12px\">' + dt['topic_name'] + '</h6> ' +
// '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
'<p class=\"sub-title\" style=\"text-align:center;\">' + (is_package == 1 ? 'Package' : (dt['meeting_type'] == 2 ? 'Offline Process' : 'Online Session')) + '</p>' +
// '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
'</div></div>';
\$('#selectPurchaseModal .topic_holder').append(ggStr);
}
}
});
}
function populateConsultantListOnPurchaseModal(tpId, query) {
var pika_ind_id = \"_NA_\";
\$('#selectPurchaseModal .cons_holder').empty();
\$.ajax({
url: BaseURL + \"select_data_ajax_public\",
type: 'POST',
dataType: 'json',
data: {
//returnJson: 1,
//sessionData: sessionData
query: query,
tableName: \"entity_applicant_details\",
valueField: \"applicant_id\",
textField: \"firstname\",
entity_group: 1,
selectorId: '_NA_',
isMultiple: 0,
dataId: pika_ind_id,
// isMultiple: 0,
//textField: \"rendered_text\",
//
//renderTextFormat: \"#__id__ __name__\",
andConditions: [],
andOrConditions: [
{type: \"like\", field: \"preferred_topic_ids_as_consultant\", value: '\"' + tpId + '\"'},
{type: \"like\", field: \"preferred_topic_ids_as_consultant\", value: '[]'},
// {type: \"like\", field: \"preferred_topic_ids_as_consultant\", value: ''},
// {type: \"like\", field: \"preferred_topic_ids_as_consultant\", value: 'null'},
{type: \"=\", field: \"preferred_topic_ids_as_consultant\", value: 'null'},
],
mustConditions: [
{type: \"=\", field: \"is_consultant\", value: 1},
";
// line 1677
yield " ";
// line 1678
yield " ";
// line 1679
yield " ";
// line 1680
yield " ";
// line 1681
yield "
";
// line 1684
yield " ";
// line 1685
yield " ";
// line 1686
yield " ";
// line 1687
yield " ";
// line 1688
yield " ";
// line 1689
yield " ],
convertToObject: [
'routine_data'
],
skipDefaultCompanyId: 1
// setDataForSingle: 1,
},
error: function () {
// callback();
},
success: function (res) {
// topic_data_by_id = res.dataById
for (var jj = 0; jj < res.data.length; jj++) {
var dt = res.data[jj];
var ggStr = ' <div class=\"box-selector cons_selector cons_' + dt['id'] + ' col-md-3 col-sm-6\"' +
' data-id=\"' + dt['applicant_id'] + '\" ' +
' data-gen-class=\"cons_selector\" ' +
'>' +
'<div class=\"inside\">' +
' <div class=\"img\" style=\"' +
\"background:url(' ";
// line 1711
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", null, true);
yield "\" + dt['image'] + \"');\" +
' height: 50px !important;width: 100%;background-position: center;background-size: contain;background-repeat: no-repeat;\"></div>' +
'<h6 class=\"title\" style=\"height: 2rem; font-size:12px\">' + dt['firstname'] + ' ' + dt['lastname'] + '</h6> ' +
// '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
'</div></div>';
\$('#selectPurchaseModal .cons_holder').append(ggStr);
}
// alert('pika master')
}
});
}
function populateScheduleListOnPurchaseModal(consId, durValue, query) {
var pika_ind_id = \"_NA_\";
// \$('#selectPurchaseModal .sch_holder').empty();
\$('#selectPurchaseModal .sch_holder_month').empty();
\$('#selectPurchaseModal .sch_holder_day').empty();
\$('#selectPurchaseModal .sch_holder_time').empty();
durValue = durValue || 30;
var options = {
'_NEXT_60_DAYS_': 1,
// '_THIS_DAY_':1,
// '_NEXT_DAYS_':20,
}
\$.ajax({
url: BaseURL + 'get_consultant_schedules',
type: 'POST',
dataType: 'json',
data: {
consultantId: consId,
startDateStr: '@' + moment().unix(),
// endDateStr: \$('#preferredScheduleDate').val() + ' 23:59:59 ' + moment().format(\"ZZ\"),
endDateStr: '',
durationMin: durValue,
// durationMin: sessionDurationSelector.getValue() != '' ? perSessionMinute * sessionDurationSelector.getValue() : 90,
options: options,
returnJson: 1
},
error: function () {
// callback();
},
success: function (res) {
;
// \$('#').val(res.);
\$('#selectPurchaseModal .view_if_has_schedules').hide();
if (res.success == true) {
//// for (var l = 0; l < res.sessionsArray.length; l++) {
//// \$('#rescheduledSemesterSelector').append(\$(\"<option></option>\").attr(\"value\", res.sessionsArray[l].id).text(res.sessionsArray[l].name));
//// }
for (var jj = 0; jj < res.data.scheduleList.length; jj++) {
var sch_dt = res.data.scheduleList[jj];
var ggStr = ' <div class=\"box-selector sch_selector_time ' +
'sch_mon_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM') + ' ' +
'sch_day_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM_DD') + ' ' +
'sch_' + sch_dt['timeUnix'] + ' ' +
'sch_' + sch_dt['timeUnix'] + ' col-md-3 col-sm-6\"' +
' data-id=\"' + sch_dt['timeUnix'] + '\" ' +
' data-gen-class=\"sch_selector_time\" ' +
'>' +
'<div class=\"inside\">' +
";
// line 1788
yield " ";
// line 1789
yield " ";
// line 1790
yield " '<h6 class=\"title\" style=\"\">' + (moment.unix(sch_dt['timeUnix']).format('HH:mm')) + '</h6> ' +
// '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
'</div></div>';
var ggStrday = ' <div class=\"box-selector sch_selector_day ' +
'sch_mon_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM') + ' ' +
'sch_day_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM_DD') + ' col-md-3 col-sm-6\"' +
' data-id=\"' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM_DD') + '\" ' +
' data-gen-class=\"sch_selector_day\" ' +
'>' +
'<div class=\"inside\">' +
";
// line 1802
yield " ";
// line 1803
yield " ";
// line 1804
yield " '<h6 class=\"title\" style=\"\">' + (moment.unix(sch_dt['timeUnix']).format('DD')) + '</h6> ' +
// '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
'</div></div>';
var ggStrmon = ' <div class=\"box-selector sch_selector_mon ' +
'sch_mon_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM') + ' ' +
// 'sch_day'+moment.unix(sch_dt['timeUnix']).format('YYYY_MM')+' ' +
' col-md-3 col-sm-6\"' +
' data-id=\"' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM') + '\" ' +
' data-gen-class=\"sch_selector_mon\" ' +
'>' +
'<div class=\"inside\">' +
";
// line 1819
yield " ";
// line 1820
yield " ";
// line 1821
yield " '<h6 class=\"title\" style=\"\">' + (moment.unix(sch_dt['timeUnix']).format('MMM')) + '</h6> ' +
// '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
'</div></div>';
if (!\$('.sch_selector_mon.sch_mon_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM')).length)
\$('#selectPurchaseModal .sch_holder_month').append(ggStrmon);
if (!\$('.sch_selector_day.sch_day_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM_DD')).length)
\$('#selectPurchaseModal .sch_holder_day').append(ggStrday);
\$('#selectPurchaseModal .sch_holder_time').append(ggStr);
}
if (res.data.scheduleList.length > 0) {
\$('#selectPurchaseModal h5.view_if_has_schedules').css('display', 'block');
\$('#selectPurchaseModal p.view_if_has_schedules').css('display', 'block');
\$('#selectPurchaseModal div.row.view_if_has_schedules').css('display', 'flex');
}
\$('.sch_' + res.data.closestDateTs).trigger('click');
// rescheduledconsultancyScheduleSelector.clear();
// rescheduledconsultancyScheduleSelector.disable();
// rescheduledconsultancyScheduleSelector.clearOptions();
// rescheduledconsultancyScheduleSelector.load(function (callback) {
//
// rescheduledconsultancyScheduleSelector.enable();
// var modifiedList = [];
// for (var l = 0; l < res.data.scheduleList.length; l++) {
// var sch_dt = res.data.scheduleList[l];
// sch_dt['time_user_zone'] = moment.unix(sch_dt['timeUnix']).format('MMM DD, YYYY HH:mm');
// // sch_dt['time_user_zone']=sch_dt['time'];
// modifiedList.push(sch_dt);
// }
//
//
// callback(modifiedList);
//
//
// });
// rescheduledconsultancyScheduleSelector.setValue(res.data.closestDateTs)
} else {
}
}
});
}
function refreshRoutinePackageListOnPurchaseModal(t_id) {
var dt = [];
\$('#selectPurchaseModal .routineTable tbody').empty();
var topicIdForRoutine = t_id;
// var sessionDurationSelectorValue=sessionDurationSelector.getValue();
var sessionDurationSelectorValue = 100;
// var scheduledTimeTsValue=consultancyScheduleSeletor.getValue();
var scheduledTimeTsValue = moment().unix();
if (typeof topic_data_by_id[topicIdForRoutine] !== 'undefined') {
if (topic_data_by_id[topicIdForRoutine]['routine_data'].length) {
dt = topic_data_by_id[topicIdForRoutine]['routine_data'];
} else {
dt = [
{
sequence: 1,
topicId: topicIdForRoutine,
topicName: topic_data_by_id[topicIdForRoutine]['topic_name'],
meetingType: topic_data_by_id[topicIdForRoutine]['meeting_type'],
duration: sessionDurationSelectorValue != '' ? (perSessionMinute * sessionDurationSelectorValue) / (COIN_GENERAL_MULT * 1) : 0,
offset: 0,
coins: sessionDurationSelectorValue != '' ? (1 * sessionDurationSelectorValue) : 0,
scheduledTimeTs: scheduledTimeTsValue != '' ? (1 * scheduledTimeTsValue) : 0,
nextSequenceStart: 0,
modifiable: 0,
}
];
}
}
for (var poi = 0; poi < dt.length; poi++) {
var cc_pika = dt[poi];
if (cc_pika['meetingType'] == 2) //offline
{
\$('#selectPurchaseModal .routineTable tbody').append(
'<tr>' +
'<td>' + cc_pika.topicName + '</td>' +
'<td style=\"text-align: left;\"><b>Deliverable</b><br>' +
'Bee Coins: ' + cc_pika.coins + '<br>' +
(typeof cc_pika.scheduledDateTs !== 'undefined' ?
('Lead Dt.<br>' + (cc_pika.scheduledTimeTs == 0 ? '' : moment.unix(cc_pika.scheduledDateTs).format('MMMM DD, YYYY HH:mm ZZ'))) :
('')
) +
'</td>' +
'<td>' +
'<input class=\"routineCoinNeeded\" name=\"routine_coins[]\" type=\"hidden\" value=\"' + cc_pika.coins + '\">' +
'<input class=\"routineTopicId\" name=\"routine_topic_id[]\" type=\"hidden\" value=\"' + cc_pika.topicId + '\">' +
(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>') +
// '<a class=\"icon-delete\" href=\"javascript:void(0);\"><i class=\"fa fa-times\"></i></a>' +
'</td>' +
'</tr>'
)
} else {
{
\$('#selectPurchaseModal .routineTable tbody').append(
'<tr>' +
'<td>' + cc_pika.topicName + '</td>' +
'<td style=\"text-align: left;\"><b>Online</b><br>' +
'Bee Coins: ' + cc_pika.coins + '<br>' +
'Duration: ' + cc_pika.duration + '<br>' +
(typeof cc_pika.scheduledTimeTs !== 'undefined' ?
('Scheduled Time: <br>' + (cc_pika.scheduledTimeTs == 0 ? '' : moment.unix(cc_pika.scheduledTimeTs).format('MMMM DD, YYYY HH:mm ZZ'))) :
('')
) +
'</td>' +
'<td>' +
'<input class=\"routineCoinNeeded\" name=\"routine_coins[]\" type=\"hidden\" value=\"' + cc_pika.coins + '\">' +
'<input class=\"routineTopicId\" name=\"routine_topic_id[]\" type=\"hidden\" value=\"' + cc_pika.topicId + '\">' +
(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 \" href=\"javascript:void(0);\"><i class=\"fa fa-check\"></i></a>') +
// '<a class=\"icon-delete\" href=\"javascript:void(0);\"><i class=\"fa fa-check\"></i></a>' +
// '<a class=\"icon-delete\" href=\"javascript:void(0);\"><i class=\"fa fa-times\"></i></a>' +
'</td>' +
'</tr>'
)
}
}
}
recalculateRoutinePackageOnPurchaseModal();
}
function recalculateRoutinePackageOnPurchaseModal() {
var tot_coin = 0;
\$('#selectPurchaseModal .routineTable .icon-check').each(function (indy, elem) {
if (\$(elem).hasClass('isChecked'))
tot_coin += (1 * \$('#selectPurchaseModal .routineTable .routineCoinNeeded').eq(indy).val())
})
\$('#selectPurchaseModal .routineCoinNeededTotalInput').val(tot_coin)
\$('#selectPurchaseModal .routineCoinNeededTotalSpan').text(tot_coin)
}
function initiate_prompt_info_modal() {
if (\$('#promptForInfoModal #currentCountryIdPromptForInfo').length)
\$('#promptForInfoModal #currentCountryIdPromptForInfo').selectize({
placeholder: 'Select Your Current Country',
// options: APTL.productListArray,
options: [],
valueField: 'value',
labelField: 'text',
preload: 'focus',
searchField: ['text', 'value'],
// render: {
// option: function (item, escape) {
// return '<div class=\"p-l-10 p-r-10\">'
// + '<h6>' + escape(item[label_for_product]) + '</h6> '
// + '<span>Code:' + escape(item.productCode) + '</span> '
// //+ '<span>Name:'+item.name+'</span> '
// //+ '<span>DEBUG:'+item.score+'</span>'
// + '</div>';
// }
// },
onChange: function (value) {
if (!value) return;
// productId = preliminary_reg_data_by_id[value]['product_id']
// getbomData();
//
},
load: function (query, callback) {
// if (!query.length) return // callback();
if (!query.length) query = '_EMPTY_';
var pika_ind_id = \$(\$(this)[0].\$input[\"0\"]).attr('data-id')
\$.ajax({
url: BaseURL + \"select_data_ajax\",
type: 'POST',
dataType: 'json',
data: {
//returnJson: 1,
//sessionData: sessionData
query: query,
tableName: \"entity_countries\",
valueField: \"country_id\",
textField: \"name_en\",
entity_group: 1,
selectorId: \$(\$(this)[0].\$input[\"0\"]).attr('id'),
isMultiple: 0,
dataId: pika_ind_id,
// isMultiple: 0,
//textField: \"rendered_text\",
//
//renderTextFormat: \"#__id__ __name__\",
andConditions: [
{type: \"like\", field: \"name_en\", value: query}
],
mustConditions: [
// {type: \"=\", field: \"approved\", value: 1}
],
convertToObject: [
// 'accessories', 'issues'
],
skipDefaultCompanyId: 1
// setDataForSingle: 1,
},
error: function () {
// callback();
},
success: function (res) {
// preliminary_reg_data_by_id = res.dataById
callback(res.data);
if (res.setValueArray.length != 0 && res.selectorId != '') {
if (res.isMultiple == 1)
\$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
else
\$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
}
// alert('pika master')
}
});
},
onLoad: function (data) {
// // console.log(data)
// alert('here')
if (!data.length) return;
// pbcs.open()
if (data.length == 1) {
// alert('hi')
// productionScheduleSelector.setValue(data[0].value)
}
}
});
if (\$('#promptForInfoModal #preferredConsultancyTopicCountryIdsPromptForInfo').length)
\$('#promptForInfoModal #preferredConsultancyTopicCountryIdsPromptForInfo').selectize({
placeholder: 'Select Your Preferred Country',
// options: APTL.productListArray,
options: [],
valueField: 'value',
labelField: 'text',
preload: 'focus',
searchField: ['text', 'value'],
// render: {
// option: function (item, escape) {
// return '<div class=\"p-l-10 p-r-10\">'
// + '<h6>' + escape(item[label_for_product]) + '</h6> '
// + '<span>Code:' + escape(item.productCode) + '</span> '
// //+ '<span>Name:'+item.name+'</span> '
// //+ '<span>DEBUG:'+item.score+'</span>'
// + '</div>';
// }
// },
onChange: function (value) {
if (!value) return;
// productId = preliminary_reg_data_by_id[value]['product_id']
// getbomData();
//
},
load: function (query, callback) {
// if (!query.length) return // callback();
if (!query.length) query = '_EMPTY_';
var pika_ind_id = \$(\$(this)[0].\$input[\"0\"]).attr('data-id')
\$.ajax({
url: BaseURL + \"select_data_ajax\",
type: 'POST',
dataType: 'json',
data: {
//returnJson: 1,
//sessionData: sessionData
query: query,
tableName: \"entity_countries\",
valueField: \"country_id\",
textField: \"name_en\",
entity_group: 1,
selectorId: \$(\$(this)[0].\$input[\"0\"]).attr('id'),
isMultiple: 1,
dataId: pika_ind_id,
// isMultiple: 0,
//textField: \"rendered_text\",
//
//renderTextFormat: \"#__id__ __name__\",
andConditions: [
{type: \"like\", field: \"name_en\", value: query}
],
mustConditions: [
// {type: \"=\", field: \"approved\", value: 1}
],
convertToObject: [
// 'accessories', 'issues'
],
skipDefaultCompanyId: 1
// setDataForSingle: 1,
},
error: function () {
// callback();
},
success: function (res) {
// preliminary_reg_data_by_id = res.dataById
callback(res.data);
if (res.setValueArray.length != 0 && res.selectorId != '') {
if (res.isMultiple == 1)
\$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
else
\$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
}
// alert('pika master')
}
});
},
onLoad: function (data) {
// // console.log(data)
// alert('here')
if (!data.length) return;
// pbcs.open()
if (data.length == 1) {
// alert('hi')
// productionScheduleSelector.setValue(data[0].value)
}
}
});
if (\$('#promptForInfoModal #preferredTopicIdsAsStudentPromptForInfo').length)
\$('#promptForInfoModal #preferredTopicIdsAsStudentPromptForInfo').selectize({
placeholder: 'Preferred Topic Ids as Student',
multiple: true,
// options: APTL.productListArray,
options: [],
valueField: 'value',
labelField: 'text',
preload: 'focus',
searchField: ['text', 'value'],
// render: {
// option: function (item, escape) {
// return '<div class=\"p-l-10 p-r-10\">'
// + '<h6>' + escape(item[label_for_product]) + '</h6> '
// + '<span>Code:' + escape(item.productCode) + '</span> '
// //+ '<span>Name:'+item.name+'</span> '
// //+ '<span>DEBUG:'+item.score+'</span>'
// + '</div>';
// }
// },
onChange: function (value) {
if (!value) return;
// productId = preliminary_reg_data_by_id[value]['product_id']
// getbomData();
//
},
load: function (query, callback) {
// if (!query.length) return // callback();
if (!query.length) query = '_EMPTY_';
var pika_ind_id = \$(\$(this)[0].\$input[\"0\"]).attr('data-id')
\$.ajax({
url: BaseURL + \"select_data_ajax\",
type: 'POST',
dataType: 'json',
data: {
//returnJson: 1,
//sessionData: sessionData
query: query,
tableName: \"entity_create_topic\",
valueField: \"id\",
textField: \"topic_name\",
entity_group: 1,
selectorId: \$(\$(this)[0].\$input[\"0\"]).attr('id'),
isMultiple: 1,
dataId: pika_ind_id,
// isMultiple: 0,
//textField: \"rendered_text\",
//
//renderTextFormat: \"#__id__ __name__\",
andConditions: [
{type: \"like\", field: \"topic_name\", value: query}
],
mustConditions: [
{type: \"=\", field: \"consultancy_enabled\", value: 1}
],
convertToObject: [
// 'accessories', 'issues'
],
skipDefaultCompanyId: 1
// setDataForSingle: 1,
},
error: function () {
// callback();
},
success: function (res) {
// preliminary_reg_data_by_id = res.dataById
callback(res.data);
if (res.setValueArray.length != 0 && res.selectorId != '') {
if (res.isMultiple == 1)
\$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
else
\$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
}
// alert('pika master')
}
});
},
onLoad: function (data) {
// console.log(data)
// alert('here')
if (!data.length) return;
// pbcs.open()
if (data.length == 1) {
// alert('hi')
// productionScheduleSelector.setValue(data[0].value)
}
}
});
if (\$('#promptForInfoModal #preferredTopicIdsAsConsultantPromptForInfo').length)
\$('#promptForInfoModal #preferredTopicIdsAsConsultantPromptForInfo').selectize({
placeholder: 'Preferred Topic Ids as Consultant',
multiple: true,
// options: APTL.productListArray,
options: [],
valueField: 'value',
labelField: 'text',
preload: 'focus',
searchField: ['text', 'value'],
// render: {
// option: function (item, escape) {
// return '<div class=\"p-l-10 p-r-10\">'
// + '<h6>' + escape(item[label_for_product]) + '</h6> '
// + '<span>Code:' + escape(item.productCode) + '</span> '
// //+ '<span>Name:'+item.name+'</span> '
// //+ '<span>DEBUG:'+item.score+'</span>'
// + '</div>';
// }
// },
onChange: function (value) {
if (!value) return;
// productId = preliminary_reg_data_by_id[value]['product_id']
// getbomData();
//
},
load: function (query, callback) {
// if (!query.length) return // callback();
if (!query.length) query = '_EMPTY_';
var pika_ind_id = \$(\$(this)[0].\$input[\"0\"]).attr('data-id')
\$.ajax({
url: BaseURL + \"select_data_ajax\",
type: 'POST',
dataType: 'json',
data: {
//returnJson: 1,
//sessionData: sessionData
query: query,
tableName: \"entity_create_topic\",
valueField: \"id\",
textField: \"topic_name\",
entity_group: 1,
selectorId: \$(\$(this)[0].\$input[\"0\"]).attr('id'),
isMultiple: 1,
dataId: pika_ind_id,
// isMultiple: 0,
//textField: \"rendered_text\",
//
//renderTextFormat: \"#__id__ __name__\",
andConditions: [
{type: \"like\", field: \"topic_name\", value: query}
],
mustConditions: [
{type: \"=\", field: \"consultancy_enabled\", value: 1}
],
convertToObject: [
// 'accessories', 'issues'
],
skipDefaultCompanyId: 1
// setDataForSingle: 1,
},
error: function () {
// callback();
},
success: function (res) {
// preliminary_reg_data_by_id = res.dataById
callback(res.data);
if (res.setValueArray.length != 0 && res.selectorId != '') {
if (res.isMultiple == 1)
\$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
else
\$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
}
// alert('pika master')
}
});
},
onLoad: function (data) {
// console.log(data)
// alert('here')
if (!data.length) return;
// pbcs.open()
if (data.length == 1) {
// alert('hi')
// productionScheduleSelector.setValue(data[0].value)
}
}
});
\$('.promptForInfoAutoUpdateData').not('.selectize-control').change(function () {
// // console.log('* The text was changed');
\$.post('";
// line 2408
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("update_inline_value");
yield "', {
// returnJson: 1,
// sessionData: sessionData
entityName: typeof \$(this).data('entityName') !== 'undefined' ? \$(this).data('entityName') : 'EntityApplicantDetails',
entityBundle: typeof \$(this).data('entityBundle') !== 'undefined' ? \$(this).data('entityBundle') : 'CompanyGroup',
setValue: \$(this).val(),
relevantRequiredPromptField: \$(this).data('relevantPromptField'),
clearRequiredPromptFlag: 1,
setMethod: \$(this).data('setMethod'),
findField: typeof \$(this).data('findField') !== 'undefined' ? \$(this).data('findField') : 'applicantId',
findValue: typeof \$(this).data('findValue') !== 'undefined' ? \$(this).data('findValue') : '";
// line 2423
((CoreExtension::getAttribute($this->env, $this->source, ($context["session"] ?? null), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 2423, $this->source); })()), "USER_ID", [], "any", false, false, false, 2423), [], "array", true, true, false, 2423)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["session"]) || array_key_exists("session", $context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.', 2423, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 2423, $this->source); })()), "USER_ID", [], "any", false, false, false, 2423), [], "array", false, false, false, 2423), "html", null, true)) : (yield 0));
yield "',
fieldType: typeof \$(this).data('fieldType') !== 'undefined' ? \$(this).data('fieldType') : '_TEXT_',
modifyTransDateFlag: typeof \$(this).data('modifyTransDate') !== 'undefined' ? \$(this).data('modifyTransDate') : 0,
";
// line 2430
yield "
})
.done(function (data) {
// console.log(data);
// if (data.success == true) {
// swal({
// title: \"Sweet!\",
// text: \"Updated\",
// imageUrl: BaseURL + \"images/thumbs-up.png\"
// });
//// alertify.success(\"Order Confirmation Done\");
//
//
// } else {
// swal({
// title: \"Sorry!\",
// text: \"Your Action failed !\",
// imageUrl: BaseURL + \"images/Bee_Sad_Emote.png\"
// });
//// alertify.success(\"Order Confirmation Failed\");
//
//// \$('#barcode_selector_cont').waitMe('hide');
//
// }
})
.fail(function () {
});
});
document.getElementById('promptForInfoModal').addEventListener('hidden.bs.modal', function (event) {
\$('.promptForInfoAutoUpdateData').not('.selectize-control').trigger('change');
})
promptForInfoModal.show();
promptInfo_showTab(currentTab); // Display the current tab
}
function promptInfo_showTab(n) {
// This function will display the specified tab of the form...
// stepShowTab(n,'#promptForInfoModal')
// retrunb false;
\$('#promptForInfoModal .step').eq(n).show();
//... and fix the Previous/Next buttons:
if (n == 0) {
document.getElementById(\"promptForInfo_prevBtn\").style.display = \"none\";
} else {
document.getElementById(\"promptForInfo_prevBtn\").style.display = \"inline\";
}
if (n == (\$('#promptForInfoModal .step').length - 1)) {
document.getElementById(\"promptForInfo_nextBtn\").innerHTML = \"Finish\";
} else {
document.getElementById(\"promptForInfo_nextBtn\").innerHTML = \"Next\";
}
//... and run a function that will display the correct step indicator:
\$('#promptForInfoModal .stepIndicator').removeClass('active')
for (var gg = 0; gg <= n; gg++)
\$('#promptForInfoModal .stepIndicator').eq(gg).addClass('active')
}
function promptInfo_nextPrev(n) {
// Exit the function if any field in the current tab is invalid:
if (n == 1 && !promptInfo_validateForm()) return false;
\$('#promptForInfoModal .step').eq(currentTab).hide();
// Increase or decrease the current tab by 1:
currentTab = currentTab + n;
// if you have reached the end of the form...
if (currentTab >= \$('#promptForInfoModal .step').length) {
// ... the form gets submitted:
// // console.log(\$('#selectPurchaseModal .step'))
// alert(\$('#selectPurchaseModal .step').length)
// document.getElementById(\"signUpForm\").submit();
promptForInfoModal.hide();
return false;
}
// Otherwise, display the correct tab:
promptInfo_showTab(currentTab);
}
function promptInfo_validateForm() {
// This function deals with validation of the form fields
var x, y, i, valid = true;
// x = document.getElementsByClassName(\"step\");
// y = x[currentTab].getElementsByTagName(\"input\");
//
//
//
//
// // A loop that checks every input field in the current tab:
// for (i = 0; i < y.length; i++) {
// // If a field is empty...
// if (y[i].value == \"\") {
// // add an \"invalid\" class to the field:
// y[i].className += \" invalid\";
// // and set the current valid status to false
// valid = false;
// }
// }
// // If the valid status is true, mark the step as finished and valid:
// if (valid) {
// document.getElementsByClassName(\"stepIndicator\")[currentTab].className += \" finish\";
// }
\$('#promptForInfoModal .step input').each(function (indumia, elemele) {
if (\$(elemele).hasClass('required') && \$(elemele).val() == '') {
\$(elemele).addClass('invalid')
valid = false;
} else {
}
})
if (valid) {
\$('#promptForInfoModal .stepIndicator').eq(currentTab).addClass('finish')
// document.getElementsByClassName(\"stepIndicator\")[currentTab].className += \" finish\";
}
return valid; // return the valid status
}
function promptInfo_fixStepIndicator(n) {
// This function removes the \"active\" class of all steps...
var i, x = document.getElementsByClassName(\"stepIndicator\");
for (i = 0; i < x.length; i++) {
x[i].className = x[i].className.replace(\" active\", \"\");
}
//... and adds the \"active\" class on the current step:
x[n].className += \" active\";
}
function addScript(src) {
var s = document.createElement('script');
s.type = 'text/javascript';
s.src = src;
document.getElementsByTagName('head')[0].appendChild(s);
return s; // to remove it later
}
";
// line 2589
if ((0 === CoreExtension::compare((isset($context["system_type"]) || array_key_exists("system_type", $context) ? $context["system_type"] : (function () { throw new RuntimeError('Variable "system_type" does not exist.', 2589, $this->source); })()), "_BUDDYBEE_"))) {
// line 2590
yield "
function checkAndRedirectToMeeting(force) {
var curr_ts_now = moment().unix();
// if(CURRENT_ROUTE=='consultancy_session' && force==0)
// {
// if(typeof currentMeetingSessionId !== 'undefined')
// {
// if(upcomingNextMeetingIdForRedirect==currentMeetingSessionId)
// {
// return;
// }
//
// }
//
// }
if (upcomingNextMeetingTsForRedirect != 0) {
if (curr_ts_now >= (upcomingNextMeetingTsForRedirect - 120)) //redirect before 2 min
{
window.localStorage.setItem('UNMId', 0);
window.localStorage.setItem('UNMTs', 0);
window.location.href = \"";
// line 2615
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("consultancy_session");
yield "/\" + upcomingNextMeetingIdForRedirect;
}
}
}
function refreshUpcomingMeetingList() {
// // console.log('_______________________TRIGGERED_______________________')
if (current_user_user_id != 0) {
\$.ajax({
url: BaseURL + \"select_data_ajax_public\",
type: 'POST',
dataType: 'json',
data: {
//returnJson: 1,
//sessionData: sessionData
query: '',
tableName: \"entity_meeting_session\",
valueField: \"session_id\",
// textField: \"topic_name\",
entity_group: 1,
selectorId: '_NO_NEED_',
isMultiple: 0,
dataId: 0,
// isMultiple: 0,
textField: \"session_id\",
//
andOrConditions: [
{type: \"=\", field: \"consultant_id\", value: current_user_user_id},
{type: \"=\", field: \"student_id\", value: current_user_user_id}
],
mustConditions: [
// {type: \"=\", field: \"is_paid_full\", value: 1},
{type: \">=\", field: \"scheduled_time_ts\", value: moment().unix()},
";
// line 2659
yield "// {type: \"!=\", field: \"applicant_id\", value: \$('#rescheduledStudentId').val()}
";
// line 2661
yield " ],
orderByConditions: [
{
field: 'scheduled_time_ts',
sortType: 'ASC'
}
";
// line 2668
yield "// {type: \"!=\", field: \"applicant_id\", value: \$('#rescheduledStudentId').val()}
";
// line 2670
yield " ],
convertToObject: [
// 'accessories', 'issues'
],
skipDefaultCompanyId: 1
// setDataForSingle: 1,
},
error: function () {
// callback();
},
success: function (res) {
// preliminary_reg_data_by_id = res.dataById
upcomingNextMeetingIdForRedirect = 0;
upcomingNextMeetingTsForRedirect = 0;
upcomingMeetingDataForRedirect = [];
for (var bogu = 0; bogu < res.data.length; bogu++) {
if (res.data[bogu].is_paid_full == 1) {
upcomingMeetingDataForRedirect.push({
id: res.data[bogu].session_id,
ts: res.data[bogu].scheduled_time_ts,
})
}
}
if (upcomingMeetingDataForRedirect.length != 0) {
upcomingNextMeetingIdForRedirect = upcomingMeetingDataForRedirect[0]['id'];
upcomingNextMeetingTsForRedirect = upcomingMeetingDataForRedirect[0]['ts'];
}
if (typeof refresh_upcoming_meeting_on_dashboard !== 'undefined')
refresh_upcoming_meeting_on_dashboard(res.data);
// if(CURRENT_ROUTE=='consultancy_session')
// {
// if(typeof currentMeetingSessionId !== 'undefined')
// {
// if(upcomingNextMeetingIdForRedirect==currentMeetingSessionId)
// {
// clearInterval(triggerRefreshUpcomingSession);
// }
// else
// checkAndRedirectToMeeting(0);
//
// }
// else
// checkAndRedirectToMeeting(0);
//
//// clearInterval(triggerRefreshUpcomingSession);
//
// }
// else
checkAndRedirectToMeeting(0);
}
});
}
}
function triggerRefreshUpcomingMeetingList(intervalHere) {
if (current_user_user_id != 0) {
triggerRefreshUpcomingSession = setInterval(function () {
refreshUpcomingMeetingList();
//seconds
}, intervalHere)
}
}
";
}
// line 2748
yield "</script>
";
// line 2750
if ((0 === CoreExtension::compare(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::BUDDYBEE_SOCKET_ENABLED"), 1))) {
// line 2751
yield " ";
// line 2752
yield " ";
// line 2753
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, ($context["session"] ?? null), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 2753, $this->source); })()), "USER_ID", [], "any", false, false, false, 2753), [], "array", true, true, false, 2753)) {
// line 2754
yield "
";
// line 2755
$context["buddybee_socket_server"] = Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::BUDDYBEE_SOCKET_SERVER");
// line 2756
yield " ";
$context["buddybee_socket_server_full"] = ("https://" . (isset($context["buddybee_socket_server"]) || array_key_exists("buddybee_socket_server", $context) ? $context["buddybee_socket_server"] : (function () { throw new RuntimeError('Variable "buddybee_socket_server" does not exist.', 2756, $this->source); })()));
// line 2757
yield "
";
// line 2758
if (CoreExtension::inFilter("localhost:", (isset($context["buddybee_socket_server"]) || array_key_exists("buddybee_socket_server", $context) ? $context["buddybee_socket_server"] : (function () { throw new RuntimeError('Variable "buddybee_socket_server" does not exist.', 2758, $this->source); })()))) {
// line 2759
yield " ";
$context["buddybee_socket_server_full"] = (((isset($context["url_wo_port"]) || array_key_exists("url_wo_port", $context) ? $context["url_wo_port"] : (function () { throw new RuntimeError('Variable "url_wo_port" does not exist.', 2759, $this->source); })()) . ":") . CoreExtension::getAttribute($this->env, $this->source, Twig\Extension\CoreExtension::split($this->env->getCharset(), (isset($context["buddybee_socket_server"]) || array_key_exists("buddybee_socket_server", $context) ? $context["buddybee_socket_server"] : (function () { throw new RuntimeError('Variable "buddybee_socket_server" does not exist.', 2759, $this->source); })()), "localhost:"), 1, [], "array", false, false, false, 2759));
// line 2760
yield " ";
} else {
// line 2761
yield " ";
$context["buddybee_socket_server_full"] = ("https://" . (isset($context["buddybee_socket_server"]) || array_key_exists("buddybee_socket_server", $context) ? $context["buddybee_socket_server"] : (function () { throw new RuntimeError('Variable "buddybee_socket_server" does not exist.', 2761, $this->source); })()));
// line 2762
yield " ";
}
// line 2763
yield "
";
// line 2765
yield " ";
// line 2766
yield " <script type=\"text/javascript\">
var buddybeeKeepAliveCall = {};
var lastActivityTs = 0;
function refreshKeepAliveCall() {
buddybeeKeepAliveCall = setInterval(function () {
var nowTs = moment().unix(),
differenceFromStartTime = meetingStartTime.diff(now), // 86400000;
differenceFromEndTime = meetingEndTime.diff(now); // 86400000;
if (nowTs - lastActivityTs > 60) {
clearInterval(buddybeeKeepAliveCall);
} else {
buddybee_socket.emit('update_my_socket', {
userId: buddybee_socket_user_id,
token: buddybee_socket_user_session_token,
});
}
//seconds
}, 30000)
}
// // console.log(io)
function initiateBuddybeeSocket() {
lastActivityTs = moment().unix();
\$.getScript('";
// line 2801
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["buddybee_socket_server_full"]) || array_key_exists("buddybee_socket_server_full", $context) ? $context["buddybee_socket_server_full"] : (function () { throw new RuntimeError('Variable "buddybee_socket_server_full" does not exist.', 2801, $this->source); })()), "html", null, true);
yield "/socket.io/socket.io.js', function () {
";
// line 2803
yield " if (io) {
";
// line 2805
yield " buddybee_socket = io.connect('";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["buddybee_socket_server_full"]) || array_key_exists("buddybee_socket_server_full", $context) ? $context["buddybee_socket_server_full"] : (function () { throw new RuntimeError('Variable "buddybee_socket_server_full" does not exist.', 2805, $this->source); })()), "html", null, true);
yield "');
buddybee_socket.emit('update_my_socket', {
userId: buddybee_socket_user_id,
token: buddybee_socket_user_session_token,
user_status: '_ON_',
force_broadcast: 1,
});
// buddybee_socket.on('_SEND_TEXT_TO_MOBILE_', function (dataObj) {
// // 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_')
// // console.log(dataObj)
//
//
// });
addScript(\"";
// line 2821
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", null, true);
yield "buddybee_assets/js/generic_buddybee_sockets.js?version=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html", null, true);
yield "\")
";
// line 2822
if (((0 === CoreExtension::compare((isset($context["curr_route"]) || array_key_exists("curr_route", $context) ? $context["curr_route"] : (function () { throw new RuntimeError('Variable "curr_route" does not exist.', 2822, $this->source); })()), "consultancy_session")) || (0 === CoreExtension::compare((isset($context["curr_route"]) || array_key_exists("curr_route", $context) ? $context["curr_route"] : (function () { throw new RuntimeError('Variable "curr_route" does not exist.', 2822, $this->source); })()), "_nothing_new_")))) {
// line 2823
yield "
";
} else {
// line 2825
yield "
ifvisible.setIdleDuration(120);
ifvisible.onEvery(30, function () {
// // console.log('not idle')
buddybee_socket.emit('update_my_socket', {
userId: buddybee_socket_user_id,
token: buddybee_socket_user_session_token,
});
});
// ifvisible.onEvery(300, function () {
//// // console.log('not idle')
// buddybee_socket.emit('update_my_socket', {
// userId: buddybee_socket_user_id,
// token: buddybee_socket_user_session_token,
// });
// });
ifvisible.idle(function () {
document.body.style.opacity = 0.5;
buddybee_socket.emit('update_my_socket', {
userId: buddybee_socket_user_id,
token: buddybee_socket_user_session_token,
user_status: '_AWAY_',
force_broadcast: 1,
});
});
ifvisible.wakeup(function () {
document.body.style.opacity = 1;
buddybee_socket.emit('update_my_socket', {
userId: buddybee_socket_user_id,
token: buddybee_socket_user_session_token,
user_status: '_ON_',
force_broadcast: 1,
});
});
";
}
// line 2863
yield "
// buddybee_socket.emit('update_my_socket', {
// userId: buddybee_socket_user_id,
// token: buddybee_socket_user_session_token,
// });
if (typeof pageSocketInit !== 'undefined')
pageSocketInit();
buddybee_socket.on('user_status_update', function (dataObj) {
// console.log(dataObj)
});
buddybee_socket.on('_SOCKET_NOTIFICATION_HERE_', function (dataObj) {
if (typeof dataObj.targetRoute !== 'undefined') {
if (dataObj.targetRoute == 'consultancy_session')
refreshUpcomingMeetingList();
}
// console.log(dataObj)
});
buddybee_socket.on('refresh_upcoming_meeting_list', function (dataObj) {
refreshUpcomingMeetingList();
// console.log(dataObj)
});
// console.log(buddybee_socket);
}
});
}
</script>
";
// line 2905
yield "
";
}
// line 2907
yield " ";
}
// line 2909
yield "
<script>
var honeybeeLocale = 'en';
jQuery.browser = {
msie: false,
// version: 0
};
function check_filters_default() {
// alert(\"here\")
\$('.filter_this').hide()
\$('.filter_with_this').each(function () {
// alert(\$(this).attr('id'))
// alert(\$(this).val())
if (\$(this).attr('type') == 'checkbox' && \$(this).prop('checked') == false)
return;
if (\$(this).attr('type') == 'radio' && \$(this).is(':checked') == false)
return;
var selector_name = '.filter_' + (\$(this).attr('id')) + '_' + \$(this).val();
// alert(selector_name)
\$(selector_name).show()
})
}
var userAgent = navigator.userAgent || navigator.vendor || window.opera;
\$(document).ready(function () {
";
// line 2940
if (CoreExtension::getAttribute($this->env, $this->source, ($context["session"] ?? null), "triggerPromptInfoModalFlag", [], "array", true, true, false, 2940)) {
// line 2941
yield " ";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["session"]) || array_key_exists("session", $context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.', 2941, $this->source); })()), "triggerPromptInfoModalFlag", [], "array", false, false, false, 2941), 1))) {
// line 2942
yield " initiate_prompt_info_modal();
";
}
// line 2944
yield " ";
}
// line 2945
yield "
";
// line 2947
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 2947, $this->source); })()), "session", [], "any", false, false, false, 2947), "get", ["devAdminMode"], "method", false, false, false, 2947), 1))) {
// line 2948
yield "
";
}
// line 2951
yield " \$('.book_now_cta').click(function (ev) {
ev.preventDefault();
selectPurchaseModal.show();
})
stepShowTab(currentTabSelectPurchaseModal, '#selectPurchaseModal')
\$(document).on('click', '#selectPurchaseModal .routineTable tbody .icon-check.modifiable', function () {
if (\$(this).hasClass('isChecked'))
\$(this).removeClass('isChecked');
else
\$(this).addClass('isChecked')
recalculateRoutinePackageOnPurchaseModal();
})
\$(document).on('click', '.offCanvasCalendarTrigger', function () {
refreshOffCanvasCalendar()
})
\$(document).on('click', '.box-selector', function () {
\$('.' + \$(this).data('genClass')).removeClass('active')
\$(this).addClass('active')
})
\$(document).on('click', '#selectPurchaseModal .prevBtn', function () {
//validate action here
// if (!validateForm()) return false;
stepShowTab('-1', '#selectPurchaseModal')
})
\$(document).on('click', '#selectPurchaseModal .stepIndicator', function () {
//validate action here
// if (!validateForm()) return false;
stepShowTab(\$(this).data('seqId'), '#selectPurchaseModal')
})
\$(document).on('click', '#selectPurchaseModal .nextBtn', function () {
//validate action here
// if (!validateForm()) return false;
stepShowTab('+1', '#selectPurchaseModal')
})
\$(document).on('click', '#selectPurchaseModal .cn_selector', function () {
populateTopicListOnPurchaseModal(\$(this).data('id'));
stepShowTab('+1', '#selectPurchaseModal')
if (\$('.box-selector.cn_selector.active').length)
\$('.cntry_p span').text(\$('.box-selector.cn_selector.active .title').text())
})
\$(document).on('click', '#selectPurchaseModal .tp_selector', function () {
refreshRoutinePackageListOnPurchaseModal(\$(this).data('id'));
populateConsultantListOnPurchaseModal(\$(this).data('id'));
stepShowTab('+1', '#selectPurchaseModal');
if (\$('.box-selector.tp_selector.active').length)
\$('.topic_p span').text(\$('.box-selector.tp_selector.active .title').text() + ' ( ' + \$('.box-selector.tp_selector.active .sub-title').text() + ' )')
})
\$(document).on('click', '#selectPurchaseModal .cons_selector', function () {
populateScheduleListOnPurchaseModal(\$(this).data('id'));
stepShowTab('+1', '#selectPurchaseModal')
if (\$('.box-selector.cons_selector.active').length)
\$('.cons_p span').text(\$('.box-selector.cons_selector.active .title').text())
})
\$(document).on('click', '#selectPurchaseModal .sch_selector_mon', function () {
\$('#selectPurchaseModal .sch_selector_day').hide();
// alert(\$(this).data('id'))
\$('#selectPurchaseModal .sch_selector_day.sch_mon_' + \$(this).data('id')).show();
// populateScheduleListOnPurchaseModal(\$(this).data('id'));
// stepShowTab('+1','#selectPurchaseModal')
})
\$(document).on('click', '#selectPurchaseModal .sch_selector_day', function () {
\$('#selectPurchaseModal .sch_selector_time').hide();
\$('#selectPurchaseModal .sch_selector_time.sch_day_' + \$(this).data('id')).show();
// populateScheduleListOnPurchaseModal(\$(this).data('id'));
// stepShowTab('+1','#selectPurchaseModal')
})
\$(document).on('click', '#selectPurchaseModal .sch_selector_time', function () {
// alert('here')
\$('#selectPurchaseModal .sch_selector_mon.sch_mon_' + moment.unix(\$(this).data('id')).format('YYYY_MM')).trigger('click');
\$('#selectPurchaseModal .sch_selector_day.sch_day_' + moment.unix(\$(this).data('id')).format('YYYY_MM_DD')).trigger('click');
})
if (CURRENT_ROUTE == 'consultancy_session') {
// if (typeof currentMeetingSessionId !== 'undefined') {
// if (upcomingNextMeetingIdForRedirect == currentMeetingSessionId) {
// clearInterval(triggerRefreshUpcomingSession);
// }
// else
// checkAndRedirectToMeeting(0);
//
// }
// else
// checkAndRedirectToMeeting(0);
// clearInterval(triggerRefreshUpcomingSession);
} else
setTimeout(function () {
refreshUpcomingMeetingList();
triggerRefreshUpcomingMeetingList(60000);
}, 20000);
// Windows Phone must come first because its UA also contains \"Android\"
// alert(userAgent);
if ((currTsForDlM - deepLinkModalLastShown) > (3600 * 24)) {
// alert('in DLM');
if (/windows phone/i.test(userAgent)) {
// alert(\"Android\");
\$('.deep_link_choice').hide();
\$('.deep_link_choice._AND_').show();
// \$('.deep_link_choice._IPHONE_').show();
\$('.deep_link_choice._BROWSER_').show();
deepLinkModal.show()
}
if (/Android/i.test(userAgent)) {
// alert(\"Android\");
\$('.deep_link_choice').hide();
\$('.deep_link_choice._AND_').show();
// \$('.deep_link_choice._IPHONE_').show();
\$('.deep_link_choice._BROWSER_').show();
deepLinkModal.show()
}
// iOS detection from: http://stackoverflow.com/a/9039885/177710
if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
// alert(\"iOS\");
\$('.deep_link_choice').hide();
// \$('.deep_link_choice._AND_').show();
\$('.deep_link_choice._IPHONE_').show();
\$('.deep_link_choice._BROWSER_').show();
deepLinkModal.show()
}
window.localStorage.setItem('deepLinkModalLastShown', currTsForDlM)
}
// deepLinkModal.show()
\$('#buddybee_preloader').fadeOut('slow', function () {
\$(this).remove();
});
if (typeof initiateOtpModal !== 'undefined') {
// initiateOtpModal()
}
";
// line 3130
if ((0 === CoreExtension::compare((isset($context["system_type"]) || array_key_exists("system_type", $context) ? $context["system_type"] : (function () { throw new RuntimeError('Variable "system_type" does not exist.', 3130, $this->source); })()), "_BUDDYBEE_"))) {
// line 3131
yield "
\$(document).on('click', 'a', function (e) {
if (\$(this).attr('href') == '";
// line 3134
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("under_construction");
yield "') {
e.preventDefault();
swal({
title: \"Oh Snap!\",
type: 'warning',
text: \"This page is Under Construction.\",
timer: 3000,
showConfirmButton: false
});
}
if (\$(this).attr('href') == '";
// line 3144
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("user_logout");
yield "') {
// e.preventDefault();
if (buddybee_socket != '') {
buddybee_socket.emit('update_my_socket', {
userId: buddybee_socket_user_id,
user_status: '_OFF_',
force_broadcast: 1,
});
}
}
});
";
}
// line 3160
yield " \$(document).on('click', '.admin-menu-toggler', function (e) {
\$('.buddybee_admin_sidebar').toggle()
})
\$(document).on('click', 'a.book_now_cta', function (e) {
// e.preventDefault();
// bookNowModal.show()
})
\$(document).on('change', '.filter_with_this', function () {
check_filters_default()
})
\$(document).on('click', '.btn_deep_link_selector', function () {
if (\$(this).attr('data-deeplink-choice') == '_AND_')
window.location.href = \"https://play.google.com/store/apps/details?id=eu.buddybee.consultancy\";
// deepLinkModal.hide()
})
check_filters_default();
\$('#currentClientTime').val(moment().format('YYYY-MM-DD HH:mm:ss'))
";
// line 3191
if ((0 === CoreExtension::compare(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::BUDDYBEE_SOCKET_ENABLED"), 1))) {
// line 3192
yield " ";
// line 3193
yield " ";
// line 3194
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, ($context["session"] ?? null), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 3194, $this->source); })()), "USER_ID", [], "any", false, false, false, 3194), [], "array", true, true, false, 3194)) {
// line 3195
yield "
initiateBuddybeeSocket();
";
}
// line 3200
yield " ";
}
// line 3201
yield "
\$('.schedule_date_picker').not('.datepicker').bootstrapMaterialDatePicker({
format: 'MMMM DD, YYYY',
clearButton: true,
weekStart: 6,
time: false,
switchOnClick: true,
monthPicker: true
// format: 'HH:mm',
// clearButton: true,
// date: false,
// switchOnClick:true
});
\$('.schedule_date_time_picker').not('.datepicker').bootstrapMaterialDatePicker({
//format: 'dddd DD MMMM YYYY',
// format: ' HH:mm',
// clearButton: true,
// weekStart: 6,
// time: true,
// switchOnClick: true,
// monthPicker: false
format: 'HH:mm',
clearButton: true,
date: false,
switchOnClick: true
});
";
// line 3229
yield "
";
// line 3230
if (((((0 === CoreExtension::compare((isset($context["curr_route"]) || array_key_exists("curr_route", $context) ? $context["curr_route"] : (function () { throw new RuntimeError('Variable "curr_route" does not exist.', 3230, $this->source); })()), "applicant_dashboard")) || (0 === CoreExtension::compare((isset($context["curr_route"]) || array_key_exists("curr_route", $context) ? $context["curr_route"] : (function () { throw new RuntimeError('Variable "curr_route" does not exist.', 3230, $this->source); })()), "dashboard"))) || (0 === CoreExtension::compare((isset($context["curr_route"]) || array_key_exists("curr_route", $context) ? $context["curr_route"] : (function () { throw new RuntimeError('Variable "curr_route" does not exist.', 3230, $this->source); })()), "consultant_dashboard"))) || (0 === CoreExtension::compare((isset($context["curr_route"]) || array_key_exists("curr_route", $context) ? $context["curr_route"] : (function () { throw new RuntimeError('Variable "curr_route" does not exist.', 3230, $this->source); })()), "buddybee_admin_dashboard")))) {
// line 3231
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, ($context["session"] ?? null), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 3231, $this->source); })()), "USER_ID", [], "any", false, false, false, 3231), [], "array", true, true, false, 3231)) {
// line 3232
yield " ";
if ((0 !== CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["session"]) || array_key_exists("session", $context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.', 3232, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 3232, $this->source); })()), "USER_ID", [], "any", false, false, false, 3232), [], "array", false, false, false, 3232), 0))) {
// line 3233
yield " var globLsDataStr = window.localStorage.getItem('lsData');
var globLsData = {};
if (globLsDataStr != 'null' && globLsDataStr != null)
globLsData = JSON.parse(globLsDataStr);
// console.log(globLsData)
if (typeof globLsData['checkoutPending'] !== 'undefined') {
if (globLsData['checkoutPending'] == 1)
window.location.href = \"";
// line 3243
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("pricing_plan_page");
yield "?autoRedirected=1\";
}
";
}
// line 3246
yield " ";
}
// line 3247
yield " ";
}
// line 3248
yield "
// // console.log(globLsData)
\$('#small_search_button').click(function () {
// \$( '.small_search_content .selectize-control.searchbox.small_search' ).animate({
// opacity: 0.25,
// left: \"+=50\",
// width: \"0\"
// }, 5000, function() {
// // Animation complete.
// });
if (\$('.small_search_content .selectize-control.searchbox.small_search').hasClass('search_shown')) {
// \$('.small_search_content .selectize-control.searchbox.small_search').hide();
\$('.small_search_content .selectize-control.searchbox.small_search').removeClass('search_shown');
// \$('.searchbar-content.small_search_content').css('border','1px solid #1d5b9e33;');
\$('.small_search_content .selectize-control.searchbox.small_search').animate({
// opacity: 0.25,
// left: \"+=50\",
width: \"0\"
}, 500, function () {
// Animation complete.
\$('.small_search_content .selectize-control.searchbox.small_search').hide();
\$('.small_search_content .selectize-control.searchbox.small_search').removeClass('search_shown');
\$('.searchbar-content.small_search_content').removeClass('search_shown');
});
} else {
// \$('.small_search_content .selectize-control.searchbox.small_search').show();
// \$('.searchbar-content.small_search_content').css('border','1px solid #1d5b9e33;');
\$('.small_search_content .selectize-control.searchbox.small_search').css('display', 'inline-flex')
\$('.small_search_content .selectize-control.searchbox.small_search').addClass('search_shown');
\$('.searchbar-content.small_search_content').addClass('search_shown');
\$('.small_search_content .selectize-control.searchbox.small_search').animate({
// opacity: 0.25,
// left: \"+=50\",
width: \"224\"
}, 500, function () {
// Animation complete.
// \$('.searchbar-content.small_search_content').css('border','1px solid #1d5b9e33;');
});
}
})
";
// line 3296
yield " ";
// line 3297
yield " ";
// line 3298
yield " ";
// line 3299
yield " ";
// line 3300
yield "
";
// line 3302
yield " ";
// line 3303
yield " ";
// line 3304
yield " ";
// line 3305
yield " ";
// line 3306
yield " ";
// line 3307
yield " ";
// line 3308
yield " ";
// line 3309
yield "
";
// line 3311
yield "
";
// line 3313
yield " ";
// line 3314
yield "
";
// line 3316
yield "
";
// line 3318
yield " ";
// line 3319
yield "
";
// line 3321
yield " ";
// line 3322
yield " ";
// line 3323
yield " ";
// line 3324
yield " ";
// line 3325
yield " ";
// line 3326
yield " ";
// line 3327
yield " ";
// line 3328
yield " ";
// line 3329
yield " ";
// line 3330
yield " ";
// line 3331
yield " ";
// line 3332
yield " ";
// line 3333
yield " ";
// line 3334
yield " ";
// line 3335
yield " ";
// line 3336
yield "
";
// line 3337
if ((0 === CoreExtension::compare((isset($context["system_type"]) || array_key_exists("system_type", $context) ? $context["system_type"] : (function () { throw new RuntimeError('Variable "system_type" does not exist.', 3337, $this->source); })()), "_BUDDYBEE_"))) {
// line 3338
yield " var small_search_box = \$(\".searchbox\").selectize({
valueField: \"url\",
labelField: \"name\",
searchField: \"name\",
create: false,
maxItems: 1,
preload: 'focus',
render: {
option: function (item, escape) {
return (
'<div style=\"padding: 10px;\">' +
'<span class=\"title\">' +
'<span class=\"name\" style=\"display:block;font-size: 18px;\">' +
// '<i class=\"icon ' +
// (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
// '\"></i>' +
// \"<div class='form-control mainDiv'>\" +
// '<span class=\"name\">' +
escape(item.name) +
\"</span>\" +
'<span class=\"description\" style=\"padding-top:2px; display: block\">' +
escape(item.description) +
\"</span>\" +
// '<span class=\"description\">' +
// escape(item.description) +
\"</span>\" +
\"</div>\"
);
// return (
// \"<div>\" +
// '<span class=\"title\">' +
// '<span class=\"name\"><i class=\"icon ' +
// (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
// '\"></i>' +
// escape(item.name) +
// \"</span>\" +
//
// \"</span>\" +
// '<span class=\"description\">' +
// escape(item.description) +
// \"</span>\" +
//
// \"</div>\"
// );
},
},
onChange: function (value) {
if (!value.length) return;
var sval = value
small_search_box.setValue([])
window.location.href = sval;
//addProductToListById(value);
// alert(value)
// small_search_box.clear()
// small_search_box.focus()
},
load: function (query, callback) {
// if (!query.length) return callback();
\$.ajax({
url: \"";
// line 3415
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("search_buddybee");
yield "/\" + encodeURIComponent(query),
type: \"GET\",
error: function () {
callback();
},
success: function (res) {
// console.log(res.data)
callback(res.data);
},
});
},
})[0].selectize;
";
}
// line 3428
yield "
\$('.selectize-control.searchbox .selectize-input.items input').addClass('trn')
\$('.selectize-control.searchbox .selectize-input.items input').attr('data-trn-key', '_SMALL_SEARCH_PH_');
_t = \$('body').translate({
lang: \"en\",
t: lang_pack
});
if (typeof (window.localStorage) !== \"undefined\")
honeybeeLocale = window.localStorage.getItem('honeybeeLocale');
// alert(honeybeeLocale)
if (honeybeeLocale !== \"undefined\" && honeybeeLocale != 'null' && honeybeeLocale != null) {
_t.lang(honeybeeLocale);
} else {
honeybeeLocale = 'en'
}
\$(\".locale_changer\").click(function (ev) {
var lang = \$(this).attr(\"data-locale\");
_t.lang(lang);
honeybeeLocale = lang;
\$(\".locale_changer\").removeClass('activeLocale')
\$(this).addClass('activeLocale');
\$(\".curr_locale_text\").text(\$(this).text());
if (typeof (window.localStorage) !== \"undefined\")
honeybeeLocale = window.localStorage.setItem('honeybeeLocale', honeybeeLocale);
// // console.log(lang);
ev.preventDefault();
});
";
// line 3463
if ((0 === CoreExtension::compare((isset($context["system_type"]) || array_key_exists("system_type", $context) ? $context["system_type"] : (function () { throw new RuntimeError('Variable "system_type" does not exist.', 3463, $this->source); })()), "_BUDDYBEE_"))) {
// line 3464
yield " if (\$('#viewAsId').length) {
\$('#viewAsId').selectize({
placeholder: 'Choose User',
multiple: false,
// options: APTL.productListArray,
options: [],
valueField: 'value',
labelField: 'text',
searchField: ['text', 'value', 'phone', 'email', 'o_auth_email', 'firstname', 'lastname'],
preload: 'focus',
render: {
option: function (item, escape) {
return (
'<div style=\"padding: 2px; display:flex;\">' +
'<span class=\"title\" style=\" min-width: 2rem;display: inline-block;\">' +
((item.image != null && item.image != '') ? '<img style=\"border-radius: 50%;height: 2rem;width: 2rem;\" src=\"' + item.image + '\" alt=\"\" class=\"img-fluid\" >' :
'<img style=\"border-radius: 50%;height: 2rem;width: 2rem;\" src=\"";
// line 3482
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", null, true);
yield "buddybee_assets/images/consultant_image_ph_male.png\" alt=\"\" class=\"img-fluid\" >') +
\"</span>\" +
'<span class=\"name\" style=\"padding-left:0.5rem;font-size: 12px; display:inline-block;\">' +
// '<i class=\"icon ' +
// (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
// '\"></i>' +
// \"<div class='form-control mainDiv'>\" +
// '<span class=\"name\">' +
'#' + escape(item.applicant_id) + ' ' + escape(item.firstname) + ' ' + escape(item.lastname) + '<br> ' + escape(item.phone) + ' - ' + escape(item.o_auth_email) +
\"</span>\" +
// '<span class=\"description\">' +
// escape(item.description) +
// \"</span>\" +
\"</div>\"
);
// return (
// \"<div>\" +
// '<span class=\"title\">' +
// '<span class=\"name\"><i class=\"icon ' +
// (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
// '\"></i>' +
// escape(item.name) +
// \"</span>\" +
//
// \"</span>\" +
// '<span class=\"description\">' +
// escape(item.description) +
// \"</span>\" +
//
// \"</div>\"
// );
},
},
onChange: function (value) {
if (!value.length) return;
window.location.href = '";
// line 3533
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", null, true);
yield "/' + value;
//addProductToListById(value);
// alert(value)
// small_search_box.clear()
// small_search_box.focus()
},
load: function (query, callback) {
// if (!query.length) return // callback();
if (!query.length) query = '_EMPTY_';
var pika_ind_id = \$(\$(this)[0].\$input[\"0\"]).attr('data-id')
\$.ajax({
url: BaseURL + \"select_data_ajax_public\",
type: 'POST',
dataType: 'json',
data: {
//returnJson: 1,
//sessionData: sessionData
query: query,
tableName: \"entity_applicant_details\",
valueField: \"applicant_id\",
// textField: \"topic_name\",
entity_group: 1,
selectorId: \$(\$(this)[0].\$input[\"0\"]).attr('id'),
isMultiple: 0,
dataId: pika_ind_id,
// isMultiple: 0,
textField: \"rendered_text\",
//
renderTextFormat: \" __firstname__ __lastname__\",
andOrConditions: [
{type: \"like\", field: \"firstname\", value: query},
{type: \"like\", field: \"lastname\", value: query},
{type: \"like\", field: \"phone\", value: query},
{type: \"like\", field: \"email\", value: query},
{type: \"=\", field: \"applicant_id\", value: isNaN(query) ? '' : query}
],
mustConditions: [
";
// line 3579
if ((0 <= CoreExtension::compare((isset($context["BUDDYBEE_ADMIN_LEVEL"]) || array_key_exists("BUDDYBEE_ADMIN_LEVEL", $context) ? $context["BUDDYBEE_ADMIN_LEVEL"] : (function () { throw new RuntimeError('Variable "BUDDYBEE_ADMIN_LEVEL" does not exist.', 3579, $this->source); })()), 5))) {
// line 3580
yield "
";
} elseif ((0 <= CoreExtension::compare( // line 3581
(isset($context["BUDDYBEE_ADMIN_LEVEL"]) || array_key_exists("BUDDYBEE_ADMIN_LEVEL", $context) ? $context["BUDDYBEE_ADMIN_LEVEL"] : (function () { throw new RuntimeError('Variable "BUDDYBEE_ADMIN_LEVEL" does not exist.', 3581, $this->source); })()), 1))) {
// line 3582
yield " {
type: \"in\",
field: \"is_admin\",
value: [0, 'null']
},
{
type: \"in\",
field: \"assigned_sales_representative_id\",
value: [0, 'null',";
// line 3590
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["session"]) || array_key_exists("session", $context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.', 3590, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 3590, $this->source); })()), "USER_ID", [], "any", false, false, false, 3590), [], "array", false, false, false, 3590), "html", null, true);
yield "]
},
";
} else {
// line 3593
yield "
";
}
// line 3595
yield " // {type: \"=\", field: \"is_consultant\", value: 1},
";
// line 3598
yield "// {type: \"!=\", field: \"applicant_id\", value: \$('#rescheduledStudentId').val()}
";
// line 3600
yield " ],
convertToObject: [
// 'accessories', 'issues'
],
skipDefaultCompanyId: 1
// setDataForSingle: 1,
},
error: function () {
// callback();
},
success: function (res) {
// preliminary_reg_data_by_id = res.dataById
callback(res.data);
if (res.setValueArray.length != 0 && res.selectorId != '') {
if (res.isMultiple == 1)
\$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
else
\$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
}
// alert('pika master')
}
});
},
})[0].selectize;
}
\$('.recharge_submit').click(function (e) {
e.preventDefault();
\$('#rechargeForm').submit();
});
// alert('.locale_changer.'+honeybeeLocale)
// alert(\$('.locale_changer.'+honeybeeLocale).text())
\$(\".curr_locale_text\").text(\$('.locale_changer.' + honeybeeLocale).text());
";
}
// line 3640
yield "
\$('.add_basic_day_picker').not('.datepicker').bootstrapMaterialDatePicker({
//format: 'dddd DD MMMM YYYY',
format: 'MMMM DD, YYYY HH:mm',
clearButton: true,
weekStart: 6,
time: true,
switchOnClick: true,
monthPicker: true
});
});
</script>
</html>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@Application/footer/buddybee_new_footer.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 4418 => 3640, 4376 => 3600, 4373 => 3598, 4369 => 3595, 4365 => 3593, 4359 => 3590, 4349 => 3582, 4347 => 3581, 4344 => 3580, 4342 => 3579, 4293 => 3533, 4239 => 3482, 4219 => 3464, 4217 => 3463, 4180 => 3428, 4164 => 3415, 4085 => 3338, 4083 => 3337, 4080 => 3336, 4078 => 3335, 4076 => 3334, 4074 => 3333, 4072 => 3332, 4070 => 3331, 4068 => 3330, 4066 => 3329, 4064 => 3328, 4062 => 3327, 4060 => 3326, 4058 => 3325, 4056 => 3324, 4054 => 3323, 4052 => 3322, 4050 => 3321, 4047 => 3319, 4045 => 3318, 4042 => 3316, 4039 => 3314, 4037 => 3313, 4034 => 3311, 4031 => 3309, 4029 => 3308, 4027 => 3307, 4025 => 3306, 4023 => 3305, 4021 => 3304, 4019 => 3303, 4017 => 3302, 4014 => 3300, 4012 => 3299, 4010 => 3298, 4008 => 3297, 4006 => 3296, 3957 => 3248, 3954 => 3247, 3951 => 3246, 3945 => 3243, 3933 => 3233, 3930 => 3232, 3927 => 3231, 3925 => 3230, 3922 => 3229, 3893 => 3201, 3890 => 3200, 3883 => 3195, 3880 => 3194, 3878 => 3193, 3876 => 3192, 3874 => 3191, 3841 => 3160, 3822 => 3144, 3809 => 3134, 3804 => 3131, 3802 => 3130, 3621 => 2951, 3616 => 2948, 3614 => 2947, 3610 => 2945, 3607 => 2944, 3603 => 2942, 3600 => 2941, 3598 => 2940, 3565 => 2909, 3562 => 2907, 3558 => 2905, 3515 => 2863, 3475 => 2825, 3471 => 2823, 3469 => 2822, 3463 => 2821, 3443 => 2805, 3440 => 2803, 3436 => 2801, 3399 => 2766, 3397 => 2765, 3394 => 2763, 3391 => 2762, 3388 => 2761, 3385 => 2760, 3382 => 2759, 3380 => 2758, 3377 => 2757, 3374 => 2756, 3372 => 2755, 3369 => 2754, 3366 => 2753, 3364 => 2752, 3362 => 2751, 3360 => 2750, 3356 => 2748, 3276 => 2670, 3273 => 2668, 3265 => 2661, 3262 => 2659, 3216 => 2615, 3189 => 2590, 3187 => 2589, 3026 => 2430, 3017 => 2423, 2999 => 2408, 2410 => 1821, 2408 => 1820, 2406 => 1819, 2390 => 1804, 2388 => 1803, 2386 => 1802, 2373 => 1790, 2371 => 1789, 2369 => 1788, 2290 => 1711, 2266 => 1689, 2264 => 1688, 2262 => 1687, 2260 => 1686, 2258 => 1685, 2256 => 1684, 2252 => 1681, 2250 => 1680, 2248 => 1679, 2246 => 1678, 2244 => 1677, 2187 => 1622, 2158 => 1595, 2156 => 1594, 2154 => 1593, 2152 => 1592, 2150 => 1591, 2148 => 1590, 2144 => 1587, 2142 => 1586, 2140 => 1585, 2138 => 1584, 2136 => 1583, 2018 => 1466, 1871 => 1321, 1865 => 1318, 1860 => 1317, 1857 => 1306, 1855 => 1305, 1852 => 1304, 1850 => 1303, 1674 => 1129, 1668 => 1127, 1662 => 1125, 1660 => 1124, 1618 => 1084, 1616 => 1083, 1601 => 1072, 1598 => 1071, 1595 => 1070, 1593 => 1069, 1552 => 1031, 1544 => 1026, 1540 => 1024, 1538 => 1023, 1533 => 1021, 1529 => 1020, 1525 => 1019, 1521 => 1018, 1515 => 1015, 1506 => 1008, 1504 => 1007, 1496 => 1002, 1491 => 1000, 1486 => 998, 1481 => 996, 1477 => 995, 1471 => 994, 1464 => 993, 1462 => 992, 1456 => 991, 1450 => 990, 1444 => 989, 1438 => 988, 1434 => 987, 1427 => 986, 1421 => 984, 1414 => 982, 1407 => 980, 1401 => 979, 1394 => 977, 1387 => 975, 1380 => 973, 1375 => 971, 1369 => 967, 1366 => 965, 1360 => 960, 1355 => 955, 1353 => 954, 1351 => 953, 1342 => 945, 1339 => 943, 1332 => 938, 1329 => 936, 1291 => 899, 1285 => 894, 1283 => 893, 1281 => 892, 1279 => 891, 1277 => 890, 1274 => 888, 1272 => 887, 1270 => 886, 1268 => 885, 1266 => 884, 1264 => 883, 1262 => 882, 1260 => 881, 1258 => 880, 1256 => 879, 1254 => 878, 1251 => 876, 1249 => 875, 1247 => 874, 1245 => 873, 1243 => 872, 1241 => 871, 1239 => 870, 1237 => 869, 1234 => 867, 1232 => 866, 1230 => 865, 1228 => 864, 1226 => 863, 1224 => 862, 1222 => 861, 1220 => 860, 1218 => 859, 1216 => 858, 1214 => 857, 1211 => 855, 1209 => 854, 1207 => 853, 1203 => 850, 1189 => 838, 1185 => 837, 1176 => 830, 1173 => 829, 1169 => 826, 1167 => 825, 1165 => 824, 1163 => 823, 1161 => 822, 1159 => 821, 1157 => 820, 1155 => 819, 1153 => 818, 1151 => 817, 1148 => 815, 1146 => 814, 1144 => 809, 1135 => 802, 1121 => 790, 1117 => 789, 1107 => 781, 1093 => 769, 1089 => 768, 1079 => 760, 1065 => 748, 1061 => 747, 1034 => 722, 1032 => 721, 1015 => 706, 1004 => 701, 1000 => 700, 990 => 693, 985 => 692, 981 => 691, 947 => 659, 938 => 655, 934 => 653, 920 => 643, 916 => 642, 908 => 637, 903 => 636, 899 => 635, 896 => 634, 893 => 633, 890 => 632, 888 => 631, 865 => 610, 863 => 609, 854 => 602, 839 => 588, 836 => 586, 831 => 582, 828 => 581, 825 => 580, 822 => 579, 800 => 559, 795 => 556, 776 => 539, 773 => 538, 755 => 522, 752 => 521, 734 => 505, 732 => 504, 728 => 502, 726 => 501, 725 => 500, 724 => 499, 720 => 497, 715 => 494, 699 => 480, 696 => 479, 683 => 468, 680 => 467, 668 => 457, 666 => 456, 663 => 455, 658 => 451, 655 => 449, 653 => 448, 647 => 444, 645 => 443, 643 => 442, 638 => 439, 636 => 438, 635 => 437, 634 => 436, 631 => 435, 626 => 432, 624 => 431, 615 => 424, 613 => 423, 610 => 422, 608 => 421, 605 => 420, 603 => 419, 600 => 418, 597 => 417, 595 => 416, 585 => 408, 573 => 397, 571 => 396, 569 => 395, 567 => 394, 559 => 388, 555 => 386, 551 => 385, 547 => 384, 543 => 383, 539 => 382, 534 => 381, 530 => 379, 526 => 378, 506 => 361, 495 => 353, 491 => 351, 489 => 350, 487 => 349, 427 => 291, 376 => 243, 328 => 198, 269 => 142, 251 => 126, 239 => 115, 237 => 114, 235 => 113, 230 => 110, 213 => 95, 211 => 94, 209 => 93, 207 => 92, 205 => 91, 203 => 90, 201 => 89, 199 => 88, 197 => 87, 195 => 86, 189 => 82, 181 => 76, 179 => 75, 177 => 74, 175 => 73, 173 => 72, 171 => 71, 169 => 70, 167 => 69, 165 => 68, 163 => 67, 157 => 63, 149 => 57, 147 => 56, 144 => 55, 135 => 47, 133 => 46, 131 => 45, 128 => 43, 126 => 42, 124 => 41, 122 => 40, 120 => 39, 118 => 38, 116 => 37, 114 => 36, 112 => 35, 110 => 34, 108 => 33, 106 => 32, 104 => 31, 102 => 30, 100 => 29, 92 => 23, 89 => 22, 87 => 21, 82 => 19, 79 => 18, 77 => 17, 75 => 16, 73 => 15, 70 => 14, 64 => 10, 62 => 9, 59 => 8, 56 => 7, 53 => 6, 50 => 5, 47 => 4, 44 => 3,);
}
public function getSourceContext()
{
return new Source("{# <script src=\"{{ asset('condensed_assets/javascript.js',) }}\"></script> #}
{# {{ dump( constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::NOTIFICATION_SERVER')) }}; #}
{% if not include_html is defined %}
{% set include_html=1 %}
{% if app.request.request.get('skipHTML') !='' %}
{% set include_html= 0 %}
{% endif %}
{% endif %}
{% if include_html!=1 %}
{% endif %}
{% include '@Application/framework/_deeplinkmodal_css.html.twig' %}
{% set BUDDYBEE_ADMIN_LEVEL= session[UserConstants.BUDDYBEE_ADMIN_LEVEL] is defined? session[UserConstants.BUDDYBEE_ADMIN_LEVEL]:0 %}
{% include '@Application/modals/input_forms/verify_otp_modal.html.twig' %}
<script>
var notificationDetailBaseUrl = '{{ url('buddybee_notification_view', {'id': 0}) }}';
</script>
{% if system_type=='_BUDDYBEE_' %}
<footer class=\"footer\">
<a class=\"nav-link cta book_now_cta\" href=\"{{ url('consultant_search_page') }}\" style=\"text-transform: none;\"
><span class=\"trn\" data-trn-key=\"_BOOK_NOW_CTA_\" style=\"vertical-align: middle;padding: 2px 6px;
display: inline-block;\"></span> <i class=\"fa fa-arrow-right\"></i></a>
{# <a class=\"nav-link cta twus\" style=\" #}
{# border: 2px solid #22b14c; #}
{# text-transform: capitalize; #}
{# color: #22b14c !important; #}
{# z-index: 9999999; #}
{# /*display: flex;*/ #}
{# flex-direction: row; #}
{# vertical-align: middle;\" href=\"{{ url('live_support_page_applicant') }}\" #}
{# ><span style=\"background: url('{{ absolute_url(path('dashboard')) }}buddybee_assets/images/video_call_icon.png'); #}
{# width: 30px; #}
{# height: 30px; #}
{# display: inline-block; #}
{# background-size: contain; #}
{# background-repeat: no-repeat; #}
{# background-position: center; #}
{# \"></span> <span class=\"trn\" data-trn-key=\"_TALK_WITH_US_CTA_\" style=\"vertical-align: middle;padding: 2px 6px; #}
{# display: block; #}
{# \"></span></a> #}
<div class=\"modal fade\" style=\"z-index: 99999;\" id=\"bookNowModal\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\"
aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\">
<div class=\"modal-content\">
<div class=\"modal-header\" style=\"text-align: center;display: block;\">
<h5 class=\"modal-title\" id=\"exampleModalLabel\" style=\"text-align: center;\">Select your
Preference</h5>
{# <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button> #}
</div>
{% include '@Application/framework/_constypeselectorbtn_css.html.twig' %}
<div class=\"modal-body\">
<div class=\"row\">
<div class=\"col-md-12\" style=\"text-align: left;\">
<a class=\"consTypeSelectorBtn \" id=\"\"
href=\"{{ url('admin_consultant_search_page') }}\">
<div class=\"\">
<p style=\"margin: 0px;text-transform: none;\">
{# <span class=\"\" src=\"\" #}
{# style=\"font-weight: normal; background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/bkash_logo.png); #}
{# background-size: contain; #}
{# background-repeat: no-repeat; #}
{# background-position: left; #}
{# width:3rem; #}
{# height: 1rem; #}
{# display: inline-block; #}
{# margin: auto; #}
{# vertical-align: middle;\"></span> #}
Primary Consultancy</p>
</div>
</a>
<a class=\"consTypeSelectorBtn \" id=\"\"
href=\"{{ url('consultant_search_page') }}\">
<div class=\"\">
<p style=\"margin: 0px;text-transform: none;\">
{# <span class=\"\" src=\"\" #}
{# style=\"font-weight: normal; background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/bkash_logo.png); #}
{# background-size: contain; #}
{# background-repeat: no-repeat; #}
{# background-position: left; #}
{# width:3rem; #}
{# height: 1rem; #}
{# display: inline-block; #}
{# margin: auto; #}
{# vertical-align: middle;\"></span> #}
Expert Consultancy</p>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<form action=\"{{ path('recharge_account') }}\" method=\"post\" id=\"rechargeForm\">
{# <button type=\"button\" class=\"btn btn-primary\" data-bs-toggle=\"modal\" data-bs-target=\"#reviewModal\"> #}
{# Rate your Consultant #}
{# </button> #}
<!-- Modal -->
<div class=\"modal fade\" id=\"rechargeAccountOwnModal\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\"
aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\">
<div class=\"modal-content\">
<div class=\"modal-header\" style=\"text-align: center;display: block;\">
<h5 class=\"modal-title\" id=\"exampleModalLabel\" style=\"text-align: center;\">Add Fund to Your
Account</h5>
{# <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button> #}
</div>
<div class=\"modal-body\">
<div class=\"row\">
<div class=\"col-md-12\" style=\"text-align: left;\">
<div class=\"form-group\">
<label for=\"\">Recharge Amount (Euro)</label>
<input type=\"number\" class=\"form-control\" name=\"rechargeAmount\" id=\"rechargeAmount\">
</div>
<div class=\"form-group\">
<label for=\"\">Bee Code</label>
<input type=\"text\" class=\"form-control\" name=\"rechargeBeeCode\" id=\"rechargeBeeCode\"
placeholder=\"if you have\" value=\"\">
<input type=\"hidden\" class=\"form-control\" name=\"rechargeApplicantId\"
id=\"rechargeApplicantId\" placeholder=\"if you have\"
value=\"{{ session[UserConstants.USER_ID] is defined ?session[UserConstants.USER_ID]:0 }}\">
</div>
<br>
<button type=\"button\" style=\"width: 48%;height: 3rem;\"
class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Close
</button>
<button type=\"button\" style=\"width: 48%;height: 3rem;\"
class=\"btn btn-primary recharge_submit\">Proceed
</button>
</div>
</div>
</div>
<div class=\"modal-footer\">
</div>
</div>
</div>
</div>
</form>
<div class=\"modal fade \" style=\"z-index:9999999999999999999\" id=\"deepLinkModal\" tabindex=\"-1\"
aria-labelledby=\"exampleModalLabel\"
aria-hidden=\"true\" data-bs-backdrop=\"false\">
<div class=\"modal-dialog modal-dialog-centered modal-xl\" style=\"
/*position:fixed;*/
align-items: end;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
width: 100%;
top:auto;
right:auto;
left:auto;
bottom:0;\">
<div class=\"modal-content\" style=\" text-align: center;
border-radius: 15px 15px 0 0;
\">
<div class=\"modal-body\">
<h5 class=\"modal-title\" id=\"exampleModalLabel\" style=\" text-align: center;
font-size: 1rem;
color: #616467;
margin-bottom: 1rem;
margin-top: .5rem;
\">Explore BuddyBee with...</h5>
<div class=\"row deep_link_choice _AND_\" style=\"margin-bottom:10px;\">
<div class=\"col-md-8 col-sm-8\"
style=\"text-align: left; display: flex; justify-content: space-evenly;\">
<div style=\"background:url({{ absolute_url(path('dashboard')) }}buddybee_assets/android-icon-192x192.png);
height: 40px;
width: 40px;
background-size: 100%;
background-repeat: no-repeat;
background-position: center;
border-radius: 29%;
display: inline-block;
border: 1px solid #d7dbe1;\" class=\"cons_image_view\">
</div>
<div style=\"
height: 40px;
width: 200px;
padding-top: 10px;;
padding-left: 10px;;
border-radius: 50%;display: inline-block\" class=\"\">
<p>BuddyBee App</p>
</div>
</div>
<div class=\"col-md-4 col-sm-4\" style=\"text-align: left; padding-top: 5px;\">
<button type=\"button\" style=\"width: 100%;
height: 33px;
font-size: 12px;
/*margin-top: 10px; */
color: #ffffff;
background-color: #1d5b9e;
font-weight: bold;
border: none;\"
class=\"btn btn_deep_link_selector btn-primary\" data-deeplink-choice=\"_AND_\"
data-bs-dismiss=\"modal\">Open
</button>
</div>
</div>
<div class=\"row deep_link_choice _IPHONE_\" style=\"margin-bottom:10px;\">
<div class=\"col-md-8 col-sm-8\"
style=\"text-align: left; display: flex; justify-content: space-evenly;\">
<div style=\"background:url({{ absolute_url(path('dashboard')) }}buddybee_assets/android-icon-192x192.png);
height: 40px;
width: 40px;
background-size: 100%;
background-repeat: no-repeat;
background-position: center;
border-radius: 29%;
display: inline-block;
border: 1px solid #d7dbe1;\" class=\"cons_image_view\">
</div>
<div style=\"
height: 40px;
width: 200px;
padding-top: 10px;;
padding-left: 10px;;
border-radius: 50%;display: inline-block\" class=\"\">
<p>BuddyBee App</p>
</div>
</div>
<div class=\"col-md-4 col-sm-4\" style=\"text-align: left; padding-top: 5px;\">
<button type=\"button\" style=\"width: 100%;
height: 33px;
font-size: 12px;
/*margin-top: 10px; */
/*color: #261a0c;*/
/*background-color: #fac53a;*/
color: #ffffff;
background-color: #1d5b9e;
font-weight: bold;
border: none;\"
class=\"btn btn_deep_link_selector btn-primary\" data-deeplink-choice=\"_IPHONE_\"
data-bs-dismiss=\"modal\">Open
</button>
</div>
</div>
<div class=\"row deep_link_choice _BROWSER_\" style=\"margin-bottom:10px;\">
<div class=\"col-md-8 col-sm-8\"
style=\"text-align: left; display: flex; justify-content: space-evenly;\">
<div style=\"background:url({{ absolute_url(path('dashboard')) }}buddybee_assets/chrome_logo.png);
height: 40px;
width: 40px;
background-size: 100%;
background-repeat: no-repeat;
background-position: center;
border-radius: 29%;
display: inline-block;
border: none;\" class=\"cons_image_view\">
</div>
<div style=\"
height: 40px;
width: 200px;
padding-top: 10px;;
padding-left: 10px;;
border-radius: 50%;display: inline-block\" class=\"\">
<p>Browser</p>
</div>
</div>
<div class=\"col-md-4 col-sm-4\" style=\"text-align: left; padding-top: 5px;\">
<button type=\"button\" style=\"width: 100%;
height: 33px;
font-size: 12px;
/*margin-top: 10px;*/
color: #1d5b9e;
/*color: #261a0c;*/
background-color: #dddad3;
font-weight: bold;
border: none;\"
class=\"btn btn_deep_link_selector btn-primary\" data-deeplink-choice=\"_BROWSER_\"
data-bs-dismiss=\"modal\">Continue
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"download-app\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-8 my-auto\">
<div class=\"download-app-content\">
<span>BuddyBee on the go</span>
<p>Start or schedule consultants anytime, anywhere with Android and iPhone apps</p>
<div class=\"download-store\">
{# <a href=\"#\" target=\"_blank\"><img #}
{# src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/app-store.png\" #}
{# alt=\"app-store\"></a> #}
<a href=\"https://play.google.com/store/apps/details?id=eu.buddybee.consultancy\"
target=\"_blank\"><img
src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/google-play.png\"
alt=\"google-play\"></a>
</div>
</div>
</div>
<div class=\"col-md-4\">
<div class=\"download-app-img\">
<img src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/video-call.png\"
alt=\"video-call\">
</div>
</div>
</div>
</div>
</div>
<div class=\"container\">
<div class=\"image\" style=\"text-align: center;\">
<img src=\"https://buddybee.eu/buddybee_assets/images/aamarpay-footer.png\" alt=\"\" style=\"max-width: 50%;\">
</div>
</div>
<div class=\"footer-menu\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-12\">
<ul class=\"d-flex justify-content-between m-0\">
<li><a href=\"#\">Copyright ©{{ 'now'|date('Y') }} BuddyBee</a></li>
<li><a href=\"#\">Powered by ©{{ 'now'|date('Y') }} HoneyBee IoT Ltd. </a></li>
{# <li><a href=\"#\">©2021 Buddybee</a></li> #}
<li><a href=\"{{ url('contact_page') }}\">Contact</a></li>
<li><a href=\"{{ url('buddybee_terms_of_service') }}\">Terms of Service</a></li>
<li><a href=\"{{ url('buddybee_privacy_policy') }}\">Privacy Policy</a></li>
<li><a href=\"{{ url('buddybee_refund_policy') }}\">Refund Policy</a></li>
<li><a href=\"{{ url('buddybee_cancellation_policy') }}\">Cancellation Policy</a></li>
<li><a href=\"{{ url('help_page') }}\">Help</a></li>
{# <li><a href=\"{{ url('under_construction') }}\">Mission Statement</a></li> #}
</ul>
</div>
</div>
</div>
</div>
</footer>
{% include '@Application/framework/_stepindicator_css.html.twig' %}
{% include '@Application/framework/_promptforinfomodal_css.html.twig' %}
{% include '@Application/framework/_selectpurchasemodal_css.html.twig' %}
<div class=\"modal fade\" id=\"promptForInfoModal\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\"
aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\">
<div class=\"modal-content\">
<div class=\"modal-header\" style=\"\">
<h6 class=\"modal-title\" id=\"exampleModalLabel\" style=\"text-align: left;\">
Please Fill up Your Info for Better Communication</h6>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\">
{# <span aria-hidden=\"true\">×</span> #}
</button>
</div>
<div class=\"modal-body\">
<div class=\"row\">
{% if session['triggerPromptInfoModalFlag'] is defined %}
{% if session['triggerPromptInfoModalFlag'] == 1 %}
{% if session['relevantRequiredPromptFields'] is defined %}
{% set relevantRequiredPromptFields =session['relevantRequiredPromptFields']|jsonDecode() %}
{% if not relevantRequiredPromptFields is empty %}
<form id=\"promptForInfoModalForm\" action=\"#!\">
<!-- start step indicators -->
<div class=\"form-header d-flex mb-4\">
{% if 'email' in relevantRequiredPromptFields or 'phone' in relevantRequiredPromptFields or 'currentCountryId' in relevantRequiredPromptFields %}
<span class=\"stepIndicator\">Contact Info</span>
{% endif %}
{% if 'preferredTopicIdsAsConsultant' in relevantRequiredPromptFields
or 'preferredTopicIdsAsStudent' in relevantRequiredPromptFields
or 'preferredConsultancyTopicCountryIds' in relevantRequiredPromptFields %}
<span class=\"stepIndicator\">Preferences</span>
{% endif %}
{# <span class=\"stepIndicator\">Relevant Info</span> #}
{# <span class=\"stepIndicator\">Preferences</span> #}
</div>
<!-- end step indicators -->
<!-- step one -->
{% if 'email' in relevantRequiredPromptFields or 'phone' in relevantRequiredPromptFields or 'currentCountryId' in relevantRequiredPromptFields %}
{# <span class=\"stepIndicator\">Contact Info</span> #}
<div class=\"step\">
{# <p class=\"text-center mb-4\">Your Email Address</p> #}
{% if 'email' in relevantRequiredPromptFields %}
<div class=\"mb-3\">
<input type=\"email\" class=\"promptForInfoAutoUpdateData required\"
data-set-method=\"setOAuthEmail\"
data-field-type=\"_TEXT_\"
data-relevant-prompt-field=\"email\"
data-modify-trans-date=\"0\"
placeholder=\"Your Email\">
</div>
{% endif %}
{% if 'phone' in relevantRequiredPromptFields %}
<div class=\"mb-3\">
<input type=\"phone\" class=\"promptForInfoAutoUpdateData required\"
data-set-method=\"setPhone\"
data-field-type=\"_TEXT_\"
data-relevant-prompt-field=\"phone\"
data-modify-trans-date=\"0\"
placeholder=\"Your Phone No.\">
</div>
{% endif %}
{% if 'currentCountryId' in relevantRequiredPromptFields %}
<p class=\" mb-4\">Your Current Country</p>
<div class=\"mb-3\">
<select class=\"promptForInfoAutoUpdateData required\"
data-set-method=\"setCurrentCountryId,setCountry\"
data-field-type=\"_VALUE_\"
data-relevant-prompt-field=\"currentCountryId\"
data-modify-trans-date=\"0\"
id=\"currentCountryIdPromptForInfo\"
name=\"currentCountryIdPromptForInfo[]\">
</select>
</div>
{% endif %}
</div>
{% endif %}
<!-- step two -->
{% if 'preferredTopicIdsAsConsultant' in relevantRequiredPromptFields
or 'preferredTopicIdsAsStudent' in relevantRequiredPromptFields
or 'preferredConsultancyTopicCountryIds' in relevantRequiredPromptFields %}
<div class=\"step\">
{% if 'preferredTopicIdsAsStudent' in relevantRequiredPromptFields %}
<p class=\" mb-4\">Your Preferred topics as Student</p>
<div class=\"mb-3\">
<select class=\" promptForInfoAutoUpdateData\"
data-set-method=\"setPreferredTopicIdsAsStudent\"
data-field-type=\"_JSON_\"
data-relevant-prompt-field=\"preferredTopicIdsAsStudent\"
data-modify-trans-date=\"0\"
id=\"preferredTopicIdsAsStudentPromptForInfo\"
name=\"preferredTopicIdsAsStudentPromptForInfo[]\"
multiple>
</select>
</div>
{% endif %}
{% if 'preferredTopicIdsAsConsultant' in relevantRequiredPromptFields %}
<p class=\" mb-4\">Your Preferred topics as Consultant</p>
<div class=\"mb-3\">
<select class=\" promptForInfoAutoUpdateData\"
data-set-method=\"setPreferredTopicIdsAsConsultant\"
data-field-type=\"_JSON_\"
data-relevant-prompt-field=\"preferredTopicIdsAsConsultant\"
data-modify-trans-date=\"0\"
id=\"preferredTopicIdsAsConsultantPromptForInfo\"
name=\"preferredTopicIdsAsConsultantPromptForInfo[]\"
multiple>
</select>
</div>
{% endif %}
{% if 'preferredConsultancyTopicCountryIds' in relevantRequiredPromptFields %}
<p class=\" mb-4\">Countries you wish to go</p>
<div class=\"mb-3\">
<select class=\" promptForInfoAutoUpdateData\"
data-set-method=\"setPreferredConsultancyTopicCountryIds\"
data-field-type=\"_JSON_\"
data-relevant-prompt-field=\"preferredConsultancyTopicCountryIds\"
data-modify-trans-date=\"0\"
id=\"preferredConsultancyTopicCountryIdsPromptForInfo\"
name=\"preferredConsultancyTopicCountryIdsPromptForInfo[]\"
multiple>
</select>
</div>
{% endif %}
</div>
{% endif %}
<!-- step three -->
<!-- start previous / next buttons -->
<div class=\"form-footer d-flex\">
<button type=\"button\" class=\"prevBtn\" id=\"promptForInfo_prevBtn\"
onclick=\"promptInfo_nextPrev(-1)\">
Previous
</button>
<button type=\"button\" class=\"nextBtn\" id=\"promptForInfo_nextBtn\"
onclick=\"promptInfo_nextPrev(1)\">
Next
</button>
</div>
<!-- end previous / next buttons -->
</form>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
</div>
</div>
{# <div class=\"modal-footer\"> #}
{# </div> #}
</div>
</div>
</div>
<div class=\"modal fade\" id=\"selectPurchaseModal\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\"
aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\">
<div class=\"modal-content\">
<div class=\"modal-header\" style=\"\">
<h6 class=\"modal-title\" id=\"exampleModalLabel\" style=\"text-align: left;\">
Get Consultation</h6>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\">
{# <span aria-hidden=\"true\">×</span> #}
</button>
</div>
<div class=\"modal-body\">
<div class=\"row\">
{% include '@Application/framework/_box_selector_css.html.twig' %}
<form id=\"selectPurchaseModalForm\" action=\"#\">
<!-- start step indicators -->
<div class=\"form-header d-flex mb-4\">
<span class=\"stepIndicator seq_0\" data-seq-id=\"0\">Select Country</span>
<span class=\"stepIndicator seq_1\" data-seq-id=\"1\">Select Topic</span>
<span class=\"stepIndicator seq_2\" data-seq-id=\"2\">Select Consultant</span>
<span class=\"stepIndicator seq_3\" data-seq-id=\"3\">Select Schedule</span>
<span class=\"stepIndicator seq_4\" data-seq-id=\"4\">Confirm</span>
<span class=\"stepIndicator seq_5\" data-seq-id=\"5\">Payment</span>
</div>
<div class=\"step seq_0 \">
<h5 class=\" \">Select a Country</h5>
<div class=\"row clearfix cn_holder\">
{% if not countries_data is defined %}
{% set countries_data=''|getCountriesBuddyBee %}
{% endif %}
{% for ind,cntry in countries_data %}
<div class=\"box-selector cn_selector cn_{{ cntry.id }} col-md-3 col-sm-6\"
data-id=\"{{ cntry.id }}\"
data-gen-class=\"cn_selector\"
>
<div class=\"inside\">
<div class=\"img\" href=\"{{ url('dashboard') }}\" style=\"
background:url(' {{ absolute_url(path('dashboard')) }}{{ cntry.flagImage }}');
height: 50px !important;
width: 100%;
/* max-width: 30% !important; */
background-position: center;
background-size: contain;
background-repeat: no-repeat;
\">
</div>
<h6 class=\"title\" style=\"height: 2rem;\">{{ cntry.name }}</h6>
{# <p class=\"sub-title\"> </p> #}
</div>
</div>
{% endfor %}
</div>
</div>
<div class=\"step seq_1 \">
<h5 class=\" \">Select a Topic</h5>
<div class=\"row clearfix topic_holder\">
</div>
</div>
<div class=\"step seq_2\">
<h5 class=\" \">Select a Consultant</h5>
<div class=\"row clearfix cons_holder\">
</div>
</div>
<div class=\"step seq_3\">
<h5 class=\"view_if_has_schedules\">Select Month</h5>
<div class=\"row clearfix sch_holder_month view_if_has_schedules\"></div>
<h5 class=\"view_if_has_schedules\">Select Day</h5>
<div class=\"row clearfix sch_holder_day view_if_has_schedules\"></div>
<h5 class=\"view_if_has_schedules\">Select Time</h5>
<div class=\"row clearfix sch_holder_time view_if_has_schedules\"></div>
<p class=\"view_if_has_schedules\"> -------or------- </p>
<h5 class=\" \">Select Preferred Schedule (Upto 3)</h5>
<div class=\"row clearfix sch_holder\">
{% for hh in 1..3 %}
<div class=\"box-selector man_sch_selector man_sch_{{ hh }} col-md-4 col-sm-6\"
data-id=\"{{ hh }}\"
data-gen-class=\"man_sch_selector\"
>
<div class=\"inside\">
<textarea
class=\"add_basic_day_picker man_sch_selector_dp man_sch_selector_dp{{ hh }} \"
data-id=\"{{ hh }}\" placeholder=\"Click to set Schedule\"
data-gen-class=\"man_sch_selector_dp\"></textarea>
</div>
</div>
{% endfor %}
</div>
</div>
<div class=\"step seq_4\">
<h5 class=\" \">Your Purchase Summary</h5>
<div class=\"row clearfix summary_holder\">
<p class=\"cntry_p\">Country : <span>Germany</span></p>
<p class=\"topic_p\"> Name & Type: <span>Single Consultation</span></p>
<p class=\"cons_p\">Consultant : <span>Ahmed Zahid Omar</span></p>
<p class=\"coins_p\">Coins : <span class=\"routineCoinNeededTotalSpan\"></span></p>
</div>
{% include '@Application/framework/_selectpurchasemodal_2_css.html.twig' %}
<table class=\"table table-condensed table-striped routineTable\">
<tbody></tbody>
<tfoot>
<tr>
<td>Total Bee Coins Needed</td>
<td style=\"text-align: left;\"><b class=\"routineCoinNeededTotalSpan\">0</b><br>
</td>
<td></td>
</tr>
</tfoot>
</table>
</div>
<div class=\"step seq_5\">
<h5 class=\" \">Direct Payment</h5>
<div class=\"row\">
<div class=\"box-selector pm_selector pm_1 col-md-4 col-sm-6 paymentMethodSelectorBtn\"
data-id=\"1\"
data-gen-class=\"pm_selector\"
>
<div class=\"inside\">
<div class=\"img\" href=\"{{ url('dashboard') }}\" style=\"
background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/stripe_logo.png);
height: 50px !important;
width: 100%;
/* max-width: 30% !important; */
background-position: center;
background-size: contain;
background-repeat: no-repeat;
\">
</div>
<h6 class=\"title\" style=\"height: 2rem;\">Stripe</h6>
{# <p class=\"sub-title\"> </p> #}
</div>
</div>
<div class=\"box-selector pm_selector pm_2 col-md-4 col-sm-6 paymentMethodSelectorBtn\"
data-id=\"2\"
data-gen-class=\"pm_selector\"
>
<div class=\"inside\">
<div class=\"img\" href=\"{{ url('dashboard') }}\" style=\"
background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/bkash_logo.png);
height: 50px !important;
width: 100%;
/* max-width: 30% !important; */
background-position: center;
background-size: contain;
background-repeat: no-repeat;
\">
</div>
<h6 class=\"title\" style=\"height: 2rem;\">Bkash</h6>
{# <p class=\"sub-title\"> </p> #}
</div>
</div>
<div class=\"box-selector pm_selector pm_3 col-md-4 col-sm-6 paymentMethodSelectorBtn\"
data-id=\"3\"
data-gen-class=\"pm_selector\"
>
<div class=\"inside\">
<div class=\"img\" href=\"{{ url('dashboard') }}\" style=\"
background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/aamarpay_logo.png);
height: 50px !important;
width: 100%;
/* max-width: 30% !important; */
background-position: center;
background-size: contain;
background-repeat: no-repeat;
\">
</div>
<h6 class=\"title\" style=\"height: 2rem;\">Card</h6>
{# <p class=\"sub-title\"> </p> #}
</div>
</div>
</div>
<h5 class=\" \">Purchase Bee Card</h5>
<div class=\"row\">
{% set encData={
} %}
{# {% set encData={ #}
{# \"rtlId\": retailerId is defined?retailerId:0 , #}
{# \"schTs\": scheduleId is defined?scheduleId:0 , #}
{# \"cnsId\":consultantDetails is defined and not consultantDetails is null ?consultantDetails.applicantId:0, #}
{# \"stdntId\": session[UserConstants.USER_ID] is defined ?session[UserConstants.USER_ID]:0 , #}
{# \"aams\": autoAssignMeetingSession is defined ?autoAssignMeetingSession:0 , #}
{# \"rpsc\": requiredPurchaseSessionCount is defined ?requiredPurchaseSessionCount:0, #}
{# \"scc\":sessionConsumeCount is defined?sessionConsumeCount:0, #}
{# \"tId\":topic is defined and not topic is null? topic.id:0, #}
{# \"dur\":sessionDuration is defined?sessionDuration:0, #}
{# \"sem\":topicSessionValue is defined? topicSessionValue:0 , #}
{# } %} #}
{% set link_data=url('purchase_bee_card_page',{ 'encData':(encData|json_encode) | nzo_encrypt } ) %}
<div class=\"box-selector pm_selector pm_4 col-md-4 col-sm-6 paymentMethodSelectorBtn\"
data-id=\"4\"
data-gen-class=\"pm_selector\"
>
<div class=\"inside\">
<div class=\"img\" href=\"{{ url('dashboard') }}\" style=\"
background: url({{ absolute_url(path('dashboard')) }}buddybee_assets/ms-icon-310x310.png);
height: 50px !important;
width: 100%;
/* max-width: 30% !important; */
background-position: center;
background-size: contain;
background-repeat: no-repeat;
\">
</div>
<h6 class=\"title\" style=\"height: 2rem;\">Claim Bee Card</h6>
{# <p class=\"sub-title\"> </p> #}
</div>
</div>
{# <div class=\"box-selector pm_selector pm_5 col-md-4 col-sm-6 paymentMethodSelectorBtn\" #}
{# data-id=\"5\" #}
{# data-gen-class=\"pm_selector\" #}
{# > #}
{# <div class=\"inside\"> #}
{# <div class=\"img\" href=\"{{ url('dashboard') }}\" style=\" #}
{# background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/bkash_logo.png); #}
{# height: 50px !important; #}
{# width: 100%; #}
{# /* max-width: 30% !important; */ #}
{# background-position: center; #}
{# background-size: contain; #}
{# background-repeat: no-repeat; #}
{# \"> #}
{# </div> #}
{# <h6 class=\"title\" style=\"height: 2rem;\">Bkash</h6> #}
{# #}{# <p class=\"sub-title\"> </p> #}
{# </div> #}
{# </div> #}
{# <div class=\"box-selector pm_selector pm_6 col-md-4 col-sm-6 paymentMethodSelectorBtn\" #}
{# data-id=\"6\" #}
{# data-gen-class=\"pm_selector\" #}
{# > #}
{# <div class=\"inside\"> #}
{# <div class=\"img\" href=\"{{ url('dashboard') }}\" style=\" #}
{# background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/aamarpay_logo.png); #}
{# height: 50px !important; #}
{# width: 100%; #}
{# /* max-width: 30% !important; */ #}
{# background-position: center; #}
{# background-size: contain; #}
{# background-repeat: no-repeat; #}
{# \"> #}
{# </div> #}
{# <h6 class=\"title\" style=\"height: 2rem;\">Card</h6> #}
{# #}{# <p class=\"sub-title\"> </p> #}
{# </div> #}
{# </div> #}
</div>
{# <h5 class=\" \">Others</h5>#}
<div class=\"row clearfix \">
<div class=\"box-selector col-md-12 col-sm-6\"
data-id=\"promo\"
data-gen-class=\"\">
<div class=\"inside\">
<h6 class=\"title\" style=\"height: 2rem;font-size: 14px;\">Promo Code</h6>
<input class=\"form-control \"
data-id=\"promo\" placeholder=\"Promo Code\"
data-gen-class=\"\">
<h6 class=\"title\" style=\"height: 2rem;font-size: 14px;\"> </h6>
</div>
</div>
</div>
</div>
<div class=\"form-footer d-flex\">
<button type=\"button\" class=\"prevBtn\" id=\"selectPurchaseModal_prevBtn\">
Previous
</button>
<button type=\"button\" class=\"nextBtn\" id=\"selectPurchaseModal_nextBtn\">
Next
</button>
</div>
</form>
</div>
</div>
{# <div class=\"modal-footer\"> #}
{# </div> #}
</div>
</div>
</div>
{% endif %}
{# some over riding css for buttons and stuffs #}
<!-- back to top btn -->
<a id=\"back-top\"><i class=\"fas fa-chevron-up\"></i></a>
<!-- back to top btn -->
<!-- Option 1: Bootstrap Bundle with Popper -->
{# <script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js\" #}
{# integrity=\"sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4\" #}
{# crossorigin=\"anonymous\"> #}
{# </script> #}
{# temp start #}
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js\"
integrity=\"\"
crossorigin=\"anonymous\"></script>
{# temp end #}
<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js\"></script>
{# <script src=\"https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js\" integrity=\"sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd\" crossorigin=\"anonymous\"></script> #}
<!-- jquery cdn -->
<script type=\"text/javascript\"
src=\"https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.13.3/js/standalone/selectize.min.js\"></script>
<script type=\"text/javascript\" src=\"{{ absolute_url(path('dashboard')) }}jqueryui/jquery.form.js\"></script>
<!-- calender js -->
<script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/mini-event-calendar.min.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
<!-- countdown js -->
<script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/jquery.countdown.min.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
<!-- process circle js -->
<script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/progresscircle.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
<!-- custom js-->
<script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/main.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
<script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/imgProgress.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
<!-- owl carousel -->
<script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/owl.carousel.min.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
<!-- wow js -->
<script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/wow.min.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
{# <script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/AppOffcanvas.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script> #}
<script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/moment.min.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
<script type=\"text/javascript\" src=\"{{ absolute_url(path('dashboard')) }}alertify/lib/alertify.min.js\"></script>
<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>
<script src=\"{{ absolute_url(path('dashboard')) }}js/jquery.translate.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
<script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/bindWithDelay.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
<script src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/generic.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
{% include '@Application/footer/activity_tracker_script.html.twig' %}
<script src=\"{{ absolute_url(path('dashboard')) }}js/language_pack.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
<script src=\"{{ absolute_url(path('dashboard')) }}condensed_assets/ifvisible.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
<link rel=\"stylesheet\" href=\"{{ absolute_url(path('dashboard')) }}js/adminbsb/plugins/sweetalert/sweetalert.css\">
<script src=\"{{ absolute_url(path('dashboard')) }}js/adminbsb/plugins/sweetalert/sweetalert.min.js\"></script>
<link rel=\"stylesheet\" href=\"{{ asset('css/cal_print.css') }}\" media=\"print\">
<script type=\"text/javascript\"
src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/plugin/fullcalendar3/fullcalendar.min.js\"></script>
<script type=\"text/javascript\"
src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/plugin/fullcalendar3/scheduler/scheduler.min.js\"></script>
<script type=\"text/javascript\"
src=\"https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js\"></script>
{% include '@Application/framework/_btn_css.html.twig' %}
</body>
<script>
var socketInitiated = 0;
var offcanvasCalendarInitiated = 0;
var offCalendarLastRefreshedTs = 0;
var tb_pathToImage = \"{{ absolute_url(path('dashboard'))~'buddybee_assets/images/circle-pending-image.png' }}\";
var buddybee_socket = '';
var buddybee_socket_user_name = '{{ session[UserConstants.USER_NAME] is defined? session[UserConstants.USER_NAME]:'' }}';
var buddybee_socket_user_id = 'BBEE_{{ session[UserConstants.USER_ID] is defined? session[UserConstants.USER_ID]:0 }}';
var current_user_user_id = {{ session[UserConstants.USER_ID] is defined? session[UserConstants.USER_ID]:0 }};
var buddybee_socket_user_session_token = '{{ session['token'] is defined? session['token']:'_GEN_' }}';
{% set curr_route=app.request.attributes.get('_route') %}
var CURRENT_ROUTE = '{{ curr_route }}';
var deepLinkModalLastShown = window.localStorage.getItem('deepLinkModalLastShown');
// var deepLinkModalLastShown = 0;
var currTsForDlM = {{ ''|date('U') }};
if (deepLinkModalLastShown == 'null' || deepLinkModalLastShown == null) {
deepLinkModalLastShown = 0
}
var upcomingMeetingDataForRedirect = window.localStorage.getItem('UNMData');
var upcomingNextMeetingIdForRedirect = window.localStorage.getItem('UNMId');
var upcomingNextMeetingTsForRedirect = window.localStorage.getItem('UNMTs');
if (upcomingMeetingDataForRedirect == 'null' || upcomingMeetingDataForRedirect == null) {
upcomingMeetingDataForRedirect = \"[]\"
}
if (upcomingNextMeetingIdForRedirect == 'null' || upcomingNextMeetingIdForRedirect == null) {
upcomingNextMeetingIdForRedirect = 0
}
if (upcomingNextMeetingTsForRedirect == 'null' || upcomingNextMeetingTsForRedirect == null) {
upcomingNextMeetingTsForRedirect = 0
}
upcomingMeetingDataForRedirect = JSON.parse(upcomingMeetingDataForRedirect);
var deepLinkModal = new bootstrap.Modal(document.getElementById('deepLinkModal'), {
keyboard: false
});
var bookNowModal = new bootstrap.Modal(document.getElementById('bookNowModal'), {
keyboard: false
});
var promptForInfoModal = new bootstrap.Modal(document.getElementById('promptForInfoModal'), {
keyboard: false
});
var selectPurchaseModal = new bootstrap.Modal(document.getElementById('selectPurchaseModal'), {
keyboard: false
});
{% if not countries_data is defined %}
{% set countries_data=''|getCountriesBuddyBee %}
{% endif %}
var countries_data ={{ countries_data|json_encode()|raw() }}
var topic_data_by_id = {}
var perSessionMinute = 20; // Current tab is set to be the first tab (0)
var COIN_GENERAL_MULT = 100; // Current tab is set to be the first tab (0)
var currentTab = 0; // Current tab is set to be the first tab (0)
var currentTabSelectPurchaseModal = 0; // Current tab is set to be the first tab (0)
var triggerRefreshUpcomingSession = 0; // Current tab is set to be the first tab (0)
// promptInfo_showTab(currentTab); // Display the current tab
{% if (session[UserConstants.USER_ID] is defined ) %}
function refreshOffCanvasCalendar(force) {
force = force || 0
if (offcanvasCalendarInitiated == 0) {
// alert('here')
\$('#calendarHere').fullCalendar({
// \$('#scheduleCalendar').fullCalendar({
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
height: 554,
// header: false,
header: {
left: 'today prev,next',
center: 'title',
right: 'timelineDay,timelineWeek,timelineMonth,timelineYear,month',
},
buttonText: {
month: 'calendar',
timelineMonth: 'month',
},
eventClick: function (calEvent, jsEvent, view) {
// console.log(calEvent)
swal({
title: calEvent.title,
text: 'Meeting On ' + calEvent.topic_name + ' on ' + moment.unix(calEvent.scheduled_time_ts).format('MMM DD, YYYY HH:mm'),
type: \"info\",
showCancelButton: true,
// confirmButtonColor: \"#DD6B55\",
confirmButtonText: \"View!\",
cancelButtonText: \"Exit\",
closeOnConfirm: false,
closeOnCancel: true,
timer: 10000,
}, function (isConfirm) {
if (isConfirm) {
{% if BUDDYBEE_ADMIN_LEVEL >=1 %}
window.location.href = '{{ path('consultancy_session') }}/' + calEvent.id + '?adminView=1'
{% else %}
window.location.href = '{{ path('consultancy_session') }}/' + calEvent.id + ''
{% endif %}
swal(\"Sweet!\", \"Taking you there. Please Wait\", \"success\");
} else {
// swal(\"Oops\", \"You cannot do that!\", \"error\");
}
});
// alert('Event: ' + calEvent.title);
// alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY);
// alert('View: ' + view.name);
//
// // change the border color just for fun
// \$(this).css('border-color', 'red');
},
// themeSystem:'jquery-ui',
editable: true,
eventStartEditable: true,
eventDurationEditable: true,
droppable: true,
slotDuration: '00:30:00',
defaultView: 'month',
eventRender: function (eventObj, \$el) {
// \$('#example').popover(options)
\$el.popover({
title: eventObj.topic_name,
content: 'Meeting Between ' + eventObj.title + ' on ' + moment.unix(eventObj.scheduled_time_ts).format('MMM DD, YYYY HH:mm'),
trigger: 'hover',
placement: 'top',
container: 'body',
html: true,
template: '<div class=\"popover\" role=\"tooltip\">' +
'<div class=\"arrow\">' +
'</div' +
'><h3 class=\"popover-header\">' +
'</h3>' +
'<div class=\"popover-body\">' +
'</div>' +
'<button class=\"btn btn-success\">PIKA</button>' +
'</div>'
});
},
// resourceAreaHeaderContent: 'Rooms',
resourceColumns: [
{
labelText: 'Schedule',
field: 'title'
}
// {
// labelText: 'Occupancy',
// field: 'occupancy'
// }
],
resources: [],
views: {
basic: {
// options apply to basicWeek and basicDay views
},
agenda: {
slotDuration: '00:30:00',
// options apply to agendaWeek and agendaDay views
},
week: {
// options apply to basicWeek and agendaWeek views
},
day: {
// options apply to basicDay and agendaDay views
},
timelineWeek: {
groupByResource: true,
slotDuration: '00:30:00',
// options apply to basicDay and agendaDay views
}
},
drop: function (date, allDay) {
// this function is called when something is dropped
// retrieve the dropped element's stored Event Object
var originalEventObject = \$(this).data('eventObject');
// we need to copy it, so that multiple events don't have a reference to the same object
var copiedEventObject = \$.extend({}, originalEventObject);
// assign it the date that was reported
copiedEventObject.start = date;
copiedEventObject.allDay = allDay;
copiedEventObject.className = originalEventObject.className;
// render the event on the calendar
// the last `true` argument determines if the event \"sticks\" (http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/)
\$('#scheduleCalendar').fullCalendar('renderEvent', copiedEventObject, true);
// is the \"remove after drop\" checkbox checked?
if (\$('#drop-remove').is(':checked')) {
// if so, remove the element from the \"Draggable Events\" list
\$(this).remove();
}
},
events: [],
});
offcanvasCalendarInitiated = 1;
}
var currOpTs = moment().unix();
if ((offCalendarLastRefreshedTs + 120) < currOpTs || force == 1) {
var pika_ind_id = 'NNNAI';
\$.ajax({
url: BaseURL + \"select_data_ajax_public\",
type: 'POST',
dataType: 'json',
data: {
//returnJson: 1, //required for CORS
//sessionData: sessionData //required only if using cordova for CORS
query: '_EMPTY_',
tableName: \"entity_meeting_session\",
entity_group: 1,
valueField: \"session_id\",
textField: \"meeting_room_id\",
// selectFieldList:[ ///skip this property for all fields
// 'client_name','client_id','address'
//
// ],
selectorId: 7,
isMultiple: 1,
itemLimit: '_ALL_', // for all : '_ALL_'
offset: 0, // default value:0 (from start)
orderByConditions: [ //sequential
// {
// field: 'rating',
// fieldValues: [5,1,9],
// sortType:'ASC'
// },
// {
// field: 'is_featured',
// sortType:'DESC'
// },
{
field: 'scheduled_time_ts',
sortType: 'ASC'
}
],
dataId: pika_ind_id,
// textField: \"rendered_text\",
//
// renderTextFormat: \"#__id__ __name__\",
// andConditions: [
// //{type: \"like\", field: \"name\", value: query},
// {type: \"=\", field: \"delivery_receipt_id\", value: \$('.dr_id' + pika_ind_id).val()},
// {type: \"=\", field: \"product_id\", value: \$('.selectize_me_ssp' + pika_ind_id).val()},
// {type: \"=\", field: \"position\", value: 3}
// ],
mustConditions: [
//{type: \"like\", field: \"name\", value: query},
//{type: \"=\", field: \"delivery_rceipt_id\", value: \$('.dr_id' + pika_ind_id).val()},
//{type: \"in\", field: \"alottment_tagged\", value: [0,'null','']},
// {type: \"<=\", field: \"scheduled_time_ts\", value: moment().add('60', 'days').unix()},
{type: \">=\", field: \"scheduled_time_ts\", value: moment().subtract('45', 'days').unix()},
// {type: \"=\", field: \"product_id\", value: \$('.ssp' + pika_ind_id).val()},
// {type: \"=\", field: \"warehouse_id\", value: \$('#warehouseId').val()},
// {type: \"=\", field: \"warehouse_action_id\", value: \$('.wa' + pika_ind_id).val()},
// {type: \"=\", field: \"position\", value: 1}
],
andOrConditions: [
{% if BUDDYBEE_ADMIN_LEVEL>=5 %}
{% elseif BUDDYBEE_ADMIN_LEVEL >=1 %}
{# { #}
{# type: \"in\", #}
{# field: \"is_admin\", #}
{# value: [0, 'null'] #}
{# }, #}
{# { #}
{# type: \"in\", #}
{# field: \"assigned_sales_representative_id\", #}
{# value: [0, 'null',{{ session[UserConstants.USER_ID] }}] #}
{# }, #}
{% else %}
{type: \"=\", field: \"student_id\", value: {{ session[UserConstants.USER_ID] }}},
{type: \"=\", field: \"consultant_id\", value: {{ session[UserConstants.USER_ID] }}},
{% endif %}
// {type: \"like\", field: \"client_numerical_code\", value: query},
// {type: \"like\", field: \"client_name\", value: query},
// {type: \"like\", field: \"client_id\", value: query},
// {type: \"like\", field: \"contact_number\", value: query},
// {type: \"like\", field: \"email\", value: query},
],
joinTableData: [
{
tableName: \"entity_applicant_details\",
joinFieldPrimary: \"student_id\",
joinOn: 'applicant_id',
selectPrefix: 'student_',
selectFieldList: [
'firstname', 'lastname', 'image', 'professional_title'
]
},
{
tableName: \"entity_create_topic\",
joinFieldPrimary: \"topic_id\",
joinOn: 'id',
selectPrefix: 'topic_',
selectFieldList: [
'topic_name',
]
},
{
tableName: \"entity_applicant_details\",
joinFieldPrimary: \"consultant_id\",
joinOn: 'applicant_id',
selectPrefix: 'consultant_',
selectFieldList: [
'firstname', 'lastname', 'image', 'professional_title', 'current_country_id'
]
},
],
convertDateToStringFieldList: [
{field: 'created_at', format: 'U'}
],
convertToObject: [
// 'carton_product_by_code_ids','another'
],
// setDataForSingle: 1,
},
error: function () {
// callback();
},
success: function (res) {
offCalendarLastRefreshedTs = moment().unix()
// callback(res.data);
var str = '';
var currUnix = moment().unix();
var added_cntry_id = [];
var added_event_id = [];
\$('#calendarHere').fullCalendar('addResource', {
id: 'cntry__OTHER_COUNTRIES_',
// parentId: 'a',
title: 'Others'
});
for (var t = 0; t < res.data.length; t++) {
var c_data = res.data[t];
if (c_data.consultant_current_country_id == '' || c_data.consultant_current_country_id == 0 || c_data.consultant_current_country_id == null)
c_data.consultant_current_country_id = '_OTHER_COUNTRIES_';
// // console.log('added_cntry_id')
// // console.log(added_cntry_id)
if (added_cntry_id.indexOf(c_data.consultant_current_country_id) != -1) {
} else {
\$('#calendarHere').fullCalendar('addResource', {
id: 'cntry_' + c_data.consultant_current_country_id,
// parentId: 'a',
title: typeof countries_data[c_data.consultant_current_country_id] !== 'undefined' ? countries_data[c_data.consultant_current_country_id]['name'] : ''
});
added_cntry_id.push(c_data.consultant_current_country_id)
}
if (added_event_id.indexOf(c_data.consultant_id + '_' + c_data.student_id) != -1) {
} else {
\$('#calendarHere').fullCalendar('addResource', {
id: 'r_' + c_data.consultant_id + '_' + c_data.student_id,
parentId: 'cntry_' + c_data.consultant_current_country_id,
title: c_data.consultant_firstname + ' -- ' + c_data.student_firstname
});
added_event_id.push(c_data.consultant_id + '_' + c_data.student_id)
}
var eventColor = 'darkgreen';
var textColor = '#fff';
var endTimeMoment = moment.unix(c_data.scheduled_time_ts).add(c_data.duration_left_min, 'minutes');
if (currUnix < c_data.scheduled_time_ts) {
//upcoming
if (c_data.is_paid_full == 1)
eventColor = '#fb7400';
else
eventColor = '#d586a3';
// textColor='#212529';
} else if (currUnix < endTimeMoment.unix())
eventColor = '#1d5b9e'; //ongoing
else
eventColor = 'darkgreen'; //completed
var eventObj2 = {
id: c_data.session_id,
color: eventColor,
textColor: textColor,
resourceId: 'r_' + c_data.consultant_id + '_' + c_data.student_id,
title: c_data.consultant_firstname + ' -- ' + c_data.student_firstname,
consultant_id: c_data.consultant_id,
student_id: c_data.student_id,
meeting_room_id: c_data.meeting_room_id,
scheduled_time_ts: c_data.scheduled_time_ts,
topic_id: c_data.topic_id,
topic_name: c_data.topic_topic_name,
session_value: c_data.session_value,
consultant_firstname: c_data.consultant_firstname,
consultant_lastname: c_data.consultant_lastname,
student_firstname: c_data.student_firstname,
student_lastname: c_data.student_lastname,
start: moment.unix(c_data.scheduled_time_ts).add(0, 'days'),
end: endTimeMoment,
allDay: false
};
// eventArray.push(eventObj2)
\$('#calendarHere').fullCalendar('renderEvent', eventObj2, true);
}
}
});
}
}
{% endif %}
function stepShowTab(n, parentSelector) {
// alert('here')
// This function will display the specified tab of the form...
parentSelector = parentSelector || '#selectPurchaseModal'
var prevN = -1;
\$(parentSelector + ' .stepIndicator.active').each(function (gg, elem) {
prevN = 1 * \$(elem).data('seqId');
});
var newN = 0;
if (n === '+1') {
newN = (1 * prevN) + 1;
} else if (n === '-1') {
newN = (1 * prevN) - 1;
} else
newN = n;
if (!\$(parentSelector + ' .stepIndicator.seq_' + newN).length)
newN = (1 * prevN);
if (!\$(parentSelector + ' .stepIndicator.seq_' + (newN + 1)).length)
\$(parentSelector + \" .nextBtn\").text('Confirm');
else
\$(parentSelector + \" .nextBtn\").text('Next');
if (!\$(parentSelector + ' .stepIndicator.seq_' + (newN - 1)).length)
\$(parentSelector + \" .prevBtn\").hide();
else
\$(parentSelector + \" .prevBtn\").show();
// alert(prevN)
// alert(newN)
// alert(\$(parentSelector+' .stepIndicator.seq_'+(newN+1)).length)
if (prevN == newN) {
\$(parentSelector).modal('hide')
return false;
}
\$(parentSelector + ' .stepIndicator').removeClass('active')
\$(parentSelector + ' .step').hide()
\$(parentSelector + ' .step.seq_' + newN).show()
for (var gg = 0; gg <= newN; gg++)
\$(parentSelector + ' .stepIndicator.seq_' + gg).addClass('active')
var triggerFunc = \$(parentSelector + ' .step.seq_' + newN).attr('data-trigger-function');
if (typeof triggerFunc !== 'undefined' && triggerFunc !== false) {
window[triggerFunc]();
}
}
function selectDataOnPurchaseModal(cntry_id, t_id, cons_id, sch_ids, additional_coins) {
options = {
countryId: 0,
topicId: 0,
consultantId: 0,
scheduleIds: [],
}
}
function submitPurchaseModalData() {
var data = {}
}
function populateTopicListOnPurchaseModal(countryId, query) {
var pika_ind_id = \"_NA_\";
\$('#selectPurchaseModal .topic_holder').empty();
\$.ajax({
url: BaseURL + \"select_data_ajax_public\",
type: 'POST',
dataType: 'json',
data: {
//returnJson: 1,
//sessionData: sessionData
query: query,
tableName: \"entity_create_topic\",
valueField: \"id\",
textField: \"topic_name\",
entity_group: 1,
selectorId: '_NA_',
isMultiple: 0,
dataId: pika_ind_id,
// isMultiple: 0,
//textField: \"rendered_text\",
//
//renderTextFormat: \"#__id__ __name__\",
andConditions: [],
andOrConditions: [],
mustConditions: [
{type: \"=\", field: \"consultancy_enabled\", value: 1},
{type: \"=\", field: \"country_id\", value: countryId},
{# {% if not curr_data is empty %} #}
{# {type: \"in\", field: \"id\", value: {{ curr_data|json_encode|raw() }} }, #}
{# {% else %} #}
{# {% if consultantDetails.isAdmin>0 %} #}
{# {type: \"like\", field: \"topic_marker\", value: '_support_ _report_to_admin_'}, #}
{# {% else %} #}
{# {type: \"!=\", field: \"only_bookable_by_admin\", value: '1'}, #}
{# {type: \"not like\", field: \"topic_marker\", value: '_support_'}, #}
{# {type: \"not like\", field: \"topic_marker\", value: '_report_to_admin_'}, #}
{# {% endif %} #}
{# {% endif %} #}
],
convertToObject: [
'routine_data'
],
skipDefaultCompanyId: 1
// setDataForSingle: 1,
},
error: function () {
// callback();
},
success: function (res) {
topic_data_by_id = res.dataById
for (var jj = 0; jj < res.data.length; jj++) {
var dt = res.data[jj];
var is_package = 0;
if (dt['topic_marker'] != null)
if (dt['topic_marker'].indexOf('_package_') !== -1)
is_package = 1;
var ggStr = ' <div class=\"box-selector tp_selector tp_' + dt['id'] + ' col-md-3 col-sm-6\"' +
' data-id=\"' + dt['id'] + '\" ' +
' data-gen-class=\"tp_selector\" ' +
'>' +
'<div class=\"inside\">' +
' <div class=\"img\" style=\"' +
\"background:url(' {{ absolute_url(path('dashboard')) }}\" + dt['topic_image'] + \"');\" +
' height: 50px !important;width: 100%;background-position: center;background-size: contain;background-repeat: no-repeat;\"></div>' +
'<h6 class=\"title\" style=\"height: 3rem; font-size:12px\">' + dt['topic_name'] + '</h6> ' +
// '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
'<p class=\"sub-title\" style=\"text-align:center;\">' + (is_package == 1 ? 'Package' : (dt['meeting_type'] == 2 ? 'Offline Process' : 'Online Session')) + '</p>' +
// '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
'</div></div>';
\$('#selectPurchaseModal .topic_holder').append(ggStr);
}
}
});
}
function populateConsultantListOnPurchaseModal(tpId, query) {
var pika_ind_id = \"_NA_\";
\$('#selectPurchaseModal .cons_holder').empty();
\$.ajax({
url: BaseURL + \"select_data_ajax_public\",
type: 'POST',
dataType: 'json',
data: {
//returnJson: 1,
//sessionData: sessionData
query: query,
tableName: \"entity_applicant_details\",
valueField: \"applicant_id\",
textField: \"firstname\",
entity_group: 1,
selectorId: '_NA_',
isMultiple: 0,
dataId: pika_ind_id,
// isMultiple: 0,
//textField: \"rendered_text\",
//
//renderTextFormat: \"#__id__ __name__\",
andConditions: [],
andOrConditions: [
{type: \"like\", field: \"preferred_topic_ids_as_consultant\", value: '\"' + tpId + '\"'},
{type: \"like\", field: \"preferred_topic_ids_as_consultant\", value: '[]'},
// {type: \"like\", field: \"preferred_topic_ids_as_consultant\", value: ''},
// {type: \"like\", field: \"preferred_topic_ids_as_consultant\", value: 'null'},
{type: \"=\", field: \"preferred_topic_ids_as_consultant\", value: 'null'},
],
mustConditions: [
{type: \"=\", field: \"is_consultant\", value: 1},
{# {% if not curr_data is empty %} #}
{# {type: \"in\", field: \"id\", value: {{ curr_data|json_encode|raw() }} }, #}
{# {% else %} #}
{# {% if consultantDetails.isAdmin>0 %} #}
{# {type: \"like\", field: \"topic_marker\", value: '_support_ _report_to_admin_'}, #}
{# {% else %} #}
{# {type: \"!=\", field: \"only_bookable_by_admin\", value: '1'}, #}
{# {type: \"not like\", field: \"topic_marker\", value: '_support_'}, #}
{# {type: \"not like\", field: \"topic_marker\", value: '_report_to_admin_'}, #}
{# {% endif %} #}
{# {% endif %} #}
],
convertToObject: [
'routine_data'
],
skipDefaultCompanyId: 1
// setDataForSingle: 1,
},
error: function () {
// callback();
},
success: function (res) {
// topic_data_by_id = res.dataById
for (var jj = 0; jj < res.data.length; jj++) {
var dt = res.data[jj];
var ggStr = ' <div class=\"box-selector cons_selector cons_' + dt['id'] + ' col-md-3 col-sm-6\"' +
' data-id=\"' + dt['applicant_id'] + '\" ' +
' data-gen-class=\"cons_selector\" ' +
'>' +
'<div class=\"inside\">' +
' <div class=\"img\" style=\"' +
\"background:url(' {{ absolute_url(path('dashboard')) }}\" + dt['image'] + \"');\" +
' height: 50px !important;width: 100%;background-position: center;background-size: contain;background-repeat: no-repeat;\"></div>' +
'<h6 class=\"title\" style=\"height: 2rem; font-size:12px\">' + dt['firstname'] + ' ' + dt['lastname'] + '</h6> ' +
// '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
'</div></div>';
\$('#selectPurchaseModal .cons_holder').append(ggStr);
}
// alert('pika master')
}
});
}
function populateScheduleListOnPurchaseModal(consId, durValue, query) {
var pika_ind_id = \"_NA_\";
// \$('#selectPurchaseModal .sch_holder').empty();
\$('#selectPurchaseModal .sch_holder_month').empty();
\$('#selectPurchaseModal .sch_holder_day').empty();
\$('#selectPurchaseModal .sch_holder_time').empty();
durValue = durValue || 30;
var options = {
'_NEXT_60_DAYS_': 1,
// '_THIS_DAY_':1,
// '_NEXT_DAYS_':20,
}
\$.ajax({
url: BaseURL + 'get_consultant_schedules',
type: 'POST',
dataType: 'json',
data: {
consultantId: consId,
startDateStr: '@' + moment().unix(),
// endDateStr: \$('#preferredScheduleDate').val() + ' 23:59:59 ' + moment().format(\"ZZ\"),
endDateStr: '',
durationMin: durValue,
// durationMin: sessionDurationSelector.getValue() != '' ? perSessionMinute * sessionDurationSelector.getValue() : 90,
options: options,
returnJson: 1
},
error: function () {
// callback();
},
success: function (res) {
;
// \$('#').val(res.);
\$('#selectPurchaseModal .view_if_has_schedules').hide();
if (res.success == true) {
//// for (var l = 0; l < res.sessionsArray.length; l++) {
//// \$('#rescheduledSemesterSelector').append(\$(\"<option></option>\").attr(\"value\", res.sessionsArray[l].id).text(res.sessionsArray[l].name));
//// }
for (var jj = 0; jj < res.data.scheduleList.length; jj++) {
var sch_dt = res.data.scheduleList[jj];
var ggStr = ' <div class=\"box-selector sch_selector_time ' +
'sch_mon_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM') + ' ' +
'sch_day_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM_DD') + ' ' +
'sch_' + sch_dt['timeUnix'] + ' ' +
'sch_' + sch_dt['timeUnix'] + ' col-md-3 col-sm-6\"' +
' data-id=\"' + sch_dt['timeUnix'] + '\" ' +
' data-gen-class=\"sch_selector_time\" ' +
'>' +
'<div class=\"inside\">' +
{# ' <div class=\"img\" style=\"' + #}
{# \"background:url(' {{ absolute_url(path('dashboard')) }}\"+dt['image']+\"');\"+ #}
{# ' height: 50px !important;width: 100%;background-position: center;background-size: contain;background-repeat: no-repeat;\"></div>' + #}
'<h6 class=\"title\" style=\"\">' + (moment.unix(sch_dt['timeUnix']).format('HH:mm')) + '</h6> ' +
// '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
'</div></div>';
var ggStrday = ' <div class=\"box-selector sch_selector_day ' +
'sch_mon_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM') + ' ' +
'sch_day_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM_DD') + ' col-md-3 col-sm-6\"' +
' data-id=\"' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM_DD') + '\" ' +
' data-gen-class=\"sch_selector_day\" ' +
'>' +
'<div class=\"inside\">' +
{# ' <div class=\"img\" style=\"' + #}
{# \"background:url(' {{ absolute_url(path('dashboard')) }}\"+dt['image']+\"');\"+ #}
{# ' height: 50px !important;width: 100%;background-position: center;background-size: contain;background-repeat: no-repeat;\"></div>' + #}
'<h6 class=\"title\" style=\"\">' + (moment.unix(sch_dt['timeUnix']).format('DD')) + '</h6> ' +
// '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
'</div></div>';
var ggStrmon = ' <div class=\"box-selector sch_selector_mon ' +
'sch_mon_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM') + ' ' +
// 'sch_day'+moment.unix(sch_dt['timeUnix']).format('YYYY_MM')+' ' +
' col-md-3 col-sm-6\"' +
' data-id=\"' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM') + '\" ' +
' data-gen-class=\"sch_selector_mon\" ' +
'>' +
'<div class=\"inside\">' +
{# ' <div class=\"img\" style=\"' + #}
{# #}{# \"background:url(' {{ absolute_url(path('dashboard')) }}\"+dt['image']+\"');\"+ #}
{# ' height: 50px !important;width: 100%;background-position: center;background-size: contain;background-repeat: no-repeat;\"></div>' + #}
'<h6 class=\"title\" style=\"\">' + (moment.unix(sch_dt['timeUnix']).format('MMM')) + '</h6> ' +
// '<p class=\"sub-title\">'+dt['topic_summary']+'</p>' +
'</div></div>';
if (!\$('.sch_selector_mon.sch_mon_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM')).length)
\$('#selectPurchaseModal .sch_holder_month').append(ggStrmon);
if (!\$('.sch_selector_day.sch_day_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM_DD')).length)
\$('#selectPurchaseModal .sch_holder_day').append(ggStrday);
\$('#selectPurchaseModal .sch_holder_time').append(ggStr);
}
if (res.data.scheduleList.length > 0) {
\$('#selectPurchaseModal h5.view_if_has_schedules').css('display', 'block');
\$('#selectPurchaseModal p.view_if_has_schedules').css('display', 'block');
\$('#selectPurchaseModal div.row.view_if_has_schedules').css('display', 'flex');
}
\$('.sch_' + res.data.closestDateTs).trigger('click');
// rescheduledconsultancyScheduleSelector.clear();
// rescheduledconsultancyScheduleSelector.disable();
// rescheduledconsultancyScheduleSelector.clearOptions();
// rescheduledconsultancyScheduleSelector.load(function (callback) {
//
// rescheduledconsultancyScheduleSelector.enable();
// var modifiedList = [];
// for (var l = 0; l < res.data.scheduleList.length; l++) {
// var sch_dt = res.data.scheduleList[l];
// sch_dt['time_user_zone'] = moment.unix(sch_dt['timeUnix']).format('MMM DD, YYYY HH:mm');
// // sch_dt['time_user_zone']=sch_dt['time'];
// modifiedList.push(sch_dt);
// }
//
//
// callback(modifiedList);
//
//
// });
// rescheduledconsultancyScheduleSelector.setValue(res.data.closestDateTs)
} else {
}
}
});
}
function refreshRoutinePackageListOnPurchaseModal(t_id) {
var dt = [];
\$('#selectPurchaseModal .routineTable tbody').empty();
var topicIdForRoutine = t_id;
// var sessionDurationSelectorValue=sessionDurationSelector.getValue();
var sessionDurationSelectorValue = 100;
// var scheduledTimeTsValue=consultancyScheduleSeletor.getValue();
var scheduledTimeTsValue = moment().unix();
if (typeof topic_data_by_id[topicIdForRoutine] !== 'undefined') {
if (topic_data_by_id[topicIdForRoutine]['routine_data'].length) {
dt = topic_data_by_id[topicIdForRoutine]['routine_data'];
} else {
dt = [
{
sequence: 1,
topicId: topicIdForRoutine,
topicName: topic_data_by_id[topicIdForRoutine]['topic_name'],
meetingType: topic_data_by_id[topicIdForRoutine]['meeting_type'],
duration: sessionDurationSelectorValue != '' ? (perSessionMinute * sessionDurationSelectorValue) / (COIN_GENERAL_MULT * 1) : 0,
offset: 0,
coins: sessionDurationSelectorValue != '' ? (1 * sessionDurationSelectorValue) : 0,
scheduledTimeTs: scheduledTimeTsValue != '' ? (1 * scheduledTimeTsValue) : 0,
nextSequenceStart: 0,
modifiable: 0,
}
];
}
}
for (var poi = 0; poi < dt.length; poi++) {
var cc_pika = dt[poi];
if (cc_pika['meetingType'] == 2) //offline
{
\$('#selectPurchaseModal .routineTable tbody').append(
'<tr>' +
'<td>' + cc_pika.topicName + '</td>' +
'<td style=\"text-align: left;\"><b>Deliverable</b><br>' +
'Bee Coins: ' + cc_pika.coins + '<br>' +
(typeof cc_pika.scheduledDateTs !== 'undefined' ?
('Lead Dt.<br>' + (cc_pika.scheduledTimeTs == 0 ? '' : moment.unix(cc_pika.scheduledDateTs).format('MMMM DD, YYYY HH:mm ZZ'))) :
('')
) +
'</td>' +
'<td>' +
'<input class=\"routineCoinNeeded\" name=\"routine_coins[]\" type=\"hidden\" value=\"' + cc_pika.coins + '\">' +
'<input class=\"routineTopicId\" name=\"routine_topic_id[]\" type=\"hidden\" value=\"' + cc_pika.topicId + '\">' +
(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>') +
// '<a class=\"icon-delete\" href=\"javascript:void(0);\"><i class=\"fa fa-times\"></i></a>' +
'</td>' +
'</tr>'
)
} else {
{
\$('#selectPurchaseModal .routineTable tbody').append(
'<tr>' +
'<td>' + cc_pika.topicName + '</td>' +
'<td style=\"text-align: left;\"><b>Online</b><br>' +
'Bee Coins: ' + cc_pika.coins + '<br>' +
'Duration: ' + cc_pika.duration + '<br>' +
(typeof cc_pika.scheduledTimeTs !== 'undefined' ?
('Scheduled Time: <br>' + (cc_pika.scheduledTimeTs == 0 ? '' : moment.unix(cc_pika.scheduledTimeTs).format('MMMM DD, YYYY HH:mm ZZ'))) :
('')
) +
'</td>' +
'<td>' +
'<input class=\"routineCoinNeeded\" name=\"routine_coins[]\" type=\"hidden\" value=\"' + cc_pika.coins + '\">' +
'<input class=\"routineTopicId\" name=\"routine_topic_id[]\" type=\"hidden\" value=\"' + cc_pika.topicId + '\">' +
(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 \" href=\"javascript:void(0);\"><i class=\"fa fa-check\"></i></a>') +
// '<a class=\"icon-delete\" href=\"javascript:void(0);\"><i class=\"fa fa-check\"></i></a>' +
// '<a class=\"icon-delete\" href=\"javascript:void(0);\"><i class=\"fa fa-times\"></i></a>' +
'</td>' +
'</tr>'
)
}
}
}
recalculateRoutinePackageOnPurchaseModal();
}
function recalculateRoutinePackageOnPurchaseModal() {
var tot_coin = 0;
\$('#selectPurchaseModal .routineTable .icon-check').each(function (indy, elem) {
if (\$(elem).hasClass('isChecked'))
tot_coin += (1 * \$('#selectPurchaseModal .routineTable .routineCoinNeeded').eq(indy).val())
})
\$('#selectPurchaseModal .routineCoinNeededTotalInput').val(tot_coin)
\$('#selectPurchaseModal .routineCoinNeededTotalSpan').text(tot_coin)
}
function initiate_prompt_info_modal() {
if (\$('#promptForInfoModal #currentCountryIdPromptForInfo').length)
\$('#promptForInfoModal #currentCountryIdPromptForInfo').selectize({
placeholder: 'Select Your Current Country',
// options: APTL.productListArray,
options: [],
valueField: 'value',
labelField: 'text',
preload: 'focus',
searchField: ['text', 'value'],
// render: {
// option: function (item, escape) {
// return '<div class=\"p-l-10 p-r-10\">'
// + '<h6>' + escape(item[label_for_product]) + '</h6> '
// + '<span>Code:' + escape(item.productCode) + '</span> '
// //+ '<span>Name:'+item.name+'</span> '
// //+ '<span>DEBUG:'+item.score+'</span>'
// + '</div>';
// }
// },
onChange: function (value) {
if (!value) return;
// productId = preliminary_reg_data_by_id[value]['product_id']
// getbomData();
//
},
load: function (query, callback) {
// if (!query.length) return // callback();
if (!query.length) query = '_EMPTY_';
var pika_ind_id = \$(\$(this)[0].\$input[\"0\"]).attr('data-id')
\$.ajax({
url: BaseURL + \"select_data_ajax\",
type: 'POST',
dataType: 'json',
data: {
//returnJson: 1,
//sessionData: sessionData
query: query,
tableName: \"entity_countries\",
valueField: \"country_id\",
textField: \"name_en\",
entity_group: 1,
selectorId: \$(\$(this)[0].\$input[\"0\"]).attr('id'),
isMultiple: 0,
dataId: pika_ind_id,
// isMultiple: 0,
//textField: \"rendered_text\",
//
//renderTextFormat: \"#__id__ __name__\",
andConditions: [
{type: \"like\", field: \"name_en\", value: query}
],
mustConditions: [
// {type: \"=\", field: \"approved\", value: 1}
],
convertToObject: [
// 'accessories', 'issues'
],
skipDefaultCompanyId: 1
// setDataForSingle: 1,
},
error: function () {
// callback();
},
success: function (res) {
// preliminary_reg_data_by_id = res.dataById
callback(res.data);
if (res.setValueArray.length != 0 && res.selectorId != '') {
if (res.isMultiple == 1)
\$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
else
\$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
}
// alert('pika master')
}
});
},
onLoad: function (data) {
// // console.log(data)
// alert('here')
if (!data.length) return;
// pbcs.open()
if (data.length == 1) {
// alert('hi')
// productionScheduleSelector.setValue(data[0].value)
}
}
});
if (\$('#promptForInfoModal #preferredConsultancyTopicCountryIdsPromptForInfo').length)
\$('#promptForInfoModal #preferredConsultancyTopicCountryIdsPromptForInfo').selectize({
placeholder: 'Select Your Preferred Country',
// options: APTL.productListArray,
options: [],
valueField: 'value',
labelField: 'text',
preload: 'focus',
searchField: ['text', 'value'],
// render: {
// option: function (item, escape) {
// return '<div class=\"p-l-10 p-r-10\">'
// + '<h6>' + escape(item[label_for_product]) + '</h6> '
// + '<span>Code:' + escape(item.productCode) + '</span> '
// //+ '<span>Name:'+item.name+'</span> '
// //+ '<span>DEBUG:'+item.score+'</span>'
// + '</div>';
// }
// },
onChange: function (value) {
if (!value) return;
// productId = preliminary_reg_data_by_id[value]['product_id']
// getbomData();
//
},
load: function (query, callback) {
// if (!query.length) return // callback();
if (!query.length) query = '_EMPTY_';
var pika_ind_id = \$(\$(this)[0].\$input[\"0\"]).attr('data-id')
\$.ajax({
url: BaseURL + \"select_data_ajax\",
type: 'POST',
dataType: 'json',
data: {
//returnJson: 1,
//sessionData: sessionData
query: query,
tableName: \"entity_countries\",
valueField: \"country_id\",
textField: \"name_en\",
entity_group: 1,
selectorId: \$(\$(this)[0].\$input[\"0\"]).attr('id'),
isMultiple: 1,
dataId: pika_ind_id,
// isMultiple: 0,
//textField: \"rendered_text\",
//
//renderTextFormat: \"#__id__ __name__\",
andConditions: [
{type: \"like\", field: \"name_en\", value: query}
],
mustConditions: [
// {type: \"=\", field: \"approved\", value: 1}
],
convertToObject: [
// 'accessories', 'issues'
],
skipDefaultCompanyId: 1
// setDataForSingle: 1,
},
error: function () {
// callback();
},
success: function (res) {
// preliminary_reg_data_by_id = res.dataById
callback(res.data);
if (res.setValueArray.length != 0 && res.selectorId != '') {
if (res.isMultiple == 1)
\$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
else
\$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
}
// alert('pika master')
}
});
},
onLoad: function (data) {
// // console.log(data)
// alert('here')
if (!data.length) return;
// pbcs.open()
if (data.length == 1) {
// alert('hi')
// productionScheduleSelector.setValue(data[0].value)
}
}
});
if (\$('#promptForInfoModal #preferredTopicIdsAsStudentPromptForInfo').length)
\$('#promptForInfoModal #preferredTopicIdsAsStudentPromptForInfo').selectize({
placeholder: 'Preferred Topic Ids as Student',
multiple: true,
// options: APTL.productListArray,
options: [],
valueField: 'value',
labelField: 'text',
preload: 'focus',
searchField: ['text', 'value'],
// render: {
// option: function (item, escape) {
// return '<div class=\"p-l-10 p-r-10\">'
// + '<h6>' + escape(item[label_for_product]) + '</h6> '
// + '<span>Code:' + escape(item.productCode) + '</span> '
// //+ '<span>Name:'+item.name+'</span> '
// //+ '<span>DEBUG:'+item.score+'</span>'
// + '</div>';
// }
// },
onChange: function (value) {
if (!value) return;
// productId = preliminary_reg_data_by_id[value]['product_id']
// getbomData();
//
},
load: function (query, callback) {
// if (!query.length) return // callback();
if (!query.length) query = '_EMPTY_';
var pika_ind_id = \$(\$(this)[0].\$input[\"0\"]).attr('data-id')
\$.ajax({
url: BaseURL + \"select_data_ajax\",
type: 'POST',
dataType: 'json',
data: {
//returnJson: 1,
//sessionData: sessionData
query: query,
tableName: \"entity_create_topic\",
valueField: \"id\",
textField: \"topic_name\",
entity_group: 1,
selectorId: \$(\$(this)[0].\$input[\"0\"]).attr('id'),
isMultiple: 1,
dataId: pika_ind_id,
// isMultiple: 0,
//textField: \"rendered_text\",
//
//renderTextFormat: \"#__id__ __name__\",
andConditions: [
{type: \"like\", field: \"topic_name\", value: query}
],
mustConditions: [
{type: \"=\", field: \"consultancy_enabled\", value: 1}
],
convertToObject: [
// 'accessories', 'issues'
],
skipDefaultCompanyId: 1
// setDataForSingle: 1,
},
error: function () {
// callback();
},
success: function (res) {
// preliminary_reg_data_by_id = res.dataById
callback(res.data);
if (res.setValueArray.length != 0 && res.selectorId != '') {
if (res.isMultiple == 1)
\$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
else
\$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
}
// alert('pika master')
}
});
},
onLoad: function (data) {
// console.log(data)
// alert('here')
if (!data.length) return;
// pbcs.open()
if (data.length == 1) {
// alert('hi')
// productionScheduleSelector.setValue(data[0].value)
}
}
});
if (\$('#promptForInfoModal #preferredTopicIdsAsConsultantPromptForInfo').length)
\$('#promptForInfoModal #preferredTopicIdsAsConsultantPromptForInfo').selectize({
placeholder: 'Preferred Topic Ids as Consultant',
multiple: true,
// options: APTL.productListArray,
options: [],
valueField: 'value',
labelField: 'text',
preload: 'focus',
searchField: ['text', 'value'],
// render: {
// option: function (item, escape) {
// return '<div class=\"p-l-10 p-r-10\">'
// + '<h6>' + escape(item[label_for_product]) + '</h6> '
// + '<span>Code:' + escape(item.productCode) + '</span> '
// //+ '<span>Name:'+item.name+'</span> '
// //+ '<span>DEBUG:'+item.score+'</span>'
// + '</div>';
// }
// },
onChange: function (value) {
if (!value) return;
// productId = preliminary_reg_data_by_id[value]['product_id']
// getbomData();
//
},
load: function (query, callback) {
// if (!query.length) return // callback();
if (!query.length) query = '_EMPTY_';
var pika_ind_id = \$(\$(this)[0].\$input[\"0\"]).attr('data-id')
\$.ajax({
url: BaseURL + \"select_data_ajax\",
type: 'POST',
dataType: 'json',
data: {
//returnJson: 1,
//sessionData: sessionData
query: query,
tableName: \"entity_create_topic\",
valueField: \"id\",
textField: \"topic_name\",
entity_group: 1,
selectorId: \$(\$(this)[0].\$input[\"0\"]).attr('id'),
isMultiple: 1,
dataId: pika_ind_id,
// isMultiple: 0,
//textField: \"rendered_text\",
//
//renderTextFormat: \"#__id__ __name__\",
andConditions: [
{type: \"like\", field: \"topic_name\", value: query}
],
mustConditions: [
{type: \"=\", field: \"consultancy_enabled\", value: 1}
],
convertToObject: [
// 'accessories', 'issues'
],
skipDefaultCompanyId: 1
// setDataForSingle: 1,
},
error: function () {
// callback();
},
success: function (res) {
// preliminary_reg_data_by_id = res.dataById
callback(res.data);
if (res.setValueArray.length != 0 && res.selectorId != '') {
if (res.isMultiple == 1)
\$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
else
\$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
}
// alert('pika master')
}
});
},
onLoad: function (data) {
// console.log(data)
// alert('here')
if (!data.length) return;
// pbcs.open()
if (data.length == 1) {
// alert('hi')
// productionScheduleSelector.setValue(data[0].value)
}
}
});
\$('.promptForInfoAutoUpdateData').not('.selectize-control').change(function () {
// // console.log('* The text was changed');
\$.post('{{ url('update_inline_value') }}', {
// returnJson: 1,
// sessionData: sessionData
entityName: typeof \$(this).data('entityName') !== 'undefined' ? \$(this).data('entityName') : 'EntityApplicantDetails',
entityBundle: typeof \$(this).data('entityBundle') !== 'undefined' ? \$(this).data('entityBundle') : 'CompanyGroup',
setValue: \$(this).val(),
relevantRequiredPromptField: \$(this).data('relevantPromptField'),
clearRequiredPromptFlag: 1,
setMethod: \$(this).data('setMethod'),
findField: typeof \$(this).data('findField') !== 'undefined' ? \$(this).data('findField') : 'applicantId',
findValue: typeof \$(this).data('findValue') !== 'undefined' ? \$(this).data('findValue') : '{{ session[UserConstants.USER_ID] is defined? session[UserConstants.USER_ID]:0 }}',
fieldType: typeof \$(this).data('fieldType') !== 'undefined' ? \$(this).data('fieldType') : '_TEXT_',
modifyTransDateFlag: typeof \$(this).data('modifyTransDate') !== 'undefined' ? \$(this).data('modifyTransDate') : 0,
{# findValue: {{ consultantDetails.applicantId }}, #}
})
.done(function (data) {
// console.log(data);
// if (data.success == true) {
// swal({
// title: \"Sweet!\",
// text: \"Updated\",
// imageUrl: BaseURL + \"images/thumbs-up.png\"
// });
//// alertify.success(\"Order Confirmation Done\");
//
//
// } else {
// swal({
// title: \"Sorry!\",
// text: \"Your Action failed !\",
// imageUrl: BaseURL + \"images/Bee_Sad_Emote.png\"
// });
//// alertify.success(\"Order Confirmation Failed\");
//
//// \$('#barcode_selector_cont').waitMe('hide');
//
// }
})
.fail(function () {
});
});
document.getElementById('promptForInfoModal').addEventListener('hidden.bs.modal', function (event) {
\$('.promptForInfoAutoUpdateData').not('.selectize-control').trigger('change');
})
promptForInfoModal.show();
promptInfo_showTab(currentTab); // Display the current tab
}
function promptInfo_showTab(n) {
// This function will display the specified tab of the form...
// stepShowTab(n,'#promptForInfoModal')
// retrunb false;
\$('#promptForInfoModal .step').eq(n).show();
//... and fix the Previous/Next buttons:
if (n == 0) {
document.getElementById(\"promptForInfo_prevBtn\").style.display = \"none\";
} else {
document.getElementById(\"promptForInfo_prevBtn\").style.display = \"inline\";
}
if (n == (\$('#promptForInfoModal .step').length - 1)) {
document.getElementById(\"promptForInfo_nextBtn\").innerHTML = \"Finish\";
} else {
document.getElementById(\"promptForInfo_nextBtn\").innerHTML = \"Next\";
}
//... and run a function that will display the correct step indicator:
\$('#promptForInfoModal .stepIndicator').removeClass('active')
for (var gg = 0; gg <= n; gg++)
\$('#promptForInfoModal .stepIndicator').eq(gg).addClass('active')
}
function promptInfo_nextPrev(n) {
// Exit the function if any field in the current tab is invalid:
if (n == 1 && !promptInfo_validateForm()) return false;
\$('#promptForInfoModal .step').eq(currentTab).hide();
// Increase or decrease the current tab by 1:
currentTab = currentTab + n;
// if you have reached the end of the form...
if (currentTab >= \$('#promptForInfoModal .step').length) {
// ... the form gets submitted:
// // console.log(\$('#selectPurchaseModal .step'))
// alert(\$('#selectPurchaseModal .step').length)
// document.getElementById(\"signUpForm\").submit();
promptForInfoModal.hide();
return false;
}
// Otherwise, display the correct tab:
promptInfo_showTab(currentTab);
}
function promptInfo_validateForm() {
// This function deals with validation of the form fields
var x, y, i, valid = true;
// x = document.getElementsByClassName(\"step\");
// y = x[currentTab].getElementsByTagName(\"input\");
//
//
//
//
// // A loop that checks every input field in the current tab:
// for (i = 0; i < y.length; i++) {
// // If a field is empty...
// if (y[i].value == \"\") {
// // add an \"invalid\" class to the field:
// y[i].className += \" invalid\";
// // and set the current valid status to false
// valid = false;
// }
// }
// // If the valid status is true, mark the step as finished and valid:
// if (valid) {
// document.getElementsByClassName(\"stepIndicator\")[currentTab].className += \" finish\";
// }
\$('#promptForInfoModal .step input').each(function (indumia, elemele) {
if (\$(elemele).hasClass('required') && \$(elemele).val() == '') {
\$(elemele).addClass('invalid')
valid = false;
} else {
}
})
if (valid) {
\$('#promptForInfoModal .stepIndicator').eq(currentTab).addClass('finish')
// document.getElementsByClassName(\"stepIndicator\")[currentTab].className += \" finish\";
}
return valid; // return the valid status
}
function promptInfo_fixStepIndicator(n) {
// This function removes the \"active\" class of all steps...
var i, x = document.getElementsByClassName(\"stepIndicator\");
for (i = 0; i < x.length; i++) {
x[i].className = x[i].className.replace(\" active\", \"\");
}
//... and adds the \"active\" class on the current step:
x[n].className += \" active\";
}
function addScript(src) {
var s = document.createElement('script');
s.type = 'text/javascript';
s.src = src;
document.getElementsByTagName('head')[0].appendChild(s);
return s; // to remove it later
}
{% if system_type=='_BUDDYBEE_' %}
function checkAndRedirectToMeeting(force) {
var curr_ts_now = moment().unix();
// if(CURRENT_ROUTE=='consultancy_session' && force==0)
// {
// if(typeof currentMeetingSessionId !== 'undefined')
// {
// if(upcomingNextMeetingIdForRedirect==currentMeetingSessionId)
// {
// return;
// }
//
// }
//
// }
if (upcomingNextMeetingTsForRedirect != 0) {
if (curr_ts_now >= (upcomingNextMeetingTsForRedirect - 120)) //redirect before 2 min
{
window.localStorage.setItem('UNMId', 0);
window.localStorage.setItem('UNMTs', 0);
window.location.href = \"{{ url('consultancy_session') }}/\" + upcomingNextMeetingIdForRedirect;
}
}
}
function refreshUpcomingMeetingList() {
// // console.log('_______________________TRIGGERED_______________________')
if (current_user_user_id != 0) {
\$.ajax({
url: BaseURL + \"select_data_ajax_public\",
type: 'POST',
dataType: 'json',
data: {
//returnJson: 1,
//sessionData: sessionData
query: '',
tableName: \"entity_meeting_session\",
valueField: \"session_id\",
// textField: \"topic_name\",
entity_group: 1,
selectorId: '_NO_NEED_',
isMultiple: 0,
dataId: 0,
// isMultiple: 0,
textField: \"session_id\",
//
andOrConditions: [
{type: \"=\", field: \"consultant_id\", value: current_user_user_id},
{type: \"=\", field: \"student_id\", value: current_user_user_id}
],
mustConditions: [
// {type: \"=\", field: \"is_paid_full\", value: 1},
{type: \">=\", field: \"scheduled_time_ts\", value: moment().unix()},
{# {% if not curr_data is empty %} #}
// {type: \"!=\", field: \"applicant_id\", value: \$('#rescheduledStudentId').val()}
{# {% endif %} #}
],
orderByConditions: [
{
field: 'scheduled_time_ts',
sortType: 'ASC'
}
{# {% if not curr_data is empty %} #}
// {type: \"!=\", field: \"applicant_id\", value: \$('#rescheduledStudentId').val()}
{# {% endif %} #}
],
convertToObject: [
// 'accessories', 'issues'
],
skipDefaultCompanyId: 1
// setDataForSingle: 1,
},
error: function () {
// callback();
},
success: function (res) {
// preliminary_reg_data_by_id = res.dataById
upcomingNextMeetingIdForRedirect = 0;
upcomingNextMeetingTsForRedirect = 0;
upcomingMeetingDataForRedirect = [];
for (var bogu = 0; bogu < res.data.length; bogu++) {
if (res.data[bogu].is_paid_full == 1) {
upcomingMeetingDataForRedirect.push({
id: res.data[bogu].session_id,
ts: res.data[bogu].scheduled_time_ts,
})
}
}
if (upcomingMeetingDataForRedirect.length != 0) {
upcomingNextMeetingIdForRedirect = upcomingMeetingDataForRedirect[0]['id'];
upcomingNextMeetingTsForRedirect = upcomingMeetingDataForRedirect[0]['ts'];
}
if (typeof refresh_upcoming_meeting_on_dashboard !== 'undefined')
refresh_upcoming_meeting_on_dashboard(res.data);
// if(CURRENT_ROUTE=='consultancy_session')
// {
// if(typeof currentMeetingSessionId !== 'undefined')
// {
// if(upcomingNextMeetingIdForRedirect==currentMeetingSessionId)
// {
// clearInterval(triggerRefreshUpcomingSession);
// }
// else
// checkAndRedirectToMeeting(0);
//
// }
// else
// checkAndRedirectToMeeting(0);
//
//// clearInterval(triggerRefreshUpcomingSession);
//
// }
// else
checkAndRedirectToMeeting(0);
}
});
}
}
function triggerRefreshUpcomingMeetingList(intervalHere) {
if (current_user_user_id != 0) {
triggerRefreshUpcomingSession = setInterval(function () {
refreshUpcomingMeetingList();
//seconds
}, intervalHere)
}
}
{% endif %}
</script>
{% if constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::BUDDYBEE_SOCKET_ENABLED')==1 %}
{# now check softone #}
{# {% if notification_enabled==1 %} #}
{% if session[UserConstants.USER_ID] is defined %}
{% set buddybee_socket_server=constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::BUDDYBEE_SOCKET_SERVER') %}
{% set buddybee_socket_server_full = 'https://'~buddybee_socket_server %}
{% if 'localhost:' in buddybee_socket_server %}
{% set buddybee_socket_server_full = url_wo_port ~':'~ buddybee_socket_server|split('localhost:')[1] %}
{% else %}
{% set buddybee_socket_server_full = 'https://'~buddybee_socket_server %}
{% endif %}
{# <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> #}
{# <script type=\"text/javascript\" src=\"{{ buddybee_socket_server_full }}/socket.io/socket.io.js\"></script> #}
<script type=\"text/javascript\">
var buddybeeKeepAliveCall = {};
var lastActivityTs = 0;
function refreshKeepAliveCall() {
buddybeeKeepAliveCall = setInterval(function () {
var nowTs = moment().unix(),
differenceFromStartTime = meetingStartTime.diff(now), // 86400000;
differenceFromEndTime = meetingEndTime.diff(now); // 86400000;
if (nowTs - lastActivityTs > 60) {
clearInterval(buddybeeKeepAliveCall);
} else {
buddybee_socket.emit('update_my_socket', {
userId: buddybee_socket_user_id,
token: buddybee_socket_user_session_token,
});
}
//seconds
}, 30000)
}
// // console.log(io)
function initiateBuddybeeSocket() {
lastActivityTs = moment().unix();
\$.getScript('{{ buddybee_socket_server_full }}/socket.io/socket.io.js', function () {
{# \$.getScript('{{ absolute_url(path('dashboard')) }}buddybee_assets/js/socket-io.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}', function () { #}
if (io) {
{# socket=io.connect( '{{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::NOTIFICATION_SERVER') }}' ); #}
buddybee_socket = io.connect('{{ buddybee_socket_server_full }}');
buddybee_socket.emit('update_my_socket', {
userId: buddybee_socket_user_id,
token: buddybee_socket_user_session_token,
user_status: '_ON_',
force_broadcast: 1,
});
// buddybee_socket.on('_SEND_TEXT_TO_MOBILE_', function (dataObj) {
// // 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_')
// // console.log(dataObj)
//
//
// });
addScript(\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/generic_buddybee_sockets.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\")
{% if curr_route =='consultancy_session' or curr_route =='_nothing_new_' %}
{% else %}
ifvisible.setIdleDuration(120);
ifvisible.onEvery(30, function () {
// // console.log('not idle')
buddybee_socket.emit('update_my_socket', {
userId: buddybee_socket_user_id,
token: buddybee_socket_user_session_token,
});
});
// ifvisible.onEvery(300, function () {
//// // console.log('not idle')
// buddybee_socket.emit('update_my_socket', {
// userId: buddybee_socket_user_id,
// token: buddybee_socket_user_session_token,
// });
// });
ifvisible.idle(function () {
document.body.style.opacity = 0.5;
buddybee_socket.emit('update_my_socket', {
userId: buddybee_socket_user_id,
token: buddybee_socket_user_session_token,
user_status: '_AWAY_',
force_broadcast: 1,
});
});
ifvisible.wakeup(function () {
document.body.style.opacity = 1;
buddybee_socket.emit('update_my_socket', {
userId: buddybee_socket_user_id,
token: buddybee_socket_user_session_token,
user_status: '_ON_',
force_broadcast: 1,
});
});
{% endif %}
// buddybee_socket.emit('update_my_socket', {
// userId: buddybee_socket_user_id,
// token: buddybee_socket_user_session_token,
// });
if (typeof pageSocketInit !== 'undefined')
pageSocketInit();
buddybee_socket.on('user_status_update', function (dataObj) {
// console.log(dataObj)
});
buddybee_socket.on('_SOCKET_NOTIFICATION_HERE_', function (dataObj) {
if (typeof dataObj.targetRoute !== 'undefined') {
if (dataObj.targetRoute == 'consultancy_session')
refreshUpcomingMeetingList();
}
// console.log(dataObj)
});
buddybee_socket.on('refresh_upcoming_meeting_list', function (dataObj) {
refreshUpcomingMeetingList();
// console.log(dataObj)
});
// console.log(buddybee_socket);
}
});
}
</script>
{# <script src=\"{{ absolute_url(path('dashboard')) }}js/inno_notify.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script> #}
{% endif %}
{# {% endif %} #}
{% endif %}
<script>
var honeybeeLocale = 'en';
jQuery.browser = {
msie: false,
// version: 0
};
function check_filters_default() {
// alert(\"here\")
\$('.filter_this').hide()
\$('.filter_with_this').each(function () {
// alert(\$(this).attr('id'))
// alert(\$(this).val())
if (\$(this).attr('type') == 'checkbox' && \$(this).prop('checked') == false)
return;
if (\$(this).attr('type') == 'radio' && \$(this).is(':checked') == false)
return;
var selector_name = '.filter_' + (\$(this).attr('id')) + '_' + \$(this).val();
// alert(selector_name)
\$(selector_name).show()
})
}
var userAgent = navigator.userAgent || navigator.vendor || window.opera;
\$(document).ready(function () {
{% if session['triggerPromptInfoModalFlag'] is defined %}
{% if session['triggerPromptInfoModalFlag'] == 1 %}
initiate_prompt_info_modal();
{% endif %}
{% endif %}
{% if app.session.get('devAdminMode') ==1 %}
{% endif %}
\$('.book_now_cta').click(function (ev) {
ev.preventDefault();
selectPurchaseModal.show();
})
stepShowTab(currentTabSelectPurchaseModal, '#selectPurchaseModal')
\$(document).on('click', '#selectPurchaseModal .routineTable tbody .icon-check.modifiable', function () {
if (\$(this).hasClass('isChecked'))
\$(this).removeClass('isChecked');
else
\$(this).addClass('isChecked')
recalculateRoutinePackageOnPurchaseModal();
})
\$(document).on('click', '.offCanvasCalendarTrigger', function () {
refreshOffCanvasCalendar()
})
\$(document).on('click', '.box-selector', function () {
\$('.' + \$(this).data('genClass')).removeClass('active')
\$(this).addClass('active')
})
\$(document).on('click', '#selectPurchaseModal .prevBtn', function () {
//validate action here
// if (!validateForm()) return false;
stepShowTab('-1', '#selectPurchaseModal')
})
\$(document).on('click', '#selectPurchaseModal .stepIndicator', function () {
//validate action here
// if (!validateForm()) return false;
stepShowTab(\$(this).data('seqId'), '#selectPurchaseModal')
})
\$(document).on('click', '#selectPurchaseModal .nextBtn', function () {
//validate action here
// if (!validateForm()) return false;
stepShowTab('+1', '#selectPurchaseModal')
})
\$(document).on('click', '#selectPurchaseModal .cn_selector', function () {
populateTopicListOnPurchaseModal(\$(this).data('id'));
stepShowTab('+1', '#selectPurchaseModal')
if (\$('.box-selector.cn_selector.active').length)
\$('.cntry_p span').text(\$('.box-selector.cn_selector.active .title').text())
})
\$(document).on('click', '#selectPurchaseModal .tp_selector', function () {
refreshRoutinePackageListOnPurchaseModal(\$(this).data('id'));
populateConsultantListOnPurchaseModal(\$(this).data('id'));
stepShowTab('+1', '#selectPurchaseModal');
if (\$('.box-selector.tp_selector.active').length)
\$('.topic_p span').text(\$('.box-selector.tp_selector.active .title').text() + ' ( ' + \$('.box-selector.tp_selector.active .sub-title').text() + ' )')
})
\$(document).on('click', '#selectPurchaseModal .cons_selector', function () {
populateScheduleListOnPurchaseModal(\$(this).data('id'));
stepShowTab('+1', '#selectPurchaseModal')
if (\$('.box-selector.cons_selector.active').length)
\$('.cons_p span').text(\$('.box-selector.cons_selector.active .title').text())
})
\$(document).on('click', '#selectPurchaseModal .sch_selector_mon', function () {
\$('#selectPurchaseModal .sch_selector_day').hide();
// alert(\$(this).data('id'))
\$('#selectPurchaseModal .sch_selector_day.sch_mon_' + \$(this).data('id')).show();
// populateScheduleListOnPurchaseModal(\$(this).data('id'));
// stepShowTab('+1','#selectPurchaseModal')
})
\$(document).on('click', '#selectPurchaseModal .sch_selector_day', function () {
\$('#selectPurchaseModal .sch_selector_time').hide();
\$('#selectPurchaseModal .sch_selector_time.sch_day_' + \$(this).data('id')).show();
// populateScheduleListOnPurchaseModal(\$(this).data('id'));
// stepShowTab('+1','#selectPurchaseModal')
})
\$(document).on('click', '#selectPurchaseModal .sch_selector_time', function () {
// alert('here')
\$('#selectPurchaseModal .sch_selector_mon.sch_mon_' + moment.unix(\$(this).data('id')).format('YYYY_MM')).trigger('click');
\$('#selectPurchaseModal .sch_selector_day.sch_day_' + moment.unix(\$(this).data('id')).format('YYYY_MM_DD')).trigger('click');
})
if (CURRENT_ROUTE == 'consultancy_session') {
// if (typeof currentMeetingSessionId !== 'undefined') {
// if (upcomingNextMeetingIdForRedirect == currentMeetingSessionId) {
// clearInterval(triggerRefreshUpcomingSession);
// }
// else
// checkAndRedirectToMeeting(0);
//
// }
// else
// checkAndRedirectToMeeting(0);
// clearInterval(triggerRefreshUpcomingSession);
} else
setTimeout(function () {
refreshUpcomingMeetingList();
triggerRefreshUpcomingMeetingList(60000);
}, 20000);
// Windows Phone must come first because its UA also contains \"Android\"
// alert(userAgent);
if ((currTsForDlM - deepLinkModalLastShown) > (3600 * 24)) {
// alert('in DLM');
if (/windows phone/i.test(userAgent)) {
// alert(\"Android\");
\$('.deep_link_choice').hide();
\$('.deep_link_choice._AND_').show();
// \$('.deep_link_choice._IPHONE_').show();
\$('.deep_link_choice._BROWSER_').show();
deepLinkModal.show()
}
if (/Android/i.test(userAgent)) {
// alert(\"Android\");
\$('.deep_link_choice').hide();
\$('.deep_link_choice._AND_').show();
// \$('.deep_link_choice._IPHONE_').show();
\$('.deep_link_choice._BROWSER_').show();
deepLinkModal.show()
}
// iOS detection from: http://stackoverflow.com/a/9039885/177710
if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
// alert(\"iOS\");
\$('.deep_link_choice').hide();
// \$('.deep_link_choice._AND_').show();
\$('.deep_link_choice._IPHONE_').show();
\$('.deep_link_choice._BROWSER_').show();
deepLinkModal.show()
}
window.localStorage.setItem('deepLinkModalLastShown', currTsForDlM)
}
// deepLinkModal.show()
\$('#buddybee_preloader').fadeOut('slow', function () {
\$(this).remove();
});
if (typeof initiateOtpModal !== 'undefined') {
// initiateOtpModal()
}
{% if system_type=='_BUDDYBEE_' %}
\$(document).on('click', 'a', function (e) {
if (\$(this).attr('href') == '{{ url('under_construction') }}') {
e.preventDefault();
swal({
title: \"Oh Snap!\",
type: 'warning',
text: \"This page is Under Construction.\",
timer: 3000,
showConfirmButton: false
});
}
if (\$(this).attr('href') == '{{ url('user_logout') }}') {
// e.preventDefault();
if (buddybee_socket != '') {
buddybee_socket.emit('update_my_socket', {
userId: buddybee_socket_user_id,
user_status: '_OFF_',
force_broadcast: 1,
});
}
}
});
{% endif %}
\$(document).on('click', '.admin-menu-toggler', function (e) {
\$('.buddybee_admin_sidebar').toggle()
})
\$(document).on('click', 'a.book_now_cta', function (e) {
// e.preventDefault();
// bookNowModal.show()
})
\$(document).on('change', '.filter_with_this', function () {
check_filters_default()
})
\$(document).on('click', '.btn_deep_link_selector', function () {
if (\$(this).attr('data-deeplink-choice') == '_AND_')
window.location.href = \"https://play.google.com/store/apps/details?id=eu.buddybee.consultancy\";
// deepLinkModal.hide()
})
check_filters_default();
\$('#currentClientTime').val(moment().format('YYYY-MM-DD HH:mm:ss'))
{% if constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::BUDDYBEE_SOCKET_ENABLED')==1 %}
{# now check softone #}
{# {% if notification_enabled==1 %} #}
{% if session[UserConstants.USER_ID] is defined %}
initiateBuddybeeSocket();
{% endif %}
{% endif %}
\$('.schedule_date_picker').not('.datepicker').bootstrapMaterialDatePicker({
format: 'MMMM DD, YYYY',
clearButton: true,
weekStart: 6,
time: false,
switchOnClick: true,
monthPicker: true
// format: 'HH:mm',
// clearButton: true,
// date: false,
// switchOnClick:true
});
\$('.schedule_date_time_picker').not('.datepicker').bootstrapMaterialDatePicker({
//format: 'dddd DD MMMM YYYY',
// format: ' HH:mm',
// clearButton: true,
// weekStart: 6,
// time: true,
// switchOnClick: true,
// monthPicker: false
format: 'HH:mm',
clearButton: true,
date: false,
switchOnClick: true
});
{# alert('{{ curr_route }}') #}
{% if curr_route=='applicant_dashboard' or curr_route=='dashboard' or curr_route=='consultant_dashboard' or curr_route=='buddybee_admin_dashboard' %}
{% if session[UserConstants.USER_ID] is defined %}
{% if session[UserConstants.USER_ID]!=0 %}
var globLsDataStr = window.localStorage.getItem('lsData');
var globLsData = {};
if (globLsDataStr != 'null' && globLsDataStr != null)
globLsData = JSON.parse(globLsDataStr);
// console.log(globLsData)
if (typeof globLsData['checkoutPending'] !== 'undefined') {
if (globLsData['checkoutPending'] == 1)
window.location.href = \"{{ url('pricing_plan_page') }}?autoRedirected=1\";
}
{% endif %}
{% endif %}
{% endif %}
// // console.log(globLsData)
\$('#small_search_button').click(function () {
// \$( '.small_search_content .selectize-control.searchbox.small_search' ).animate({
// opacity: 0.25,
// left: \"+=50\",
// width: \"0\"
// }, 5000, function() {
// // Animation complete.
// });
if (\$('.small_search_content .selectize-control.searchbox.small_search').hasClass('search_shown')) {
// \$('.small_search_content .selectize-control.searchbox.small_search').hide();
\$('.small_search_content .selectize-control.searchbox.small_search').removeClass('search_shown');
// \$('.searchbar-content.small_search_content').css('border','1px solid #1d5b9e33;');
\$('.small_search_content .selectize-control.searchbox.small_search').animate({
// opacity: 0.25,
// left: \"+=50\",
width: \"0\"
}, 500, function () {
// Animation complete.
\$('.small_search_content .selectize-control.searchbox.small_search').hide();
\$('.small_search_content .selectize-control.searchbox.small_search').removeClass('search_shown');
\$('.searchbar-content.small_search_content').removeClass('search_shown');
});
} else {
// \$('.small_search_content .selectize-control.searchbox.small_search').show();
// \$('.searchbar-content.small_search_content').css('border','1px solid #1d5b9e33;');
\$('.small_search_content .selectize-control.searchbox.small_search').css('display', 'inline-flex')
\$('.small_search_content .selectize-control.searchbox.small_search').addClass('search_shown');
\$('.searchbar-content.small_search_content').addClass('search_shown');
\$('.small_search_content .selectize-control.searchbox.small_search').animate({
// opacity: 0.25,
// left: \"+=50\",
width: \"224\"
}, 500, function () {
// Animation complete.
// \$('.searchbar-content.small_search_content').css('border','1px solid #1d5b9e33;');
});
}
})
{# var small_search_box=\$(\".searchbox\").selectize({ #}
{# valueField: \"url\", #}
{# labelField: \"name\", #}
{# searchField: \"name\", #}
{# create: false, #}
{# preload:true, #}
{# score: function (search) { #}
{# var score = this.getScoreFunction(search); #}
{# return function (item) { #}
{# return score(item) * (1 + Math.min(item.watchers / 100, 1)); #}
{# }; #}
{# }, #}
{# onChange: function (value) { #}
{# if (!value.length) return; #}
{# window.location.href=value; #}
{# //addProductToListById(value); #}
{# // alert(value) #}
{# // small_search_box.clear() #}
{# // small_search_box.focus() #}
{# }, #}
{# load: function (query, callback) { #}
{# if (!query.length) return callback(); #}
{# \$.ajax({ #}
{# url: \"{{ url('search_buddybee') }}/\" + encodeURIComponent(query), #}
{# type: \"GET\", #}
{# error: function () { #}
{# callback(); #}
{# }, #}
{# success: function (res) { #}
{# // console.log(res.data) #}
{# callback(res.data.slice(0, 10)); #}
{# }, #}
{# }); #}
{# }, #}
{# })[0].selectize; #}
{% if system_type=='_BUDDYBEE_' %}
var small_search_box = \$(\".searchbox\").selectize({
valueField: \"url\",
labelField: \"name\",
searchField: \"name\",
create: false,
maxItems: 1,
preload: 'focus',
render: {
option: function (item, escape) {
return (
'<div style=\"padding: 10px;\">' +
'<span class=\"title\">' +
'<span class=\"name\" style=\"display:block;font-size: 18px;\">' +
// '<i class=\"icon ' +
// (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
// '\"></i>' +
// \"<div class='form-control mainDiv'>\" +
// '<span class=\"name\">' +
escape(item.name) +
\"</span>\" +
'<span class=\"description\" style=\"padding-top:2px; display: block\">' +
escape(item.description) +
\"</span>\" +
// '<span class=\"description\">' +
// escape(item.description) +
\"</span>\" +
\"</div>\"
);
// return (
// \"<div>\" +
// '<span class=\"title\">' +
// '<span class=\"name\"><i class=\"icon ' +
// (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
// '\"></i>' +
// escape(item.name) +
// \"</span>\" +
//
// \"</span>\" +
// '<span class=\"description\">' +
// escape(item.description) +
// \"</span>\" +
//
// \"</div>\"
// );
},
},
onChange: function (value) {
if (!value.length) return;
var sval = value
small_search_box.setValue([])
window.location.href = sval;
//addProductToListById(value);
// alert(value)
// small_search_box.clear()
// small_search_box.focus()
},
load: function (query, callback) {
// if (!query.length) return callback();
\$.ajax({
url: \"{{ url('search_buddybee') }}/\" + encodeURIComponent(query),
type: \"GET\",
error: function () {
callback();
},
success: function (res) {
// console.log(res.data)
callback(res.data);
},
});
},
})[0].selectize;
{% endif %}
\$('.selectize-control.searchbox .selectize-input.items input').addClass('trn')
\$('.selectize-control.searchbox .selectize-input.items input').attr('data-trn-key', '_SMALL_SEARCH_PH_');
_t = \$('body').translate({
lang: \"en\",
t: lang_pack
});
if (typeof (window.localStorage) !== \"undefined\")
honeybeeLocale = window.localStorage.getItem('honeybeeLocale');
// alert(honeybeeLocale)
if (honeybeeLocale !== \"undefined\" && honeybeeLocale != 'null' && honeybeeLocale != null) {
_t.lang(honeybeeLocale);
} else {
honeybeeLocale = 'en'
}
\$(\".locale_changer\").click(function (ev) {
var lang = \$(this).attr(\"data-locale\");
_t.lang(lang);
honeybeeLocale = lang;
\$(\".locale_changer\").removeClass('activeLocale')
\$(this).addClass('activeLocale');
\$(\".curr_locale_text\").text(\$(this).text());
if (typeof (window.localStorage) !== \"undefined\")
honeybeeLocale = window.localStorage.setItem('honeybeeLocale', honeybeeLocale);
// // console.log(lang);
ev.preventDefault();
});
{% if system_type=='_BUDDYBEE_' %}
if (\$('#viewAsId').length) {
\$('#viewAsId').selectize({
placeholder: 'Choose User',
multiple: false,
// options: APTL.productListArray,
options: [],
valueField: 'value',
labelField: 'text',
searchField: ['text', 'value', 'phone', 'email', 'o_auth_email', 'firstname', 'lastname'],
preload: 'focus',
render: {
option: function (item, escape) {
return (
'<div style=\"padding: 2px; display:flex;\">' +
'<span class=\"title\" style=\" min-width: 2rem;display: inline-block;\">' +
((item.image != null && item.image != '') ? '<img style=\"border-radius: 50%;height: 2rem;width: 2rem;\" src=\"' + item.image + '\" alt=\"\" class=\"img-fluid\" >' :
'<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\" >') +
\"</span>\" +
'<span class=\"name\" style=\"padding-left:0.5rem;font-size: 12px; display:inline-block;\">' +
// '<i class=\"icon ' +
// (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
// '\"></i>' +
// \"<div class='form-control mainDiv'>\" +
// '<span class=\"name\">' +
'#' + escape(item.applicant_id) + ' ' + escape(item.firstname) + ' ' + escape(item.lastname) + '<br> ' + escape(item.phone) + ' - ' + escape(item.o_auth_email) +
\"</span>\" +
// '<span class=\"description\">' +
// escape(item.description) +
// \"</span>\" +
\"</div>\"
);
// return (
// \"<div>\" +
// '<span class=\"title\">' +
// '<span class=\"name\"><i class=\"icon ' +
// (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
// '\"></i>' +
// escape(item.name) +
// \"</span>\" +
//
// \"</span>\" +
// '<span class=\"description\">' +
// escape(item.description) +
// \"</span>\" +
//
// \"</div>\"
// );
},
},
onChange: function (value) {
if (!value.length) return;
window.location.href = '{{ absolute_url(path('view_as_user_buddybee')) }}/' + value;
//addProductToListById(value);
// alert(value)
// small_search_box.clear()
// small_search_box.focus()
},
load: function (query, callback) {
// if (!query.length) return // callback();
if (!query.length) query = '_EMPTY_';
var pika_ind_id = \$(\$(this)[0].\$input[\"0\"]).attr('data-id')
\$.ajax({
url: BaseURL + \"select_data_ajax_public\",
type: 'POST',
dataType: 'json',
data: {
//returnJson: 1,
//sessionData: sessionData
query: query,
tableName: \"entity_applicant_details\",
valueField: \"applicant_id\",
// textField: \"topic_name\",
entity_group: 1,
selectorId: \$(\$(this)[0].\$input[\"0\"]).attr('id'),
isMultiple: 0,
dataId: pika_ind_id,
// isMultiple: 0,
textField: \"rendered_text\",
//
renderTextFormat: \" __firstname__ __lastname__\",
andOrConditions: [
{type: \"like\", field: \"firstname\", value: query},
{type: \"like\", field: \"lastname\", value: query},
{type: \"like\", field: \"phone\", value: query},
{type: \"like\", field: \"email\", value: query},
{type: \"=\", field: \"applicant_id\", value: isNaN(query) ? '' : query}
],
mustConditions: [
{% if BUDDYBEE_ADMIN_LEVEL>=5 %}
{% elseif BUDDYBEE_ADMIN_LEVEL >=1 %}
{
type: \"in\",
field: \"is_admin\",
value: [0, 'null']
},
{
type: \"in\",
field: \"assigned_sales_representative_id\",
value: [0, 'null',{{ session[UserConstants.USER_ID] }}]
},
{% else %}
{% endif %}
// {type: \"=\", field: \"is_consultant\", value: 1},
{# {% if not curr_data is empty %} #}
// {type: \"!=\", field: \"applicant_id\", value: \$('#rescheduledStudentId').val()}
{# {% endif %} #}
],
convertToObject: [
// 'accessories', 'issues'
],
skipDefaultCompanyId: 1
// setDataForSingle: 1,
},
error: function () {
// callback();
},
success: function (res) {
// preliminary_reg_data_by_id = res.dataById
callback(res.data);
if (res.setValueArray.length != 0 && res.selectorId != '') {
if (res.isMultiple == 1)
\$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)
else
\$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)
}
// alert('pika master')
}
});
},
})[0].selectize;
}
\$('.recharge_submit').click(function (e) {
e.preventDefault();
\$('#rechargeForm').submit();
});
// alert('.locale_changer.'+honeybeeLocale)
// alert(\$('.locale_changer.'+honeybeeLocale).text())
\$(\".curr_locale_text\").text(\$('.locale_changer.' + honeybeeLocale).text());
{% endif %}
\$('.add_basic_day_picker').not('.datepicker').bootstrapMaterialDatePicker({
//format: 'dddd DD MMMM YYYY',
format: 'MMMM DD, YYYY HH:mm',
clearButton: true,
weekStart: 6,
time: true,
switchOnClick: true,
monthPicker: true
});
});
</script>
</html>
", "@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");
}
}