<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @Buddybee/pages/consultancySearchPage.html.twig */
class __TwigTemplate_159381c2a3163abfc304112f98b3b07dbbf730173e55e233c4a59da0891a5aca extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Buddybee/pages/consultancySearchPage.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Buddybee/pages/consultancySearchPage.html.twig"));
// line 1
yield from $this->loadTemplate("@Application/inc/buddybee_new_header.html.twig", "@Buddybee/pages/consultancySearchPage.html.twig", 1)->unwrap()->yield($context);
// line 2
yield "
<style>
.consultant-bio-img img {
height: 154px;
border-radius: 10%;
}
.small_language_img {
}
.consultant-bio-img .cons_image_view {
height: 154px;
width: 154px;
border-radius: 10%;
background-size: cover !important;
background-position: center !important;
}
.consultant_search_bar.searchbar-content {
position: relative;
}
.consultant_search_bar.searchbar-content a {
position: absolute;
right: 9px;
top: 7px;
}
.filter_div img {
/*display: block;*/
color: #fff;
/*padding: 10px 0;*/
font-size: 14px;
background: #1D5B9E;
width: 40px;
height: 40px;
padding: 6px;
text-align: center;
line-height: 51px;
border-radius: 50%;
}
.filter_div_btn {
}
.filter_div {
display: inline-block;
width: 70px;
padding: 10px 0;
position: relative;
}
.consultant-title .searchbar {
width: 290px;
display: inline-block;
position: relative;
}
.filter_div_content {
padding: 20px;
width: 300px;
min-height: 400px;
height: auto;
left: -115px;
position: absolute;
z-index: 99999;
background: white;
display: none;;
/*border:1px solid darkblue;*/
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.filter_div_content .head {
display: flex;
justify-content: space-between;
border-bottom: 1px solid #f1e4e4;
}
.filter_div_content .head .title {
font-size: 13px;
display: inline-block;
float: left;
margin-bottom: 0.5rem;
}
.filter_div_content .head .title.right {
float: right;
color: #1D5B9E;
font-weight: bold;
text-decoration: none;
}
.filter_div_content .body {
text-align: left;
/*padding-top: 15px;*/
}
.filter_div_content .body .title {
margin-top: 15px;
margin-bottom: 2px;
font-size: 11px;
text-align: left;
text-transform: uppercase;
color: #6c757d;
}
.filter_div_content .body .option {
}
.filter_div_content .body .form-check {
text-align: left;
width: 49%;
display: inline-block;
}
.filter_div_content .body .form-check .form-check-label span {
font-size: 13px;;
}
.filter_div_content .body .form-check .form-check-input:checked {
background-color: #1D5B9E;
border-color: #1D5B9E;
}
@media (min-width: 320px) and (max-width: 480px) {
.consultant-title .searchbar {
width: 250px;
}
.filter_div_content {
left: unset;
right: 0;
}
}
@media (min-width: 481px) and (max-width: 540px) {
.consultant-title .searchbar {
width: 250px;
}
.filter_div_content {
left: unset;
right: 0;
}
}
@media (min-width: 320px) and (max-width: 480px) {
.consultant-bio-img .cons_image_view {
height: 60px !important;
width: 60px !important;
margin: auto;
}
.consultant-bio-img {
text-align: center;
}
.book_btn_span {
/*display: none;*/
}
.rating_value_span {
display: block;
padding: 0 21px;;
}
}
</style>
<section class=\"consultant-section\">
";
// line 186
$context["countries_data"] = $this->extensions['ApplicationBundle\Twig\GeneralExtension']->getCountriesBuddyBee("_HAS_CONSULTANT_", "object");
// line 187
yield " ";
$context["language_list"] = $this->extensions['ApplicationBundle\Twig\GeneralExtension']->getLanguagesBuddyBee("_ALL_", "object");
// line 188
yield " <div class=\"consultant-title\">
<div class=\"container\">
<div class=\"row mb-5\">
<div class=\"col-md-3\"></div>
<div class=\"col-md-6\" style=\"position: relative;text-align: center\">
";
// line 193
if ((0 === CoreExtension::compare((isset($context["ref"]) || array_key_exists("ref", $context) ? $context["ref"] : (function () { throw new RuntimeError('Variable "ref" does not exist.', 193, $this->source); })()), "_ADMIN_"))) {
// line 194
yield " <h2>Meet the BuddyBee Admins</h2>
";
} else {
// line 196
yield " <h2>Meet the BuddyBee Consultant</h2>
";
}
// line 198
yield " <div class=\"searchbar\" style=\"\">
<div class=\"searchbar-content consultant_search_bar\">
<input type=\"text\" placeholder=\"Search Consultant\" class=\"consultantSearch small_search\">
<a href=\"#\"><i class=\"fas fa-search\"></i></a>
</div>
</div>
<div class=\"filter_div\" style=\"width: 70px;\">
<a href=\"#\" class=\"filter_div_btn\">
";
// line 207
yield " ";
// line 208
yield " <i class=\"\">
<img style=\"\"
src=\"";
// line 210
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html", null, true);
yield "buddybee_assets/images/filter_image.png\"
alt=\"\">
</i>
</a>
<div class=\"filter_div_content\" style=\"\">
<div class=\"head\">
<h1 class=\"title\">Filter By</h1>
<a class=\"title right\">Reset Filters</a>
</div>
<div class=\"body\">
<h1 class=\"title\">Language</h1>
";
// line 221
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["language_list"]) || array_key_exists("language_list", $context) ? $context["language_list"] : (function () { throw new RuntimeError('Variable "language_list" does not exist.', 221, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["entry"]) {
// line 222
yield " <div class=\"form-check\">
<input class=\"form-check-input consFilter langFilter\" type=\"checkbox\"
value=\"";
// line 224
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["entry"], "id", [], "any", false, false, false, 224), "html", null, true);
yield "\" id=\"langFilter";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["entry"], "id", [], "any", false, false, false, 224), "html", null, true);
yield "\" >
<label class=\"form-check-label\" for=\"langFilter";
// line 225
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["entry"], "id", [], "any", false, false, false, 225), "html", null, true);
yield "\">
<span>";
// line 226
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["entry"], "name", [], "any", false, false, false, 226), "html", null, true);
yield "</span>
</label>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entry'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 230
yield "
<h1 class=\"title\">Country</h1>
";
// line 232
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["countries_data"]) || array_key_exists("countries_data", $context) ? $context["countries_data"] : (function () { throw new RuntimeError('Variable "countries_data" does not exist.', 232, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["entry"]) {
// line 233
yield " <div class=\"form-check\">
<input class=\"form-check-input consFilter countryFilter\" type=\"checkbox\"
value=\"";
// line 235
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["entry"], "id", [], "any", false, false, false, 235), "html", null, true);
yield "\" id=\"countryFilter";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["entry"], "id", [], "any", false, false, false, 235), "html", null, true);
yield "\" >
<label class=\"form-check-label\" for=\"countryFilter";
// line 236
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["entry"], "id", [], "any", false, false, false, 236), "html", null, true);
yield "\">
<span>";
// line 237
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["entry"], "name", [], "any", false, false, false, 237), "html", null, true);
yield "</span>
</label>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entry'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 241
yield "
<h1 class=\"title\">Topics</h1>
";
// line 243
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["topic"]) || array_key_exists("topic", $context) ? $context["topic"] : (function () { throw new RuntimeError('Variable "topic" does not exist.', 243, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["entry"]) {
// line 244
yield " <div class=\"form-check\" style=\"width: 100%;\">
<input class=\"form-check-input consFilter topicFilter\" type=\"checkbox\"
value=\"";
// line 246
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["entry"], "id", [], "any", false, false, false, 246), "html", null, true);
yield "\" id=\"topicFilter";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["entry"], "id", [], "any", false, false, false, 246), "html", null, true);
yield "\"
";
// line 247
if ((0 !== CoreExtension::compare((isset($context["topicId"]) || array_key_exists("topicId", $context) ? $context["topicId"] : (function () { throw new RuntimeError('Variable "topicId" does not exist.', 247, $this->source); })()), 0))) {
if ((0 === CoreExtension::compare((isset($context["topicId"]) || array_key_exists("topicId", $context) ? $context["topicId"] : (function () { throw new RuntimeError('Variable "topicId" does not exist.', 247, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["entry"], "id", [], "any", false, false, false, 247)))) {
yield "checked";
}
yield " ";
} else {
}
yield ">
<label class=\"form-check-label\" for=\"topicFilter";
// line 248
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["entry"], "id", [], "any", false, false, false, 248), "html", null, true);
yield "\">
<span>";
// line 249
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["entry"], "topicName", [], "any", false, false, false, 249), "html", null, true);
yield "</span>
</label>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entry'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 253
yield "
</div>
</div>
</div>
</div>
<div class=\"col-md-3\"></div>
</div>
</div>
</div>
<div class=\"consultant-list\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-3\">
<div class=\"viewed-consultant\">
<div class=\"viewed-consultant-title\">
<h6>Last Viewed</h6>
</div>
<div id=\"lvcl\">
";
// line 278
yield " ";
// line 279
yield " ";
// line 280
yield " ";
// line 281
yield " ";
// line 282
yield " ";
// line 283
yield " ";
// line 284
yield " ";
// line 285
yield " ";
// line 286
yield " ";
// line 287
yield " ";
// line 288
yield " ";
// line 289
yield " ";
// line 290
yield " ";
// line 291
yield " ";
// line 292
yield " ";
// line 293
yield " ";
// line 294
yield " ";
// line 295
yield " ";
// line 296
yield " ";
// line 297
yield " ";
// line 298
yield " ";
// line 299
yield " ";
// line 300
yield " ";
// line 301
yield " ";
// line 302
yield " ";
// line 303
yield " ";
// line 304
yield " ";
// line 305
yield " ";
// line 306
yield " ";
// line 307
yield " ";
// line 308
yield " ";
// line 309
yield " ";
// line 310
yield " ";
// line 311
yield " ";
// line 312
yield " ";
// line 313
yield " ";
// line 314
yield " ";
// line 315
yield " ";
// line 316
yield " ";
// line 317
yield " ";
// line 318
yield " ";
// line 319
yield " ";
// line 320
yield " ";
// line 321
yield " ";
// line 322
yield " ";
// line 323
yield " ";
// line 324
yield " ";
// line 325
yield " ";
// line 326
yield " ";
// line 327
yield " ";
// line 328
yield " ";
// line 329
yield " ";
// line 330
yield " ";
// line 331
yield " ";
// line 332
yield " ";
// line 333
yield " ";
// line 334
yield " ";
// line 335
yield " ";
// line 336
yield " ";
// line 337
yield " ";
// line 338
yield " ";
// line 339
yield " ";
// line 340
yield " ";
// line 341
yield " ";
// line 342
yield " ";
// line 343
yield " ";
// line 344
yield " ";
// line 345
yield " ";
// line 346
yield " ";
// line 347
yield " ";
// line 348
yield " ";
// line 349
yield " ";
// line 350
yield " </div>
<div class=\"more-consultant\">
";
// line 353
yield " </div>
</div>
</div>
<div class=\"col-md-6 \">
<div class=\"pList\"></div>
<div class=\"page-pagination mt-5\" id=\"consultant_pagination\">
</div>
</div>
<div class=\"col-md-3\">
<div class=\"consultancy-topic\">
<div class=\"consultancy-topic-title\">
<h6>Consultancy Topic</h6>
</div>
";
// line 368
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["topic"]) || array_key_exists("topic", $context) ? $context["topic"] : (function () { throw new RuntimeError('Variable "topic" does not exist.', 368, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["data"]) {
// line 369
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, ($context["countries_data"] ?? null), CoreExtension::getAttribute($this->env, $this->source, $context["data"], "countryId", [], "any", false, false, false, 369), [], "array", true, true, false, 369)) {
// line 370
yield " <div class=\"consultancy-topic-content\" style=\"cursor: pointer;\"
onclick=\"window.location.href='";
// line 371
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("topic_list");
yield "/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["data"], "id", [], "any", false, false, false, 371), "html", null, true);
yield "'\">
<div class=\"consultant-card d-flex\">
<div class=\"consultant-card-left\">
<div class=\"consultant-img\">
<img class=\"bordered-flag\" style=\"height: 68px; width:68px;\"
src=\"";
// line 376
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html", null, true);
((CoreExtension::getAttribute($this->env, $this->source, ($context["countries_data"] ?? null), CoreExtension::getAttribute($this->env, $this->source, $context["data"], "countryId", [], "any", false, false, false, 376), [], "array", true, true, false, 376)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["countries_data"]) || array_key_exists("countries_data", $context) ? $context["countries_data"] : (function () { throw new RuntimeError('Variable "countries_data" does not exist.', 376, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["data"], "countryId", [], "any", false, false, false, 376), [], "array", false, false, false, 376), "flagImageSquare", [], "any", false, false, false, 376), "html", null, true)) : (yield "buddybee_assets/images/country-1.png"));
yield "\"
alt=\"country-1\">
</div>
</div>
<div class=\"consultant-card-right\">
<div class=\"consultant-title\">
<h4>";
// line 382
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["data"], "topicName", [], "any", false, false, false, 382), "html", null, true);
yield "</h4>
<p>";
// line 383
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["data"], "topicSummary", [], "any", false, false, false, 383), "html", null, true);
yield "</p>
</div>
</div>
</div>
</div>
";
}
// line 389
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['data'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 390
yield "
";
// line 393
yield " ";
// line 394
yield " ";
// line 395
yield " </div>
</div>
</div>
</div>
</div>
</section>
";
// line 403
yield from $this->loadTemplate("@Application/footer/buddybee_new_footer.html.twig", "@Buddybee/pages/consultancySearchPage.html.twig", 403)->unwrap()->yield($context);
// line 404
yield "
<script type=\"text/javascript\"
src=\"";
// line 406
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html", null, true);
yield "condensed_assets/pagination/pagination.js?version=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html", null, true);
yield "\"></script>
<script>
var countries_data =";
// line 409
yield json_encode((isset($context["countries_data"]) || array_key_exists("countries_data", $context) ? $context["countries_data"] : (function () { throw new RuntimeError('Variable "countries_data" does not exist.', 409, $this->source); })()));
yield "
var language_list =";
// line 410
yield json_encode((isset($context["language_list"]) || array_key_exists("language_list", $context) ? $context["language_list"] : (function () { throw new RuntimeError('Variable "language_list" does not exist.', 410, $this->source); })()));
yield "
var topic_conditional_string = \"preferredTopicIdsAsConsultant like '%\\\"";
// line 412
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["topicId"]) || array_key_exists("topicId", $context) ? $context["topicId"] : (function () { throw new RuntimeError('Variable "topicId" does not exist.', 412, $this->source); })()), "html", null, true);
yield "\\\"%'\"
var config = {
'mainTableAlias': \"mainTable\",
'mainTableClass': \"CompanyGroupBundle\\\\Entity\\\\EntityApplicantDetails\",
'mainTableIdField': \"Id\",
// 'otherConditions': \" (mainTable.CompanyId=1 and mainTable.status=1) \",
// 'otherConditions': \" ( mainTable.isConsultant=1 and mainTable.accountStatus=1 ) \",
";
// line 420
$context["THIS_USER_ID"] = 0;
// line 421
yield "
";
// line 424
if (CoreExtension::getAttribute($this->env, $this->source, ($context["session"] ?? null), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 424, $this->source); })()), "USER_ID", [], "any", false, false, false, 424), [], "array", true, true, false, 424)) {
// line 425
yield " ";
$context["THIS_USER_ID"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["session"]) || array_key_exists("session", $context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.', 425, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants", $context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.', 425, $this->source); })()), "USER_ID", [], "any", false, false, false, 425), [], "array", false, false, false, 425);
// line 426
yield "
";
}
// line 428
yield "
";
// line 429
if ((0 === CoreExtension::compare((isset($context["ref"]) || array_key_exists("ref", $context) ? $context["ref"] : (function () { throw new RuntimeError('Variable "ref" does not exist.', 429, $this->source); })()), "_ADMIN_"))) {
// line 430
yield "
";
// line 431
if ((0 !== CoreExtension::compare((isset($context["topicId"]) || array_key_exists("topicId", $context) ? $context["topicId"] : (function () { throw new RuntimeError('Variable "topicId" does not exist.', 431, $this->source); })()), 0))) {
// line 432
yield " 'otherConditions': \" ( mainTable.isAdmin >=1 and mainTable.applicantId != ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["THIS_USER_ID"]) || array_key_exists("THIS_USER_ID", $context) ? $context["THIS_USER_ID"] : (function () { throw new RuntimeError('Variable "THIS_USER_ID" does not exist.', 432, $this->source); })()), "html", null, true);
yield " and mainTable.preferredTopicIdsAsConsultant like '%\\\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["topicId"]) || array_key_exists("topicId", $context) ? $context["topicId"] : (function () { throw new RuntimeError('Variable "topicId" does not exist.', 432, $this->source); })()), "html", null, true);
yield "\\\"%' ) \",
";
} else {
// line 434
yield " 'otherConditions': \" ( mainTable.isAdmin >=1 and mainTable.applicantId != ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["THIS_USER_ID"]) || array_key_exists("THIS_USER_ID", $context) ? $context["THIS_USER_ID"] : (function () { throw new RuntimeError('Variable "THIS_USER_ID" does not exist.', 434, $this->source); })()), "html", null, true);
yield " ) \",
";
}
// line 436
yield " ";
} else {
// line 437
yield " ";
if ((0 !== CoreExtension::compare((isset($context["topicId"]) || array_key_exists("topicId", $context) ? $context["topicId"] : (function () { throw new RuntimeError('Variable "topicId" does not exist.', 437, $this->source); })()), 0))) {
// line 438
yield " 'otherConditions': \" ( mainTable.isConsultant=1 and mainTable.applicantId != ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["THIS_USER_ID"]) || array_key_exists("THIS_USER_ID", $context) ? $context["THIS_USER_ID"] : (function () { throw new RuntimeError('Variable "THIS_USER_ID" does not exist.', 438, $this->source); })()), "html", null, true);
yield " and mainTable.preferredTopicIdsAsConsultant like '%\\\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["topicId"]) || array_key_exists("topicId", $context) ? $context["topicId"] : (function () { throw new RuntimeError('Variable "topicId" does not exist.', 438, $this->source); })()), "html", null, true);
yield "\\\"%' ) \",
";
} else {
// line 440
yield " 'otherConditions': \" ( mainTable.isConsultant=1 and mainTable.applicantId != ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["THIS_USER_ID"]) || array_key_exists("THIS_USER_ID", $context) ? $context["THIS_USER_ID"] : (function () { throw new RuntimeError('Variable "THIS_USER_ID" does not exist.', 440, $this->source); })()), "html", null, true);
yield " ) \",
";
}
// line 442
yield "
";
}
// line 444
yield "
'dateFieldsToStr': ['createdAt'],
'dateFieldsToStrFormat': ['m-d-Y h:i'],
'convertToObjectFields': ['languagesData'],
'skipColumnNames': [],
'flagColNames': [],
'flagConversionByCols': {},
'joinTableList': [
// {
// 'tableClass': \"CompanyGroupBundle\\\\Entity\\\\EntityApplicantDetails\",
// 'tableAlias': \"consultantTable\",
// 'onField': 'applicantId',
// \"onMainTableField\": \"applicantId\",
// \"fields\": {
// //'alisaFiled':'actiual field Name'
// 'consultantFirstName': 'firstname',
// 'consultantLastName': 'lastname',
// 'consultantImage': 'image',
//
// }
// },
// {
// 'tableClass': \"CompanyGroupBundle\\\\Entity\\\\EntityApplicantDetails\",
// 'tableAlias': \"studentTable\",
// 'onField': 'applicantId',
// \"onMainTableField\": \"studentId\",
// \"fields\": {
// //'alisaFiled':'actiual field Name'
// 'studentFirstName': 'firstname',
// 'studentLastName': 'lastname',
// 'studentImage': 'image',
//
// }
// },
],
'returnJson': 1,
'getUnitListFlag': 1
}
var pika = null;
function refresh_filter() {
";
// line 491
if ((0 === CoreExtension::compare((isset($context["ref"]) || array_key_exists("ref", $context) ? $context["ref"] : (function () { throw new RuntimeError('Variable "ref" does not exist.', 491, $this->source); })()), "_ADMIN_"))) {
// line 492
yield " var new_other_cond = \"( mainTable.isAdmin >= 1 and mainTable.applicantId != ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["THIS_USER_ID"]) || array_key_exists("THIS_USER_ID", $context) ? $context["THIS_USER_ID"] : (function () { throw new RuntimeError('Variable "THIS_USER_ID" does not exist.', 492, $this->source); })()), "html", null, true);
yield " and (1=0 \";
";
} else {
// line 494
yield " var new_other_cond = \"( mainTable.isConsultant=1 and mainTable.applicantId != ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["THIS_USER_ID"]) || array_key_exists("THIS_USER_ID", $context) ? $context["THIS_USER_ID"] : (function () { throw new RuntimeError('Variable "THIS_USER_ID" does not exist.', 494, $this->source); })()), "html", null, true);
yield " and (1=0 \";
";
}
// line 496
yield "
if (\$(\".langFilter:checked\").length)
\$(\".langFilter:checked\").each(function (indu, elem) {
new_other_cond += \"or mainTable.languagesData like '%\\\"\" + \$(elem).val() + \"\\\"%' \";
})
else
new_other_cond += \"or 1=1 \";
new_other_cond += \") and (1=0 \"
if (\$(\".countryFilter:checked\").length)
\$(\".countryFilter:checked\").each(function (indu, elem) {
new_other_cond += \"or mainTable.currentCountryId = \" + \$(elem).val() + \" \";
})
else
new_other_cond += \"or 1=1 \";
new_other_cond += \") and (mainTable.preferredTopicIdsAsConsultant is null or mainTable.preferredTopicIdsAsConsultant='[]' or mainTable.preferredTopicIdsAsConsultant='' \"
if (\$(\".topicFilter:checked\").length)
\$(\".topicFilter:checked\").each(function (indu, elem) {
new_other_cond += \"or mainTable.preferredTopicIdsAsConsultant like '%\\\"\" + \$(elem).val() + \"\\\"%' \";
})
else
new_other_cond += \"or 1=1 \";
";
// line 520
yield " ";
// line 521
yield " ";
// line 522
yield " new_other_cond += \" ) ) \"
";
// line 524
yield "
config.otherConditions = new_other_cond;
if (pika != null)
pika.pagination(1)
else
pika = \$('#consultant_pagination').pagination({
dataSource: \"";
// line 531
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("generic_datatable_ajax_company_group");
yield "?dataTableQry=1\",
locator: 'data',
// totalNumberLocator: function(response) {
// // you can return totalNumber by analyzing response content
// return Math.floor(Math.random() * (1000 - 100)) + 100;
// },
pageSize: 10,
classPrefix: \"pico\",
ulClassName: \"pagination justify-content-center\",
// totalNumber: 6,
totalNumberLocator: function (response) {
// you can return totalNumber by analyzing response content
return response.totalObjectsCount != 0 ? (response.totalObjectsCount) : 0;
},
className: \"pagination-div\",
// pageRange: null,
// prevText :'<i class=\"material-icons\">chevron_left</i>',
// nextText :'<i class=\"material-icons\">chevron_right</i>',
ajax: {
beforeSend: function () {
// dataContainer.html('Loading data from flickr.com ...');
},
\"type\": 'POST',
\"data\": {
returnJson: 1,
config: config
// sessionData: sessionData,
// getUnitListFlag:getUnitListFlag
}
},
callback: function (data, pagination) {
// template method of yourself
var html = \"\";
// alert('working')
// console.log(data)
\$('html,body').stop().animate({scrollTop: 0}, 500, 'swing', function () {
// alert(\"Finished animating\");
});
for (var k = 0; k < data.length; k++) {
var row_here = data[k]
";
// line 579
if ((0 === CoreExtension::compare((isset($context["ref"]) || array_key_exists("ref", $context) ? $context["ref"] : (function () { throw new RuntimeError('Variable "ref" does not exist.', 579, $this->source); })()), "_ADMIN_"))) {
// line 580
yield "
if (data[k].isAdmin <= 0)
continue;
";
} else {
// line 584
yield " if (data[k].isConsultant = 0)
continue;
";
}
// line 588
yield "
var speaks_content = \"\";
var languages_data = row_here.mainTable.languagesData;
for (var lol = 0; lol < languages_data.length; lol++) {
speaks_content += '<span> ' +
'<img class=\"small_language_img\" style=\"width: 20px; \" src=\"";
// line 596
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html", null, true);
yield "' + (typeof language_list[languages_data[lol]] === 'undefined' ? 'buddybee_assets/images/flag-2.png' : language_list[languages_data[lol]].image) + '\" alt=\"flag-2\">' +
' ' + language_list[languages_data[lol]].name + '</span>'
}
html += ' <div style=\"cursor:pointer;\" class=\"consultant-bio d-flex justify-content-between ' + (k != 0 ? ' mt-5' : '') + '\" onclick=\"window.location.href=\\'";
// line 600
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("consultant_profile");
yield "/' + data[k].applicantId + '";
(((0 !== CoreExtension::compare((isset($context["topicId"]) || array_key_exists("topicId", $context) ? $context["topicId"] : (function () { throw new RuntimeError('Variable "topicId" does not exist.', 600, $this->source); })()), 0))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(("?topicId=" . (isset($context["topicId"]) || array_key_exists("topicId", $context) ? $context["topicId"] : (function () { throw new RuntimeError('Variable "topicId" does not exist.', 600, $this->source); })())), "html", null, true)) : (yield ""));
yield "\\'\">' +
'<div class=\"consultant-bio-left\">' +
'<div class=\"consultant-bio-img\">' +
";
// line 604
yield " ";
// line 605
yield " ";
// line 606
yield " ((row_here.mainTable.image != null && row_here.mainTable.image != '') ? '<div style=\"background:url(' + row_here.mainTable.image + ')\" class=\"cons_image_view\" ></div>' :
'<div style=\"background:url(";
// line 607
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html", null, true);
yield "buddybee_assets/images/consultant_image_ph_male.png)\" class=\"cons_image_view\" ></div>') +
'<div class=\"consultant-review\">' +
(row_here.mainTable.rating >0?
((row_here.mainTable.rating >= 1 ? '<i class=\"fas fa-star\"></i>' : '<i class=\"fa fa-star\"></i>') +
(row_here.mainTable.rating >= 2 ? '<i class=\"fas fa-star\"></i>' : '<i class=\"fa fa-star\"></i>') +
(row_here.mainTable.rating >= 3 ? '<i class=\"fas fa-star\"></i>' : '<i class=\"fa fa-star\"></i>') +
(row_here.mainTable.rating >= 4 ? '<i class=\"fas fa-star\"></i>' : '<i class=\"fa fa-star\"></i>') +
(row_here.mainTable.rating >= 4.5 ? '<i class=\"fas fa-star\"></i>' : '<i class=\"fa fa-star\"></i>') +
'<span class=\"rating_value_span\" style=\"font-weight:bold;\"> ' + ((1 * row_here.mainTable.rating).toFixed(1)) + '</span>'):
('<span class=\"rating_value_span\" style=\"font-weight:bold;\"> </span>'))
+
(row_here.mainTable.scheduleAvailableFlag==1?('<span class=\"book_btn_span\"><a href=\"";
// line 623
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("consultant_profile");
yield "/' + row_here.mainTable.applicantId + '\" >Book</a></span>'):('<span class=\"book_btn_span\"><a style=\"background:orange;\" href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("consultant_profile");
yield "/' + row_here.mainTable.applicantId + '\" >Unavailable</a></span>')) +
'</div>' +
'</div>' +
'</div>' +
'<div class=\"consultant-bio-right\" style=\"min-height:8rem;\">' +
'<h3>' + row_here.mainTable.firstname + ' ' + row_here.mainTable.lastname + '</h3>' +
'<p><b>Profession: </b>' + ((row_here.mainTable.professionText != '' && row_here.mainTable.professionText != null) ? row_here.mainTable.professionText : 'Buddybee Consultant') + '</p>' +
'<p><b>University: </b>' + ((row_here.mainTable.universityText != '' && row_here.mainTable.universityText != null) ? row_here.mainTable.universityText : '') + '</p>' +
// '<p><b>University: </b>Canadian English University College</p>' +
'<p><b>Country: </b>' + (typeof countries_data[row_here.mainTable.currentCountryId] === 'undefined' ? '' : countries_data[row_here.mainTable.currentCountryId].name) + '</p>' +
'<p><b>Speaks: </b>' + speaks_content + '</p>' +
// '<p><b>Interests: </b>'+((row_here.mainTable.interest != '' && row_here.mainTable.interest != null) ?row_here.mainTable.interest:'Learning new Things') +'</p>' +
'<p><b>Education: </b>' + ((row_here.mainTable.educationText != '' && row_here.mainTable.educationText != null) ? row_here.mainTable.educationText : '') + '</p>' +
'<p><b>Speciality: </b>' + ((row_here.mainTable.speciality != '' && row_here.mainTable.speciality != null) ? row_here.mainTable.speciality : '') + '</p>' +
// '<p><b>Speciality: </b>Badminton,Music,Culture & Heritage, Median & Arts</p>' +
// '<p><b>Education: </b>Canadian University International College</p>' +
// '<p><b>Speciality: </b>English (Native US/Canada)</p>' +
'</div>' +
'</div>'
}
// console.log(data)
\$('.pList').html(html);
}
})
}
\$(document).ready(function () {
var lastViewedConsultantListStr = window.localStorage.getItem('lvcl');
var lastViewedConsultantList = [];
if (lastViewedConsultantListStr != 'null' && lastViewedConsultantListStr != null)
lastViewedConsultantList = JSON.parse(lastViewedConsultantListStr);
for (var p = 0; p < lastViewedConsultantList.length; p++) {
var currConsDataForLastview = lastViewedConsultantList[p];
var toappendStr = '<div class=\"viewed-consultant-content\" onclick=\"window.location.href=\\'' + currConsDataForLastview.prfUrl + '\\'\">' +
'<div class=\"consultant-card d-flex\">' +
'<div class=\"consultant-card-left\">' +
'<div class=\"consultant-img\" style=\"background: url(' + currConsDataForLastview.imageUrl + ');' +
'height: 68px;' +
'width: 68px;' +
'border-radius: 50%;' +
'background-size: cover;' +
'background-position: center;\">' +
// '<img src=\"'+currConsDataForLastview.imageUrl+'\" style=\"width:68px;\" alt=\"consultant-3\">'+
'<div class=\"cosultant-country\">' +
'<img style=\"width: 20px; height: 20px;\" src=\"";
// line 675
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html", null, true);
yield "' + (typeof countries_data[currConsDataForLastview.currentCountryId] === 'undefined' ? 'buddybee_assets/images/flag-2.png' : countries_data[currConsDataForLastview.currentCountryId].flagImageSquare) + '\" alt=\"\">' +
'</div>' +
'</div>' +
'</div>' +
'<div class=\"consultant-card-right\">' +
'<div class=\"consultant-title\">' +
'<h4>' + currConsDataForLastview.name + '</h4>' +
'<p>' + (typeof currConsDataForLastview.professionalTitle !== 'undefined' ? currConsDataForLastview.professionalTitle : 'Professional Consultant') + '</p>' +
'</div>' +
'</div>' +
'</div>' +
'</div>';
\$('#lvcl').append(toappendStr);
";
// line 689
yield " ";
// line 690
yield " ";
// line 691
yield " ";
// line 692
yield " ";
// line 693
yield "
";
// line 695
yield " }
\$('.consFilter').change(function () {
refresh_filter()
// op
})
refresh_filter()
\$(document).mouseup(function (e) {
var container = \$(\".filter_div_content\");
// if the target of the click isn't the container nor a descendant of the container
if (!container.is(e.target) && container.has(e.target).length === 0) {
container.hide();
}
});
\$('.filter_div_btn').click(function (e) {
e.preventDefault();
\$('.filter_div_content').toggle()
})
var consultantSearch = \$(\".consultantSearch\").selectize({
valueField: \"url\",
labelField: \"name\",
searchField: \"name\",
create: false,
preload: true,
render: {
option: function (item, escape) {
return (
'<div style=\"padding: 2px;\">' +
'<span class=\"title\" style=\" min-width: 2rem;display: inline-block;\">' +
((item.image != null && item.image != '') ? '<img style=\"border-radius: 50%;height: 2rem;width: 2rem;\" src=\"' + item.image + '\" alt=\"\" class=\"img-fluid\" >' :
'<img style=\"border-radius: 50%;height: 2rem;width: 2rem;\" src=\"";
// line 735
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html", null, true);
yield "buddybee_assets/images/consultant_image_ph_male.png\" alt=\"\" class=\"img-fluid\" >') +
\"</span>\" +
'<span class=\"name\" style=\"padding-left:0.5rem;font-size: 14px;\">' +
// '<i class=\"icon ' +
// (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
// '\"></i>' +
// \"<div class='form-control mainDiv'>\" +
// '<span class=\"name\">' +
escape(item.name) +
\"</span>\" +
// '<span class=\"description\">' +
// escape(item.description) +
// \"</span>\" +
\"</div>\"
);
// return (
// \"<div>\" +
// '<span class=\"title\">' +
// '<span class=\"name\"><i class=\"icon ' +
// (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
// '\"></i>' +
// escape(item.name) +
// \"</span>\" +
//
// \"</span>\" +
// '<span class=\"description\">' +
// escape(item.description) +
// \"</span>\" +
//
// \"</div>\"
// );
},
},
onChange: function (value) {
if (!value.length) return;
var sval = value
consultantSearch.setValue([])
window.location.href = sval;
//addProductToListById(value);
// alert(value)
// small_search_box.clear()
// small_search_box.focus()
},
load: function (query, callback) {
if (!query.length) return callback();
\$.ajax({
url: \"";
// line 798
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("consultant_search_from_list");
yield "/\" + encodeURIComponent(query),
type: \"GET\",
error: function () {
callback();
},
success: function (res) {
// console.log(res.data)
callback(res.data);
},
});
},
})[0].selectize;
});
</script>
<style type=\"text/css\">
body {
/*-moz-transform: scale(0.5, 0.5); !* Moz-browsers *!*/
zoom: 1; /* Other non-webkit browsers */
zoom: 100%; /* Webkit browsers */
}
/*.modal-dialog {*/
/*width: 75%;*/
/*}*/
.trans_amount {
text-align: right;
}
</style>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@Buddybee/pages/consultancySearchPage.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 1154 => 798, 1088 => 735, 1046 => 695, 1043 => 693, 1041 => 692, 1039 => 691, 1037 => 690, 1035 => 689, 1019 => 675, 962 => 623, 943 => 607, 940 => 606, 938 => 605, 936 => 604, 928 => 600, 921 => 596, 911 => 588, 905 => 584, 899 => 580, 897 => 579, 846 => 531, 837 => 524, 834 => 522, 832 => 521, 830 => 520, 805 => 496, 799 => 494, 793 => 492, 791 => 491, 742 => 444, 738 => 442, 732 => 440, 724 => 438, 721 => 437, 718 => 436, 712 => 434, 704 => 432, 702 => 431, 699 => 430, 697 => 429, 694 => 428, 690 => 426, 687 => 425, 685 => 424, 680 => 421, 678 => 420, 667 => 412, 662 => 410, 658 => 409, 650 => 406, 646 => 404, 644 => 403, 634 => 395, 632 => 394, 630 => 393, 626 => 390, 620 => 389, 611 => 383, 607 => 382, 597 => 376, 587 => 371, 584 => 370, 581 => 369, 577 => 368, 560 => 353, 556 => 350, 554 => 349, 552 => 348, 550 => 347, 548 => 346, 546 => 345, 544 => 344, 542 => 343, 540 => 342, 538 => 341, 536 => 340, 534 => 339, 532 => 338, 530 => 337, 528 => 336, 526 => 335, 524 => 334, 522 => 333, 520 => 332, 518 => 331, 516 => 330, 514 => 329, 512 => 328, 510 => 327, 508 => 326, 506 => 325, 504 => 324, 502 => 323, 500 => 322, 498 => 321, 496 => 320, 494 => 319, 492 => 318, 490 => 317, 488 => 316, 486 => 315, 484 => 314, 482 => 313, 480 => 312, 478 => 311, 476 => 310, 474 => 309, 472 => 308, 470 => 307, 468 => 306, 466 => 305, 464 => 304, 462 => 303, 460 => 302, 458 => 301, 456 => 300, 454 => 299, 452 => 298, 450 => 297, 448 => 296, 446 => 295, 444 => 294, 442 => 293, 440 => 292, 438 => 291, 436 => 290, 434 => 289, 432 => 288, 430 => 287, 428 => 286, 426 => 285, 424 => 284, 422 => 283, 420 => 282, 418 => 281, 416 => 280, 414 => 279, 412 => 278, 386 => 253, 376 => 249, 372 => 248, 362 => 247, 356 => 246, 352 => 244, 348 => 243, 344 => 241, 334 => 237, 330 => 236, 324 => 235, 320 => 233, 316 => 232, 312 => 230, 302 => 226, 298 => 225, 292 => 224, 288 => 222, 284 => 221, 270 => 210, 266 => 208, 264 => 207, 254 => 198, 250 => 196, 246 => 194, 244 => 193, 237 => 188, 234 => 187, 232 => 186, 46 => 2, 44 => 1,);
}
public function getSourceContext()
{
return new Source("{% include '@Application/inc/buddybee_new_header.html.twig' %}
<style>
.consultant-bio-img img {
height: 154px;
border-radius: 10%;
}
.small_language_img {
}
.consultant-bio-img .cons_image_view {
height: 154px;
width: 154px;
border-radius: 10%;
background-size: cover !important;
background-position: center !important;
}
.consultant_search_bar.searchbar-content {
position: relative;
}
.consultant_search_bar.searchbar-content a {
position: absolute;
right: 9px;
top: 7px;
}
.filter_div img {
/*display: block;*/
color: #fff;
/*padding: 10px 0;*/
font-size: 14px;
background: #1D5B9E;
width: 40px;
height: 40px;
padding: 6px;
text-align: center;
line-height: 51px;
border-radius: 50%;
}
.filter_div_btn {
}
.filter_div {
display: inline-block;
width: 70px;
padding: 10px 0;
position: relative;
}
.consultant-title .searchbar {
width: 290px;
display: inline-block;
position: relative;
}
.filter_div_content {
padding: 20px;
width: 300px;
min-height: 400px;
height: auto;
left: -115px;
position: absolute;
z-index: 99999;
background: white;
display: none;;
/*border:1px solid darkblue;*/
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.filter_div_content .head {
display: flex;
justify-content: space-between;
border-bottom: 1px solid #f1e4e4;
}
.filter_div_content .head .title {
font-size: 13px;
display: inline-block;
float: left;
margin-bottom: 0.5rem;
}
.filter_div_content .head .title.right {
float: right;
color: #1D5B9E;
font-weight: bold;
text-decoration: none;
}
.filter_div_content .body {
text-align: left;
/*padding-top: 15px;*/
}
.filter_div_content .body .title {
margin-top: 15px;
margin-bottom: 2px;
font-size: 11px;
text-align: left;
text-transform: uppercase;
color: #6c757d;
}
.filter_div_content .body .option {
}
.filter_div_content .body .form-check {
text-align: left;
width: 49%;
display: inline-block;
}
.filter_div_content .body .form-check .form-check-label span {
font-size: 13px;;
}
.filter_div_content .body .form-check .form-check-input:checked {
background-color: #1D5B9E;
border-color: #1D5B9E;
}
@media (min-width: 320px) and (max-width: 480px) {
.consultant-title .searchbar {
width: 250px;
}
.filter_div_content {
left: unset;
right: 0;
}
}
@media (min-width: 481px) and (max-width: 540px) {
.consultant-title .searchbar {
width: 250px;
}
.filter_div_content {
left: unset;
right: 0;
}
}
@media (min-width: 320px) and (max-width: 480px) {
.consultant-bio-img .cons_image_view {
height: 60px !important;
width: 60px !important;
margin: auto;
}
.consultant-bio-img {
text-align: center;
}
.book_btn_span {
/*display: none;*/
}
.rating_value_span {
display: block;
padding: 0 21px;;
}
}
</style>
<section class=\"consultant-section\">
{% set countries_data='_HAS_CONSULTANT_'|getCountriesBuddyBee('object') %}
{% set language_list='_ALL_'|getLanguagesBuddyBee('object') %}
<div class=\"consultant-title\">
<div class=\"container\">
<div class=\"row mb-5\">
<div class=\"col-md-3\"></div>
<div class=\"col-md-6\" style=\"position: relative;text-align: center\">
{% if ref=='_ADMIN_' %}
<h2>Meet the BuddyBee Admins</h2>
{% else %}
<h2>Meet the BuddyBee Consultant</h2>
{% endif %}
<div class=\"searchbar\" style=\"\">
<div class=\"searchbar-content consultant_search_bar\">
<input type=\"text\" placeholder=\"Search Consultant\" class=\"consultantSearch small_search\">
<a href=\"#\"><i class=\"fas fa-search\"></i></a>
</div>
</div>
<div class=\"filter_div\" style=\"width: 70px;\">
<a href=\"#\" class=\"filter_div_btn\">
{#<img style=\"width: 20px; height: 20px;\" src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/filter_image.png\" alt=\"\">#}
{#<i class=\"fas fa-filter\">#}
<i class=\"\">
<img style=\"\"
src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/filter_image.png\"
alt=\"\">
</i>
</a>
<div class=\"filter_div_content\" style=\"\">
<div class=\"head\">
<h1 class=\"title\">Filter By</h1>
<a class=\"title right\">Reset Filters</a>
</div>
<div class=\"body\">
<h1 class=\"title\">Language</h1>
{% for entry in language_list %}
<div class=\"form-check\">
<input class=\"form-check-input consFilter langFilter\" type=\"checkbox\"
value=\"{{ entry.id }}\" id=\"langFilter{{ entry.id }}\" >
<label class=\"form-check-label\" for=\"langFilter{{ entry.id }}\">
<span>{{ entry.name }}</span>
</label>
</div>
{% endfor %}
<h1 class=\"title\">Country</h1>
{% for entry in countries_data %}
<div class=\"form-check\">
<input class=\"form-check-input consFilter countryFilter\" type=\"checkbox\"
value=\"{{ entry.id }}\" id=\"countryFilter{{ entry.id }}\" >
<label class=\"form-check-label\" for=\"countryFilter{{ entry.id }}\">
<span>{{ entry.name }}</span>
</label>
</div>
{% endfor %}
<h1 class=\"title\">Topics</h1>
{% for entry in topic %}
<div class=\"form-check\" style=\"width: 100%;\">
<input class=\"form-check-input consFilter topicFilter\" type=\"checkbox\"
value=\"{{ entry.id }}\" id=\"topicFilter{{ entry.id }}\"
{% if topicId !=0 %}{% if topicId ==entry.id %}checked{% endif %} {% else %}{% endif %}>
<label class=\"form-check-label\" for=\"topicFilter{{ entry.id }}\">
<span>{{ entry.topicName }}</span>
</label>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
<div class=\"col-md-3\"></div>
</div>
</div>
</div>
<div class=\"consultant-list\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-3\">
<div class=\"viewed-consultant\">
<div class=\"viewed-consultant-title\">
<h6>Last Viewed</h6>
</div>
<div id=\"lvcl\">
{##}
{#<div class=\"viewed-consultant-content my-2\">#}
{#<div class=\"consultant-card d-flex\">#}
{#<div class=\"consultant-card-left\">#}
{#<div class=\"consultant-img\">#}
{#<img src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/consultant-3.png\" alt=\"consultant-3\">#}
{#<div class=\"cosultant-country\">#}
{#<img src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/flag-2.png\" alt=\"flag-2\">#}
{#</div>#}
{#</div>#}
{#</div>#}
{#<div class=\"consultant-card-right\">#}
{#<div class=\"consultant-title\">#}
{#<h4>Philip Ericsson</h4>#}
{#<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Magnis fames fames fames fames</p>#}
{#</div>#}
{#</div>#}
{#</div>#}
{#</div>#}
{#<div class=\"viewed-consultant-content\">#}
{#<div class=\"consultant-card d-flex\">#}
{#<div class=\"consultant-card-left\">#}
{#<div class=\"consultant-img\">#}
{#<img src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/consultant-3.png\" alt=\"consultant-3\">#}
{#<div class=\"cosultant-country\">#}
{#<img src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/flag-2.png\" alt=\"flag-2\">#}
{#</div>#}
{#</div>#}
{#</div>#}
{#<div class=\"consultant-card-right\">#}
{#<div class=\"consultant-title\">#}
{#<h4>Philip Ericsson</h4>#}
{#<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Magnis fames fames fames fames</p>#}
{#</div>#}
{#</div>#}
{#</div>#}
{#</div>#}
{#<div class=\"viewed-consultant-content my-2\">#}
{#<div class=\"consultant-card d-flex\">#}
{#<div class=\"consultant-card-left\">#}
{#<div class=\"consultant-img\">#}
{#<img src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/consultant-3.png\" alt=\"consultant-3\">#}
{#<div class=\"cosultant-country\">#}
{#<img src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/flag-2.png\" alt=\"flag-2\">#}
{#</div>#}
{#</div>#}
{#</div>#}
{#<div class=\"consultant-card-right\">#}
{#<div class=\"consultant-title\">#}
{#<h4>Philip Ericsson</h4>#}
{#<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Magnis fames fames fames fames</p>#}
{#</div>#}
{#</div>#}
{#</div>#}
{#</div>#}
{#<div class=\"viewed-consultant-content\">#}
{#<div class=\"consultant-card d-flex\">#}
{#<div class=\"consultant-card-left\">#}
{#<div class=\"consultant-img\">#}
{#<img src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/consultant-3.png\" alt=\"consultant-3\">#}
{#<div class=\"cosultant-country\">#}
{#<img src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/flag-2.png\" alt=\"flag-2\">#}
{#</div>#}
{#</div>#}
{#</div>#}
{#<div class=\"consultant-card-right\">#}
{#<div class=\"consultant-title\">#}
{#<h4>Philip Ericsson</h4>#}
{#<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Magnis fames fames fames fames</p>#}
{#</div>#}
{#</div>#}
{#</div>#}
{#</div>#}
</div>
<div class=\"more-consultant\">
{#<p style=\"text-align: center;\"><a href=\"#\">View More</a></p>#}
</div>
</div>
</div>
<div class=\"col-md-6 \">
<div class=\"pList\"></div>
<div class=\"page-pagination mt-5\" id=\"consultant_pagination\">
</div>
</div>
<div class=\"col-md-3\">
<div class=\"consultancy-topic\">
<div class=\"consultancy-topic-title\">
<h6>Consultancy Topic</h6>
</div>
{% for data in topic %}
{% if countries_data[data.countryId] is defined %}
<div class=\"consultancy-topic-content\" style=\"cursor: pointer;\"
onclick=\"window.location.href='{{ path('topic_list') }}/{{ data.id }}'\">
<div class=\"consultant-card d-flex\">
<div class=\"consultant-card-left\">
<div class=\"consultant-img\">
<img class=\"bordered-flag\" style=\"height: 68px; width:68px;\"
src=\"{{ absolute_url(path('dashboard')) }}{{ countries_data[data.countryId] is defined?countries_data[data.countryId].flagImageSquare:'buddybee_assets/images/country-1.png' }}\"
alt=\"country-1\">
</div>
</div>
<div class=\"consultant-card-right\">
<div class=\"consultant-title\">
<h4>{{ data.topicName }}</h4>
<p>{{ data.topicSummary }}</p>
</div>
</div>
</div>
</div>
{% endif %}
{% endfor %}
{# <div class=\"more-consultant\">#}
{# <center><a href=\"#\">View More</a></center>#}
{# </div>#}
</div>
</div>
</div>
</div>
</div>
</section>
{% include '@Application/footer/buddybee_new_footer.html.twig' %}
<script type=\"text/javascript\"
src=\"{{ absolute_url(path('dashboard')) }}condensed_assets/pagination/pagination.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
<script>
var countries_data ={{ countries_data|json_encode()|raw() }}
var language_list ={{ language_list|json_encode()|raw() }}
var topic_conditional_string = \"preferredTopicIdsAsConsultant like '%\\\"{{ topicId }}\\\"%'\"
var config = {
'mainTableAlias': \"mainTable\",
'mainTableClass': \"CompanyGroupBundle\\\\Entity\\\\EntityApplicantDetails\",
'mainTableIdField': \"Id\",
// 'otherConditions': \" (mainTable.CompanyId=1 and mainTable.status=1) \",
// 'otherConditions': \" ( mainTable.isConsultant=1 and mainTable.accountStatus=1 ) \",
{% set THIS_USER_ID= 0 %}
{% if (session[UserConstants.USER_ID] is defined ) %}
{% set THIS_USER_ID =session[UserConstants.USER_ID] %}
{% endif %}
{% if ref=='_ADMIN_' %}
{% if topicId !=0 %}
'otherConditions': \" ( mainTable.isAdmin >=1 and mainTable.applicantId != {{ THIS_USER_ID }} and mainTable.preferredTopicIdsAsConsultant like '%\\\"{{ topicId }}\\\"%' ) \",
{% else %}
'otherConditions': \" ( mainTable.isAdmin >=1 and mainTable.applicantId != {{ THIS_USER_ID }} ) \",
{% endif %}
{% else %}
{% if topicId !=0 %}
'otherConditions': \" ( mainTable.isConsultant=1 and mainTable.applicantId != {{ THIS_USER_ID }} and mainTable.preferredTopicIdsAsConsultant like '%\\\"{{ topicId }}\\\"%' ) \",
{% else %}
'otherConditions': \" ( mainTable.isConsultant=1 and mainTable.applicantId != {{ THIS_USER_ID }} ) \",
{% endif %}
{% endif %}
'dateFieldsToStr': ['createdAt'],
'dateFieldsToStrFormat': ['m-d-Y h:i'],
'convertToObjectFields': ['languagesData'],
'skipColumnNames': [],
'flagColNames': [],
'flagConversionByCols': {},
'joinTableList': [
// {
// 'tableClass': \"CompanyGroupBundle\\\\Entity\\\\EntityApplicantDetails\",
// 'tableAlias': \"consultantTable\",
// 'onField': 'applicantId',
// \"onMainTableField\": \"applicantId\",
// \"fields\": {
// //'alisaFiled':'actiual field Name'
// 'consultantFirstName': 'firstname',
// 'consultantLastName': 'lastname',
// 'consultantImage': 'image',
//
// }
// },
// {
// 'tableClass': \"CompanyGroupBundle\\\\Entity\\\\EntityApplicantDetails\",
// 'tableAlias': \"studentTable\",
// 'onField': 'applicantId',
// \"onMainTableField\": \"studentId\",
// \"fields\": {
// //'alisaFiled':'actiual field Name'
// 'studentFirstName': 'firstname',
// 'studentLastName': 'lastname',
// 'studentImage': 'image',
//
// }
// },
],
'returnJson': 1,
'getUnitListFlag': 1
}
var pika = null;
function refresh_filter() {
{% if ref=='_ADMIN_' %}
var new_other_cond = \"( mainTable.isAdmin >= 1 and mainTable.applicantId != {{ THIS_USER_ID }} and (1=0 \";
{% else %}
var new_other_cond = \"( mainTable.isConsultant=1 and mainTable.applicantId != {{ THIS_USER_ID }} and (1=0 \";
{% endif %}
if (\$(\".langFilter:checked\").length)
\$(\".langFilter:checked\").each(function (indu, elem) {
new_other_cond += \"or mainTable.languagesData like '%\\\"\" + \$(elem).val() + \"\\\"%' \";
})
else
new_other_cond += \"or 1=1 \";
new_other_cond += \") and (1=0 \"
if (\$(\".countryFilter:checked\").length)
\$(\".countryFilter:checked\").each(function (indu, elem) {
new_other_cond += \"or mainTable.currentCountryId = \" + \$(elem).val() + \" \";
})
else
new_other_cond += \"or 1=1 \";
new_other_cond += \") and (mainTable.preferredTopicIdsAsConsultant is null or mainTable.preferredTopicIdsAsConsultant='[]' or mainTable.preferredTopicIdsAsConsultant='' \"
if (\$(\".topicFilter:checked\").length)
\$(\".topicFilter:checked\").each(function (indu, elem) {
new_other_cond += \"or mainTable.preferredTopicIdsAsConsultant like '%\\\"\" + \$(elem).val() + \"\\\"%' \";
})
else
new_other_cond += \"or 1=1 \";
{#{% if topicId !=0 %}#}
{#new_other_cond+=\" ) and mainTable.preferredTopicIdsAsConsultant like '%\\\"{{ topicId }}\\\"%' ) \";#}
{#{% else %}#}
new_other_cond += \" ) ) \"
{#{% endif %}#}
config.otherConditions = new_other_cond;
if (pika != null)
pika.pagination(1)
else
pika = \$('#consultant_pagination').pagination({
dataSource: \"{{ url('generic_datatable_ajax_company_group') }}?dataTableQry=1\",
locator: 'data',
// totalNumberLocator: function(response) {
// // you can return totalNumber by analyzing response content
// return Math.floor(Math.random() * (1000 - 100)) + 100;
// },
pageSize: 10,
classPrefix: \"pico\",
ulClassName: \"pagination justify-content-center\",
// totalNumber: 6,
totalNumberLocator: function (response) {
// you can return totalNumber by analyzing response content
return response.totalObjectsCount != 0 ? (response.totalObjectsCount) : 0;
},
className: \"pagination-div\",
// pageRange: null,
// prevText :'<i class=\"material-icons\">chevron_left</i>',
// nextText :'<i class=\"material-icons\">chevron_right</i>',
ajax: {
beforeSend: function () {
// dataContainer.html('Loading data from flickr.com ...');
},
\"type\": 'POST',
\"data\": {
returnJson: 1,
config: config
// sessionData: sessionData,
// getUnitListFlag:getUnitListFlag
}
},
callback: function (data, pagination) {
// template method of yourself
var html = \"\";
// alert('working')
// console.log(data)
\$('html,body').stop().animate({scrollTop: 0}, 500, 'swing', function () {
// alert(\"Finished animating\");
});
for (var k = 0; k < data.length; k++) {
var row_here = data[k]
{% if ref=='_ADMIN_' %}
if (data[k].isAdmin <= 0)
continue;
{% else %}
if (data[k].isConsultant = 0)
continue;
{% endif %}
var speaks_content = \"\";
var languages_data = row_here.mainTable.languagesData;
for (var lol = 0; lol < languages_data.length; lol++) {
speaks_content += '<span> ' +
'<img class=\"small_language_img\" style=\"width: 20px; \" src=\"{{ absolute_url(path('dashboard')) }}' + (typeof language_list[languages_data[lol]] === 'undefined' ? 'buddybee_assets/images/flag-2.png' : language_list[languages_data[lol]].image) + '\" alt=\"flag-2\">' +
' ' + language_list[languages_data[lol]].name + '</span>'
}
html += ' <div style=\"cursor:pointer;\" class=\"consultant-bio d-flex justify-content-between ' + (k != 0 ? ' mt-5' : '') + '\" onclick=\"window.location.href=\\'{{ path('consultant_profile') }}/' + data[k].applicantId + '{{ topicId!=0?('?topicId='~topicId):'' }}\\'\">' +
'<div class=\"consultant-bio-left\">' +
'<div class=\"consultant-bio-img\">' +
{#((row_here.mainTable.image!=null && row_here.mainTable.image!='')? '<img src=\"'+row_here.mainTable.image +'\" alt=\"\" class=\"img-fluid\" style=\"154px\">':#}
{#'<img src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/consultant_image_ph_male.png\" alt=\"\" class=\"img-fluid\" style=\"154px\">') +#}
{#'<div class=\"consultant-review\">' + #}
((row_here.mainTable.image != null && row_here.mainTable.image != '') ? '<div style=\"background:url(' + row_here.mainTable.image + ')\" class=\"cons_image_view\" ></div>' :
'<div style=\"background:url({{ absolute_url(path('dashboard')) }}buddybee_assets/images/consultant_image_ph_male.png)\" class=\"cons_image_view\" ></div>') +
'<div class=\"consultant-review\">' +
(row_here.mainTable.rating >0?
((row_here.mainTable.rating >= 1 ? '<i class=\"fas fa-star\"></i>' : '<i class=\"fa fa-star\"></i>') +
(row_here.mainTable.rating >= 2 ? '<i class=\"fas fa-star\"></i>' : '<i class=\"fa fa-star\"></i>') +
(row_here.mainTable.rating >= 3 ? '<i class=\"fas fa-star\"></i>' : '<i class=\"fa fa-star\"></i>') +
(row_here.mainTable.rating >= 4 ? '<i class=\"fas fa-star\"></i>' : '<i class=\"fa fa-star\"></i>') +
(row_here.mainTable.rating >= 4.5 ? '<i class=\"fas fa-star\"></i>' : '<i class=\"fa fa-star\"></i>') +
'<span class=\"rating_value_span\" style=\"font-weight:bold;\"> ' + ((1 * row_here.mainTable.rating).toFixed(1)) + '</span>'):
('<span class=\"rating_value_span\" style=\"font-weight:bold;\"> </span>'))
+
(row_here.mainTable.scheduleAvailableFlag==1?('<span class=\"book_btn_span\"><a href=\"{{ path('consultant_profile') }}/' + row_here.mainTable.applicantId + '\" >Book</a></span>'):('<span class=\"book_btn_span\"><a style=\"background:orange;\" href=\"{{ path('consultant_profile') }}/' + row_here.mainTable.applicantId + '\" >Unavailable</a></span>')) +
'</div>' +
'</div>' +
'</div>' +
'<div class=\"consultant-bio-right\" style=\"min-height:8rem;\">' +
'<h3>' + row_here.mainTable.firstname + ' ' + row_here.mainTable.lastname + '</h3>' +
'<p><b>Profession: </b>' + ((row_here.mainTable.professionText != '' && row_here.mainTable.professionText != null) ? row_here.mainTable.professionText : 'Buddybee Consultant') + '</p>' +
'<p><b>University: </b>' + ((row_here.mainTable.universityText != '' && row_here.mainTable.universityText != null) ? row_here.mainTable.universityText : '') + '</p>' +
// '<p><b>University: </b>Canadian English University College</p>' +
'<p><b>Country: </b>' + (typeof countries_data[row_here.mainTable.currentCountryId] === 'undefined' ? '' : countries_data[row_here.mainTable.currentCountryId].name) + '</p>' +
'<p><b>Speaks: </b>' + speaks_content + '</p>' +
// '<p><b>Interests: </b>'+((row_here.mainTable.interest != '' && row_here.mainTable.interest != null) ?row_here.mainTable.interest:'Learning new Things') +'</p>' +
'<p><b>Education: </b>' + ((row_here.mainTable.educationText != '' && row_here.mainTable.educationText != null) ? row_here.mainTable.educationText : '') + '</p>' +
'<p><b>Speciality: </b>' + ((row_here.mainTable.speciality != '' && row_here.mainTable.speciality != null) ? row_here.mainTable.speciality : '') + '</p>' +
// '<p><b>Speciality: </b>Badminton,Music,Culture & Heritage, Median & Arts</p>' +
// '<p><b>Education: </b>Canadian University International College</p>' +
// '<p><b>Speciality: </b>English (Native US/Canada)</p>' +
'</div>' +
'</div>'
}
// console.log(data)
\$('.pList').html(html);
}
})
}
\$(document).ready(function () {
var lastViewedConsultantListStr = window.localStorage.getItem('lvcl');
var lastViewedConsultantList = [];
if (lastViewedConsultantListStr != 'null' && lastViewedConsultantListStr != null)
lastViewedConsultantList = JSON.parse(lastViewedConsultantListStr);
for (var p = 0; p < lastViewedConsultantList.length; p++) {
var currConsDataForLastview = lastViewedConsultantList[p];
var toappendStr = '<div class=\"viewed-consultant-content\" onclick=\"window.location.href=\\'' + currConsDataForLastview.prfUrl + '\\'\">' +
'<div class=\"consultant-card d-flex\">' +
'<div class=\"consultant-card-left\">' +
'<div class=\"consultant-img\" style=\"background: url(' + currConsDataForLastview.imageUrl + ');' +
'height: 68px;' +
'width: 68px;' +
'border-radius: 50%;' +
'background-size: cover;' +
'background-position: center;\">' +
// '<img src=\"'+currConsDataForLastview.imageUrl+'\" style=\"width:68px;\" alt=\"consultant-3\">'+
'<div class=\"cosultant-country\">' +
'<img style=\"width: 20px; height: 20px;\" src=\"{{ absolute_url(path('dashboard')) }}' + (typeof countries_data[currConsDataForLastview.currentCountryId] === 'undefined' ? 'buddybee_assets/images/flag-2.png' : countries_data[currConsDataForLastview.currentCountryId].flagImageSquare) + '\" alt=\"\">' +
'</div>' +
'</div>' +
'</div>' +
'<div class=\"consultant-card-right\">' +
'<div class=\"consultant-title\">' +
'<h4>' + currConsDataForLastview.name + '</h4>' +
'<p>' + (typeof currConsDataForLastview.professionalTitle !== 'undefined' ? currConsDataForLastview.professionalTitle : 'Professional Consultant') + '</p>' +
'</div>' +
'</div>' +
'</div>' +
'</div>';
\$('#lvcl').append(toappendStr);
{#var currConsDataForLastview={#}
{#imageUrl:'{{ consultantDetails.image }}',#}
{#name:'{{ consultantDetails.firstname }} {{ consultantDetails.lastName }}',#}
{#consSummary:'{{ consSummary }}',#}
{#prfUrl:'{{ url('consultant_profile') }}/{{ consultantDetails.applicantId }}'#}
{#};#}
}
\$('.consFilter').change(function () {
refresh_filter()
// op
})
refresh_filter()
\$(document).mouseup(function (e) {
var container = \$(\".filter_div_content\");
// if the target of the click isn't the container nor a descendant of the container
if (!container.is(e.target) && container.has(e.target).length === 0) {
container.hide();
}
});
\$('.filter_div_btn').click(function (e) {
e.preventDefault();
\$('.filter_div_content').toggle()
})
var consultantSearch = \$(\".consultantSearch\").selectize({
valueField: \"url\",
labelField: \"name\",
searchField: \"name\",
create: false,
preload: true,
render: {
option: function (item, escape) {
return (
'<div style=\"padding: 2px;\">' +
'<span class=\"title\" style=\" min-width: 2rem;display: inline-block;\">' +
((item.image != null && item.image != '') ? '<img style=\"border-radius: 50%;height: 2rem;width: 2rem;\" src=\"' + item.image + '\" alt=\"\" class=\"img-fluid\" >' :
'<img style=\"border-radius: 50%;height: 2rem;width: 2rem;\" src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/images/consultant_image_ph_male.png\" alt=\"\" class=\"img-fluid\" >') +
\"</span>\" +
'<span class=\"name\" style=\"padding-left:0.5rem;font-size: 14px;\">' +
// '<i class=\"icon ' +
// (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
// '\"></i>' +
// \"<div class='form-control mainDiv'>\" +
// '<span class=\"name\">' +
escape(item.name) +
\"</span>\" +
// '<span class=\"description\">' +
// escape(item.description) +
// \"</span>\" +
\"</div>\"
);
// return (
// \"<div>\" +
// '<span class=\"title\">' +
// '<span class=\"name\"><i class=\"icon ' +
// (item.type == 1 ? \"fa fa-list\" : \"fa fa-clock\") +
// '\"></i>' +
// escape(item.name) +
// \"</span>\" +
//
// \"</span>\" +
// '<span class=\"description\">' +
// escape(item.description) +
// \"</span>\" +
//
// \"</div>\"
// );
},
},
onChange: function (value) {
if (!value.length) return;
var sval = value
consultantSearch.setValue([])
window.location.href = sval;
//addProductToListById(value);
// alert(value)
// small_search_box.clear()
// small_search_box.focus()
},
load: function (query, callback) {
if (!query.length) return callback();
\$.ajax({
url: \"{{ url('consultant_search_from_list') }}/\" + encodeURIComponent(query),
type: \"GET\",
error: function () {
callback();
},
success: function (res) {
// console.log(res.data)
callback(res.data);
},
});
},
})[0].selectize;
});
</script>
<style type=\"text/css\">
body {
/*-moz-transform: scale(0.5, 0.5); !* Moz-browsers *!*/
zoom: 1; /* Other non-webkit browsers */
zoom: 100%; /* Webkit browsers */
}
/*.modal-dialog {*/
/*width: 75%;*/
/*}*/
.trans_amount {
text-align: right;
}
</style>
", "@Buddybee/pages/consultancySearchPage.html.twig", "/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/src/ApplicationBundle/Modules/Buddybee/Resources/views/pages/consultancySearchPage.html.twig");
}
}