[
"exception" => Twig\Error\RuntimeError {#611
-lineno: 27
-name: "@Application/footer/buddybee_new_footer.html.twig"
-rawMessage: "An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "buddybee_notification_view" as such route does not exist.")."
-sourcePath: "/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/src/ApplicationBundle/Resources/views/footer/buddybee_new_footer.html.twig"
-sourceCode: """
{# <script src="{{ asset('condensed_assets/javascript.js',) }}"></script> #}\n
{# {{ dump( constant('ApplicationBundle\\Constants\\GeneralConstant::NOTIFICATION_SERVER')) }}; #}\n
{% if not include_html is defined %}\n
{% set include_html=1 %}\n
{% if app.request.request.get('skipHTML') !='' %}\n
{% set include_html= 0 %}\n
{% endif %}\n
{% endif %}\n
{% if include_html!=1 %}\n
\n
\n
\n
{% endif %}\n
\n
<style>\n
@media (min-width: 320px) and (max-width: 480px) {\n
#deepLinkModal p {\n
font-weight: bold;\n
font-size: 12px !important;\n
line-height: 1.5 !important;\n
}\n
}\n
</style>\n
{% set BUDDYBEE_ADMIN_LEVEL= session[UserConstants.BUDDYBEE_ADMIN_LEVEL] is defined? session[UserConstants.BUDDYBEE_ADMIN_LEVEL]:0 %}\n
{% include '@Application/modals/input_forms/verify_otp_modal.html.twig' %}\n
<script>\n
var notificationDetailBaseUrl = '{{ url('buddybee_notification_view', {'id': 0}) }}';\n
</script>\n
{% if system_type=='_BUDDYBEE_' %}\n
<footer class="footer">\n
<a class="nav-link cta book_now_cta" href="{{ url('consultant_search_page') }}" style="text-transform: none;"\n
><span class="trn" data-trn-key="_BOOK_NOW_CTA_" style="vertical-align: middle;padding: 2px 6px;\n
display: inline-block;"></span> <i class="fa fa-arrow-right"></i></a>\n
\n
\n
{# <a class="nav-link cta twus" style=" #}\n
{# border: 2px solid #22b14c; #}\n
{# text-transform: capitalize; #}\n
{# color: #22b14c !important; #}\n
{# z-index: 9999999; #}\n
{# /*display: flex;*/ #}\n
{# flex-direction: row; #}\n
{# vertical-align: middle;" href="{{ url('live_support_page_applicant') }}" #}\n
{# ><span style="background: url('{{ absolute_url(path('dashboard')) }}buddybee_assets/images/video_call_icon.png'); #}\n
{# width: 30px; #}\n
{# height: 30px; #}\n
{# display: inline-block; #}\n
{# background-size: contain; #}\n
{# background-repeat: no-repeat; #}\n
{# background-position: center; #}\n
\n
{# "></span> <span class="trn" data-trn-key="_TALK_WITH_US_CTA_" style="vertical-align: middle;padding: 2px 6px; #}\n
{# display: block; #}\n
{# "></span></a> #}\n
<div class="modal fade" style="z-index: 99999;" id="bookNowModal" tabindex="-1" aria-labelledby="exampleModalLabel"\n
aria-hidden="true">\n
<div class="modal-dialog modal-dialog-centered">\n
<div class="modal-content">\n
<div class="modal-header" style="text-align: center;display: block;">\n
<h5 class="modal-title" id="exampleModalLabel" style="text-align: center;">Select your\n
Preference</h5>\n
{# <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> #}\n
</div>\n
<style>\n
.consTypeSelectorBtn {\n
display: block;\n
width: 100%;\n
padding: 0.25rem 1rem;\n
clear: both;\n
font-weight: 400;\n
color: #212529;\n
text-align: inherit;\n
text-decoration: none;\n
white-space: nowrap;\n
background-color: transparent;\n
border: 0;\n
}\n
\n
.consTypeSelectorBtn:focus, .consTypeSelectorBtn:hover {\n
color: #1e2125;\n
/*background-color: #e9ecef;*/\n
}\n
\n
.consTypeSelectorBtn p {\n
font-family: Inter;\n
font-style: normal;\n
/* font-weight: bold; */\n
line-height: 29px;\n
padding: 7px;\n
align-items: center;\n
text-align: center;\n
color: #4B4B4B;\n
/* background: #1d5b9e; */\n
background: white;\n
border-radius: 0px;\n
border: 1px solid #1B6CB4;\n
width: 69%;\n
font-size: 16px;\n
font-weight: 600;\n
text-transform: uppercase;\n
margin: auto !important;\n
}\n
</style>\n
<div class="modal-body">\n
\n
<div class="row">\n
\n
<div class="col-md-12" style="text-align: left;">\n
<a class="consTypeSelectorBtn " id=""\n
href="{{ url('admin_consultant_search_page') }}">\n
<div class="">\n
<p style="margin: 0px;text-transform: none;">\n
{# <span class="" src="" #}\n
{# style="font-weight: normal; background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/bkash_logo.png); #}\n
{# background-size: contain; #}\n
{# background-repeat: no-repeat; #}\n
{# background-position: left; #}\n
{# width:3rem; #}\n
{# height: 1rem; #}\n
{# display: inline-block; #}\n
{# margin: auto; #}\n
{# vertical-align: middle;"></span> #}\n
Primary Consultancy</p>\n
\n
\n
</div>\n
</a>\n
<a class="consTypeSelectorBtn " id=""\n
href="{{ url('consultant_search_page') }}">\n
<div class="">\n
<p style="margin: 0px;text-transform: none;">\n
{# <span class="" src="" #}\n
{# style="font-weight: normal; background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/bkash_logo.png); #}\n
{# background-size: contain; #}\n
{# background-repeat: no-repeat; #}\n
{# background-position: left; #}\n
{# width:3rem; #}\n
{# height: 1rem; #}\n
{# display: inline-block; #}\n
{# margin: auto; #}\n
{# vertical-align: middle;"></span> #}\n
Expert Consultancy</p>\n
\n
\n
</div>\n
</a>\n
\n
\n
</div>\n
</div>\n
</div>\n
\n
</div>\n
</div>\n
</div>\n
\n
<form action="{{ path('recharge_account') }}" method="post" id="rechargeForm">\n
\n
{# <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#reviewModal"> #}\n
{# Rate your Consultant #}\n
{# </button> #}\n
\n
<!-- Modal -->\n
\n
<div class="modal fade" id="rechargeAccountOwnModal" tabindex="-1" aria-labelledby="exampleModalLabel"\n
aria-hidden="true">\n
<div class="modal-dialog modal-dialog-centered">\n
<div class="modal-content">\n
<div class="modal-header" style="text-align: center;display: block;">\n
<h5 class="modal-title" id="exampleModalLabel" style="text-align: center;">Add Fund to Your\n
Account</h5>\n
{# <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> #}\n
</div>\n
<div class="modal-body">\n
\n
<div class="row">\n
\n
<div class="col-md-12" style="text-align: left;">\n
<div class="form-group">\n
<label for="">Recharge Amount (Euro)</label>\n
<input type="number" class="form-control" name="rechargeAmount" id="rechargeAmount">\n
</div>\n
<div class="form-group">\n
<label for="">Bee Code</label>\n
<input type="text" class="form-control" name="rechargeBeeCode" id="rechargeBeeCode"\n
placeholder="if you have" value="">\n
<input type="hidden" class="form-control" name="rechargeApplicantId"\n
id="rechargeApplicantId" placeholder="if you have"\n
value="{{ session[UserConstants.USER_ID] is defined ?session[UserConstants.USER_ID]:0 }}">\n
</div>\n
\n
<br>\n
<button type="button" style="width: 48%;height: 3rem;"\n
class="btn btn-secondary" data-bs-dismiss="modal">Close\n
</button>\n
<button type="button" style="width: 48%;height: 3rem;"\n
class="btn btn-primary recharge_submit">Proceed\n
</button>\n
\n
</div>\n
</div>\n
</div>\n
<div class="modal-footer">\n
\n
</div>\n
</div>\n
</div>\n
</div>\n
\n
\n
</form>\n
\n
<div class="modal fade " style="z-index:9999999999999999999" id="deepLinkModal" tabindex="-1"\n
aria-labelledby="exampleModalLabel"\n
aria-hidden="true" data-bs-backdrop="false">\n
<div class="modal-dialog modal-dialog-centered modal-xl" style="\n
/*position:fixed;*/\n
align-items: end;\n
margin-bottom: 0px;\n
margin-left: 0px;\n
margin-right: 0px;\n
width: 100%;\n
top:auto;\n
right:auto;\n
left:auto;\n
bottom:0;">\n
<div class="modal-content" style=" text-align: center;\n
border-radius: 15px 15px 0 0;\n
">\n
\n
<div class="modal-body">\n
<h5 class="modal-title" id="exampleModalLabel" style=" text-align: center;\n
font-size: 1rem;\n
color: #616467;\n
margin-bottom: 1rem;\n
margin-top: .5rem;\n
">Explore BuddyBee with...</h5>\n
\n
<div class="row deep_link_choice _AND_" style="margin-bottom:10px;">\n
\n
<div class="col-md-8 col-sm-8"\n
style="text-align: left; display: flex; justify-content: space-evenly;">\n
\n
\n
<div style="background:url({{ absolute_url(path('dashboard')) }}buddybee_assets/android-icon-192x192.png);\n
height: 40px;\n
width: 40px;\n
background-size: 100%;\n
background-repeat: no-repeat;\n
background-position: center;\n
border-radius: 29%;\n
display: inline-block;\n
border: 1px solid #d7dbe1;" class="cons_image_view">\n
</div>\n
<div style="\n
height: 40px;\n
width: 200px;\n
padding-top: 10px;;\n
padding-left: 10px;;\n
\n
border-radius: 50%;display: inline-block" class="">\n
<p>BuddyBee App</p>\n
</div>\n
\n
\n
</div>\n
<div class="col-md-4 col-sm-4" style="text-align: left; padding-top: 5px;">\n
\n
<button type="button" style="width: 100%;\n
height: 33px;\n
font-size: 12px;\n
/*margin-top: 10px; */\n
color: #ffffff;\n
background-color: #1d5b9e;\n
\n
font-weight: bold;\n
border: none;"\n
class="btn btn_deep_link_selector btn-primary" data-deeplink-choice="_AND_"\n
data-bs-dismiss="modal">Open\n
</button>\n
\n
</div>\n
</div>\n
<div class="row deep_link_choice _IPHONE_" style="margin-bottom:10px;">\n
\n
<div class="col-md-8 col-sm-8"\n
style="text-align: left; display: flex; justify-content: space-evenly;">\n
\n
\n
<div style="background:url({{ absolute_url(path('dashboard')) }}buddybee_assets/android-icon-192x192.png);\n
height: 40px;\n
width: 40px;\n
background-size: 100%;\n
background-repeat: no-repeat;\n
background-position: center;\n
border-radius: 29%;\n
display: inline-block;\n
border: 1px solid #d7dbe1;" class="cons_image_view">\n
</div>\n
<div style="\n
height: 40px;\n
width: 200px;\n
padding-top: 10px;;\n
padding-left: 10px;;\n
\n
border-radius: 50%;display: inline-block" class="">\n
<p>BuddyBee App</p>\n
</div>\n
\n
\n
</div>\n
<div class="col-md-4 col-sm-4" style="text-align: left; padding-top: 5px;">\n
\n
<button type="button" style="width: 100%;\n
height: 33px;\n
font-size: 12px;\n
/*margin-top: 10px; */\n
/*color: #261a0c;*/\n
/*background-color: #fac53a;*/\n
color: #ffffff;\n
background-color: #1d5b9e;\n
\n
font-weight: bold;\n
border: none;"\n
class="btn btn_deep_link_selector btn-primary" data-deeplink-choice="_IPHONE_"\n
data-bs-dismiss="modal">Open\n
</button>\n
\n
</div>\n
\n
</div>\n
<div class="row deep_link_choice _BROWSER_" style="margin-bottom:10px;">\n
\n
<div class="col-md-8 col-sm-8"\n
style="text-align: left; display: flex; justify-content: space-evenly;">\n
\n
\n
<div style="background:url({{ absolute_url(path('dashboard')) }}buddybee_assets/chrome_logo.png);\n
height: 40px;\n
width: 40px;\n
background-size: 100%;\n
background-repeat: no-repeat;\n
background-position: center;\n
border-radius: 29%;\n
display: inline-block;\n
border: none;" class="cons_image_view">\n
</div>\n
<div style="\n
height: 40px;\n
width: 200px;\n
padding-top: 10px;;\n
padding-left: 10px;;\n
\n
border-radius: 50%;display: inline-block" class="">\n
<p>Browser</p>\n
</div>\n
\n
\n
</div>\n
<div class="col-md-4 col-sm-4" style="text-align: left; padding-top: 5px;">\n
\n
<button type="button" style="width: 100%;\n
height: 33px;\n
font-size: 12px;\n
/*margin-top: 10px;*/\n
color: #1d5b9e;\n
/*color: #261a0c;*/\n
background-color: #dddad3;\n
\n
font-weight: bold;\n
border: none;"\n
\n
class="btn btn_deep_link_selector btn-primary" data-deeplink-choice="_BROWSER_"\n
data-bs-dismiss="modal">Continue\n
</button>\n
\n
</div>\n
\n
</div>\n
\n
</div>\n
\n
</div>\n
</div>\n
</div>\n
\n
<div class="download-app">\n
<div class="container">\n
<div class="row">\n
<div class="col-md-8 my-auto">\n
<div class="download-app-content">\n
<span>BuddyBee on the go</span>\n
<p>Start or schedule consultants anytime, anywhere with Android and iPhone apps</p>\n
<div class="download-store">\n
{# <a href="#" target="_blank"><img #}\n
{# src="{{ absolute_url(path('dashboard')) }}buddybee_assets/images/app-store.png" #}\n
{# alt="app-store"></a> #}\n
<a href="https://play.google.com/store/apps/details?id=eu.buddybee.consultancy"\n
target="_blank"><img\n
src="{{ absolute_url(path('dashboard')) }}buddybee_assets/images/google-play.png"\n
alt="google-play"></a>\n
</div>\n
\n
</div>\n
</div>\n
<div class="col-md-4">\n
<div class="download-app-img">\n
<img src="{{ absolute_url(path('dashboard')) }}buddybee_assets/images/video-call.png"\n
alt="video-call">\n
</div>\n
</div>\n
</div>\n
</div>\n
</div>\n
<div class="container">\n
<div class="image" style="text-align: center;">\n
<img src="https://buddybee.eu/buddybee_assets/images/aamarpay-footer.png" alt="" style="max-width: 50%;">\n
</div>\n
</div>\n
<div class="footer-menu">\n
<div class="container">\n
<div class="row">\n
<div class="col-md-12">\n
<ul class="d-flex justify-content-between m-0">\n
<li><a href="#">Copyright ©{{ 'now'|date('Y') }} BuddyBee</a></li>\n
<li><a href="#">Powered by ©{{ 'now'|date('Y') }} HoneyBee IoT Ltd. </a></li>\n
{# <li><a href="#">©2021 Buddybee</a></li> #}\n
<li><a href="{{ url('contact_page') }}">Contact</a></li>\n
<li><a href="{{ url('buddybee_terms_of_service') }}">Terms of Service</a></li>\n
<li><a href="{{ url('buddybee_privacy_policy') }}">Privacy Policy</a></li>\n
<li><a href="{{ url('buddybee_refund_policy') }}">Refund Policy</a></li>\n
<li><a href="{{ url('buddybee_cancellation_policy') }}">Cancellation Policy</a></li>\n
<li><a href="{{ url('help_page') }}">Help</a></li>\n
{# <li><a href="{{ url('under_construction') }}">Mission Statement</a></li> #}\n
</ul>\n
</div>\n
</div>\n
</div>\n
</div>\n
</footer>\n
<style>\n
.stepIndicator {\n
cursor: pointer;\n
}\n
</style>\n
<style>\n
#promptForInfoModal {\n
\n
/*box-shadow: 0px 6px 18px rgb(0 0 0 / 9%);*/\n
/*border-radius: 12px;*/\n
}\n
\n
#promptForInfoModal .modal-body {\n
\n
padding: 0 1rem;\n
}\n
\n
#promptForInfoModal p {\n
\n
margin-bottom: .5rem !important;\n
}\n
\n
#promptForInfoModal .selectize-control {\n
\n
min-width: 100%;\n
}\n
\n
#promptForInfoModal .selectize-input.items {\n
\n
border: 1px solid #d0d0d0;\n
padding: 8px 8px;\n
display: inline-block;\n
width: 100%;\n
overflow: hidden;\n
position: relative;\n
z-index: 1;\n
box-sizing: border-box;\n
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1);\n
border-radius: 3px;\n
}\n
\n
#promptForInfoModalForm {\n
max-width: 500px;\n
background-color: #ffffff;\n
/*margin: 40px auto;*/\n
padding: 40px;\n
box-shadow: 0px 6px 18px rgb(0 0 0 / 9%);\n
/*border-radius: 12px;*/\n
}\n
\n
#promptForInfoModalForm .form-header {\n
gap: 5px;\n
text-align: center;\n
font-size: .9em;\n
}\n
\n
#promptForInfoModalForm .form-header .stepIndicator {\n
position: relative;\n
flex: 1;\n
padding-bottom: 30px;\n
}\n
\n
#promptForInfoModalForm .form-header .stepIndicator.active {\n
font-weight: 600;\n
}\n
\n
#promptForInfoModalForm .form-header .stepIndicator.finish {\n
font-weight: 600;\n
color: #009688;\n
}\n
\n
#promptForInfoModalForm .form-header .stepIndicator::before {\n
content: "";\n
position: absolute;\n
left: 50%;\n
bottom: 0;\n
transform: translateX(-50%);\n
z-index: 9;\n
width: 20px;\n
height: 20px;\n
background-color: #d5efed;\n
border-radius: 50%;\n
border: 3px solid #ecf5f4;\n
}\n
\n
#promptForInfoModalForm .form-header .stepIndicator.active::before {\n
background-color: #a7ede8;\n
border: 3px solid #d5f9f6;\n
}\n
\n
#promptForInfoModalForm .form-header .stepIndicator.finish::before {\n
background-color: #009688;\n
border: 3px solid #b7e1dd;\n
}\n
\n
#promptForInfoModalForm .form-header .stepIndicator::after {\n
content: "";\n
position: absolute;\n
left: 50%;\n
bottom: 8px;\n
width: 100%;\n
height: 3px;\n
background-color: #f3f3f3;\n
}\n
\n
#promptForInfoModalForm .form-header .stepIndicator.active::after {\n
background-color: #a7ede8;\n
}\n
\n
#promptForInfoModalForm .form-header .stepIndicator.finish::after {\n
background-color: #009688;\n
}\n
\n
#promptForInfoModalForm .form-header .stepIndicator:last-child:after {\n
display: none;\n
}\n
\n
#promptForInfoModalForm input {\n
padding: 15px 20px;\n
width: 100%;\n
font-size: 1em;\n
border: 1px solid #e3e3e3;\n
border-radius: 5px;\n
}\n
\n
#promptForInfoModalForm input:focus {\n
border: 1px solid #009688;\n
outline: 0;\n
}\n
\n
#promptForInfoModalForm input.invalid {\n
border: 1px solid #ffaba5;\n
}\n
\n
#promptForInfoModalForm .step {\n
display: none;\n
}\n
\n
#promptForInfoModalForm .form-footer {\n
overflow: auto;\n
gap: 20px;\n
}\n
\n
#promptForInfoModalForm .form-footer button {\n
background-color: #1d5b9e;\n
border: 1px solid #1d5b9e;\n
color: #ffffff;\n
border: none;\n
padding: 13px 30px;\n
font-size: 1em;\n
cursor: pointer;\n
border-radius: 5px;\n
flex: 1;\n
margin-top: 5px;\n
}\n
\n
#promptForInfoModalForm .form-footer button:hover {\n
opacity: 0.8;\n
}\n
\n
#promptForInfoModalForm .form-footer #promptInfo_prevBtn {\n
background-color: #fff;\n
color: #009688;\n
}\n
\n
</style>\n
<style>\n
#selectPurchaseModal {\n
\n
/*box-shadow: 0px 6px 18px rgb(0 0 0 / 9%);*/\n
/*border-radius: 12px;*/\n
}\n
\n
#selectPurchaseModal .modal-body {\n
\n
padding: 0 1rem;\n
}\n
\n
#selectPurchaseModal p {\n
\n
margin-bottom: .5rem;\n
}\n
\n
#selectPurchaseModal .selectize-control {\n
\n
min-width: 100%;\n
}\n
\n
#selectPurchaseModal .selectize-input.items {\n
\n
border: 1px solid #d0d0d0;\n
padding: 8px 8px;\n
display: inline-block;\n
width: 100%;\n
overflow: hidden;\n
position: relative;\n
z-index: 1;\n
box-sizing: border-box;\n
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1);\n
border-radius: 3px;\n
}\n
\n
#selectPurchaseModalForm {\n
max-width: 500px;\n
background-color: #ffffff;\n
/*margin: 40px auto;*/\n
padding: 40px;\n
box-shadow: 0px 6px 18px rgb(0 0 0 / 9%);\n
/*border-radius: 12px;*/\n
}\n
\n
#selectPurchaseModalForm .form-header {\n
gap: 5px;\n
text-align: center;\n
font-size: .9em;\n
}\n
\n
#selectPurchaseModalForm .form-header .stepIndicator {\n
position: relative;\n
flex: 1;\n
padding-bottom: 30px;\n
}\n
\n
#selectPurchaseModalForm .form-header .stepIndicator.active {\n
font-weight: 600;\n
}\n
\n
#selectPurchaseModalForm .form-header .stepIndicator.finish {\n
font-weight: 600;\n
color: #009688;\n
}\n
\n
#selectPurchaseModalForm .form-header .stepIndicator::before {\n
content: "";\n
position: absolute;\n
left: 50%;\n
bottom: 0;\n
transform: translateX(-50%);\n
z-index: 9;\n
width: 20px;\n
height: 20px;\n
background-color: #d5efed;\n
border-radius: 50%;\n
border: 3px solid #ecf5f4;\n
}\n
\n
#selectPurchaseModalForm .form-header .stepIndicator.active::before {\n
background-color: #a7ede8;\n
border: 3px solid #d5f9f6;\n
}\n
\n
#selectPurchaseModalForm .form-header .stepIndicator.finish::before {\n
background-color: #009688;\n
border: 3px solid #b7e1dd;\n
}\n
\n
#selectPurchaseModalForm .form-header .stepIndicator::after {\n
content: "";\n
position: absolute;\n
left: 50%;\n
bottom: 8px;\n
width: 100%;\n
height: 3px;\n
background-color: #f3f3f3;\n
}\n
\n
#selectPurchaseModalForm .form-header .stepIndicator.active::after {\n
background-color: #a7ede8;\n
}\n
\n
#selectPurchaseModalForm .form-header .stepIndicator.finish::after {\n
background-color: #009688;\n
}\n
\n
#selectPurchaseModalForm .form-header .stepIndicator:last-child:after {\n
display: none;\n
}\n
\n
#selectPurchaseModalForm input {\n
padding: 15px 20px;\n
width: 100%;\n
font-size: 1em;\n
border: 1px solid #e3e3e3;\n
border-radius: 5px;\n
}\n
\n
#selectPurchaseModalForm input:focus {\n
border: 1px solid #009688;\n
outline: 0;\n
}\n
\n
#selectPurchaseModalForm input.invalid {\n
border: 1px solid #ffaba5;\n
}\n
\n
#selectPurchaseModalForm .step {\n
display: none;\n
}\n
\n
#selectPurchaseModalForm .form-footer {\n
overflow: auto;\n
gap: 20px;\n
}\n
\n
#selectPurchaseModalForm .form-footer button {\n
background-color: #1d5b9e;\n
border: 1px solid #1d5b9e;\n
color: #ffffff;\n
border: none;\n
padding: 13px 30px;\n
font-size: 1em;\n
cursor: pointer;\n
border-radius: 5px;\n
flex: 1;\n
margin-top: 5px;\n
}\n
\n
#selectPurchaseModalForm .form-footer button:hover {\n
opacity: 0.8;\n
}\n
\n
#selectPurchaseModalForm .form-footer #promptInfo_prevBtn {\n
background-color: #fff;\n
color: #009688;\n
}\n
\n
</style>\n
\n
\n
<div class="modal fade" id="promptForInfoModal" tabindex="-1" aria-labelledby="exampleModalLabel"\n
aria-hidden="true">\n
<div class="modal-dialog modal-dialog-centered">\n
<div class="modal-content">\n
<div class="modal-header" style="">\n
<h6 class="modal-title" id="exampleModalLabel" style="text-align: left;">\n
Please Fill up Your Info for Better Communication</h6>\n
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close">\n
{# <span aria-hidden="true">×</span> #}\n
</button>\n
</div>\n
<div class="modal-body">\n
\n
\n
<div class="row">\n
\n
\n
{% if session['triggerPromptInfoModalFlag'] is defined %}\n
{% if session['triggerPromptInfoModalFlag'] == 1 %}\n
\n
{% if session['relevantRequiredPromptFields'] is defined %}\n
\n
{% set relevantRequiredPromptFields =session['relevantRequiredPromptFields']|jsonDecode() %}\n
\n
{% if not relevantRequiredPromptFields is empty %}\n
\n
\n
\n
<form id="promptForInfoModalForm" action="#!">\n
<!-- start step indicators -->\n
<div class="form-header d-flex mb-4">\n
\n
{% if 'email' in relevantRequiredPromptFields or 'phone' in relevantRequiredPromptFields or 'currentCountryId' in relevantRequiredPromptFields %}\n
<span class="stepIndicator">Contact Info</span>\n
\n
{% endif %}\n
\n
{% if 'preferredTopicIdsAsConsultant' in relevantRequiredPromptFields\n
or 'preferredTopicIdsAsStudent' in relevantRequiredPromptFields\n
or 'preferredConsultancyTopicCountryIds' in relevantRequiredPromptFields %}\n
<span class="stepIndicator">Preferences</span>\n
\n
{% endif %}\n
{# <span class="stepIndicator">Relevant Info</span> #}\n
{# <span class="stepIndicator">Preferences</span> #}\n
</div>\n
<!-- end step indicators -->\n
\n
<!-- step one -->\n
{% if 'email' in relevantRequiredPromptFields or 'phone' in relevantRequiredPromptFields or 'currentCountryId' in relevantRequiredPromptFields %}\n
\n
{# <span class="stepIndicator">Contact Info</span> #}\n
\n
\n
<div class="step">\n
{# <p class="text-center mb-4">Your Email Address</p> #}\n
\n
{% if 'email' in relevantRequiredPromptFields %}\n
<div class="mb-3">\n
<input type="email" class="promptForInfoAutoUpdateData required"\n
data-set-method="setOAuthEmail"\n
data-field-type="_TEXT_"\n
data-relevant-prompt-field="email"\n
\n
data-modify-trans-date="0"\n
placeholder="Your Email">\n
</div>\n
{% endif %}\n
{% if 'phone' in relevantRequiredPromptFields %}\n
<div class="mb-3">\n
<input type="phone" class="promptForInfoAutoUpdateData required"\n
data-set-method="setPhone"\n
data-field-type="_TEXT_"\n
data-relevant-prompt-field="phone"\n
\n
data-modify-trans-date="0"\n
placeholder="Your Phone No.">\n
\n
</div>\n
{% endif %}\n
{% if 'currentCountryId' in relevantRequiredPromptFields %}\n
<p class=" mb-4">Your Current Country</p>\n
<div class="mb-3">\n
<select class="promptForInfoAutoUpdateData required"\n
data-set-method="setCurrentCountryId,setCountry"\n
data-field-type="_VALUE_"\n
data-relevant-prompt-field="currentCountryId"\n
\n
data-modify-trans-date="0"\n
id="currentCountryIdPromptForInfo"\n
name="currentCountryIdPromptForInfo[]">\n
</select>\n
\n
</div>\n
{% endif %}\n
\n
</div>\n
{% endif %}\n
\n
<!-- step two -->\n
{% if 'preferredTopicIdsAsConsultant' in relevantRequiredPromptFields\n
or 'preferredTopicIdsAsStudent' in relevantRequiredPromptFields\n
or 'preferredConsultancyTopicCountryIds' in relevantRequiredPromptFields %}\n
\n
<div class="step">\n
{% if 'preferredTopicIdsAsStudent' in relevantRequiredPromptFields %}\n
\n
<p class=" mb-4">Your Preferred topics as Student</p>\n
<div class="mb-3">\n
<select class=" promptForInfoAutoUpdateData"\n
data-set-method="setPreferredTopicIdsAsStudent"\n
data-field-type="_JSON_"\n
data-relevant-prompt-field="preferredTopicIdsAsStudent"\n
\n
data-modify-trans-date="0"\n
id="preferredTopicIdsAsStudentPromptForInfo"\n
name="preferredTopicIdsAsStudentPromptForInfo[]"\n
multiple>\n
\n
</select>\n
</div>\n
{% endif %}\n
{% if 'preferredTopicIdsAsConsultant' in relevantRequiredPromptFields %}\n
\n
<p class=" mb-4">Your Preferred topics as Consultant</p>\n
<div class="mb-3">\n
<select class=" promptForInfoAutoUpdateData"\n
data-set-method="setPreferredTopicIdsAsConsultant"\n
data-field-type="_JSON_"\n
data-relevant-prompt-field="preferredTopicIdsAsConsultant"\n
\n
data-modify-trans-date="0"\n
id="preferredTopicIdsAsConsultantPromptForInfo"\n
name="preferredTopicIdsAsConsultantPromptForInfo[]"\n
multiple>\n
\n
</select>\n
</div>\n
{% endif %}\n
{% if 'preferredConsultancyTopicCountryIds' in relevantRequiredPromptFields %}\n
\n
<p class=" mb-4">Countries you wish to go</p>\n
<div class="mb-3">\n
<select class=" promptForInfoAutoUpdateData"\n
data-set-method="setPreferredConsultancyTopicCountryIds"\n
\n
data-field-type="_JSON_"\n
data-relevant-prompt-field="preferredConsultancyTopicCountryIds"\n
\n
data-modify-trans-date="0"\n
id="preferredConsultancyTopicCountryIdsPromptForInfo"\n
name="preferredConsultancyTopicCountryIdsPromptForInfo[]"\n
multiple>\n
\n
</select>\n
</div>\n
{% endif %}\n
\n
</div>\n
{% endif %}\n
\n
<!-- step three -->\n
\n
\n
<!-- start previous / next buttons -->\n
<div class="form-footer d-flex">\n
<button type="button" class="prevBtn" id="promptForInfo_prevBtn"\n
onclick="promptInfo_nextPrev(-1)">\n
Previous\n
</button>\n
<button type="button" class="nextBtn" id="promptForInfo_nextBtn"\n
onclick="promptInfo_nextPrev(1)">\n
\n
Next\n
</button>\n
</div>\n
<!-- end previous / next buttons -->\n
</form>\n
\n
{% endif %}\n
{% endif %}\n
{% endif %}\n
{% endif %}\n
</div>\n
\n
</div>\n
{# <div class="modal-footer"> #}\n
\n
{# </div> #}\n
</div>\n
</div>\n
</div>\n
\n
\n
<div class="modal fade" id="selectPurchaseModal" tabindex="-1" aria-labelledby="exampleModalLabel"\n
aria-hidden="true">\n
<div class="modal-dialog modal-dialog-centered">\n
<div class="modal-content">\n
<div class="modal-header" style="">\n
<h6 class="modal-title" id="exampleModalLabel" style="text-align: left;">\n
Get Consultation</h6>\n
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close">\n
{# <span aria-hidden="true">×</span> #}\n
</button>\n
</div>\n
<div class="modal-body">\n
\n
\n
<div class="row">\n
\n
<style>\n
.box-selector {\n
padding: 10px 4px;\n
cursor: pointer;\n
}\n
\n
.box-selector .inside {\n
padding: 5px;\n
\n
border-radius: 5px;\n
-webkit-box-shadow: 10px 10px 48px -24px rgba(14, 26, 87, 1);\n
-moz-box-shadow: 10px 10px 48px -24px rgba(14, 26, 87, 1);\n
box-shadow: 10px 10px 48px -24px rgba(14, 26, 87, 1);\n
\n
}\n
\n
.box-selector .inside input {\n
cursor: pointer\n
\n
}\n
\n
.box-selector .inside textarea {\n
text-align: center;\n
cursor: pointer;\n
width: 100%;\n
border: none;\n
resize: none;\n
font-size: 14px;\n
color: #1d5b9e;\n
font-weight: bold;\n
}\n
\n
.box-selector.sch_selector_mon .inside,\n
.box-selector.sch_selector_day .inside\n
/*.box-selector.sch_selector_time .inside*/\n
{\n
padding: 10px 5px;\n
\n
}\n
\n
.box-selector.sch_selector_time .inside {\n
padding: 4px 5px;\n
\n
}\n
\n
.step .view_if_has_schedules {\n
display: none;\n
}\n
\n
\n
.box-selector.active:not(.man_sch_selector) .inside {\n
border: 2px solid #1d5b9e;\n
-webkit-box-shadow: 10px 10px 24px -3px rgba(29, 91, 158, 1);\n
-moz-box-shadow: 10px 10px 24px -3px rgba(29, 91, 158, 1);\n
box-shadow: 10px 10px 24px -3px rgba(29, 91, 158, 1);\n
\n
\n
}\n
\n
.box-selector.active.man_sch_selector .inside {\n
border: 2px solid #1d5b9e;\n
-webkit-box-shadow: none;\n
-moz-box-shadow: none;\n
box-shadow: none;\n
\n
\n
}\n
\n
.box-selector.sch_selector_mon.active .inside,\n
.box-selector.sch_selector_day.active .inside,\n
.box-selector.sch_selector_time.active .inside {\n
border: 2px solid #1d5b9e;\n
-webkit-box-shadow: 4px 7px 24px -3px rgba(29, 91, 158, 1);\n
-moz-box-shadow: 10px 10px 24px -3px rgba(29, 91, 158, 1);\n
box-shadow: 4px 7px 24px -3px rgba(29, 91, 158, 1);\n
\n
}\n
\n
.box-selector .img {\n
margin-bottom: 5px;\n
\n
\n
}\n
\n
.box-selector .title {\n
text-align: center;\n
margin-bottom: 1px;\n
font-size: 13px;\n
\n
}\n
\n
.box-selector.paymentMethodSelectorBtn .title {\n
text-align: center;\n
margin-bottom: 1px;\n
font-size: 14px;\n
\n
}\n
\n
.box-selector .sub-title {\n
font-size: 12px;\n
color: grey;\n
\n
}\n
\n
#selectPurchaseModal .routineTable {\n
text-align: left;\n
vertical-align: middle;\n
\n
}\n
\n
#selectPurchaseModal .routineTable .icon-delete {\n
color: darkred;\n
font-weight: bold;\n
\n
}\n
\n
#selectPurchaseModal .routineTable .icon-delete .fa {\n
padding: 10px;\n
border-radius: 39px;\n
border: 1px solid #eddcdc;\n
width: 34px;\n
height: 34px;\n
text-align: center;\n
\n
}\n
\n
#selectPurchaseModal .routineTable .icon-check {\n
color: green;\n
font-weight: bold;\n
\n
\n
}\n
\n
#selectPurchaseModal .routineTable .icon-check .fa {\n
opacity: 0.1;\n
\n
}\n
\n
#selectPurchaseModal .routineTable .icon-check.isChecked .fa {\n
opacity: 1;\n
\n
}\n
\n
#selectPurchaseModal .routineTable .icon-check .fa {\n
padding: 10px;\n
border-radius: 39px;\n
border: 1px solid #eddcdc;\n
width: 34px;\n
height: 34px;\n
text-align: center;\n
\n
}\n
</style>\n
\n
\n
<form id="selectPurchaseModalForm" action="#">\n
<!-- start step indicators -->\n
<div class="form-header d-flex mb-4">\n
\n
<span class="stepIndicator seq_0" data-seq-id="0">Select Country</span>\n
<span class="stepIndicator seq_1" data-seq-id="1">Select Topic</span>\n
<span class="stepIndicator seq_2" data-seq-id="2">Select Consultant</span>\n
<span class="stepIndicator seq_3" data-seq-id="3">Select Schedule</span>\n
<span class="stepIndicator seq_4" data-seq-id="4">Confirm</span>\n
<span class="stepIndicator seq_5" data-seq-id="5">Payment</span>\n
\n
</div>\n
\n
<div class="step seq_0 ">\n
<h5 class=" ">Select a Country</h5>\n
\n
\n
<div class="row clearfix cn_holder">\n
\n
{% if not countries_data is defined %}\n
{% set countries_data=''|getCountriesBuddyBee %}\n
{% endif %}\n
\n
{% for ind,cntry in countries_data %}\n
<div class="box-selector cn_selector cn_{{ cntry.id }} col-md-3 col-sm-6"\n
data-id="{{ cntry.id }}"\n
data-gen-class="cn_selector"\n
\n
>\n
<div class="inside">\n
<div class="img" href="{{ url('dashboard') }}" style="\n
background:url(' {{ absolute_url(path('dashboard')) }}{{ cntry.flagImage }}');\n
height: 50px !important;\n
width: 100%;\n
/* max-width: 30% !important; */\n
background-position: center;\n
background-size: contain;\n
background-repeat: no-repeat;\n
">\n
\n
</div>\n
<h6 class="title" style="height: 2rem;">{{ cntry.name }}</h6>\n
{# <p class="sub-title"> </p> #}\n
</div>\n
</div>\n
\n
{% endfor %}\n
\n
\n
</div>\n
\n
\n
</div>\n
\n
\n
<div class="step seq_1 ">\n
<h5 class=" ">Select a Topic</h5>\n
<div class="row clearfix topic_holder">\n
</div>\n
</div>\n
\n
<div class="step seq_2">\n
<h5 class=" ">Select a Consultant</h5>\n
<div class="row clearfix cons_holder">\n
</div>\n
</div>\n
\n
<div class="step seq_3">\n
\n
<h5 class="view_if_has_schedules">Select Month</h5>\n
<div class="row clearfix sch_holder_month view_if_has_schedules"></div>\n
<h5 class="view_if_has_schedules">Select Day</h5>\n
<div class="row clearfix sch_holder_day view_if_has_schedules"></div>\n
<h5 class="view_if_has_schedules">Select Time</h5>\n
<div class="row clearfix sch_holder_time view_if_has_schedules"></div>\n
<p class="view_if_has_schedules"> -------or------- </p>\n
<h5 class=" ">Select Preferred Schedule (Upto 3)</h5>\n
<div class="row clearfix sch_holder">\n
\n
{% for hh in 1..3 %}\n
<div class="box-selector man_sch_selector man_sch_{{ hh }} col-md-4 col-sm-6"\n
data-id="{{ hh }}"\n
data-gen-class="man_sch_selector"\n
\n
>\n
<div class="inside">\n
\n
<textarea\n
class="add_basic_day_picker man_sch_selector_dp man_sch_selector_dp{{ hh }} "\n
data-id="{{ hh }}" placeholder="Click to set Schedule"\n
data-gen-class="man_sch_selector_dp"></textarea>\n
</div>\n
</div>\n
{% endfor %}\n
\n
\n
</div>\n
\n
\n
</div>\n
<div class="step seq_4">\n
<h5 class=" ">Your Purchase Summary</h5>\n
<div class="row clearfix summary_holder">\n
<p class="cntry_p">Country : <span>Germany</span></p>\n
<p class="topic_p"> Name & Type: <span>Single Consultation</span></p>\n
<p class="cons_p">Consultant : <span>Ahmed Zahid Omar</span></p>\n
<p class="coins_p">Coins : <span class="routineCoinNeededTotalSpan"></span></p>\n
</div>\n
\n
<style>\n
#selectPurchaseModal .routineTable {\n
text-align: left;\n
vertical-align: middle;\n
\n
}\n
\n
#selectPurchaseModal .routineTable .icon-delete {\n
color: darkred;\n
font-weight: bold;\n
\n
}\n
\n
#selectPurchaseModal .routineTable .icon-delete .fa {\n
padding: 10px;\n
border-radius: 39px;\n
border: 1px solid #eddcdc;\n
width: 34px;\n
height: 34px;\n
text-align: center;\n
\n
}\n
\n
#selectPurchaseModal .routineTable .icon-check {\n
color: green;\n
font-weight: bold;\n
\n
\n
}\n
\n
#selectPurchaseModal .routineTable .icon-check .fa {\n
opacity: 0.1;\n
\n
}\n
\n
#selectPurchaseModal .routineTable .icon-check.isChecked .fa {\n
opacity: 1;\n
\n
}\n
\n
#selectPurchaseModal .routineTable .icon-check .fa {\n
padding: 10px;\n
border-radius: 39px;\n
border: 1px solid #eddcdc;\n
width: 34px;\n
height: 34px;\n
text-align: center;\n
\n
}\n
</style>\n
<table class="table table-condensed table-striped routineTable">\n
<tbody></tbody>\n
<tfoot>\n
<tr>\n
<td>Total Bee Coins Needed</td>\n
<td style="text-align: left;"><b class="routineCoinNeededTotalSpan">0</b><br>\n
</td>\n
<td></td>\n
</tr>\n
</tfoot>\n
</table>\n
\n
\n
</div>\n
\n
<div class="step seq_5">\n
<h5 class=" ">Direct Payment</h5>\n
<div class="row">\n
\n
<div class="box-selector pm_selector pm_1 col-md-4 col-sm-6 paymentMethodSelectorBtn"\n
data-id="1"\n
data-gen-class="pm_selector"\n
\n
>\n
<div class="inside">\n
<div class="img" href="{{ url('dashboard') }}" style="\n
background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/stripe_logo.png);\n
height: 50px !important;\n
width: 100%;\n
/* max-width: 30% !important; */\n
background-position: center;\n
background-size: contain;\n
background-repeat: no-repeat;\n
">\n
\n
</div>\n
<h6 class="title" style="height: 2rem;">Stripe</h6>\n
{# <p class="sub-title"> </p> #}\n
</div>\n
</div>\n
<div class="box-selector pm_selector pm_2 col-md-4 col-sm-6 paymentMethodSelectorBtn"\n
data-id="2"\n
data-gen-class="pm_selector"\n
\n
>\n
<div class="inside">\n
<div class="img" href="{{ url('dashboard') }}" style="\n
background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/bkash_logo.png);\n
height: 50px !important;\n
width: 100%;\n
/* max-width: 30% !important; */\n
background-position: center;\n
background-size: contain;\n
background-repeat: no-repeat;\n
">\n
\n
</div>\n
<h6 class="title" style="height: 2rem;">Bkash</h6>\n
{# <p class="sub-title"> </p> #}\n
</div>\n
</div>\n
<div class="box-selector pm_selector pm_3 col-md-4 col-sm-6 paymentMethodSelectorBtn"\n
data-id="3"\n
data-gen-class="pm_selector"\n
\n
>\n
<div class="inside">\n
<div class="img" href="{{ url('dashboard') }}" style="\n
background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/aamarpay_logo.png);\n
height: 50px !important;\n
width: 100%;\n
/* max-width: 30% !important; */\n
background-position: center;\n
background-size: contain;\n
background-repeat: no-repeat;\n
">\n
\n
</div>\n
<h6 class="title" style="height: 2rem;">Card</h6>\n
{# <p class="sub-title"> </p> #}\n
</div>\n
</div>\n
\n
\n
</div>\n
<h5 class=" ">Purchase Bee Card</h5>\n
<div class="row">\n
{% set encData={\n
\n
\n
\n
} %}\n
{# {% set encData={ #}\n
\n
{# "rtlId": retailerId is defined?retailerId:0 , #}\n
{# "schTs": scheduleId is defined?scheduleId:0 , #}\n
{# "cnsId":consultantDetails is defined and not consultantDetails is null ?consultantDetails.applicantId:0, #}\n
{# "stdntId": session[UserConstants.USER_ID] is defined ?session[UserConstants.USER_ID]:0 , #}\n
{# "aams": autoAssignMeetingSession is defined ?autoAssignMeetingSession:0 , #}\n
{# "rpsc": requiredPurchaseSessionCount is defined ?requiredPurchaseSessionCount:0, #}\n
{# "scc":sessionConsumeCount is defined?sessionConsumeCount:0, #}\n
{# "tId":topic is defined and not topic is null? topic.id:0, #}\n
{# "dur":sessionDuration is defined?sessionDuration:0, #}\n
{# "sem":topicSessionValue is defined? topicSessionValue:0 , #}\n
\n
\n
{# } %} #}\n
{% set link_data=url('purchase_bee_card_page',{ 'encData':(encData|json_encode) | nzo_encrypt } ) %}\n
\n
<div class="box-selector pm_selector pm_4 col-md-4 col-sm-6 paymentMethodSelectorBtn"\n
data-id="4"\n
data-gen-class="pm_selector"\n
\n
>\n
<div class="inside">\n
<div class="img" href="{{ url('dashboard') }}" style="\n
background: url({{ absolute_url(path('dashboard')) }}buddybee_assets/ms-icon-310x310.png);\n
height: 50px !important;\n
width: 100%;\n
/* max-width: 30% !important; */\n
background-position: center;\n
background-size: contain;\n
background-repeat: no-repeat;\n
">\n
\n
</div>\n
<h6 class="title" style="height: 2rem;">Claim Bee Card</h6>\n
{# <p class="sub-title"> </p> #}\n
</div>\n
</div>\n
{# <div class="box-selector pm_selector pm_5 col-md-4 col-sm-6 paymentMethodSelectorBtn" #}\n
{# data-id="5" #}\n
{# data-gen-class="pm_selector" #}\n
\n
{# > #}\n
{# <div class="inside"> #}\n
{# <div class="img" href="{{ url('dashboard') }}" style=" #}\n
{# background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/bkash_logo.png); #}\n
{# height: 50px !important; #}\n
{# width: 100%; #}\n
{# /* max-width: 30% !important; */ #}\n
{# background-position: center; #}\n
{# background-size: contain; #}\n
{# background-repeat: no-repeat; #}\n
{# "> #}\n
\n
{# </div> #}\n
{# <h6 class="title" style="height: 2rem;">Bkash</h6> #}\n
{# #}{# <p class="sub-title"> </p> #}\n
{# </div> #}\n
{# </div> #}\n
{# <div class="box-selector pm_selector pm_6 col-md-4 col-sm-6 paymentMethodSelectorBtn" #}\n
{# data-id="6" #}\n
{# data-gen-class="pm_selector" #}\n
\n
{# > #}\n
{# <div class="inside"> #}\n
{# <div class="img" href="{{ url('dashboard') }}" style=" #}\n
{# background:url({{ absolute_url(path('dashboard')) }}condensed_assets/images/aamarpay_logo.png); #}\n
{# height: 50px !important; #}\n
{# width: 100%; #}\n
{# /* max-width: 30% !important; */ #}\n
{# background-position: center; #}\n
{# background-size: contain; #}\n
{# background-repeat: no-repeat; #}\n
{# "> #}\n
\n
{# </div> #}\n
{# <h6 class="title" style="height: 2rem;">Card</h6> #}\n
{# #}{# <p class="sub-title"> </p> #}\n
{# </div> #}\n
{# </div> #}\n
\n
\n
</div>\n
\n
{# <h5 class=" ">Others</h5>#}\n
<div class="row clearfix ">\n
\n
\n
<div class="box-selector col-md-12 col-sm-6"\n
data-id="promo"\n
data-gen-class="">\n
<div class="inside">\n
<h6 class="title" style="height: 2rem;font-size: 14px;">Promo Code</h6>\n
\n
<input class="form-control "\n
data-id="promo" placeholder="Promo Code"\n
data-gen-class="">\n
<h6 class="title" style="height: 2rem;font-size: 14px;"> </h6>\n
</div>\n
</div>\n
\n
\n
</div>\n
\n
</div>\n
\n
<div class="form-footer d-flex">\n
<button type="button" class="prevBtn" id="selectPurchaseModal_prevBtn">\n
Previous\n
</button>\n
<button type="button" class="nextBtn" id="selectPurchaseModal_nextBtn">\n
Next\n
</button>\n
</div>\n
\n
</form>\n
\n
\n
</div>\n
\n
</div>\n
{# <div class="modal-footer"> #}\n
\n
{# </div> #}\n
</div>\n
</div>\n
</div>\n
\n
{% endif %}\n
\n
{# some over riding css for buttons and stuffs #}\n
\n
\n
<!-- back to top btn -->\n
<a id="back-top"><i class="fas fa-chevron-up"></i></a>\n
<!-- back to top btn -->\n
\n
<!-- Option 1: Bootstrap Bundle with Popper -->\n
{# <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js" #}\n
{# integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" #}\n
{# crossorigin="anonymous"> #}\n
\n
\n
\n
{# </script> #}\n
{# temp start #}\n
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js"\n
integrity=""\n
crossorigin="anonymous"></script>\n
\n
{# temp end #}\n
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>\n
{# <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script> #}\n
<!-- jquery cdn -->\n
\n
<script type="text/javascript"\n
src="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.13.3/js/standalone/selectize.min.js"></script>\n
<script type="text/javascript" src="{{ absolute_url(path('dashboard')) }}jqueryui/jquery.form.js"></script>\n
<!-- calender js -->\n
<script src="{{ absolute_url(path('dashboard')) }}buddybee_assets/js/mini-event-calendar.min.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>\n
<!-- countdown js -->\n
<script src="{{ absolute_url(path('dashboard')) }}buddybee_assets/js/jquery.countdown.min.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>\n
<!-- process circle js -->\n
<script src="{{ absolute_url(path('dashboard')) }}buddybee_assets/js/progresscircle.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>\n
<!-- custom js-->\n
<script src="{{ absolute_url(path('dashboard')) }}buddybee_assets/js/main.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>\n
<script src="{{ absolute_url(path('dashboard')) }}buddybee_assets/js/imgProgress.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>\n
<!-- owl carousel -->\n
<script src="{{ absolute_url(path('dashboard')) }}buddybee_assets/js/owl.carousel.min.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>\n
<!-- wow js -->\n
<script src="{{ absolute_url(path('dashboard')) }}buddybee_assets/js/wow.min.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>\n
{# <script src="{{ absolute_url(path('dashboard')) }}buddybee_assets/js/AppOffcanvas.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script> #}\n
<script src="{{ absolute_url(path('dashboard')) }}buddybee_assets/js/moment.min.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>\n
<script type="text/javascript" src="{{ absolute_url(path('dashboard')) }}alertify/lib/alertify.min.js"></script>\n
<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>\n
<script src="{{ absolute_url(path('dashboard')) }}js/jquery.translate.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>\n
<script src="{{ absolute_url(path('dashboard')) }}buddybee_assets/js/bindWithDelay.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>\n
<script src="{{ absolute_url(path('dashboard')) }}buddybee_assets/js/generic.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>\n
{% include '@Application/footer/activity_tracker_script.html.twig' %}\n
<script src="{{ absolute_url(path('dashboard')) }}js/language_pack.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>\n
<script src="{{ absolute_url(path('dashboard')) }}condensed_assets/ifvisible.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script>\n
<link rel="stylesheet" href="{{ absolute_url(path('dashboard')) }}js/adminbsb/plugins/sweetalert/sweetalert.css">\n
<script src="{{ absolute_url(path('dashboard')) }}js/adminbsb/plugins/sweetalert/sweetalert.min.js"></script>\n
\n
<link rel="stylesheet" href="{{ asset('css/cal_print.css') }}" media="print">\n
<script type="text/javascript"\n
src="{{ absolute_url(path('dashboard')) }}buddybee_assets/plugin/fullcalendar3/fullcalendar.min.js"></script>\n
<script type="text/javascript"\n
src="{{ absolute_url(path('dashboard')) }}buddybee_assets/plugin/fullcalendar3/scheduler/scheduler.min.js"></script>\n
<script type="text/javascript"\n
src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js"></script>\n
\n
\n
<style>\n
.btn {\n
border-radius: 15rem;\n
}\n
\n
.withdraw p,\n
.sweet-alert button,\n
.paymentMethodSelectorBtn p {\n
\n
border-radius: 42px;\n
}\n
</style>\n
</body>\n
\n
<script>\n
\n
var socketInitiated = 0;\n
var offcanvasCalendarInitiated = 0;\n
var offCalendarLastRefreshedTs = 0;\n
var tb_pathToImage = "{{ absolute_url(path('dashboard'))~'buddybee_assets/images/circle-pending-image.png' }}";\n
\n
var buddybee_socket = '';\n
var buddybee_socket_user_name = '{{ session[UserConstants.USER_NAME] is defined? session[UserConstants.USER_NAME]:'' }}';\n
var buddybee_socket_user_id = 'BBEE_{{ session[UserConstants.USER_ID] is defined? session[UserConstants.USER_ID]:0 }}';\n
var current_user_user_id = {{ session[UserConstants.USER_ID] is defined? session[UserConstants.USER_ID]:0 }};\n
var buddybee_socket_user_session_token = '{{ session['token'] is defined? session['token']:'_GEN_' }}';\n
\n
{% set curr_route=app.request.attributes.get('_route') %}\n
\n
\n
var CURRENT_ROUTE = '{{ curr_route }}';\n
\n
var deepLinkModalLastShown = window.localStorage.getItem('deepLinkModalLastShown');\n
\n
// var deepLinkModalLastShown = 0;\n
var currTsForDlM = {{ ''|date('U') }};\n
if (deepLinkModalLastShown == 'null' || deepLinkModalLastShown == null) {\n
deepLinkModalLastShown = 0\n
}\n
\n
var upcomingMeetingDataForRedirect = window.localStorage.getItem('UNMData');\n
\n
var upcomingNextMeetingIdForRedirect = window.localStorage.getItem('UNMId');\n
var upcomingNextMeetingTsForRedirect = window.localStorage.getItem('UNMTs');\n
\n
if (upcomingMeetingDataForRedirect == 'null' || upcomingMeetingDataForRedirect == null) {\n
upcomingMeetingDataForRedirect = "[]"\n
}\n
if (upcomingNextMeetingIdForRedirect == 'null' || upcomingNextMeetingIdForRedirect == null) {\n
upcomingNextMeetingIdForRedirect = 0\n
}\n
if (upcomingNextMeetingTsForRedirect == 'null' || upcomingNextMeetingTsForRedirect == null) {\n
upcomingNextMeetingTsForRedirect = 0\n
}\n
\n
\n
upcomingMeetingDataForRedirect = JSON.parse(upcomingMeetingDataForRedirect);\n
\n
\n
var deepLinkModal = new bootstrap.Modal(document.getElementById('deepLinkModal'), {\n
keyboard: false\n
});\n
var bookNowModal = new bootstrap.Modal(document.getElementById('bookNowModal'), {\n
keyboard: false\n
});\n
var promptForInfoModal = new bootstrap.Modal(document.getElementById('promptForInfoModal'), {\n
keyboard: false\n
});\n
\n
var selectPurchaseModal = new bootstrap.Modal(document.getElementById('selectPurchaseModal'), {\n
keyboard: false\n
});\n
\n
{% if not countries_data is defined %}\n
{% set countries_data=''|getCountriesBuddyBee %}\n
{% endif %}\n
var countries_data ={{ countries_data|json_encode()|raw() }}\n
var topic_data_by_id = {}\n
\n
\n
var perSessionMinute = 20; // Current tab is set to be the first tab (0)\n
var COIN_GENERAL_MULT = 100; // Current tab is set to be the first tab (0)\n
var currentTab = 0; // Current tab is set to be the first tab (0)\n
var currentTabSelectPurchaseModal = 0; // Current tab is set to be the first tab (0)\n
var triggerRefreshUpcomingSession = 0; // Current tab is set to be the first tab (0)\n
// promptInfo_showTab(currentTab); // Display the current tab\n
\n
{% if (session[UserConstants.USER_ID] is defined ) %}\n
\n
function refreshOffCanvasCalendar(force) {\n
force = force || 0\n
if (offcanvasCalendarInitiated == 0) {\n
// alert('here')\n
$('#calendarHere').fullCalendar({\n
\n
\n
// $('#scheduleCalendar').fullCalendar({\n
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',\n
height: 554,\n
// header: false,\n
header: {\n
left: 'today prev,next',\n
center: 'title',\n
right: 'timelineDay,timelineWeek,timelineMonth,timelineYear,month',\n
\n
},\n
buttonText: {\n
\n
month: 'calendar',\n
timelineMonth: 'month',\n
\n
},\n
eventClick: function (calEvent, jsEvent, view) {\n
// console.log(calEvent)\n
swal({\n
title: calEvent.title,\n
text: 'Meeting On ' + calEvent.topic_name + ' on ' + moment.unix(calEvent.scheduled_time_ts).format('MMM DD, YYYY HH:mm'),\n
type: "info",\n
showCancelButton: true,\n
// confirmButtonColor: "#DD6B55",\n
confirmButtonText: "View!",\n
cancelButtonText: "Exit",\n
closeOnConfirm: false,\n
closeOnCancel: true,\n
timer: 10000,\n
}, function (isConfirm) {\n
if (isConfirm) {\n
\n
{% if BUDDYBEE_ADMIN_LEVEL >=1 %}\n
window.location.href = '{{ path('consultancy_session') }}/' + calEvent.id + '?adminView=1'\n
{% else %}\n
window.location.href = '{{ path('consultancy_session') }}/' + calEvent.id + ''\n
{% endif %}\n
\n
swal("Sweet!", "Taking you there. Please Wait", "success");\n
} else {\n
// swal("Oops", "You cannot do that!", "error");\n
}\n
});\n
\n
// alert('Event: ' + calEvent.title);\n
// alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY);\n
// alert('View: ' + view.name);\n
//\n
// // change the border color just for fun\n
// $(this).css('border-color', 'red');\n
\n
},\n
// themeSystem:'jquery-ui',\n
editable: true,\n
eventStartEditable: true,\n
eventDurationEditable: true,\n
droppable: true,\n
slotDuration: '00:30:00',\n
\n
defaultView: 'month',\n
eventRender: function (eventObj, $el) {\n
// $('#example').popover(options)\n
$el.popover({\n
title: eventObj.topic_name,\n
content: 'Meeting Between ' + eventObj.title + ' on ' + moment.unix(eventObj.scheduled_time_ts).format('MMM DD, YYYY HH:mm'),\n
trigger: 'hover',\n
placement: 'top',\n
container: 'body',\n
html: true,\n
template: '<div class="popover" role="tooltip">' +\n
'<div class="arrow">' +\n
'</div' +\n
'><h3 class="popover-header">' +\n
'</h3>' +\n
'<div class="popover-body">' +\n
'</div>' +\n
'<button class="btn btn-success">PIKA</button>' +\n
'</div>'\n
\n
});\n
},\n
// resourceAreaHeaderContent: 'Rooms',\n
resourceColumns: [\n
{\n
labelText: 'Schedule',\n
field: 'title'\n
}\n
\n
// {\n
// labelText: 'Occupancy',\n
// field: 'occupancy'\n
// }\n
],\n
resources: [],\n
views: {\n
basic: {\n
// options apply to basicWeek and basicDay views\n
},\n
agenda: {\n
slotDuration: '00:30:00',\n
// options apply to agendaWeek and agendaDay views\n
},\n
week: {\n
// options apply to basicWeek and agendaWeek views\n
},\n
day: {\n
// options apply to basicDay and agendaDay views\n
},\n
timelineWeek: {\n
groupByResource: true,\n
slotDuration: '00:30:00',\n
// options apply to basicDay and agendaDay views\n
}\n
},\n
drop: function (date, allDay) {\n
// this function is called when something is dropped\n
// retrieve the dropped element's stored Event Object\n
var originalEventObject = $(this).data('eventObject');\n
// we need to copy it, so that multiple events don't have a reference to the same object\n
var copiedEventObject = $.extend({}, originalEventObject);\n
// assign it the date that was reported\n
copiedEventObject.start = date;\n
copiedEventObject.allDay = allDay;\n
copiedEventObject.className = originalEventObject.className;\n
// render the event on the calendar\n
// the last `true` argument determines if the event "sticks" (http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/)\n
$('#scheduleCalendar').fullCalendar('renderEvent', copiedEventObject, true);\n
\n
// is the "remove after drop" checkbox checked?\n
if ($('#drop-remove').is(':checked')) {\n
// if so, remove the element from the "Draggable Events" list\n
$(this).remove();\n
}\n
},\n
\n
\n
events: [],\n
\n
});\n
offcanvasCalendarInitiated = 1;\n
}\n
\n
var currOpTs = moment().unix();\n
\n
if ((offCalendarLastRefreshedTs + 120) < currOpTs || force == 1) {\n
var pika_ind_id = 'NNNAI';\n
$.ajax({\n
url: BaseURL + "select_data_ajax_public",\n
type: 'POST',\n
dataType: 'json',\n
\n
data: {\n
//returnJson: 1, //required for CORS\n
//sessionData: sessionData //required only if using cordova for CORS\n
query: '_EMPTY_',\n
tableName: "entity_meeting_session",\n
entity_group: 1,\n
valueField: "session_id",\n
textField: "meeting_room_id",\n
// selectFieldList:[ ///skip this property for all fields\n
// 'client_name','client_id','address'\n
//\n
// ],\n
selectorId: 7,\n
isMultiple: 1,\n
itemLimit: '_ALL_', // for all : '_ALL_'\n
offset: 0, // default value:0 (from start)\n
orderByConditions: [ //sequential\n
\n
// {\n
// field: 'rating',\n
// fieldValues: [5,1,9],\n
// sortType:'ASC'\n
// },\n
// {\n
// field: 'is_featured',\n
// sortType:'DESC'\n
// },\n
{\n
field: 'scheduled_time_ts',\n
sortType: 'ASC'\n
}\n
],\n
dataId: pika_ind_id,\n
\n
// textField: "rendered_text",\n
//\n
// renderTextFormat: "#__id__ __name__",\n
// andConditions: [\n
// //{type: "like", field: "name", value: query},\n
// {type: "=", field: "delivery_receipt_id", value: $('.dr_id' + pika_ind_id).val()},\n
// {type: "=", field: "product_id", value: $('.selectize_me_ssp' + pika_ind_id).val()},\n
// {type: "=", field: "position", value: 3}\n
// ],\n
mustConditions: [\n
//{type: "like", field: "name", value: query},\n
//{type: "=", field: "delivery_rceipt_id", value: $('.dr_id' + pika_ind_id).val()},\n
//{type: "in", field: "alottment_tagged", value: [0,'null','']},\n
// {type: "<=", field: "scheduled_time_ts", value: moment().add('60', 'days').unix()},\n
\n
\n
{type: ">=", field: "scheduled_time_ts", value: moment().subtract('45', 'days').unix()},\n
// {type: "=", field: "product_id", value: $('.ssp' + pika_ind_id).val()},\n
// {type: "=", field: "warehouse_id", value: $('#warehouseId').val()},\n
// {type: "=", field: "warehouse_action_id", value: $('.wa' + pika_ind_id).val()},\n
// {type: "=", field: "position", value: 1}\n
\n
\n
],\n
\n
andOrConditions: [\n
{% if BUDDYBEE_ADMIN_LEVEL>=5 %}\n
\n
{% elseif BUDDYBEE_ADMIN_LEVEL >=1 %}\n
{# { #}\n
{# type: "in", #}\n
{# field: "is_admin", #}\n
{# value: [0, 'null'] #}\n
{# }, #}\n
{# { #}\n
{# type: "in", #}\n
{# field: "assigned_sales_representative_id", #}\n
{# value: [0, 'null',{{ session[UserConstants.USER_ID] }}] #}\n
{# }, #}\n
{% else %}\n
{type: "=", field: "student_id", value: {{ session[UserConstants.USER_ID] }}},\n
{type: "=", field: "consultant_id", value: {{ session[UserConstants.USER_ID] }}},\n
\n
{% endif %}\n
// {type: "like", field: "client_numerical_code", value: query},\n
// {type: "like", field: "client_name", value: query},\n
// {type: "like", field: "client_id", value: query},\n
// {type: "like", field: "contact_number", value: query},\n
// {type: "like", field: "email", value: query},\n
\n
\n
],\n
joinTableData: [\n
\n
\n
{\n
tableName: "entity_applicant_details",\n
joinFieldPrimary: "student_id",\n
joinOn: 'applicant_id',\n
selectPrefix: 'student_',\n
selectFieldList: [\n
'firstname', 'lastname', 'image', 'professional_title'\n
\n
]\n
},\n
{\n
tableName: "entity_create_topic",\n
joinFieldPrimary: "topic_id",\n
joinOn: 'id',\n
selectPrefix: 'topic_',\n
selectFieldList: [\n
'topic_name',\n
\n
]\n
},\n
{\n
tableName: "entity_applicant_details",\n
joinFieldPrimary: "consultant_id",\n
joinOn: 'applicant_id',\n
selectPrefix: 'consultant_',\n
selectFieldList: [\n
'firstname', 'lastname', 'image', 'professional_title', 'current_country_id'\n
\n
]\n
},\n
\n
],\n
convertDateToStringFieldList: [\n
{field: 'created_at', format: 'U'}\n
],\n
convertToObject: [\n
// 'carton_product_by_code_ids','another'\n
],\n
// setDataForSingle: 1,\n
\n
},\n
error: function () {\n
// callback();\n
},\n
success: function (res) {\n
\n
\n
offCalendarLastRefreshedTs = moment().unix()\n
// callback(res.data);\n
var str = '';\n
var currUnix = moment().unix();\n
var added_cntry_id = [];\n
var added_event_id = [];\n
$('#calendarHere').fullCalendar('addResource', {\n
id: 'cntry__OTHER_COUNTRIES_',\n
// parentId: 'a',\n
title: 'Others'\n
});\n
for (var t = 0; t < res.data.length; t++) {\n
var c_data = res.data[t];\n
if (c_data.consultant_current_country_id == '' || c_data.consultant_current_country_id == 0 || c_data.consultant_current_country_id == null)\n
c_data.consultant_current_country_id = '_OTHER_COUNTRIES_';\n
// // console.log('added_cntry_id')\n
// // console.log(added_cntry_id)\n
if (added_cntry_id.indexOf(c_data.consultant_current_country_id) != -1) {\n
\n
} else {\n
$('#calendarHere').fullCalendar('addResource', {\n
id: 'cntry_' + c_data.consultant_current_country_id,\n
// parentId: 'a',\n
title: typeof countries_data[c_data.consultant_current_country_id] !== 'undefined' ? countries_data[c_data.consultant_current_country_id]['name'] : ''\n
});\n
added_cntry_id.push(c_data.consultant_current_country_id)\n
}\n
if (added_event_id.indexOf(c_data.consultant_id + '_' + c_data.student_id) != -1) {\n
\n
} else {\n
$('#calendarHere').fullCalendar('addResource', {\n
id: 'r_' + c_data.consultant_id + '_' + c_data.student_id,\n
parentId: 'cntry_' + c_data.consultant_current_country_id,\n
title: c_data.consultant_firstname + ' -- ' + c_data.student_firstname\n
});\n
added_event_id.push(c_data.consultant_id + '_' + c_data.student_id)\n
}\n
var eventColor = 'darkgreen';\n
var textColor = '#fff';\n
var endTimeMoment = moment.unix(c_data.scheduled_time_ts).add(c_data.duration_left_min, 'minutes');\n
if (currUnix < c_data.scheduled_time_ts) {\n
//upcoming\n
if (c_data.is_paid_full == 1)\n
eventColor = '#fb7400';\n
else\n
eventColor = '#d586a3';\n
// textColor='#212529';\n
} else if (currUnix < endTimeMoment.unix())\n
eventColor = '#1d5b9e'; //ongoing\n
else\n
eventColor = 'darkgreen'; //completed\n
\n
\n
var eventObj2 = {\n
id: c_data.session_id,\n
color: eventColor,\n
textColor: textColor,\n
resourceId: 'r_' + c_data.consultant_id + '_' + c_data.student_id,\n
title: c_data.consultant_firstname + ' -- ' + c_data.student_firstname,\n
consultant_id: c_data.consultant_id,\n
student_id: c_data.student_id,\n
meeting_room_id: c_data.meeting_room_id,\n
scheduled_time_ts: c_data.scheduled_time_ts,\n
topic_id: c_data.topic_id,\n
topic_name: c_data.topic_topic_name,\n
session_value: c_data.session_value,\n
consultant_firstname: c_data.consultant_firstname,\n
consultant_lastname: c_data.consultant_lastname,\n
student_firstname: c_data.student_firstname,\n
student_lastname: c_data.student_lastname,\n
\n
start: moment.unix(c_data.scheduled_time_ts).add(0, 'days'),\n
end: endTimeMoment,\n
allDay: false\n
};\n
// eventArray.push(eventObj2)\n
$('#calendarHere').fullCalendar('renderEvent', eventObj2, true);\n
\n
}\n
\n
\n
}\n
});\n
\n
}\n
}\n
{% endif %}\n
\n
\n
function stepShowTab(n, parentSelector) {\n
// alert('here')\n
// This function will display the specified tab of the form...\n
\n
parentSelector = parentSelector || '#selectPurchaseModal'\n
\n
var prevN = -1;\n
$(parentSelector + ' .stepIndicator.active').each(function (gg, elem) {\n
prevN = 1 * $(elem).data('seqId');\n
\n
});\n
\n
var newN = 0;\n
\n
if (n === '+1') {\n
newN = (1 * prevN) + 1;\n
} else if (n === '-1') {\n
newN = (1 * prevN) - 1;\n
\n
} else\n
newN = n;\n
\n
\n
if (!$(parentSelector + ' .stepIndicator.seq_' + newN).length)\n
newN = (1 * prevN);\n
\n
\n
if (!$(parentSelector + ' .stepIndicator.seq_' + (newN + 1)).length)\n
$(parentSelector + " .nextBtn").text('Confirm');\n
else\n
$(parentSelector + " .nextBtn").text('Next');\n
\n
if (!$(parentSelector + ' .stepIndicator.seq_' + (newN - 1)).length)\n
$(parentSelector + " .prevBtn").hide();\n
else\n
$(parentSelector + " .prevBtn").show();\n
\n
// alert(prevN)\n
// alert(newN)\n
// alert($(parentSelector+' .stepIndicator.seq_'+(newN+1)).length)\n
\n
\n
if (prevN == newN) {\n
$(parentSelector).modal('hide')\n
return false;\n
}\n
\n
\n
$(parentSelector + ' .stepIndicator').removeClass('active')\n
$(parentSelector + ' .step').hide()\n
$(parentSelector + ' .step.seq_' + newN).show()\n
for (var gg = 0; gg <= newN; gg++)\n
$(parentSelector + ' .stepIndicator.seq_' + gg).addClass('active')\n
\n
var triggerFunc = $(parentSelector + ' .step.seq_' + newN).attr('data-trigger-function');\n
\n
\n
if (typeof triggerFunc !== 'undefined' && triggerFunc !== false) {\n
window[triggerFunc]();\n
\n
}\n
\n
\n
}\n
\n
function selectDataOnPurchaseModal(cntry_id, t_id, cons_id, sch_ids, additional_coins) {\n
options = {\n
countryId: 0,\n
topicId: 0,\n
consultantId: 0,\n
scheduleIds: [],\n
}\n
\n
}\n
\n
function submitPurchaseModalData() {\n
\n
var data = {}\n
\n
}\n
\n
function populateTopicListOnPurchaseModal(countryId, query) {\n
var pika_ind_id = "_NA_";\n
$('#selectPurchaseModal .topic_holder').empty();\n
\n
$.ajax({\n
url: BaseURL + "select_data_ajax_public",\n
type: 'POST',\n
dataType: 'json',\n
data: {\n
//returnJson: 1,\n
//sessionData: sessionData\n
query: query,\n
tableName: "entity_create_topic",\n
valueField: "id",\n
textField: "topic_name",\n
entity_group: 1,\n
selectorId: '_NA_',\n
isMultiple: 0,\n
dataId: pika_ind_id,\n
\n
\n
// isMultiple: 0,\n
\n
//textField: "rendered_text",\n
//\n
//renderTextFormat: "#__id__ __name__",\n
andConditions: [],\n
andOrConditions: [],\n
mustConditions: [\n
\n
{type: "=", field: "consultancy_enabled", value: 1},\n
{type: "=", field: "country_id", value: countryId},\n
\n
{# {% if not curr_data is empty %} #}\n
{# {type: "in", field: "id", value: {{ curr_data|json_encode|raw() }} }, #}\n
{# {% else %} #}\n
{# {% if consultantDetails.isAdmin>0 %} #}\n
{# {type: "like", field: "topic_marker", value: '_support_ _report_to_admin_'}, #}\n
\n
\n
{# {% else %} #}\n
{# {type: "!=", field: "only_bookable_by_admin", value: '1'}, #}\n
{# {type: "not like", field: "topic_marker", value: '_support_'}, #}\n
{# {type: "not like", field: "topic_marker", value: '_report_to_admin_'}, #}\n
{# {% endif %} #}\n
{# {% endif %} #}\n
],\n
convertToObject: [\n
'routine_data'\n
],\n
skipDefaultCompanyId: 1\n
// setDataForSingle: 1,\n
\n
},\n
error: function () {\n
// callback();\n
},\n
success: function (res) {\n
\n
topic_data_by_id = res.dataById\n
for (var jj = 0; jj < res.data.length; jj++) {\n
var dt = res.data[jj];\n
\n
var is_package = 0;\n
if (dt['topic_marker'] != null)\n
if (dt['topic_marker'].indexOf('_package_') !== -1)\n
is_package = 1;\n
var ggStr = ' <div class="box-selector tp_selector tp_' + dt['id'] + ' col-md-3 col-sm-6"' +\n
' data-id="' + dt['id'] + '" ' +\n
' data-gen-class="tp_selector" ' +\n
'>' +\n
'<div class="inside">' +\n
' <div class="img" style="' +\n
"background:url(' {{ absolute_url(path('dashboard')) }}" + dt['topic_image'] + "');" +\n
' height: 50px !important;width: 100%;background-position: center;background-size: contain;background-repeat: no-repeat;"></div>' +\n
'<h6 class="title" style="height: 3rem; font-size:12px">' + dt['topic_name'] + '</h6> ' +\n
// '<p class="sub-title">'+dt['topic_summary']+'</p>' +\n
'<p class="sub-title" style="text-align:center;">' + (is_package == 1 ? 'Package' : (dt['meeting_type'] == 2 ? 'Offline Process' : 'Online Session')) + '</p>' +\n
// '<p class="sub-title">'+dt['topic_summary']+'</p>' +\n
'</div></div>';\n
\n
$('#selectPurchaseModal .topic_holder').append(ggStr);\n
}\n
\n
\n
}\n
});\n
}\n
\n
function populateConsultantListOnPurchaseModal(tpId, query) {\n
var pika_ind_id = "_NA_";\n
$('#selectPurchaseModal .cons_holder').empty();\n
\n
$.ajax({\n
url: BaseURL + "select_data_ajax_public",\n
type: 'POST',\n
dataType: 'json',\n
data: {\n
//returnJson: 1,\n
//sessionData: sessionData\n
query: query,\n
tableName: "entity_applicant_details",\n
valueField: "applicant_id",\n
textField: "firstname",\n
entity_group: 1,\n
selectorId: '_NA_',\n
isMultiple: 0,\n
dataId: pika_ind_id,\n
\n
\n
// isMultiple: 0,\n
\n
//textField: "rendered_text",\n
//\n
//renderTextFormat: "#__id__ __name__",\n
andConditions: [],\n
andOrConditions: [\n
{type: "like", field: "preferred_topic_ids_as_consultant", value: '"' + tpId + '"'},\n
{type: "like", field: "preferred_topic_ids_as_consultant", value: '[]'},\n
// {type: "like", field: "preferred_topic_ids_as_consultant", value: ''},\n
// {type: "like", field: "preferred_topic_ids_as_consultant", value: 'null'},\n
{type: "=", field: "preferred_topic_ids_as_consultant", value: 'null'},\n
],\n
mustConditions: [\n
\n
{type: "=", field: "is_consultant", value: 1},\n
\n
{# {% if not curr_data is empty %} #}\n
{# {type: "in", field: "id", value: {{ curr_data|json_encode|raw() }} }, #}\n
{# {% else %} #}\n
{# {% if consultantDetails.isAdmin>0 %} #}\n
{# {type: "like", field: "topic_marker", value: '_support_ _report_to_admin_'}, #}\n
\n
\n
{# {% else %} #}\n
{# {type: "!=", field: "only_bookable_by_admin", value: '1'}, #}\n
{# {type: "not like", field: "topic_marker", value: '_support_'}, #}\n
{# {type: "not like", field: "topic_marker", value: '_report_to_admin_'}, #}\n
{# {% endif %} #}\n
{# {% endif %} #}\n
],\n
convertToObject: [\n
'routine_data'\n
],\n
skipDefaultCompanyId: 1\n
// setDataForSingle: 1,\n
\n
},\n
error: function () {\n
// callback();\n
},\n
success: function (res) {\n
\n
// topic_data_by_id = res.dataById\n
for (var jj = 0; jj < res.data.length; jj++) {\n
var dt = res.data[jj];\n
var ggStr = ' <div class="box-selector cons_selector cons_' + dt['id'] + ' col-md-3 col-sm-6"' +\n
' data-id="' + dt['applicant_id'] + '" ' +\n
' data-gen-class="cons_selector" ' +\n
'>' +\n
'<div class="inside">' +\n
' <div class="img" style="' +\n
"background:url(' {{ absolute_url(path('dashboard')) }}" + dt['image'] + "');" +\n
' height: 50px !important;width: 100%;background-position: center;background-size: contain;background-repeat: no-repeat;"></div>' +\n
'<h6 class="title" style="height: 2rem; font-size:12px">' + dt['firstname'] + ' ' + dt['lastname'] + '</h6> ' +\n
// '<p class="sub-title">'+dt['topic_summary']+'</p>' +\n
'</div></div>';\n
\n
$('#selectPurchaseModal .cons_holder').append(ggStr);\n
}\n
\n
\n
// alert('pika master')\n
\n
}\n
});\n
}\n
\n
function populateScheduleListOnPurchaseModal(consId, durValue, query) {\n
var pika_ind_id = "_NA_";\n
// $('#selectPurchaseModal .sch_holder').empty();\n
$('#selectPurchaseModal .sch_holder_month').empty();\n
$('#selectPurchaseModal .sch_holder_day').empty();\n
$('#selectPurchaseModal .sch_holder_time').empty();\n
durValue = durValue || 30;\n
\n
\n
var options = {\n
'_NEXT_60_DAYS_': 1,\n
// '_THIS_DAY_':1,\n
// '_NEXT_DAYS_':20,\n
}\n
\n
$.ajax({\n
url: BaseURL + 'get_consultant_schedules',\n
type: 'POST',\n
dataType: 'json',\n
data: {\n
consultantId: consId,\n
startDateStr: '@' + moment().unix(),\n
// endDateStr: $('#preferredScheduleDate').val() + ' 23:59:59 ' + moment().format("ZZ"),\n
endDateStr: '',\n
durationMin: durValue,\n
// durationMin: sessionDurationSelector.getValue() != '' ? perSessionMinute * sessionDurationSelector.getValue() : 90,\n
\n
options: options,\n
returnJson: 1\n
\n
\n
},\n
\n
error: function () {\n
// callback();\n
},\n
success: function (res) {\n
;\n
// $('#').val(res.);\n
\n
$('#selectPurchaseModal .view_if_has_schedules').hide();\n
\n
if (res.success == true) {\n
//// for (var l = 0; l < res.sessionsArray.length; l++) {\n
//// $('#rescheduledSemesterSelector').append($("<option></option>").attr("value", res.sessionsArray[l].id).text(res.sessionsArray[l].name));\n
//// }\n
\n
for (var jj = 0; jj < res.data.scheduleList.length; jj++) {\n
var sch_dt = res.data.scheduleList[jj];\n
\n
\n
var ggStr = ' <div class="box-selector sch_selector_time ' +\n
'sch_mon_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM') + ' ' +\n
'sch_day_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM_DD') + ' ' +\n
'sch_' + sch_dt['timeUnix'] + ' ' +\n
'sch_' + sch_dt['timeUnix'] + ' col-md-3 col-sm-6"' +\n
' data-id="' + sch_dt['timeUnix'] + '" ' +\n
' data-gen-class="sch_selector_time" ' +\n
'>' +\n
'<div class="inside">' +\n
{# ' <div class="img" style="' + #}\n
{# "background:url(' {{ absolute_url(path('dashboard')) }}"+dt['image']+"');"+ #}\n
{# ' height: 50px !important;width: 100%;background-position: center;background-size: contain;background-repeat: no-repeat;"></div>' + #}\n
'<h6 class="title" style="">' + (moment.unix(sch_dt['timeUnix']).format('HH:mm')) + '</h6> ' +\n
// '<p class="sub-title">'+dt['topic_summary']+'</p>' +\n
'</div></div>';\n
\n
var ggStrday = ' <div class="box-selector sch_selector_day ' +\n
'sch_mon_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM') + ' ' +\n
'sch_day_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM_DD') + ' col-md-3 col-sm-6"' +\n
' data-id="' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM_DD') + '" ' +\n
' data-gen-class="sch_selector_day" ' +\n
'>' +\n
'<div class="inside">' +\n
{# ' <div class="img" style="' + #}\n
{# "background:url(' {{ absolute_url(path('dashboard')) }}"+dt['image']+"');"+ #}\n
{# ' height: 50px !important;width: 100%;background-position: center;background-size: contain;background-repeat: no-repeat;"></div>' + #}\n
'<h6 class="title" style="">' + (moment.unix(sch_dt['timeUnix']).format('DD')) + '</h6> ' +\n
// '<p class="sub-title">'+dt['topic_summary']+'</p>' +\n
'</div></div>';\n
\n
\n
var ggStrmon = ' <div class="box-selector sch_selector_mon ' +\n
'sch_mon_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM') + ' ' +\n
// 'sch_day'+moment.unix(sch_dt['timeUnix']).format('YYYY_MM')+' ' +\n
\n
' col-md-3 col-sm-6"' +\n
' data-id="' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM') + '" ' +\n
' data-gen-class="sch_selector_mon" ' +\n
'>' +\n
'<div class="inside">' +\n
{# ' <div class="img" style="' + #}\n
{# #}{# "background:url(' {{ absolute_url(path('dashboard')) }}"+dt['image']+"');"+ #}\n
{# ' height: 50px !important;width: 100%;background-position: center;background-size: contain;background-repeat: no-repeat;"></div>' + #}\n
'<h6 class="title" style="">' + (moment.unix(sch_dt['timeUnix']).format('MMM')) + '</h6> ' +\n
// '<p class="sub-title">'+dt['topic_summary']+'</p>' +\n
'</div></div>';\n
if (!$('.sch_selector_mon.sch_mon_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM')).length)\n
$('#selectPurchaseModal .sch_holder_month').append(ggStrmon);\n
if (!$('.sch_selector_day.sch_day_' + moment.unix(sch_dt['timeUnix']).format('YYYY_MM_DD')).length)\n
$('#selectPurchaseModal .sch_holder_day').append(ggStrday);\n
\n
$('#selectPurchaseModal .sch_holder_time').append(ggStr);\n
}\n
\n
if (res.data.scheduleList.length > 0) {\n
\n
$('#selectPurchaseModal h5.view_if_has_schedules').css('display', 'block');\n
$('#selectPurchaseModal p.view_if_has_schedules').css('display', 'block');\n
$('#selectPurchaseModal div.row.view_if_has_schedules').css('display', 'flex');\n
\n
}\n
\n
$('.sch_' + res.data.closestDateTs).trigger('click');\n
\n
\n
// rescheduledconsultancyScheduleSelector.clear();\n
// rescheduledconsultancyScheduleSelector.disable();\n
// rescheduledconsultancyScheduleSelector.clearOptions();\n
// rescheduledconsultancyScheduleSelector.load(function (callback) {\n
//\n
// rescheduledconsultancyScheduleSelector.enable();\n
// var modifiedList = [];\n
// for (var l = 0; l < res.data.scheduleList.length; l++) {\n
// var sch_dt = res.data.scheduleList[l];\n
// sch_dt['time_user_zone'] = moment.unix(sch_dt['timeUnix']).format('MMM DD, YYYY HH:mm');\n
// // sch_dt['time_user_zone']=sch_dt['time'];\n
// modifiedList.push(sch_dt);\n
// }\n
//\n
//\n
// callback(modifiedList);\n
//\n
//\n
// });\n
// rescheduledconsultancyScheduleSelector.setValue(res.data.closestDateTs)\n
\n
\n
} else {\n
\n
\n
}\n
\n
}\n
});\n
\n
\n
}\n
\n
function refreshRoutinePackageListOnPurchaseModal(t_id) {\n
var dt = [];\n
$('#selectPurchaseModal .routineTable tbody').empty();\n
var topicIdForRoutine = t_id;\n
// var sessionDurationSelectorValue=sessionDurationSelector.getValue();\n
var sessionDurationSelectorValue = 100;\n
// var scheduledTimeTsValue=consultancyScheduleSeletor.getValue();\n
var scheduledTimeTsValue = moment().unix();\n
if (typeof topic_data_by_id[topicIdForRoutine] !== 'undefined') {\n
\n
if (topic_data_by_id[topicIdForRoutine]['routine_data'].length) {\n
dt = topic_data_by_id[topicIdForRoutine]['routine_data'];\n
} else {\n
dt = [\n
{\n
sequence: 1,\n
topicId: topicIdForRoutine,\n
topicName: topic_data_by_id[topicIdForRoutine]['topic_name'],\n
meetingType: topic_data_by_id[topicIdForRoutine]['meeting_type'],\n
duration: sessionDurationSelectorValue != '' ? (perSessionMinute * sessionDurationSelectorValue) / (COIN_GENERAL_MULT * 1) : 0,\n
offset: 0,\n
coins: sessionDurationSelectorValue != '' ? (1 * sessionDurationSelectorValue) : 0,\n
scheduledTimeTs: scheduledTimeTsValue != '' ? (1 * scheduledTimeTsValue) : 0,\n
\n
nextSequenceStart: 0,\n
modifiable: 0,\n
\n
\n
}\n
];\n
\n
}\n
}\n
for (var poi = 0; poi < dt.length; poi++) {\n
var cc_pika = dt[poi];\n
\n
if (cc_pika['meetingType'] == 2) //offline\n
{\n
$('#selectPurchaseModal .routineTable tbody').append(\n
'<tr>' +\n
'<td>' + cc_pika.topicName + '</td>' +\n
'<td style="text-align: left;"><b>Deliverable</b><br>' +\n
'Bee Coins: ' + cc_pika.coins + '<br>' +\n
(typeof cc_pika.scheduledDateTs !== 'undefined' ?\n
\n
('Lead Dt.<br>' + (cc_pika.scheduledTimeTs == 0 ? '' : moment.unix(cc_pika.scheduledDateTs).format('MMMM DD, YYYY HH:mm ZZ'))) :\n
('')\n
) +\n
\n
'</td>' +\n
'<td>' +\n
'<input class="routineCoinNeeded" name="routine_coins[]" type="hidden" value="' + cc_pika.coins + '">' +\n
'<input class="routineTopicId" name="routine_topic_id[]" type="hidden" value="' + cc_pika.topicId + '">' +\n
\n
(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>') +\n
// '<a class="icon-delete" href="javascript:void(0);"><i class="fa fa-times"></i></a>' +\n
'</td>' +\n
'</tr>'\n
)\n
\n
} else {\n
{\n
$('#selectPurchaseModal .routineTable tbody').append(\n
'<tr>' +\n
'<td>' + cc_pika.topicName + '</td>' +\n
'<td style="text-align: left;"><b>Online</b><br>' +\n
'Bee Coins: ' + cc_pika.coins + '<br>' +\n
'Duration: ' + cc_pika.duration + '<br>' +\n
(typeof cc_pika.scheduledTimeTs !== 'undefined' ?\n
\n
('Scheduled Time: <br>' + (cc_pika.scheduledTimeTs == 0 ? '' : moment.unix(cc_pika.scheduledTimeTs).format('MMMM DD, YYYY HH:mm ZZ'))) :\n
('')\n
) +\n
\n
'</td>' +\n
'<td>' +\n
'<input class="routineCoinNeeded" name="routine_coins[]" type="hidden" value="' + cc_pika.coins + '">' +\n
'<input class="routineTopicId" name="routine_topic_id[]" type="hidden" value="' + cc_pika.topicId + '">' +\n
(typeof cc_pika.modifiable == 1 ? '<a class="icon-check isChecked modifiable" href="javascript:void(0);"><i class="fa fa-check"></i></a>' :\n
'<a class="icon-check isChecked " href="javascript:void(0);"><i class="fa fa-check"></i></a>') +\n
// '<a class="icon-delete" href="javascript:void(0);"><i class="fa fa-check"></i></a>' +\n
// '<a class="icon-delete" href="javascript:void(0);"><i class="fa fa-times"></i></a>' +\n
'</td>' +\n
'</tr>'\n
)\n
\n
}\n
}\n
\n
}\n
recalculateRoutinePackageOnPurchaseModal();\n
}\n
\n
function recalculateRoutinePackageOnPurchaseModal() {\n
var tot_coin = 0;\n
$('#selectPurchaseModal .routineTable .icon-check').each(function (indy, elem) {\n
if ($(elem).hasClass('isChecked'))\n
tot_coin += (1 * $('#selectPurchaseModal .routineTable .routineCoinNeeded').eq(indy).val())\n
})\n
$('#selectPurchaseModal .routineCoinNeededTotalInput').val(tot_coin)\n
$('#selectPurchaseModal .routineCoinNeededTotalSpan').text(tot_coin)\n
}\n
\n
function initiate_prompt_info_modal() {\n
\n
if ($('#promptForInfoModal #currentCountryIdPromptForInfo').length)\n
$('#promptForInfoModal #currentCountryIdPromptForInfo').selectize({\n
placeholder: 'Select Your Current Country',\n
// options: APTL.productListArray,\n
options: [],\n
valueField: 'value',\n
labelField: 'text',\n
preload: 'focus',\n
\n
searchField: ['text', 'value'],\n
// render: {\n
// option: function (item, escape) {\n
// return '<div class="p-l-10 p-r-10">'\n
// + '<h6>' + escape(item[label_for_product]) + '</h6> '\n
// + '<span>Code:' + escape(item.productCode) + '</span> '\n
// //+ '<span>Name:'+item.name+'</span> '\n
// //+ '<span>DEBUG:'+item.score+'</span>'\n
// + '</div>';\n
// }\n
// },\n
onChange: function (value) {\n
if (!value) return;\n
\n
// productId = preliminary_reg_data_by_id[value]['product_id']\n
// getbomData();\n
\n
\n
//\n
\n
},\n
load: function (query, callback) {\n
// if (!query.length) return // callback();\n
if (!query.length) query = '_EMPTY_';\n
\n
var pika_ind_id = $($(this)[0].$input["0"]).attr('data-id')\n
$.ajax({\n
url: BaseURL + "select_data_ajax",\n
type: 'POST',\n
dataType: 'json',\n
data: {\n
//returnJson: 1,\n
//sessionData: sessionData\n
query: query,\n
tableName: "entity_countries",\n
valueField: "country_id",\n
textField: "name_en",\n
entity_group: 1,\n
selectorId: $($(this)[0].$input["0"]).attr('id'),\n
isMultiple: 0,\n
dataId: pika_ind_id,\n
\n
\n
// isMultiple: 0,\n
\n
//textField: "rendered_text",\n
//\n
//renderTextFormat: "#__id__ __name__",\n
andConditions: [\n
{type: "like", field: "name_en", value: query}\n
],\n
mustConditions: [\n
// {type: "=", field: "approved", value: 1}\n
],\n
convertToObject: [\n
// 'accessories', 'issues'\n
],\n
skipDefaultCompanyId: 1\n
// setDataForSingle: 1,\n
\n
},\n
error: function () {\n
// callback();\n
},\n
success: function (res) {\n
\n
// preliminary_reg_data_by_id = res.dataById\n
callback(res.data);\n
\n
\n
if (res.setValueArray.length != 0 && res.selectorId != '') {\n
if (res.isMultiple == 1)\n
$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)\n
else\n
$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)\n
}\n
// alert('pika master')\n
\n
}\n
});\n
},\n
\n
onLoad: function (data) {\n
// // console.log(data)\n
// alert('here')\n
if (!data.length) return;\n
\n
// pbcs.open()\n
if (data.length == 1) {\n
// alert('hi')\n
// productionScheduleSelector.setValue(data[0].value)\n
}\n
\n
}\n
\n
});\n
if ($('#promptForInfoModal #preferredConsultancyTopicCountryIdsPromptForInfo').length)\n
$('#promptForInfoModal #preferredConsultancyTopicCountryIdsPromptForInfo').selectize({\n
placeholder: 'Select Your Preferred Country',\n
// options: APTL.productListArray,\n
options: [],\n
valueField: 'value',\n
labelField: 'text',\n
preload: 'focus',\n
\n
searchField: ['text', 'value'],\n
// render: {\n
// option: function (item, escape) {\n
// return '<div class="p-l-10 p-r-10">'\n
// + '<h6>' + escape(item[label_for_product]) + '</h6> '\n
// + '<span>Code:' + escape(item.productCode) + '</span> '\n
// //+ '<span>Name:'+item.name+'</span> '\n
// //+ '<span>DEBUG:'+item.score+'</span>'\n
// + '</div>';\n
// }\n
// },\n
onChange: function (value) {\n
if (!value) return;\n
\n
// productId = preliminary_reg_data_by_id[value]['product_id']\n
// getbomData();\n
\n
\n
//\n
\n
},\n
load: function (query, callback) {\n
// if (!query.length) return // callback();\n
if (!query.length) query = '_EMPTY_';\n
\n
var pika_ind_id = $($(this)[0].$input["0"]).attr('data-id')\n
$.ajax({\n
url: BaseURL + "select_data_ajax",\n
type: 'POST',\n
dataType: 'json',\n
data: {\n
//returnJson: 1,\n
//sessionData: sessionData\n
query: query,\n
tableName: "entity_countries",\n
valueField: "country_id",\n
textField: "name_en",\n
entity_group: 1,\n
selectorId: $($(this)[0].$input["0"]).attr('id'),\n
isMultiple: 1,\n
dataId: pika_ind_id,\n
\n
\n
// isMultiple: 0,\n
\n
//textField: "rendered_text",\n
//\n
//renderTextFormat: "#__id__ __name__",\n
andConditions: [\n
{type: "like", field: "name_en", value: query}\n
],\n
mustConditions: [\n
// {type: "=", field: "approved", value: 1}\n
],\n
convertToObject: [\n
// 'accessories', 'issues'\n
],\n
skipDefaultCompanyId: 1\n
// setDataForSingle: 1,\n
\n
},\n
error: function () {\n
// callback();\n
},\n
success: function (res) {\n
\n
// preliminary_reg_data_by_id = res.dataById\n
callback(res.data);\n
\n
\n
if (res.setValueArray.length != 0 && res.selectorId != '') {\n
if (res.isMultiple == 1)\n
$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)\n
else\n
$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)\n
}\n
// alert('pika master')\n
\n
}\n
});\n
},\n
\n
onLoad: function (data) {\n
// // console.log(data)\n
// alert('here')\n
if (!data.length) return;\n
\n
// pbcs.open()\n
if (data.length == 1) {\n
// alert('hi')\n
// productionScheduleSelector.setValue(data[0].value)\n
}\n
\n
}\n
\n
});\n
if ($('#promptForInfoModal #preferredTopicIdsAsStudentPromptForInfo').length)\n
$('#promptForInfoModal #preferredTopicIdsAsStudentPromptForInfo').selectize({\n
placeholder: 'Preferred Topic Ids as Student',\n
multiple: true,\n
// options: APTL.productListArray,\n
options: [],\n
valueField: 'value',\n
labelField: 'text',\n
preload: 'focus',\n
\n
searchField: ['text', 'value'],\n
// render: {\n
// option: function (item, escape) {\n
// return '<div class="p-l-10 p-r-10">'\n
// + '<h6>' + escape(item[label_for_product]) + '</h6> '\n
// + '<span>Code:' + escape(item.productCode) + '</span> '\n
// //+ '<span>Name:'+item.name+'</span> '\n
// //+ '<span>DEBUG:'+item.score+'</span>'\n
// + '</div>';\n
// }\n
// },\n
onChange: function (value) {\n
if (!value) return;\n
\n
// productId = preliminary_reg_data_by_id[value]['product_id']\n
// getbomData();\n
\n
\n
//\n
\n
},\n
load: function (query, callback) {\n
// if (!query.length) return // callback();\n
if (!query.length) query = '_EMPTY_';\n
\n
var pika_ind_id = $($(this)[0].$input["0"]).attr('data-id')\n
$.ajax({\n
url: BaseURL + "select_data_ajax",\n
type: 'POST',\n
dataType: 'json',\n
data: {\n
//returnJson: 1,\n
//sessionData: sessionData\n
query: query,\n
tableName: "entity_create_topic",\n
valueField: "id",\n
textField: "topic_name",\n
entity_group: 1,\n
selectorId: $($(this)[0].$input["0"]).attr('id'),\n
isMultiple: 1,\n
dataId: pika_ind_id,\n
\n
\n
// isMultiple: 0,\n
\n
//textField: "rendered_text",\n
//\n
//renderTextFormat: "#__id__ __name__",\n
andConditions: [\n
{type: "like", field: "topic_name", value: query}\n
],\n
mustConditions: [\n
{type: "=", field: "consultancy_enabled", value: 1}\n
],\n
convertToObject: [\n
// 'accessories', 'issues'\n
],\n
skipDefaultCompanyId: 1\n
// setDataForSingle: 1,\n
\n
},\n
error: function () {\n
// callback();\n
},\n
success: function (res) {\n
\n
// preliminary_reg_data_by_id = res.dataById\n
callback(res.data);\n
\n
\n
if (res.setValueArray.length != 0 && res.selectorId != '') {\n
if (res.isMultiple == 1)\n
$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)\n
else\n
$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)\n
}\n
// alert('pika master')\n
\n
}\n
});\n
},\n
\n
onLoad: function (data) {\n
// console.log(data)\n
// alert('here')\n
if (!data.length) return;\n
\n
// pbcs.open()\n
if (data.length == 1) {\n
// alert('hi')\n
// productionScheduleSelector.setValue(data[0].value)\n
}\n
\n
}\n
\n
});\n
if ($('#promptForInfoModal #preferredTopicIdsAsConsultantPromptForInfo').length)\n
$('#promptForInfoModal #preferredTopicIdsAsConsultantPromptForInfo').selectize({\n
placeholder: 'Preferred Topic Ids as Consultant',\n
multiple: true,\n
// options: APTL.productListArray,\n
options: [],\n
valueField: 'value',\n
labelField: 'text',\n
preload: 'focus',\n
\n
searchField: ['text', 'value'],\n
// render: {\n
// option: function (item, escape) {\n
// return '<div class="p-l-10 p-r-10">'\n
// + '<h6>' + escape(item[label_for_product]) + '</h6> '\n
// + '<span>Code:' + escape(item.productCode) + '</span> '\n
// //+ '<span>Name:'+item.name+'</span> '\n
// //+ '<span>DEBUG:'+item.score+'</span>'\n
// + '</div>';\n
// }\n
// },\n
onChange: function (value) {\n
if (!value) return;\n
\n
// productId = preliminary_reg_data_by_id[value]['product_id']\n
// getbomData();\n
\n
\n
//\n
\n
},\n
load: function (query, callback) {\n
// if (!query.length) return // callback();\n
if (!query.length) query = '_EMPTY_';\n
\n
var pika_ind_id = $($(this)[0].$input["0"]).attr('data-id')\n
$.ajax({\n
url: BaseURL + "select_data_ajax",\n
type: 'POST',\n
dataType: 'json',\n
data: {\n
//returnJson: 1,\n
//sessionData: sessionData\n
query: query,\n
tableName: "entity_create_topic",\n
valueField: "id",\n
textField: "topic_name",\n
entity_group: 1,\n
selectorId: $($(this)[0].$input["0"]).attr('id'),\n
isMultiple: 1,\n
dataId: pika_ind_id,\n
\n
\n
// isMultiple: 0,\n
\n
//textField: "rendered_text",\n
//\n
//renderTextFormat: "#__id__ __name__",\n
andConditions: [\n
{type: "like", field: "topic_name", value: query}\n
],\n
mustConditions: [\n
{type: "=", field: "consultancy_enabled", value: 1}\n
],\n
convertToObject: [\n
// 'accessories', 'issues'\n
],\n
skipDefaultCompanyId: 1\n
// setDataForSingle: 1,\n
\n
},\n
error: function () {\n
// callback();\n
},\n
success: function (res) {\n
\n
// preliminary_reg_data_by_id = res.dataById\n
callback(res.data);\n
\n
\n
if (res.setValueArray.length != 0 && res.selectorId != '') {\n
if (res.isMultiple == 1)\n
$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)\n
else\n
$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)\n
}\n
// alert('pika master')\n
\n
}\n
});\n
},\n
\n
onLoad: function (data) {\n
// console.log(data)\n
// alert('here')\n
if (!data.length) return;\n
\n
// pbcs.open()\n
if (data.length == 1) {\n
// alert('hi')\n
// productionScheduleSelector.setValue(data[0].value)\n
}\n
\n
}\n
\n
});\n
\n
\n
$('.promptForInfoAutoUpdateData').not('.selectize-control').change(function () {\n
\n
// // console.log('* The text was changed');\n
$.post('{{ url('update_inline_value') }}', {\n
// returnJson: 1,\n
// sessionData: sessionData\n
\n
entityName: typeof $(this).data('entityName') !== 'undefined' ? $(this).data('entityName') : 'EntityApplicantDetails',\n
entityBundle: typeof $(this).data('entityBundle') !== 'undefined' ? $(this).data('entityBundle') : 'CompanyGroup',\n
\n
\n
setValue: $(this).val(),\n
\n
relevantRequiredPromptField: $(this).data('relevantPromptField'),\n
clearRequiredPromptFlag: 1,\n
setMethod: $(this).data('setMethod'),\n
\n
findField: typeof $(this).data('findField') !== 'undefined' ? $(this).data('findField') : 'applicantId',\n
findValue: typeof $(this).data('findValue') !== 'undefined' ? $(this).data('findValue') : '{{ session[UserConstants.USER_ID] is defined? session[UserConstants.USER_ID]:0 }}',\n
fieldType: typeof $(this).data('fieldType') !== 'undefined' ? $(this).data('fieldType') : '_TEXT_',\n
\n
\n
modifyTransDateFlag: typeof $(this).data('modifyTransDate') !== 'undefined' ? $(this).data('modifyTransDate') : 0,\n
\n
{# findValue: {{ consultantDetails.applicantId }}, #}\n
\n
})\n
.done(function (data) {\n
// console.log(data);\n
\n
// if (data.success == true) {\n
// swal({\n
// title: "Sweet!",\n
// text: "Updated",\n
// imageUrl: BaseURL + "images/thumbs-up.png"\n
// });\n
//// alertify.success("Order Confirmation Done");\n
//\n
//\n
// } else {\n
// swal({\n
// title: "Sorry!",\n
// text: "Your Action failed !",\n
// imageUrl: BaseURL + "images/Bee_Sad_Emote.png"\n
// });\n
//// alertify.success("Order Confirmation Failed");\n
//\n
//// $('#barcode_selector_cont').waitMe('hide');\n
//\n
// }\n
})\n
.fail(function () {\n
\n
\n
});\n
\n
\n
});\n
\n
\n
document.getElementById('promptForInfoModal').addEventListener('hidden.bs.modal', function (event) {\n
$('.promptForInfoAutoUpdateData').not('.selectize-control').trigger('change');\n
\n
})\n
promptForInfoModal.show();\n
promptInfo_showTab(currentTab); // Display the current tab\n
}\n
\n
\n
function promptInfo_showTab(n) {\n
// This function will display the specified tab of the form...\n
\n
// stepShowTab(n,'#promptForInfoModal')\n
// retrunb false;\n
$('#promptForInfoModal .step').eq(n).show();\n
//... and fix the Previous/Next buttons:\n
if (n == 0) {\n
document.getElementById("promptForInfo_prevBtn").style.display = "none";\n
} else {\n
document.getElementById("promptForInfo_prevBtn").style.display = "inline";\n
}\n
if (n == ($('#promptForInfoModal .step').length - 1)) {\n
document.getElementById("promptForInfo_nextBtn").innerHTML = "Finish";\n
} else {\n
document.getElementById("promptForInfo_nextBtn").innerHTML = "Next";\n
}\n
//... and run a function that will display the correct step indicator:\n
\n
$('#promptForInfoModal .stepIndicator').removeClass('active')\n
for (var gg = 0; gg <= n; gg++)\n
$('#promptForInfoModal .stepIndicator').eq(gg).addClass('active')\n
\n
}\n
\n
function promptInfo_nextPrev(n) {\n
\n
// Exit the function if any field in the current tab is invalid:\n
if (n == 1 && !promptInfo_validateForm()) return false;\n
\n
\n
$('#promptForInfoModal .step').eq(currentTab).hide();\n
// Increase or decrease the current tab by 1:\n
currentTab = currentTab + n;\n
// if you have reached the end of the form...\n
if (currentTab >= $('#promptForInfoModal .step').length) {\n
// ... the form gets submitted:\n
// // console.log($('#selectPurchaseModal .step'))\n
// alert($('#selectPurchaseModal .step').length)\n
// document.getElementById("signUpForm").submit();\n
promptForInfoModal.hide();\n
return false;\n
}\n
// Otherwise, display the correct tab:\n
promptInfo_showTab(currentTab);\n
}\n
\n
\n
function promptInfo_validateForm() {\n
// This function deals with validation of the form fields\n
var x, y, i, valid = true;\n
// x = document.getElementsByClassName("step");\n
// y = x[currentTab].getElementsByTagName("input");\n
//\n
//\n
//\n
//\n
// // A loop that checks every input field in the current tab:\n
// for (i = 0; i < y.length; i++) {\n
// // If a field is empty...\n
// if (y[i].value == "") {\n
// // add an "invalid" class to the field:\n
// y[i].className += " invalid";\n
// // and set the current valid status to false\n
// valid = false;\n
// }\n
// }\n
// // If the valid status is true, mark the step as finished and valid:\n
// if (valid) {\n
// document.getElementsByClassName("stepIndicator")[currentTab].className += " finish";\n
// }\n
\n
\n
$('#promptForInfoModal .step input').each(function (indumia, elemele) {\n
\n
if ($(elemele).hasClass('required') && $(elemele).val() == '') {\n
$(elemele).addClass('invalid')\n
valid = false;\n
} else {\n
\n
\n
}\n
\n
\n
})\n
\n
if (valid) {\n
$('#promptForInfoModal .stepIndicator').eq(currentTab).addClass('finish')\n
// document.getElementsByClassName("stepIndicator")[currentTab].className += " finish";\n
}\n
\n
\n
return valid; // return the valid status\n
\n
}\n
\n
function promptInfo_fixStepIndicator(n) {\n
// This function removes the "active" class of all steps...\n
var i, x = document.getElementsByClassName("stepIndicator");\n
for (i = 0; i < x.length; i++) {\n
x[i].className = x[i].className.replace(" active", "");\n
}\n
//... and adds the "active" class on the current step:\n
x[n].className += " active";\n
}\n
\n
\n
function addScript(src) {\n
var s = document.createElement('script');\n
s.type = 'text/javascript';\n
s.src = src;\n
document.getElementsByTagName('head')[0].appendChild(s);\n
return s; // to remove it later\n
}\n
\n
{% if system_type=='_BUDDYBEE_' %}\n
\n
function checkAndRedirectToMeeting(force) {\n
\n
\n
var curr_ts_now = moment().unix();\n
\n
// if(CURRENT_ROUTE=='consultancy_session' && force==0)\n
// {\n
// if(typeof currentMeetingSessionId !== 'undefined')\n
// {\n
// if(upcomingNextMeetingIdForRedirect==currentMeetingSessionId)\n
// {\n
// return;\n
// }\n
//\n
// }\n
//\n
// }\n
\n
\n
if (upcomingNextMeetingTsForRedirect != 0) {\n
if (curr_ts_now >= (upcomingNextMeetingTsForRedirect - 120)) //redirect before 2 min\n
{\n
window.localStorage.setItem('UNMId', 0);\n
window.localStorage.setItem('UNMTs', 0);\n
window.location.href = "{{ url('consultancy_session') }}/" + upcomingNextMeetingIdForRedirect;\n
\n
\n
}\n
}\n
\n
}\n
\n
function refreshUpcomingMeetingList() {\n
\n
// // console.log('_______________________TRIGGERED_______________________')\n
\n
if (current_user_user_id != 0) {\n
$.ajax({\n
url: BaseURL + "select_data_ajax_public",\n
type: 'POST',\n
dataType: 'json',\n
data: {\n
//returnJson: 1,\n
//sessionData: sessionData\n
query: '',\n
tableName: "entity_meeting_session",\n
valueField: "session_id",\n
// textField: "topic_name",\n
entity_group: 1,\n
selectorId: '_NO_NEED_',\n
isMultiple: 0,\n
dataId: 0,\n
\n
\n
// isMultiple: 0,\n
\n
textField: "session_id",\n
//\n
\n
andOrConditions: [\n
{type: "=", field: "consultant_id", value: current_user_user_id},\n
{type: "=", field: "student_id", value: current_user_user_id}\n
],\n
mustConditions: [\n
// {type: "=", field: "is_paid_full", value: 1},\n
{type: ">=", field: "scheduled_time_ts", value: moment().unix()},\n
\n
{# {% if not curr_data is empty %} #}\n
// {type: "!=", field: "applicant_id", value: $('#rescheduledStudentId').val()}\n
{# {% endif %} #}\n
],\n
orderByConditions: [\n
{\n
field: 'scheduled_time_ts',\n
sortType: 'ASC'\n
}\n
{# {% if not curr_data is empty %} #}\n
// {type: "!=", field: "applicant_id", value: $('#rescheduledStudentId').val()}\n
{# {% endif %} #}\n
],\n
convertToObject: [\n
// 'accessories', 'issues'\n
],\n
skipDefaultCompanyId: 1\n
// setDataForSingle: 1,\n
\n
},\n
error: function () {\n
// callback();\n
},\n
success: function (res) {\n
\n
// preliminary_reg_data_by_id = res.dataById\n
\n
upcomingNextMeetingIdForRedirect = 0;\n
upcomingNextMeetingTsForRedirect = 0;\n
upcomingMeetingDataForRedirect = [];\n
\n
for (var bogu = 0; bogu < res.data.length; bogu++) {\n
if (res.data[bogu].is_paid_full == 1) {\n
upcomingMeetingDataForRedirect.push({\n
id: res.data[bogu].session_id,\n
ts: res.data[bogu].scheduled_time_ts,\n
})\n
}\n
}\n
\n
if (upcomingMeetingDataForRedirect.length != 0) {\n
upcomingNextMeetingIdForRedirect = upcomingMeetingDataForRedirect[0]['id'];\n
upcomingNextMeetingTsForRedirect = upcomingMeetingDataForRedirect[0]['ts'];\n
\n
}\n
\n
\n
if (typeof refresh_upcoming_meeting_on_dashboard !== 'undefined')\n
refresh_upcoming_meeting_on_dashboard(res.data);\n
\n
// if(CURRENT_ROUTE=='consultancy_session')\n
// {\n
// if(typeof currentMeetingSessionId !== 'undefined')\n
// {\n
// if(upcomingNextMeetingIdForRedirect==currentMeetingSessionId)\n
// {\n
// clearInterval(triggerRefreshUpcomingSession);\n
// }\n
// else\n
// checkAndRedirectToMeeting(0);\n
//\n
// }\n
// else\n
// checkAndRedirectToMeeting(0);\n
//\n
//// clearInterval(triggerRefreshUpcomingSession);\n
//\n
// }\n
// else\n
checkAndRedirectToMeeting(0);\n
\n
\n
}\n
});\n
}\n
}\n
\n
function triggerRefreshUpcomingMeetingList(intervalHere) {\n
if (current_user_user_id != 0) {\n
triggerRefreshUpcomingSession = setInterval(function () {\n
\n
refreshUpcomingMeetingList();\n
//seconds\n
}, intervalHere)\n
}\n
\n
\n
}\n
\n
{% endif %}\n
</script>\n
\n
{% if constant('ApplicationBundle\\Constants\\GeneralConstant::BUDDYBEE_SOCKET_ENABLED')==1 %}\n
{# now check softone #}\n
{# {% if notification_enabled==1 %} #}\n
{% if session[UserConstants.USER_ID] is defined %}\n
\n
{% set buddybee_socket_server=constant('ApplicationBundle\\Constants\\GeneralConstant::BUDDYBEE_SOCKET_SERVER') %}\n
{% set buddybee_socket_server_full = 'https://'~buddybee_socket_server %}\n
\n
{% if 'localhost:' in buddybee_socket_server %}\n
{% set buddybee_socket_server_full = url_wo_port ~':'~ buddybee_socket_server|split('localhost:')[1] %}\n
{% else %}\n
{% set buddybee_socket_server_full = 'https://'~buddybee_socket_server %}\n
{% endif %}\n
\n
{# <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> #}\n
{# <script type="text/javascript" src="{{ buddybee_socket_server_full }}/socket.io/socket.io.js"></script> #}\n
<script type="text/javascript">\n
var buddybeeKeepAliveCall = {};\n
var lastActivityTs = 0;\n
\n
function refreshKeepAliveCall() {\n
buddybeeKeepAliveCall = setInterval(function () {\n
\n
\n
var nowTs = moment().unix(),\n
\n
differenceFromStartTime = meetingStartTime.diff(now), // 86400000;\n
differenceFromEndTime = meetingEndTime.diff(now); // 86400000;\n
\n
if (nowTs - lastActivityTs > 60) {\n
clearInterval(buddybeeKeepAliveCall);\n
\n
} else {\n
buddybee_socket.emit('update_my_socket', {\n
userId: buddybee_socket_user_id,\n
token: buddybee_socket_user_session_token,\n
});\n
\n
}\n
//seconds\n
}, 30000)\n
\n
\n
}\n
\n
\n
// // console.log(io)\n
\n
function initiateBuddybeeSocket() {\n
lastActivityTs = moment().unix();\n
\n
$.getScript('{{ buddybee_socket_server_full }}/socket.io/socket.io.js', function () {\n
{# $.getScript('{{ absolute_url(path('dashboard')) }}buddybee_assets/js/socket-io.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}', function () { #}\n
if (io) {\n
{# socket=io.connect( '{{ constant('ApplicationBundle\\Constants\\GeneralConstant::NOTIFICATION_SERVER') }}' ); #}\n
buddybee_socket = io.connect('{{ buddybee_socket_server_full }}');\n
\n
buddybee_socket.emit('update_my_socket', {\n
userId: buddybee_socket_user_id,\n
\n
token: buddybee_socket_user_session_token,\n
user_status: '_ON_',\n
force_broadcast: 1,\n
});\n
\n
// buddybee_socket.on('_SEND_TEXT_TO_MOBILE_', function (dataObj) {\n
// // 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_')\n
// // console.log(dataObj)\n
//\n
//\n
// });\n
addScript("{{ absolute_url(path('dashboard')) }}buddybee_assets/js/generic_buddybee_sockets.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}")\n
{% if curr_route =='consultancy_session' or curr_route =='_nothing_new_' %}\n
\n
{% else %}\n
\n
ifvisible.setIdleDuration(120);\n
\n
ifvisible.onEvery(30, function () {\n
// // console.log('not idle')\n
buddybee_socket.emit('update_my_socket', {\n
userId: buddybee_socket_user_id,\n
token: buddybee_socket_user_session_token,\n
});\n
});\n
// ifvisible.onEvery(300, function () {\n
//// // console.log('not idle')\n
// buddybee_socket.emit('update_my_socket', {\n
// userId: buddybee_socket_user_id,\n
// token: buddybee_socket_user_session_token,\n
// });\n
// });\n
\n
ifvisible.idle(function () {\n
\n
document.body.style.opacity = 0.5;\n
buddybee_socket.emit('update_my_socket', {\n
userId: buddybee_socket_user_id,\n
token: buddybee_socket_user_session_token,\n
user_status: '_AWAY_',\n
force_broadcast: 1,\n
});\n
});\n
ifvisible.wakeup(function () {\n
document.body.style.opacity = 1;\n
buddybee_socket.emit('update_my_socket', {\n
userId: buddybee_socket_user_id,\n
token: buddybee_socket_user_session_token,\n
user_status: '_ON_',\n
force_broadcast: 1,\n
});\n
});\n
{% endif %}\n
\n
\n
// buddybee_socket.emit('update_my_socket', {\n
// userId: buddybee_socket_user_id,\n
// token: buddybee_socket_user_session_token,\n
// });\n
\n
\n
if (typeof pageSocketInit !== 'undefined')\n
pageSocketInit();\n
\n
buddybee_socket.on('user_status_update', function (dataObj) {\n
\n
// console.log(dataObj)\n
\n
});\n
buddybee_socket.on('_SOCKET_NOTIFICATION_HERE_', function (dataObj) {\n
if (typeof dataObj.targetRoute !== 'undefined') {\n
if (dataObj.targetRoute == 'consultancy_session')\n
refreshUpcomingMeetingList();\n
}\n
// console.log(dataObj)\n
\n
});\n
buddybee_socket.on('refresh_upcoming_meeting_list', function (dataObj) {\n
refreshUpcomingMeetingList();\n
// console.log(dataObj)\n
\n
});\n
\n
\n
// console.log(buddybee_socket);\n
}\n
\n
});\n
\n
\n
}\n
</script>\n
\n
\n
{# <script src="{{ absolute_url(path('dashboard')) }}js/inno_notify.js?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}"></script> #}\n
\n
{% endif %}\n
{# {% endif %} #}\n
{% endif %}\n
\n
\n
<script>\n
\n
var honeybeeLocale = 'en';\n
jQuery.browser = {\n
msie: false,\n
// version: 0\n
};\n
\n
function check_filters_default() {\n
// alert("here")\n
$('.filter_this').hide()\n
$('.filter_with_this').each(function () {\n
// alert($(this).attr('id'))\n
// alert($(this).val())\n
if ($(this).attr('type') == 'checkbox' && $(this).prop('checked') == false)\n
return;\n
if ($(this).attr('type') == 'radio' && $(this).is(':checked') == false)\n
return;\n
var selector_name = '.filter_' + ($(this).attr('id')) + '_' + $(this).val();\n
// alert(selector_name)\n
$(selector_name).show()\n
})\n
}\n
\n
\n
var userAgent = navigator.userAgent || navigator.vendor || window.opera;\n
$(document).ready(function () {\n
\n
\n
{% if session['triggerPromptInfoModalFlag'] is defined %}\n
{% if session['triggerPromptInfoModalFlag'] == 1 %}\n
initiate_prompt_info_modal();\n
{% endif %}\n
{% endif %}\n
\n
\n
{% if app.session.get('devAdminMode') ==1 %}\n
\n
\n
{% endif %}\n
$('.book_now_cta').click(function (ev) {\n
ev.preventDefault();\n
selectPurchaseModal.show();\n
})\n
stepShowTab(currentTabSelectPurchaseModal, '#selectPurchaseModal')\n
\n
$(document).on('click', '#selectPurchaseModal .routineTable tbody .icon-check.modifiable', function () {\n
\n
if ($(this).hasClass('isChecked'))\n
$(this).removeClass('isChecked');\n
else\n
$(this).addClass('isChecked')\n
recalculateRoutinePackageOnPurchaseModal();\n
})\n
\n
$(document).on('click', '.offCanvasCalendarTrigger', function () {\n
refreshOffCanvasCalendar()\n
})\n
$(document).on('click', '.box-selector', function () {\n
\n
$('.' + $(this).data('genClass')).removeClass('active')\n
$(this).addClass('active')\n
\n
})\n
\n
$(document).on('click', '#selectPurchaseModal .prevBtn', function () {\n
\n
//validate action here\n
// if (!validateForm()) return false;\n
\n
stepShowTab('-1', '#selectPurchaseModal')\n
\n
})\n
$(document).on('click', '#selectPurchaseModal .stepIndicator', function () {\n
\n
//validate action here\n
// if (!validateForm()) return false;\n
\n
stepShowTab($(this).data('seqId'), '#selectPurchaseModal')\n
\n
})\n
$(document).on('click', '#selectPurchaseModal .nextBtn', function () {\n
\n
//validate action here\n
// if (!validateForm()) return false;\n
\n
stepShowTab('+1', '#selectPurchaseModal')\n
\n
})\n
$(document).on('click', '#selectPurchaseModal .cn_selector', function () {\n
\n
\n
populateTopicListOnPurchaseModal($(this).data('id'));\n
stepShowTab('+1', '#selectPurchaseModal')\n
if ($('.box-selector.cn_selector.active').length)\n
$('.cntry_p span').text($('.box-selector.cn_selector.active .title').text())\n
\n
\n
})\n
$(document).on('click', '#selectPurchaseModal .tp_selector', function () {\n
\n
refreshRoutinePackageListOnPurchaseModal($(this).data('id'));\n
populateConsultantListOnPurchaseModal($(this).data('id'));\n
stepShowTab('+1', '#selectPurchaseModal');\n
\n
if ($('.box-selector.tp_selector.active').length)\n
$('.topic_p span').text($('.box-selector.tp_selector.active .title').text() + ' ( ' + $('.box-selector.tp_selector.active .sub-title').text() + ' )')\n
\n
\n
})\n
\n
$(document).on('click', '#selectPurchaseModal .cons_selector', function () {\n
\n
\n
populateScheduleListOnPurchaseModal($(this).data('id'));\n
\n
\n
stepShowTab('+1', '#selectPurchaseModal')\n
if ($('.box-selector.cons_selector.active').length)\n
$('.cons_p span').text($('.box-selector.cons_selector.active .title').text())\n
\n
})\n
\n
$(document).on('click', '#selectPurchaseModal .sch_selector_mon', function () {\n
\n
$('#selectPurchaseModal .sch_selector_day').hide();\n
// alert($(this).data('id'))\n
$('#selectPurchaseModal .sch_selector_day.sch_mon_' + $(this).data('id')).show();\n
// populateScheduleListOnPurchaseModal($(this).data('id'));\n
// stepShowTab('+1','#selectPurchaseModal')\n
\n
})\n
$(document).on('click', '#selectPurchaseModal .sch_selector_day', function () {\n
\n
$('#selectPurchaseModal .sch_selector_time').hide();\n
$('#selectPurchaseModal .sch_selector_time.sch_day_' + $(this).data('id')).show();\n
// populateScheduleListOnPurchaseModal($(this).data('id'));\n
// stepShowTab('+1','#selectPurchaseModal')\n
\n
})\n
$(document).on('click', '#selectPurchaseModal .sch_selector_time', function () {\n
// alert('here')\n
\n
$('#selectPurchaseModal .sch_selector_mon.sch_mon_' + moment.unix($(this).data('id')).format('YYYY_MM')).trigger('click');\n
$('#selectPurchaseModal .sch_selector_day.sch_day_' + moment.unix($(this).data('id')).format('YYYY_MM_DD')).trigger('click');\n
\n
\n
})\n
\n
\n
if (CURRENT_ROUTE == 'consultancy_session') {\n
// if (typeof currentMeetingSessionId !== 'undefined') {\n
// if (upcomingNextMeetingIdForRedirect == currentMeetingSessionId) {\n
// clearInterval(triggerRefreshUpcomingSession);\n
// }\n
// else\n
// checkAndRedirectToMeeting(0);\n
//\n
// }\n
// else\n
// checkAndRedirectToMeeting(0);\n
\n
// clearInterval(triggerRefreshUpcomingSession);\n
\n
} else\n
setTimeout(function () {\n
refreshUpcomingMeetingList();\n
triggerRefreshUpcomingMeetingList(60000);\n
}, 20000);\n
\n
\n
// Windows Phone must come first because its UA also contains "Android"\n
\n
// alert(userAgent);\n
\n
if ((currTsForDlM - deepLinkModalLastShown) > (3600 * 24)) {\n
// alert('in DLM');\n
\n
\n
if (/windows phone/i.test(userAgent)) {\n
// alert("Android");\n
$('.deep_link_choice').hide();\n
$('.deep_link_choice._AND_').show();\n
// $('.deep_link_choice._IPHONE_').show();\n
$('.deep_link_choice._BROWSER_').show();\n
deepLinkModal.show()\n
}\n
if (/Android/i.test(userAgent)) {\n
// alert("Android");\n
$('.deep_link_choice').hide();\n
$('.deep_link_choice._AND_').show();\n
// $('.deep_link_choice._IPHONE_').show();\n
$('.deep_link_choice._BROWSER_').show();\n
deepLinkModal.show()\n
}\n
\n
// iOS detection from: http://stackoverflow.com/a/9039885/177710\n
if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {\n
// alert("iOS");\n
$('.deep_link_choice').hide();\n
// $('.deep_link_choice._AND_').show();\n
$('.deep_link_choice._IPHONE_').show();\n
$('.deep_link_choice._BROWSER_').show();\n
deepLinkModal.show()\n
}\n
\n
\n
window.localStorage.setItem('deepLinkModalLastShown', currTsForDlM)\n
}\n
// deepLinkModal.show()\n
\n
\n
$('#buddybee_preloader').fadeOut('slow', function () {\n
$(this).remove();\n
});\n
if (typeof initiateOtpModal !== 'undefined') {\n
// initiateOtpModal()\n
}\n
\n
{% if system_type=='_BUDDYBEE_' %}\n
\n
$(document).on('click', 'a', function (e) {\n
\n
if ($(this).attr('href') == '{{ url('under_construction') }}') {\n
e.preventDefault();\n
swal({\n
title: "Oh Snap!",\n
type: 'warning',\n
text: "This page is Under Construction.",\n
timer: 3000,\n
showConfirmButton: false\n
});\n
}\n
if ($(this).attr('href') == '{{ url('user_logout') }}') {\n
// e.preventDefault();\n
if (buddybee_socket != '') {\n
buddybee_socket.emit('update_my_socket', {\n
userId: buddybee_socket_user_id,\n
user_status: '_OFF_',\n
force_broadcast: 1,\n
});\n
\n
\n
}\n
}\n
\n
\n
});\n
{% endif %}\n
$(document).on('click', '.admin-menu-toggler', function (e) {\n
\n
$('.buddybee_admin_sidebar').toggle()\n
\n
\n
})\n
$(document).on('click', 'a.book_now_cta', function (e) {\n
// e.preventDefault();\n
// bookNowModal.show()\n
\n
})\n
\n
$(document).on('change', '.filter_with_this', function () {\n
\n
check_filters_default()\n
})\n
$(document).on('click', '.btn_deep_link_selector', function () {\n
if ($(this).attr('data-deeplink-choice') == '_AND_')\n
window.location.href = "https://play.google.com/store/apps/details?id=eu.buddybee.consultancy";\n
\n
\n
// deepLinkModal.hide()\n
\n
\n
})\n
check_filters_default();\n
\n
\n
$('#currentClientTime').val(moment().format('YYYY-MM-DD HH:mm:ss'))\n
\n
\n
{% if constant('ApplicationBundle\\Constants\\GeneralConstant::BUDDYBEE_SOCKET_ENABLED')==1 %}\n
{# now check softone #}\n
{# {% if notification_enabled==1 %} #}\n
{% if session[UserConstants.USER_ID] is defined %}\n
\n
\n
initiateBuddybeeSocket();\n
\n
{% endif %}\n
{% endif %}\n
\n
$('.schedule_date_picker').not('.datepicker').bootstrapMaterialDatePicker({\n
format: 'MMMM DD, YYYY',\n
clearButton: true,\n
weekStart: 6,\n
time: false,\n
switchOnClick: true,\n
monthPicker: true\n
// format: 'HH:mm',\n
// clearButton: true,\n
// date: false,\n
// switchOnClick:true\n
});\n
$('.schedule_date_time_picker').not('.datepicker').bootstrapMaterialDatePicker({\n
//format: 'dddd DD MMMM YYYY',\n
// format: ' HH:mm',\n
// clearButton: true,\n
// weekStart: 6,\n
// time: true,\n
// switchOnClick: true,\n
// monthPicker: false\n
format: 'HH:mm',\n
clearButton: true,\n
date: false,\n
switchOnClick: true\n
});\n
\n
{# alert('{{ curr_route }}') #}\n
\n
{% if curr_route=='applicant_dashboard' or curr_route=='dashboard' or curr_route=='consultant_dashboard' or curr_route=='buddybee_admin_dashboard' %}\n
{% if session[UserConstants.USER_ID] is defined %}\n
{% if session[UserConstants.USER_ID]!=0 %}\n
var globLsDataStr = window.localStorage.getItem('lsData');\n
var globLsData = {};\n
if (globLsDataStr != 'null' && globLsDataStr != null)\n
globLsData = JSON.parse(globLsDataStr);\n
\n
\n
// console.log(globLsData)\n
\n
if (typeof globLsData['checkoutPending'] !== 'undefined') {\n
if (globLsData['checkoutPending'] == 1)\n
window.location.href = "{{ url('pricing_plan_page') }}?autoRedirected=1";\n
}\n
{% endif %}\n
{% endif %}\n
{% endif %}\n
\n
// // console.log(globLsData)\n
\n
$('#small_search_button').click(function () {\n
\n
// $( '.small_search_content .selectize-control.searchbox.small_search' ).animate({\n
// opacity: 0.25,\n
// left: "+=50",\n
// width: "0"\n
// }, 5000, function() {\n
// // Animation complete.\n
// });\n
if ($('.small_search_content .selectize-control.searchbox.small_search').hasClass('search_shown')) {\n
// $('.small_search_content .selectize-control.searchbox.small_search').hide();\n
$('.small_search_content .selectize-control.searchbox.small_search').removeClass('search_shown');\n
// $('.searchbar-content.small_search_content').css('border','1px solid #1d5b9e33;');\n
$('.small_search_content .selectize-control.searchbox.small_search').animate({\n
// opacity: 0.25,\n
// left: "+=50",\n
width: "0"\n
}, 500, function () {\n
// Animation complete.\n
$('.small_search_content .selectize-control.searchbox.small_search').hide();\n
$('.small_search_content .selectize-control.searchbox.small_search').removeClass('search_shown');\n
$('.searchbar-content.small_search_content').removeClass('search_shown');\n
});\n
} else {\n
// $('.small_search_content .selectize-control.searchbox.small_search').show();\n
// $('.searchbar-content.small_search_content').css('border','1px solid #1d5b9e33;');\n
$('.small_search_content .selectize-control.searchbox.small_search').css('display', 'inline-flex')\n
$('.small_search_content .selectize-control.searchbox.small_search').addClass('search_shown');\n
$('.searchbar-content.small_search_content').addClass('search_shown');\n
\n
\n
$('.small_search_content .selectize-control.searchbox.small_search').animate({\n
// opacity: 0.25,\n
// left: "+=50",\n
width: "224"\n
}, 500, function () {\n
// Animation complete.\n
// $('.searchbar-content.small_search_content').css('border','1px solid #1d5b9e33;');\n
});\n
}\n
})\n
\n
\n
\n
{# var small_search_box=$(".searchbox").selectize({ #}\n
{# valueField: "url", #}\n
{# labelField: "name", #}\n
{# searchField: "name", #}\n
{# create: false, #}\n
\n
{# preload:true, #}\n
{# score: function (search) { #}\n
{# var score = this.getScoreFunction(search); #}\n
{# return function (item) { #}\n
{# return score(item) * (1 + Math.min(item.watchers / 100, 1)); #}\n
{# }; #}\n
{# }, #}\n
{# onChange: function (value) { #}\n
\n
{# if (!value.length) return; #}\n
\n
{# window.location.href=value; #}\n
{# //addProductToListById(value); #}\n
\n
{# // alert(value) #}\n
\n
{# // small_search_box.clear() #}\n
{# // small_search_box.focus() #}\n
\n
{# }, #}\n
{# load: function (query, callback) { #}\n
{# if (!query.length) return callback(); #}\n
{# $.ajax({ #}\n
{# url: "{{ url('search_buddybee') }}/" + encodeURIComponent(query), #}\n
{# type: "GET", #}\n
{# error: function () { #}\n
{# callback(); #}\n
{# }, #}\n
{# success: function (res) { #}\n
{# // console.log(res.data) #}\n
{# callback(res.data.slice(0, 10)); #}\n
{# }, #}\n
{# }); #}\n
{# }, #}\n
{# })[0].selectize; #}\n
\n
{% if system_type=='_BUDDYBEE_' %}\n
var small_search_box = $(".searchbox").selectize({\n
valueField: "url",\n
labelField: "name",\n
searchField: "name",\n
create: false,\n
maxItems: 1,\n
\n
preload: 'focus',\n
render: {\n
option: function (item, escape) {\n
return (\n
\n
'<div style="padding: 10px;">' +\n
'<span class="title">' +\n
'<span class="name" style="display:block;font-size: 18px;">' +\n
// '<i class="icon ' +\n
// (item.type == 1 ? "fa fa-list" : "fa fa-clock") +\n
// '"></i>' +\n
\n
// "<div class='form-control mainDiv'>" +\n
\n
// '<span class="name">' +\n
\n
escape(item.name) +\n
\n
\n
"</span>" +\n
\n
'<span class="description" style="padding-top:2px; display: block">' +\n
escape(item.description) +\n
"</span>" +\n
\n
// '<span class="description">' +\n
// escape(item.description) +\n
"</span>" +\n
\n
\n
"</div>"\n
);\n
// return (\n
// "<div>" +\n
// '<span class="title">' +\n
// '<span class="name"><i class="icon ' +\n
// (item.type == 1 ? "fa fa-list" : "fa fa-clock") +\n
// '"></i>' +\n
// escape(item.name) +\n
// "</span>" +\n
//\n
// "</span>" +\n
// '<span class="description">' +\n
// escape(item.description) +\n
// "</span>" +\n
//\n
// "</div>"\n
// );\n
},\n
},\n
\n
\n
onChange: function (value) {\n
\n
if (!value.length) return;\n
var sval = value\n
small_search_box.setValue([])\n
\n
window.location.href = sval;\n
//addProductToListById(value);\n
\n
// alert(value)\n
\n
// small_search_box.clear()\n
// small_search_box.focus()\n
\n
},\n
load: function (query, callback) {\n
// if (!query.length) return callback();\n
$.ajax({\n
url: "{{ url('search_buddybee') }}/" + encodeURIComponent(query),\n
type: "GET",\n
error: function () {\n
callback();\n
},\n
success: function (res) {\n
// console.log(res.data)\n
callback(res.data);\n
},\n
});\n
},\n
})[0].selectize;\n
{% endif %}\n
\n
$('.selectize-control.searchbox .selectize-input.items input').addClass('trn')\n
$('.selectize-control.searchbox .selectize-input.items input').attr('data-trn-key', '_SMALL_SEARCH_PH_');\n
\n
\n
_t = $('body').translate({\n
lang: "en",\n
t: lang_pack\n
});\n
\n
if (typeof (window.localStorage) !== "undefined")\n
honeybeeLocale = window.localStorage.getItem('honeybeeLocale');\n
\n
// alert(honeybeeLocale)\n
if (honeybeeLocale !== "undefined" && honeybeeLocale != 'null' && honeybeeLocale != null) {\n
_t.lang(honeybeeLocale);\n
\n
} else {\n
honeybeeLocale = 'en'\n
}\n
\n
\n
$(".locale_changer").click(function (ev) {\n
var lang = $(this).attr("data-locale");\n
_t.lang(lang);\n
honeybeeLocale = lang;\n
$(".locale_changer").removeClass('activeLocale')\n
$(this).addClass('activeLocale');\n
$(".curr_locale_text").text($(this).text());\n
if (typeof (window.localStorage) !== "undefined")\n
honeybeeLocale = window.localStorage.setItem('honeybeeLocale', honeybeeLocale);\n
// // console.log(lang);\n
ev.preventDefault();\n
});\n
\n
{% if system_type=='_BUDDYBEE_' %}\n
if ($('#viewAsId').length) {\n
$('#viewAsId').selectize({\n
placeholder: 'Choose User',\n
multiple: false,\n
// options: APTL.productListArray,\n
options: [],\n
valueField: 'value',\n
labelField: 'text',\n
searchField: ['text', 'value', 'phone', 'email', 'o_auth_email', 'firstname', 'lastname'],\n
preload: 'focus',\n
render: {\n
option: function (item, escape) {\n
return (\n
\n
\n
'<div style="padding: 2px; display:flex;">' +\n
'<span class="title" style=" min-width: 2rem;display: inline-block;">' +\n
((item.image != null && item.image != '') ? '<img style="border-radius: 50%;height: 2rem;width: 2rem;" src="' + item.image + '" alt="" class="img-fluid" >' :\n
'<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" >') +\n
"</span>" +\n
'<span class="name" style="padding-left:0.5rem;font-size: 12px; display:inline-block;">' +\n
// '<i class="icon ' +\n
// (item.type == 1 ? "fa fa-list" : "fa fa-clock") +\n
// '"></i>' +\n
\n
// "<div class='form-control mainDiv'>" +\n
\n
// '<span class="name">' +\n
\n
'#' + escape(item.applicant_id) + ' ' + escape(item.firstname) + ' ' + escape(item.lastname) + '<br> ' + escape(item.phone) + ' - ' + escape(item.o_auth_email) +\n
\n
\n
"</span>" +\n
\n
\n
// '<span class="description">' +\n
// escape(item.description) +\n
// "</span>" +\n
\n
\n
"</div>"\n
\n
\n
);\n
// return (\n
// "<div>" +\n
// '<span class="title">' +\n
// '<span class="name"><i class="icon ' +\n
// (item.type == 1 ? "fa fa-list" : "fa fa-clock") +\n
// '"></i>' +\n
// escape(item.name) +\n
// "</span>" +\n
//\n
// "</span>" +\n
// '<span class="description">' +\n
// escape(item.description) +\n
// "</span>" +\n
//\n
// "</div>"\n
// );\n
},\n
},\n
\n
\n
onChange: function (value) {\n
\n
if (!value.length) return;\n
\n
\n
window.location.href = '{{ absolute_url(path('view_as_user_buddybee')) }}/' + value;\n
//addProductToListById(value);\n
\n
// alert(value)\n
\n
// small_search_box.clear()\n
// small_search_box.focus()\n
\n
},\n
\n
\n
load: function (query, callback) {\n
// if (!query.length) return // callback();\n
if (!query.length) query = '_EMPTY_';\n
\n
var pika_ind_id = $($(this)[0].$input["0"]).attr('data-id')\n
$.ajax({\n
url: BaseURL + "select_data_ajax_public",\n
type: 'POST',\n
dataType: 'json',\n
data: {\n
//returnJson: 1,\n
//sessionData: sessionData\n
query: query,\n
tableName: "entity_applicant_details",\n
valueField: "applicant_id",\n
// textField: "topic_name",\n
entity_group: 1,\n
selectorId: $($(this)[0].$input["0"]).attr('id'),\n
isMultiple: 0,\n
dataId: pika_ind_id,\n
\n
\n
// isMultiple: 0,\n
\n
textField: "rendered_text",\n
//\n
renderTextFormat: " __firstname__ __lastname__",\n
andOrConditions: [\n
{type: "like", field: "firstname", value: query},\n
{type: "like", field: "lastname", value: query},\n
{type: "like", field: "phone", value: query},\n
{type: "like", field: "email", value: query},\n
{type: "=", field: "applicant_id", value: isNaN(query) ? '' : query}\n
],\n
mustConditions: [\n
{% if BUDDYBEE_ADMIN_LEVEL>=5 %}\n
\n
{% elseif BUDDYBEE_ADMIN_LEVEL >=1 %}\n
{\n
type: "in",\n
field: "is_admin",\n
value: [0, 'null']\n
},\n
{\n
type: "in",\n
field: "assigned_sales_representative_id",\n
value: [0, 'null',{{ session[UserConstants.USER_ID] }}]\n
},\n
{% else %}\n
\n
{% endif %}\n
// {type: "=", field: "is_consultant", value: 1},\n
\n
{# {% if not curr_data is empty %} #}\n
// {type: "!=", field: "applicant_id", value: $('#rescheduledStudentId').val()}\n
{# {% endif %} #}\n
],\n
convertToObject: [\n
// 'accessories', 'issues'\n
],\n
skipDefaultCompanyId: 1\n
// setDataForSingle: 1,\n
\n
},\n
error: function () {\n
// callback();\n
},\n
success: function (res) {\n
\n
// preliminary_reg_data_by_id = res.dataById\n
callback(res.data);\n
\n
\n
if (res.setValueArray.length != 0 && res.selectorId != '') {\n
if (res.isMultiple == 1)\n
$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValueArray)\n
else\n
$('#' + res.selectorId).selectize()[0].selectize.setValue(res.setValue)\n
}\n
// alert('pika master')\n
\n
}\n
});\n
},\n
\n
\n
})[0].selectize;\n
}\n
$('.recharge_submit').click(function (e) {\n
e.preventDefault();\n
$('#rechargeForm').submit();\n
});\n
// alert('.locale_changer.'+honeybeeLocale)\n
// alert($('.locale_changer.'+honeybeeLocale).text())\n
$(".curr_locale_text").text($('.locale_changer.' + honeybeeLocale).text());\n
{% endif %}\n
\n
$('.add_basic_day_picker').not('.datepicker').bootstrapMaterialDatePicker({\n
//format: 'dddd DD MMMM YYYY',\n
format: 'MMMM DD, YYYY HH:mm',\n
clearButton: true,\n
weekStart: 6,\n
time: true,\n
switchOnClick: true,\n
monthPicker: true\n
});\n
\n
\n
});\n
</script>\n
\n
</html>\n
"""
#message: "An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "buddybee_notification_view" as such route does not exist.")."
#code: 0
#file: "/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/src/ApplicationBundle/Resources/views/footer/buddybee_new_footer.html.twig"
#line: 27
-previous: Symfony\Component\Routing\Exception\RouteNotFoundException {#617 …}
trace: {
/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/src/ApplicationBundle/Resources/views/footer/buddybee_new_footer.html.twig:27 {
Twig\Template->yield(array $context, array $blocks = []): iterable …
› <script>
› var notificationDetailBaseUrl = '{{ url('buddybee_notification_view', {'id': 0}) }}';
› </script>
}
/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/src/ApplicationBundle/Modules/Buddybee/Resources/views/pages/consultancySearchPage.html.twig:403 {
__TwigTemplate_e8e6b362c5f072d6dd886960c119db40d8ccb18e137674cc6eed602e919d5624->doDisplay(array $context, array $blocks = []) …
›
› {% include '@Application/footer/buddybee_new_footer.html.twig' %}
›
arguments: {
$context: [ …23]
}
}
/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/vendor/twig/twig/src/Template.php:360 {
Twig\Template->yield(array $context, array $blocks = []): iterable …
›
› foreach ($this->doDisplay($context, $blocks) as $data) {
› if (ob_get_length()) {
arguments: {
$context: [ …23]
$blocks: []
}
}
/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/vendor/twig/twig/src/Template.php:335 {
Twig\Template->render(array $context): string …
› $content = '';
› foreach ($this->yield($context) as $data) {
› $content .= $data;
arguments: {
$context: [ …21]
}
}
/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/vendor/twig/twig/src/TemplateWrapper.php:38 {
Twig\TemplateWrapper->render(array $context = []): string …
› {
› return $this->template->render($context);
› }
arguments: {
$context: [ …4]
}
}
/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/vendor/twig/twig/src/Environment.php:306 {
Twig\Environment->render($name, array $context = []): string …
› {
› return $this->load($name)->render($context);
› }
arguments: {
$context: [ …4]
}
}
/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/vendor/symfony/framework-bundle/Controller/AbstractController.php:258 {
Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView(string $view, array $parameters = []): string …
›
› return $this->container->get('twig')->render($view, $parameters);
› }
arguments: {
$name: "@Buddybee/pages/consultancySearchPage.html.twig"
$context: [ …4]
}
}
/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/vendor/symfony/framework-bundle/Controller/AbstractController.php:266 {
Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render(string $view, array $parameters = [], ?Response $response = null): Response …
› {
› $content = $this->renderView($view, $parameters);
›
arguments: {
$view: "@Buddybee/pages/consultancySearchPage.html.twig"
$parameters: [ …4]
}
}
/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/src/ApplicationBundle/Modules/Buddybee/Controller/BuddybeePublicController.php:2599 {
ApplicationBundle\Modules\Buddybee\Controller\BuddybeePublicController->ConsultancySearchPageAction(Request $request, $ref = '') …
› 'topic' => $topic,
› 'topicId' => $topicId,
› ));
arguments: {
$view: "@Buddybee/pages/consultancySearchPage.html.twig"
$parameters: [ …4]
}
}
/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/vendor/symfony/http-kernel/HttpKernel.php:163 {
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
› // call controller
› $response = $controller(...$arguments);
›
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#14 …}
$ref: ""
}
}
/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/vendor/symfony/http-kernel/HttpKernel.php:75 {
Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
› try {
› return $this->handleRaw($request, $type);
› } catch (\Exception $e) {
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#14 …}
$type: 1
}
}
/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/vendor/symfony/http-kernel/Kernel.php:202 {
Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
› try {
› return $this->getHttpKernel()->handle($request, $type, $catch);
› } finally {
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#14 …}
$type: 1
$catch: true
}
}
/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/web/app_dev.php:30 {
› $request = Request::createFromGlobals();
› $response = $kernel->handle($request);
› $response->send();
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#14 …}
}
}
}
}
]