var/cache/dev/twig/c4/c4f5a4de7b025c1bcac10c6e329ed1eb38d30f66e41541f799ee62854322c8d1.php line 1524

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* @Application/pages/dashboard/index_central_landing.html.twig */
  15. class __TwigTemplate_5dfcad24c43b73d800d95f64d8a6bd51453a8862686243cc0af5ce087637ed58 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Application/pages/dashboard/index_central_landing.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Application/pages/dashboard/index_central_landing.html.twig"));
  34.         // line 1
  35.         yield "";
  36.         yield from         $this->loadTemplate("@HoneybeeWeb/website/flow_header.html.twig""@Application/pages/dashboard/index_central_landing.html.twig"1)->unwrap()->yield($context);
  37.         // line 2
  38.         yield "<meta name=\"robots\" content=\"noindex, nofollow\">
  39. ";
  40.         // line 3
  41.         $context["isConsultant"] = ((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.'3$this->source); })()), "IS_CONSULTANT", [], "any"falsefalsefalse3), [], "array"truetruefalse3)) ? (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.'3$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.'3$this->source); })()), "IS_CONSULTANT", [], "any"falsefalsefalse3), [], "array"falsefalsefalse3)) : (0));
  42.         // line 4
  43.         $context["BUDDYBEE_ADMIN_LEVEL"] = ((CoreExtension::getAttribute($this->env$this->source, ($context["session"] ?? null), CoreExtension::getAttribute($this->env$this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants"$context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.'4$this->source); })()), "BUDDYBEE_ADMIN_LEVEL", [], "any"falsefalsefalse4), [], "array"truetruefalse4)) ? (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.'4$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.'4$this->source); })()), "BUDDYBEE_ADMIN_LEVEL", [], "any"falsefalsefalse4), [], "array"falsefalsefalse4)) : (0));
  44.         // line 5
  45.         yield "<link rel=\"stylesheet\"
  46.       href=\"";
  47.         // line 6
  48.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html"nulltrue);
  49.         yield "buddybee_assets/css/imgProgress.css?version=";
  50.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  51.         yield "\">
  52. <style>
  53.     /*.swiper-slide {*/
  54.     /*    pointer-events: auto;*/
  55.     /*}*/
  56.     /*.swiper-slide-prev,*/
  57.     /*.swiper-slide-next {*/
  58.     /*    pointer-events: auto; !* optional if you want them clickable *!*/
  59.     /*}*/
  60.     /*.swiper-slide-active {*/
  61.     /*    z-index: 2; !* keep top slide visible *!*/
  62.     /*}*/
  63.     /*.swiper-wrapper {*/
  64.     /*    overflow: visible; !* important: allows slide shadows/clicks outside container *!*/
  65.     /*}*/
  66.     .select-center {
  67.         text-align-last: center;
  68.         text-align: center;
  69.     }
  70.     .send-button:hover,
  71.     .send-button:focus,
  72.     .send-button:active {
  73.         background-color: #2673B8;
  74.         color: white;
  75.         outline: none;
  76.         box-shadow: none;
  77.     }
  78.     .modal div[class*=\"col-md\"], .modal div[class*=\"col-lg\"], .modal div[class*=\"col-xs\"], .modal div[class*=\"col-sm\"] {
  79.         margin-bottom: 0px;
  80.     }
  81.     .d-flex {
  82.         display: flex;
  83.     }
  84.     #selectEntityModal {
  85.         box-shadow: 0px 6px 18px rgb(0 0 0 / 9%);
  86.         */ border-radius: 12px;
  87.     }
  88.     #selectEntityModal .modal-body {
  89.         padding: 0 1rem;
  90.     }
  91.     #selectEntityModal p {
  92.         margin-bottom: .5rem;
  93.     }
  94.     /* Style for selected option in selectize */
  95.     .selectize-input {
  96.         padding: 10px;
  97.         font-size: 1rem;
  98.         color: #333;
  99.         border: none;
  100.     }
  101.     #selectEntityModal .selectize-input.items {
  102.         border: 1px solid #d0d0d0;
  103.         padding: 8px 8px;
  104.         display: inline-block;
  105.         width: 100%;
  106.         overflow: hidden;
  107.         position: relative;
  108.         z-index: 1;
  109.         box-sizing: border-box;
  110.         box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1);
  111.         border-radius: 3px;
  112.     }
  113.     #selectEntityModalForm {
  114.         /*max-width: 500px;*/
  115.         background-color: var(--global-background-color, #ffffff);
  116.         /*margin: 40px auto;*/
  117.         padding: 40px;
  118.         box-shadow: 0px 6px 18px rgb(0 0 0 / 9%);
  119.         /*border-radius: 12px;*/
  120.     }
  121.     #selectEntityModalForm .form-header {
  122.         gap: 5px;
  123.         text-align: center;
  124.         font-size: .9em;
  125.     }
  126.     #selectEntityModalForm .form-header .stepIndicator {
  127.         position: relative;
  128.         flex: 1;
  129.         padding-bottom: 30px;
  130.     }
  131.     #selectEntityModalForm .form-header .stepIndicator.active {
  132.         font-weight: 600;
  133.     }
  134.     #selectEntityModalForm .form-header .stepIndicator.finish {
  135.         font-weight: 600;
  136.         color: #009688;
  137.     }
  138.     #selectEntityModalForm .form-header .stepIndicator::before {
  139.         content: \"\";
  140.         position: absolute;
  141.         left: 50%;
  142.         bottom: 0;
  143.         transform: translateX(-50%);
  144.         z-index: 9;
  145.         width: 20px;
  146.         height: 20px;
  147.         background-color: #d5efed;
  148.         border-radius: 50%;
  149.         border: 3px solid #ecf5f4;
  150.     }
  151.     #selectEntityModalForm .form-header .stepIndicator.active::before {
  152.         background-color: #a7ede8;
  153.         border: 3px solid #d5f9f6;
  154.     }
  155.     #selectEntityModalForm .form-header .stepIndicator.finish::before {
  156.         background-color: #009688;
  157.         border: 3px solid #b7e1dd;
  158.     }
  159.     #selectEntityModalForm .form-header .stepIndicator::after {
  160.         content: \"\";
  161.         position: absolute;
  162.         left: 50%;
  163.         bottom: 8px;
  164.         width: 100%;
  165.         height: 3px;
  166.         background-color: #f3f3f3;
  167.     }
  168.     #selectEntityModalForm .form-header .stepIndicator.active::after {
  169.         background-color: #a7ede8;
  170.     }
  171.     #selectEntityModalForm .form-header .stepIndicator.finish::after {
  172.         background-color: #009688;
  173.     }
  174.     #selectEntityModalForm .form-header .stepIndicator:last-child:after {
  175.         display: none;
  176.     }
  177.     #selectEntityModalForm input {
  178.         padding: 15px 20px;
  179.         width: 100%;
  180.         font-size: 1em;
  181.         border: 1px solid #e3e3e3;
  182.         border-radius: 5px;
  183.     }
  184.     #selectEntityModalForm input:focus {
  185.         border: 1px solid #009688;
  186.         outline: 0;
  187.     }
  188.     #selectEntityModalForm input.invalid {
  189.         border: 1px solid #ffaba5;
  190.     }
  191.     #selectEntityModalForm .step {
  192.         display: none;
  193.     }
  194.     #selectEntityModalForm .form-footer {
  195.         overflow: auto;
  196.         gap: 20px;
  197.     }
  198.     #selectEntityModalForm .form-footer button {
  199.         background-color: #1d5b9e;
  200.         border: 1px solid #1d5b9e;
  201.         color: #ffffff;
  202.         border: none;
  203.         padding: 13px 30px;
  204.         font-size: 1em;
  205.         cursor: pointer;
  206.         border-radius: 5px;
  207.         flex: 1;
  208.         margin-top: 5px;
  209.     }
  210.     #selectEntityModalForm .form-footer button:hover {
  211.         opacity: 0.8;
  212.     }
  213.     #selectEntityModalForm .form-footer #promptInfo_prevBtn {
  214.         background-color: var(--global-background-color, #fff);
  215.         color: #009688;
  216.     }
  217.     .box-selector {
  218.         padding: 10px 4px;
  219.         cursor: pointer;
  220.     }
  221.     .box-selector .inside {
  222.         padding: 5px;
  223.         background: white;
  224.         border-radius: 5px;
  225.         -webkit-box-shadow: 10px 10px 48px -24px rgba(14, 26, 87, 1);
  226.         -moz-box-shadow: 10px 10px 48px -24px rgba(14, 26, 87, 1);
  227.         box-shadow: 10px 10px 48px -24px rgba(14, 26, 87, 1);
  228.     }
  229.     .box-selector .inside input {
  230.         cursor: pointer
  231.     }
  232.     .box-selector .inside textarea {
  233.         text-align: center;
  234.         cursor: pointer;
  235.         width: 100%;
  236.         border: none;
  237.         resize: none;
  238.         font-size: 14px;
  239.         color: #1d5b9e;
  240.         font-weight: bold;
  241.     }
  242.     .box-selector.sch_selector_mon .inside,
  243.     .box-selector.sch_selector_day .inside
  244.         /*.box-selector.sch_selector_time .inside*/
  245.     {
  246.         padding: 10px 5px;
  247.     }
  248.     .box-selector.sch_selector_time .inside {
  249.         padding: 4px 5px;
  250.     }
  251.     .step .view_if_has_schedules {
  252.         display: none;
  253.     }
  254.     .box-selector.active:not(.man_sch_selector) .inside {
  255.         border: 2px solid #1d5b9e;
  256.         -webkit-box-shadow: 10px 10px 24px -3px rgba(29, 91, 158, 1);
  257.         -moz-box-shadow: 10px 10px 24px -3px rgba(29, 91, 158, 1);
  258.         box-shadow: 10px 10px 24px -3px rgba(29, 91, 158, 1);
  259.     }
  260.     .box-selector.active.man_sch_selector .inside {
  261.         border: 2px solid #1d5b9e;
  262.         -webkit-box-shadow: none;
  263.         -moz-box-shadow: none;
  264.         box-shadow: none;
  265.     }
  266.     .box-selector.sch_selector_mon.active .inside,
  267.     .box-selector.sch_selector_day.active .inside,
  268.     .box-selector.sch_selector_time.active .inside {
  269.         border: 2px solid #1d5b9e;
  270.         -webkit-box-shadow: 4px 7px 24px -3px rgba(29, 91, 158, 1);
  271.         -moz-box-shadow: 10px 10px 24px -3px rgba(29, 91, 158, 1);
  272.         box-shadow: 4px 7px 24px -3px rgba(29, 91, 158, 1);
  273.     }
  274.     .box-selector .img {
  275.         margin-left: 5px;
  276.     }
  277.     .box-selector .title {
  278.         text-align: center;
  279.         font-size: var(--cp-fs-base, 13px);
  280.         margin-top: auto;
  281.         margin-bottom: auto;
  282.     }
  283.     .box-selector.paymentMethodSelectorBtn .title {
  284.         text-align: center;
  285.         margin-bottom: 1px;
  286.         font-size: 14px;
  287.     }
  288.     .box-selector .sub-title {
  289.         font-size: 12px;
  290.         color: grey;
  291.     }
  292.     .qr-card {
  293.         position: absolute;
  294.         top: 50%;
  295.         left: 50%;
  296.         transform: translate(-50%, -50%);
  297.         width: min(350px, calc(100vw - 32px));
  298.         margin-top: 10px;
  299.         border-radius: 12px;
  300.         z-index: 1000;
  301.         padding: 10px;
  302.     }
  303.     .qr-card .card {
  304.         border: none;
  305.         background: transparent;
  306.         text-align: center;
  307.     }
  308.     .qr-card img {
  309.         width: 100%;
  310.         margin: 10px auto;
  311.         display: block;
  312.     }
  313.     .hidden {
  314.         display: none;
  315.     }
  316.     /* Flexbox for card container to display them side by side */
  317.     .employee-card-container {
  318.         display: flex;
  319.         justify-content: left; /* Center the cards horizontally */
  320.         gap: 20px; /* Add space between the cards */
  321.         flex-wrap: wrap;
  322.         margin-top: 20px;
  323.     }
  324.     .employee-card {
  325.         padding: 20px;
  326.         box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  327.         border-radius: 10px;
  328.         max-width: 320px;
  329.         width: 100%;
  330.         text-align: center;
  331.         display: inline-block;
  332.     }
  333.     .form-group {
  334.         margin-bottom: 10px;
  335.     }
  336.     /* Style for the entire form */
  337.     .form-group {
  338.         margin-bottom: 1.5rem;
  339.     }
  340.     /* Style for the labels */
  341.     .form-group label {
  342.         font-size: .8rem;
  343.         font-weight: 300;
  344.         color: #333;
  345.         margin-bottom: 0.1rem;
  346.         display: block;
  347.     }
  348.     /* Style for the input fields */
  349.     .form-control {
  350.         width: 100%;
  351.         max-width: 100%;
  352.         padding: 0px;
  353.         font-size: 1rem;
  354.         border-radius: 5px;
  355.         box-sizing: border-box;
  356.     }
  357.     /* Hover effect for input fields */
  358.     .form-control:hover {
  359.         border-color: #0056b3;
  360.     }
  361.     /* Focus effect for input fields */
  362.     .form-control:focus {
  363.         border-color: #0056b3;
  364.         outline: none;
  365.     }
  366.     /* Dropdown list customization */
  367.     .selectize-dropdown {
  368.         border-radius: 5px;
  369.         box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  370.         font-size: 1rem;
  371.         max-height: 200px;
  372.     }
  373.     /* Style for selectize items */
  374.     .selectize-dropdown .option {
  375.         padding: 10px;
  376.         font-size: 1rem;
  377.         color: #333;
  378.     }
  379.     /* Hover effect for selectize items */
  380.     .selectize-dropdown .option:hover {
  381.         background-color: #0056b3;
  382.         color: white;
  383.     }
  384.     /* Style for the \"Add Employee\" and \"Close\" buttons */
  385.     .btn-primary, .btn-secondary {
  386.         padding: 10px 20px;
  387.         font-size: 1rem;
  388.         border: none;
  389.         border-radius: 5px;
  390.         cursor: pointer;
  391.     }
  392.     /* Style for the primary button */
  393.     .btn-primary {
  394.         color: white;
  395.     }
  396.     /* Hover effect for primary button */
  397.     .btn-primary:hover {
  398.         background-color: #0056b3;
  399.     }
  400.     /* Style for the secondary button */
  401.     .btn-secondary {
  402.         background-color: #6c757d;
  403.         color: white;
  404.     }
  405.     /* Hover effect for secondary button */
  406.     .btn-secondary:hover {
  407.         background-color: #5a6268;
  408.     }
  409.     #selectEntityModal .routineTable {
  410.         text-align: left;
  411.         vertical-align: middle;
  412.     }
  413.     #selectEntityModal .routineTable .icon-delete {
  414.         color: darkred;
  415.         font-weight: bold;
  416.     }
  417.     #selectEntityModal .routineTable .icon-delete .fa {
  418.         padding: 10px;
  419.         border-radius: 39px;
  420.         border: 1px solid #eddcdc;
  421.         width: 34px;
  422.         height: 34px;
  423.         text-align: center;
  424.     }
  425.     #selectEntityModal .routineTable .icon-check {
  426.         color: green;
  427.         font-weight: bold;
  428.     }
  429.     #selectEntityModal .routineTable .icon-check .fa {
  430.         opacity: 0.1;
  431.     }
  432.     #selectEntityModal .routineTable .icon-check.isChecked .fa {
  433.         opacity: 1;
  434.     }
  435.     #selectEntityModal .routineTable .icon-check .fa {
  436.         padding: 10px;
  437.         border-radius: 39px;
  438.         border: 1px solid #eddcdc;
  439.         width: 34px;
  440.         height: 34px;
  441.         text-align: center;
  442.     }
  443.     #selectEntityModal .routineTable {
  444.         text-align: left;
  445.         vertical-align: middle;
  446.     }
  447.     #selectEntityModal .routineTable .icon-delete {
  448.         color: darkred;
  449.         font-weight: bold;
  450.     }
  451.     #selectEntityModal .routineTable .icon-delete .fa {
  452.         padding: 10px;
  453.         border-radius: 39px;
  454.         border: 1px solid #eddcdc;
  455.         width: 34px;
  456.         height: 34px;
  457.         text-align: center;
  458.     }
  459.     #selectEntityModal .routineTable .icon-check {
  460.         color: green;
  461.         font-weight: bold;
  462.     }
  463.     #selectEntityModal .routineTable .icon-check .fa {
  464.         opacity: 0.1;
  465.     }
  466.     #selectEntityModal .routineTable .icon-check.isChecked .fa {
  467.         opacity: 1;
  468.     }
  469.     #selectEntityModal .routineTable .icon-check .fa {
  470.         padding: 10px;
  471.         border-radius: 39px;
  472.         border: 1px solid #eddcdc;
  473.         width: 34px;
  474.         height: 34px;
  475.         text-align: center;
  476.     }
  477.     @media (min-width: 1400px) {
  478.         .dashboard-main .container {
  479.             max-width: 1400px;
  480.         }
  481.     }
  482.     .upcoming_session_image_view {
  483.         height: 60px;
  484.         width: 60px;
  485.         border-radius: 50%;
  486.         background-size: cover !important;
  487.         background-position: center !important;
  488.     }
  489.     .badge.transaction_completed {
  490.         color: #7AE677;
  491.         background-color: #D9FFD8;
  492.         padding: .7rem;
  493.     }
  494.     .badge.transaction_canceled {
  495.         color: #ED4C5C;
  496.         background-color: #FFE3E2;
  497.         padding: .7rem;
  498.     }
  499.     .badge.transaction_pending {
  500.         color: #373A37;
  501.         background-color: #F2F2F2;
  502.         padding: .7rem;
  503.     }
  504.     .small_info .progress {
  505.         height: 1rem;
  506.         border-radius: 0.5rem;
  507.     }
  508.     .small_info .row {
  509.         margin-top: 19px;
  510.         margin-bottom: 20px;
  511.     }
  512.     .small_info .progress_holder {
  513.         margin-top: auto;
  514.         margin-bottom: auto;
  515.         padding: 0px;
  516.     }
  517.     .small_info .value_type {
  518.         margin-bottom: 0px;
  519.         font-size: 18px;
  520.         color: #373A37;
  521.         font-weight: normal;
  522.     }
  523.     .small_info .percent_value {
  524.         text-align: right;
  525.         margin-bottom: 0px;
  526.         font-size: 18px;
  527.         color: #373A37;
  528.         font-weight: normal;
  529.     }
  530.     .small_info .percent_holder {
  531.         margin-top: auto;
  532.         margin-bottom: auto;
  533.         padding-left: 0px;
  534.     }
  535.     .small_info .value_type_holder {
  536.         margin-top: auto;
  537.         margin-bottom: auto;
  538.     }
  539.     .small_info .progress .progress-bar {
  540.         background: #92E3A9;
  541.     }
  542.     .dashboard-main .card {
  543.         margin-bottom: 13px;
  544.     }
  545.     .accordion-button:focus {
  546.         z-index: 3;
  547.         /* border-color: #86b7fe; */
  548.         outline: 0;
  549.         box-shadow: none;
  550.     }
  551.     .accordion-button:not(.collapsed) {
  552.         /*color: #0c63e4;*/
  553.         background-color: white;
  554.         /*box-shadow: inset 0 -1px 0 rgb(0 0 0 / 13%);*/
  555.     }
  556.     .dial {
  557.         border: 0px;
  558.         width: 0px;
  559.         font-size: 36px !important;
  560.         color: white;
  561.     }
  562.     .rounded_border_card {
  563.         border-radius: 1rem;;
  564.     }
  565.     .status_card {
  566.         border-radius: 1rem;;
  567.     }
  568.     .status_card .card-body {
  569.         padding-bottom: 0;
  570.     }
  571.     .status_card .card-title {
  572.         color: #4B4B4B;
  573.         font-size: var(--cp-fs-xl, 20px);
  574.         font-weight: 400;
  575.         font-family: 'Poppins';
  576.     }
  577.     .status_card .status_value {
  578.         color: #4B4B4B;
  579.         font-size: 60px;
  580.         font-weight: normal;
  581.         font-family: 'Poppins';
  582.     }
  583.     .status_card .col-md-7, .status_card .col-md-5, .status_card .col-md-6 {
  584.         margin-top: auto;
  585.         margin-bottom: auto;
  586.         /*padding: 0;*/
  587.     }
  588.     .status_card .col-md-5 {
  589.         padding-left: 0px;
  590.     }
  591.     .status_card .status_value_trend {
  592.         float: right;
  593.         font-size: 14px;
  594.         font-weight: 400;
  595.         padding: 8px;
  596.         border-radius: 1em;
  597.     }
  598.     .status_value_trend.negative {
  599.         background-color: #FFE4E4;
  600.         color: #F07777;
  601.     }
  602.     .status_value_trend.positive {
  603.         background-color: #C6F1F7;
  604.         color: #137DC3;
  605.     }
  606.     .student_list_card {
  607.         /*border-radius: 1rem;;*/
  608.     }
  609.     .student_list_card .card {
  610.         /*border-radius: 1rem;;*/
  611.         border: none;;
  612.     }
  613.     .student_list_card .card-body {
  614.         padding: 8px;
  615.         border-radius: 13px;
  616.     }
  617.     .student_list_card .card-title {
  618.         color: #4B4B4B;
  619.         font-size: var(--cp-fs-xl, 20px);
  620.         font-weight: 400;
  621.         font-family: 'Poppins';
  622.     }
  623.     .student_list_card .time {
  624.         color: #818181;
  625.         font-size: var(--cp-fs-lg, 16px);
  626.         font-weight: bold;
  627.         font-family: 'Roboto', sans-serif;
  628.         padding-left: 4px;
  629.     }
  630.     .student_list_card .col-md-7,
  631.     .student_list_card .col-md-5,
  632.     .student_list_card .col-md-6,
  633.     .student_list_card .col-md-9,
  634.     .student_list_card .col-md-1,
  635.     .student_list_card .col-md-2,
  636.     .student_list_card .col-md-3 {
  637.         margin-top: auto;
  638.         margin-bottom: auto;
  639.         /*padding: 0;*/
  640.     }
  641.     .student_list_card .col-md-5,
  642.     .student_list_card .col-md-1 {
  643.         padding-left: 0px;
  644.     }
  645.     .student_list_card img {
  646.         width: 100%;
  647.         border-radius: 50%;
  648.     }
  649.     .student_list_card .student_name {
  650.         font-size: 18px;
  651.         font-weight: bold;
  652.         color: #4B4B4B;
  653.         font-family: 'Poppins';
  654.         margin-bottom: 0px;
  655.     }
  656.     .student_list_card .student_interest {
  657.         font-size: var(--cp-fs-lg, 16px);
  658.         font-weight: 400;
  659.         color: #BCC7D8;
  660.         margin-bottom: 0px;;
  661.     }
  662.     .student_list_card .more {
  663.         font-size: var(--cp-fs-lg, 16px);
  664.         font-weight: 400;
  665.         color: #333333;
  666.         margin-bottom: 0px;;
  667.         padding-right: 8px;
  668.     }
  669.     .table > :not(caption) > * > * {
  670.         padding: 1rem 1rem;
  671.     }
  672.     .more {
  673.         font-size: var(--cp-fs-lg, 16px);
  674.         font-weight: 400;
  675.         color: #333333;
  676.         margin-bottom: 0px;;
  677.         padding-right: 8px;
  678.     }
  679.     .custom-icon-btn {
  680.         background-color: #3498db;
  681.         color: white;
  682.         border: none;
  683.         border-radius: 15px;
  684.         text-align: center;
  685.         font-size: var(--cp-fs-lg, 16px);
  686.         font-weight: 500;
  687.     }
  688. </style>
  689. <style>
  690.     /* ── Nordic My Companies ─────────────────────────────────────────────────── */
  691.     :root {
  692.         --n-cream: #F7F5F0;
  693.         --n-dark:  #1A1D2E;
  694.         --n-amber: #C07D2A;
  695.         --n-muted: #6B7280;
  696.         /* Override global blue palette so style.css rules inherit Nordic tokens */
  697.         --global-background-color: #ffffff;
  698.         --primary-color: #1A1D2E;
  699.         --swiper-theme-color: #C07D2A;
  700.     }
  701.     body { background: var(--n-cream) !important; }
  702.     .role-company-page.section { background: var(--n-cream); padding: 48px 0 80px; }
  703.     /* Page heading */
  704.     .section-head-area { text-align: center; margin-bottom: 32px; }
  705.     .section-title,
  706.     .role-company-page .section-title,
  707.     .role-company-page h1.section-title {
  708.         font-family: 'Montserrat', sans-serif !important;
  709.         font-size: clamp(1.6rem,3vw,2.2rem) !important;
  710.         font-weight: 700 !important;
  711.         color: var(--n-dark) !important;
  712.         background: none !important;
  713.         -webkit-background-clip: unset !important;
  714.         -webkit-text-fill-color: var(--n-dark) !important;
  715.         background-clip: unset !important;
  716.         margin: 0;
  717.     }
  718.     /* Tabs */
  719.     .tab-box { display: flex !important; align-items: center; gap: 4px; border-bottom: 2px solid rgba(26,29,46,.1); margin-bottom: 32px; padding-bottom: 0; overflow-x: auto; scrollbar-width: none; }
  720.     .tab-box::-webkit-scrollbar { display: none; }
  721.     .tab-btn.tab-btn-style { background: transparent !important; border: none !important; border-bottom: 3px solid transparent !important; margin-bottom: -2px; padding: 10px 18px; font-family: 'DM Sans', sans-serif; font-size: .875rem; font-weight: 600; color: var(--n-muted) !important; border-radius: 0 !important; cursor: pointer; transition: color .2s, border-color .2s; white-space: nowrap; box-shadow: none !important; }
  722.     .tab-btn.tab-btn-style.active, .tab-btn.tab-btn-style:hover { color: var(--n-dark) !important; border-bottom-color: var(--n-amber) !important; }
  723.     .tab-box .line { display: none; }
  724.     /* Company Swiper cards — !important needed: style.css hardcodes rgba(230,248,250,1) blue */
  725.     .role-company-page .tab-container .content-box .content .card {
  726.         background: var(--global-background-color, #fff) !important;
  727.         border: 1.5px solid rgba(26,29,46,.08) !important;
  728.         border-radius: 14px !important;
  729.         box-shadow: 0 4px 24px rgba(26,29,46,.08) !important;
  730.         padding: 20px !important;
  731.         text-align: center;
  732.         transition: box-shadow .2s, transform .2s;
  733.     }
  734.     .role-company-page .tab-container .content-box .content .card:hover {
  735.         box-shadow: 0 8px 32px rgba(26,29,46,.14) !important;
  736.         transform: translateY(-2px);
  737.     }
  738.     /* Active slide: amber border instead of blue */
  739.     .swiper-slide.swiper-slide-active .card {
  740.         border: 2px solid var(--n-amber) !important;
  741.         background-image: none !important; /* remove the old overlay.svg */
  742.     }
  743.     .swiper-slide .card img { width: 64px; height: 64px; border-radius: 10px; object-fit: contain; margin: 0 auto 12px; display: block; }
  744.     .swiper-slide .card h2 { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700; color: var(--n-dark) !important; margin: 0 0 8px; }
  745.     .swiper-slide .card .role { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--n-amber); background: rgba(192,125,42,.1); padding: 3px 10px; border-radius: 20px; }
  746.     /* Action buttons — !important: style.css has high-specificity blue rules for these */
  747.     .buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
  748.     .app-btn.button {
  749.         display: inline-flex !important; align-items: center !important; gap: 8px;
  750.         padding: 11px 24px !important; border-radius: 8px !important;
  751.         background: transparent !important;
  752.         color: var(--n-dark) !important;
  753.         border: 1.5px solid rgba(26,29,46,.25) !important;
  754.         font-family: 'DM Sans',sans-serif !important; font-size: .9rem; font-weight: 600;
  755.         cursor: pointer; transition: border-color .2s, color .2s; text-decoration: none;
  756.     }
  757.     .app-btn.button:hover { border-color: var(--n-amber) !important; color: var(--n-amber) !important; }
  758.     .app-btn.button i { color: var(--n-dark) !important; }
  759.     .app-btn.button:hover i { color: var(--n-amber) !important; }
  760.     .create-btn.button {
  761.         display: inline-flex !important; align-items: center !important; gap: 8px;
  762.         padding: 11px 24px !important; border-radius: 8px !important;
  763.         background: var(--n-dark) !important; color: #fff !important;
  764.         border: 1.5px solid transparent !important;
  765.         font-family: 'DM Sans',sans-serif !important; font-size: .9rem; font-weight: 600 !important;
  766.         cursor: pointer; transition: background .2s, transform .15s; text-decoration: none !important;
  767.     }
  768.     .create-btn.button:hover { background: var(--n-amber) !important; color: #fff !important; transform: translateY(-1px); text-decoration: none !important; }
  769.     /* Swiper nav */
  770.     .swiper-button-prev::after, .swiper-button-next::after { color: var(--n-amber) !important; }
  771.     .swiper-pagination-bullet-active { background: var(--n-amber) !important; }
  772.     /* Action links bar (Join / Link / Delete) — override old absolute+blue style */
  773.     .role-company-page .tab-container .content-box .content .links {
  774.         position: relative !important;
  775.         top: auto !important;
  776.         display: flex !important;
  777.         justify-content: center !important;
  778.         align-items: stretch !important;
  779.         max-width: 560px !important;
  780.         width: 100% !important;
  781.         margin: 24px auto 0 !important;
  782.         border: 1.5px solid rgba(26,29,46,.12) !important;
  783.         border-radius: 10px !important;
  784.         background: var(--global-background-color, #fff) !important;
  785.         overflow: hidden;
  786.         flex-wrap: nowrap !important;
  787.     }
  788.     .role-company-page .tab-container .content-box .content .links .link {
  789.         display: flex !important;
  790.         align-items: center !important;
  791.         justify-content: center !important;
  792.         gap: 7px;
  793.         flex: 1 1 0;
  794.         padding: 11px 14px !important;
  795.         font-family: 'DM Sans', sans-serif;
  796.         font-size: .82rem;
  797.         font-weight: 600;
  798.         color: var(--n-muted) !important;
  799.         cursor: pointer;
  800.         border-right: 1px solid rgba(26,29,46,.08) !important;
  801.         transition: color .15s, background .15s;
  802.         white-space: nowrap;
  803.     }
  804.     .role-company-page .tab-container .content-box .content .links .link:last-child { border-right: none !important; }
  805.     .role-company-page .tab-container .content-box .content .links .link:hover { color: var(--n-amber) !important; background: rgba(192,125,42,.05); }
  806.     .role-company-page .tab-container .content-box .content .links .link.active { color: var(--n-dark) !important; }
  807.     .role-company-page .tab-container .content-box .content .links .link i { font-size: 14px !important; color: var(--n-amber); padding: 0 !important; }
  808.     /* Onboarding employee cards */
  809.     .employee-card { background: var(--global-background-color, #fff); border-radius: 14px; box-shadow: 0 4px 24px rgba(26,29,46,.08); border: 1px solid rgba(26,29,46,.06); padding: 28px; }
  810.     .employee-card h5 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--n-dark); }
  811.     .employee-card .form-group label { font-size: .78rem; font-weight: 600; color: var(--n-muted); text-transform: uppercase; letter-spacing: .08em; }
  812.     .employee-card .form-control, .employee-card select.form-control { border: 1.5px solid rgba(26,29,46,.12); border-radius: 8px; padding: 10px 14px; font-family: 'DM Sans', sans-serif; color: var(--n-dark); }
  813.     .employee-card .form-control:focus { border-color: var(--n-amber); box-shadow: 0 0 0 3px rgba(192,125,42,.1); outline: none; }
  814.     /* Buttons inside page */
  815.     .global-button, .send-button { background: var(--n-dark) !important; color: #fff !important; border: none !important; border-radius: 8px !important; padding: 10px 24px !important; font-family: 'DM Sans', sans-serif !important; font-weight: 600 !important; cursor: pointer; transition: background .2s; }
  816.     .global-button:hover, .send-button:hover, .global-button:focus, .send-button:focus { background: var(--n-amber) !important; color: #fff !important; box-shadow: none !important; }
  817.     .global-outline-button.extra-btn { background: transparent !important; color: var(--n-dark) !important; border: 2px solid rgba(26,29,46,.25) !important; border-radius: 8px !important; padding: 9px 20px !important; font-family: 'DM Sans', sans-serif; font-weight: 600; cursor: pointer; }
  818.     .global-outline-button.extra-btn:hover { border-color: var(--n-amber) !important; color: var(--n-amber) !important; }
  819.     /* QR card */
  820.     .qr-card .card { background: var(--global-background-color, #fff); border-radius: 14px; box-shadow: 0 8px 32px rgba(26,29,46,.12); border: 1px solid rgba(26,29,46,.06); }
  821.     /* ── Responsive ──────────────────────────────────────────────────────────── */
  822.     @media (max-width: 768px) {
  823.         .role-company-page.section { padding: 32px 0 60px; }
  824.         .employee-card-container { justify-content: center; }
  825.         .employee-card { max-width: 100%; width: 100%; }
  826.     }
  827.     @media (max-width: 480px) {
  828.         .tab-box { gap: 0; }
  829.         .tab-btn.tab-btn-style { padding: 8px 12px; font-size: .8rem; }
  830.         .employee-card-container { flex-direction: column; align-items: stretch; gap: 16px; }
  831.         .buttons { flex-direction: column; }
  832.         .app-btn.button, .create-btn.button { width: 100%; justify-content: center; }
  833.     }
  834. </style>
  835. <section class=\"role-company-page section\">
  836.     <div class=\"container\">
  837.         <div class=\"row\">
  838.             <div class=\"col-md-12 d-flex justify-content-center align-items-center\">
  839.                 <div class=\"section-head-area\">
  840.                     <h1 class=\"section-title\">Your Role & Company List</h1>
  841.                 </div>
  842.             </div>
  843.         </div>
  844.         <div class=\"row d-flex justify-content-center align-items-center\">
  845.             <div class=\"tab-container\">
  846.                 <div class=\"tab-box overflow-x-auto\">
  847.                     <button class=\"tab-btn tab-btn-style active \" id=\"role-tab-1\">Your Company</button>
  848.                     <button class=\"tab-btn tab-btn-style \" id=\"role-tab-2\">Your Role</button>
  849.                     <button class=\"tab-btn tab-btn-style \" id=\"role-tab-3\">Your Dashboard</button>
  850.                     <button class=\"tab-btn tab-btn-style \" id=\"add-employee-btn\">Onboarding</button>
  851.                     <button class=\"tab-btn tab-btn-style \" id=\"role-tab-4\">Shared Company</button>
  852.                     <button class=\"tab-btn tab-btn-style \" id=\"role-tab-5\">Applied Company</button>
  853.                     <div class=\"line\"></div>
  854.                 </div>
  855.                 <div class=\"content-box\">
  856.                     ";
  857.         // line 978
  858.         yield "                    <div class=\"content active\" style=\"cursor:pointer;\">
  859.                         <div class=\"swiper-container\">
  860.                             <div class=\"swiper-wrapper\"></div>
  861.                             ";
  862.         // line 986
  863.         yield "
  864.                             ";
  865.         // line 988
  866.         yield "                            <div class=\"links\">
  867.                                 <div class=\"link\">
  868.                                     <i class='fa fa-user-plus'></i><span>Join this Account</span>
  869.                                 </div>
  870.                                 <div class=\"link active\">
  871.                                     <i class='fa fa-link'></i><span>Link Accounts</span>
  872.                                 </div>
  873.                                 <div class=\"link active\">
  874.                                     <i class='fa fa-trash'></i><span>Delete Account</span>
  875.                                 </div>
  876.                             </div>
  877.                             <div class=\"swiper-pagination\"></div>
  878.                             <div class=\"buttons\">
  879.                                 <button class=\"app-btn button\"><i class=\"fa-regular fa-user\"></i>Apply for Employment
  880.                                 </button>
  881.                                 <a class=\"create-btn button\" href=\"";
  882.         // line 1005
  883.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("create_company");
  884.         yield "\">
  885.                                     <i class=\"fa-regular fa-building\"></i> Create a Company
  886.                                 </a>
  887.                             </div>
  888.                             <div class=\"swiper-button-prev\"></div>
  889.                             <div class=\"swiper-button-next\"></div>
  890.                         </div>
  891.                         ";
  892.         // line 1014
  893.         yield "                    </div>
  894.                     ";
  895.         // line 1016
  896.         yield "                    <div class=\"content\">
  897.                         ";
  898.         // line 1018
  899.         yield "                    </div>
  900.                     ";
  901.         // line 1020
  902.         yield "                    <div class=\"content\">
  903.                         ";
  904.         // line 1022
  905.         yield "                    </div>
  906.                     ";
  907.         // line 1024
  908.         yield "                    <div class=\"content\">
  909.                         <div class=\"employee-card-container hidden\" id=\"employee-card-container\">
  910.                             ";
  911.         // line 1027
  912.         yield "                            <div class=\"employee-card fade show\" id=\"employee-form-wrapper\">
  913.                                 <div class=\"\" id=\"employee-card\">
  914.                                     <h5 class='text-center mb-3'>By Generating QR/Link</h5>
  915.                                     <form id=\"employee-form \">
  916.                                         ";
  917.         // line 1032
  918.         yield "                                        <div class=\"form-group\">
  919.                                             <select id=\"employee-type\" name=\"qrEmpType\"
  920.                                                     class=\"form-control p-2 select-center\">
  921.                                                 <option value=\"\">Select User Type</option>
  922.                                                 <option value=\"1\">Admin</option>
  923.                                                 <option value=\"2\">User</option>
  924.                                                 <option value=\"3\">Manager</option>
  925.                                             </select>
  926.                                         </div>
  927.                                         ";
  928.         // line 1043
  929.         yield "                                        <div class=\"form-group\">
  930.                                             <select id=\"company-name-qr\" class=\"form-control\">
  931.                                                 <option value=\"\">Select Company</option>
  932.                                             </select>
  933.                                         </div>
  934.                                         ";
  935.         // line 1050
  936.         yield "                                        <div class=\"form-group mt-3\">
  937.                                             <select name=\"sys_user\" class=\"form-control entityEmp \" id=\"email\">
  938.                                                 <option value=\"\">Select Employee</option>
  939.                                             </select>
  940.                                         </div>
  941.                                         <button type=\"button\" class=\"global-button fs-6\" id=\"qr-code-button\">Generate
  942.                                         </button>
  943.                                     </form>
  944.                                 </div>
  945.                             </div>
  946.                             ";
  947.         // line 1063
  948.         yield "                            <div class=\"employee-card fade show \" id=\"self-qr-form-wrapper\">
  949.                                 <div id=\"self-qr-card\">
  950.                                     <h5 class='text-center mb-3'>Generate QR for Yourself</h5>
  951.                                     <form id=\"self-qr-form\">
  952.                                         <div class=\"form-group \">
  953.                                             <label>Your Email</label>
  954.                                             <input style='' type=\"email\" id=\"self-email-input\"
  955.                                                    class=\"form-control email-input\" placeholder=\"Enter your email\">
  956.                                         </div>
  957.                                         <button type=\"button\" class=\"global-button fs-6 mt-3\" id=\"generate-self-qr-btn\">
  958.                                             Generate QR
  959.                                         </button>
  960.                                     </form>
  961.                                 </div>
  962.                             </div>
  963.                             ";
  964.         // line 1082
  965.         yield "                            <div class=\"qr-card\" id=\"qr-code-container\" style=\"display: none; margin-top: 100px\">
  966.                                 <div class=\"card\" style=''>
  967.                                     <button type=\"button\"
  968.                                             class=\"position-absolute top-0 end-0 m-2 p-0 border-0 bg-transparent\"
  969.                                             aria-label=\"Close\">
  970.                                         <i class=\"fa-solid fa-circle-xmark fs-4\" id=\"cl-qr-card\"></i>
  971.                                     </button>
  972.                                     <div class=\"card-body mt-4\">
  973.                                         <h3 class=\"text-capitalize\" id=\"qr-company-name\"></h3>
  974.                                         <img id=\"qr-image\" src=\"\" alt=\"QR Code\" class=\"img-fluid \">
  975.                                         <p id=\"message\" class=\"mt-2 text-success fs-5 text-center d-none\"></p>
  976.                                         <button type=\"button\" class=\" send-button mt-2 mx-2 fs-6\" id=\"send-qr-button\">
  977.                                             Send Qr
  978.                                         </button>
  979.                                         ";
  980.         // line 1099
  981.         yield "                                        <button type=\"button\" class=\"global-outline-button extra-btn mt-2\"
  982.                                                 id=\"copy-link-button\">
  983.                                             <i class=\"fas fa-copy\" id=\"close-qr-card\"></i></button>
  984.                                         <!-- Send QR Loader -->
  985.                                         <div id=\"send-loader\" class=\"mt-3 d-none text-center\">
  986.                                             <div class=\"spinner-border text-primary\" role=\"status\">
  987.                                                 <span class=\"visually-hidden\">Loading...</span>
  988.                                             </div>
  989.                                         </div>
  990.                                     </div>
  991.                                 </div>
  992.                             </div>
  993.                             ";
  994.         // line 1116
  995.         yield "
  996.                         </div>
  997.                     </div>
  998.                     ";
  999.         // line 1121
  1000.         yield "                    <div class=\"content\">
  1001.                         ";
  1002.         // line 1123
  1003.         yield "                    </div>
  1004.                     ";
  1005.         // line 1126
  1006.         yield "                    <div class=\"content\">
  1007.                         ";
  1008.         // line 1128
  1009.         yield "                    </div>
  1010.                 </div>
  1011.             </div>
  1012.         </div>
  1013.     </div>
  1014. </section>
  1015. <script>
  1016.     document.addEventListener(\"DOMContentLoaded\", function () {
  1017.         const accessList = ";
  1018.         // line 1138
  1019.         yield json_encode(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1138$this->source); })()), "session", [], "any"falsefalsefalse1138), "get", ["userAccessList", []], "method"falsefalsefalse1138));
  1020.         yield ";
  1021.         console.log(accessList);
  1022.         let qruserAccessList = [];
  1023.         function populateCompanyDropdown(selectId) {
  1024.             const selectElement = document.getElementById(selectId);
  1025.             qruserAccessList = accessList.map(company => ({
  1026.                 companyName: company.companyName,
  1027.                 appId: company.appId,
  1028.                 companyId: company.companyId,
  1029.                 userType: company.userType
  1030.             }));
  1031.             selectElement.innerHTML = '<option value=\"\">Select Company</option>';
  1032.             accessList.forEach(function (company) {
  1033.                 const option = document.createElement(\"option\");
  1034.                 option.value = company.companyName;
  1035.                 option.textContent = company.companyName;
  1036.                 selectElement.appendChild(option);
  1037.             });
  1038.             if (\$(selectElement)[0].selectize) {
  1039.                 \$(selectElement)[0].selectize.destroy();
  1040.             }
  1041.             \$(selectElement).selectize({
  1042.                 create: false,
  1043.                 sortField: 'text'
  1044.             });
  1045.         }
  1046.         populateCompanyDropdown(\"company-name-qr\");
  1047.         // generate qr code
  1048.         document.getElementById(\"qr-code-button\").addEventListener(\"click\", function () {
  1049.             var selectedCompany = document.getElementById(\"company-name-qr\").value;
  1050.             var qrCompanyName = document.getElementById(\"qr-company-name\");
  1051.             var userEmail = document.getElementById(\"email\")
  1052.             var qrImage = document.getElementById(\"qr-image\");
  1053.             var qrCodeContainer = document.getElementById(\"qr-code-container\");
  1054.             var selectedCompanyData = qruserAccessList.find(company => company.companyName === selectedCompany);
  1055.             var appId = selectedCompanyData.appId;
  1056.             var companyId = selectedCompanyData.companyId;
  1057.             var userType = selectedCompanyData.userType;
  1058.             var baseUrl = \"";
  1059.         // line 1184
  1060.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("employee_add_by_qr");
  1061.         yield "\";
  1062.             var connector = baseUrl.includes(\"?\") ? \"&\" : \"?\";
  1063.             var finalUrl = baseUrl + connector + \"company=\" + encodeURIComponent(selectedCompany) + \"&appid=\" + encodeURIComponent(appId) + \"&companyId=\" + encodeURIComponent(companyId) + \"&userType=\" + encodeURIComponent(userType) + \"&CompanyQr=1\";
  1064.             if (selectedCompany) {
  1065.                 qrCompanyName.textContent = selectedCompany;
  1066.                 \$.get(\"";
  1067.         // line 1190
  1068.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("generate_qr_div");
  1069.         yield "?url=\" + encodeURIComponent(finalUrl), function (data) {
  1070.                     \$('#qr-image').attr('src', data.html);
  1071.                     \$('#qr-code-container').show();
  1072.                 }, \"json\");
  1073.             } else {
  1074.                 alert(\"Please select a company to generate the QR code.\");
  1075.             }
  1076.         });
  1077.         document.getElementById(\"cl-qr-card\").addEventListener(\"click\", function (event) {
  1078.             event.stopPropagation();
  1079.             document.getElementById(\"qr-code-container\").style.display = \"none\";
  1080.         });
  1081.         document.getElementById(\"copy-link-button\").addEventListener(\"click\", function (event) {
  1082.             event.stopPropagation();
  1083.             var selectedCompany = document.getElementById(\"company-name-qr\").value;
  1084.             var selectedCompanyData = qruserAccessList.find(company => company.companyName === selectedCompany);
  1085.             var appId = selectedCompanyData.appId;
  1086.             var companyId = selectedCompanyData.companyId;
  1087.             var userType = selectedCompanyData.userType;
  1088.             var baseUrl = \"";
  1089.         // line 1213
  1090.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("employee_add_by_qr");
  1091.         yield "\";
  1092.             var connector = baseUrl.includes(\"?\") ? \"&\" : \"?\";
  1093.             var finalUrl = baseUrl + connector + \"company=\" + encodeURIComponent(selectedCompany) +
  1094.                 \"&appid=\" + encodeURIComponent(appId) +
  1095.                 \"&companyId=\" + encodeURIComponent(companyId) +
  1096.                 \"&userType=\" + encodeURIComponent(userType);
  1097.             navigator.clipboard.writeText(finalUrl).then(() => {
  1098.                 var qrContainer = document.getElementById(\"qr-code-container\");
  1099.                 var copyMessage = document.getElementById(\"copy-message\");
  1100.                 const qrImage = document.getElementById(\"qr-image\");
  1101.                 if (!copyMessage) {
  1102.                     copyMessage = document.createElement(\"p\");
  1103.                     copyMessage.id = \"copy-message\";
  1104.                     copyMessage.style.color = \"green\";
  1105.                     copyMessage.style.marginTop = \"0px\";
  1106.                     copyMessage.style.fontWeight = \"bold\";
  1107.                     copyMessage.style.fontSize = \"16px\";
  1108.                     copyMessage.style.textAlign = \"center\";
  1109.                     qrImage.insertAdjacentElement(\"afterend\", copyMessage);
  1110.                     //qrContainer.appendChild(copyMessage);
  1111.                 }
  1112.                 copyMessage.textContent = \"Link copied to clipboard!\";
  1113.                 // remove 'Link copied to clipboard!' after 5 seconds
  1114.                 setTimeout(() => {
  1115.                     copyMessage.remove();
  1116.                     copyMessage = null;
  1117.                 }, 5000);
  1118.             }).catch(err => {
  1119.                 console.error(\"Failed to copy: \", err);
  1120.             });
  1121.         });
  1122.         document.getElementById(\"send-qr-button\").addEventListener(\"click\", function () {
  1123.             var selectedEmployee = document.getElementById(\"email\").value;
  1124.             var selectedCompany = document.getElementById(\"company-name-qr\").value;
  1125.             var selectedCompanyData = qruserAccessList.find(company => company.companyName === selectedCompany);
  1126.             var appId = selectedCompanyData.appId;
  1127.             var qrImage = document.getElementById(\"qr-image\");
  1128.             var loader = document.getElementById(\"send-loader\"); // loader variable
  1129.             if (!selectedEmployee || !selectedCompany) {
  1130.                 alert(\"Please select both an employee and a company.\");
  1131.                 return;
  1132.             }
  1133.             // Show loader
  1134.             loader.classList.remove(\"d-none\");
  1135.             var formData = new FormData();
  1136.             formData.append('company', selectedCompany);
  1137.             formData.append('email', selectedEmployee);
  1138.             formData.append('qr_image', dataURItoBlob(qrImage.src));
  1139.             formData.append('appid', appId);
  1140.             fetch(\"";
  1141.         // line 1275
  1142.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("employee_add_by_qr");
  1143.         yield "\", {
  1144.                 method: \"POST\",
  1145.                 body: formData
  1146.             }).then(response => response.json())
  1147.                 .then(data => {
  1148.                     // Hide loader
  1149.                     loader.classList.add(\"d-none\");
  1150.                     if (data.status === 'success') {
  1151.                         window.location.href = \"";
  1152.         // line 1284
  1153.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("central_landing");
  1154.         yield "\";
  1155.                         alert('QR Code for employee uploaded successfully!');
  1156.                     } else {
  1157.                         alert('Error: ' + data.message);
  1158.                     }
  1159.                 }).catch(error => {
  1160.                 console.error(\"Error uploading QR Code:\", error);
  1161.             });
  1162.         });
  1163.         function dataURItoBlob(dataURI) {
  1164.             var byteString = atob(dataURI.split(',')[1]);
  1165.             var arrayBuffer = new ArrayBuffer(byteString.length);
  1166.             var uintArray = new Uint8Array(arrayBuffer);
  1167.             for (var i = 0; i < byteString.length; i++) {
  1168.                 uintArray[i] = byteString.charCodeAt(i);
  1169.             }
  1170.             return new Blob([uintArray], {type: 'image/png'});
  1171.         }
  1172.         document.getElementById(\"generate-self-qr-btn\").addEventListener(\"click\", function () {
  1173.             const emailInput = document.getElementById(\"self-email-input\").value.trim();
  1174.             const qrCompanyName = document.getElementById(\"qr-company-name\");
  1175.             const qrImage = document.getElementById(\"qr-image\");
  1176.             const qrCodeContainer = document.getElementById(\"qr-code-container\");
  1177.             if (!emailInput) {
  1178.                 alert(\"Please enter your email to generate the QR code.\");
  1179.                 return;
  1180.             }
  1181.             \$.get(\"";
  1182.         // line 1315
  1183.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("employee_onboard_by_qr_api");
  1184.         yield "\", {email: emailInput}, function (response) {
  1185.                 if (response.status === 'success') {
  1186.                     const userData = response.data;
  1187.                     const payloadUrl = \"";
  1188.         // line 1318
  1189.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("employee_onboard_by_qr_api");
  1190.         yield "?email=\" + encodeURIComponent(userData.email) +
  1191.                         \"&applicantId=\" + encodeURIComponent(userData.id);
  1192.                     \$.get(\"";
  1193.         // line 1321
  1194.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("generate_qr_div");
  1195.         yield "\", {url: payloadUrl}, function (qrRes) {
  1196.                         \$('#qr-company-name').text(userData.email);
  1197.                         \$('#qr-image').attr('src', qrRes.html);
  1198.                         \$('#qr-code-container').show();
  1199.                     }, 'json');
  1200.                 } else {
  1201.                     alert(response.message || \"User not found.\");
  1202.                 }
  1203.             }, \"json\");
  1204.         });
  1205.         \$('.entityEmp').selectize({
  1206.             placeholder: 'Enter Email',
  1207.             multiple: false,
  1208.             valueField: 'value',
  1209.             labelField: 'text',
  1210.             searchField: ['text'],
  1211.             preload: 'focus',
  1212.             load: function (query, callback) {
  1213.                 \$.ajax({
  1214.                     url: \"https://ourhoneybee.eu/select_data_ajax_public\",
  1215.                     type: 'POST',
  1216.                     dataType: 'json',
  1217.                     data: {
  1218.                         query: query,
  1219.                         entity_group: 1,
  1220.                         tableName: \"entity_applicant_details\",
  1221.                         valueField: \"email\",
  1222.                         textField: \"rendered_text\",
  1223.                         renderTextFormat: \"__email__\",
  1224.                         andOrConditions: [
  1225.                             {type: \"like\", field: \"email\", value: query},
  1226.                             {type: \"like\", field: \"firstname\", value: query},
  1227.                         ],
  1228.                     },
  1229.                     success: function (res) {
  1230.                         if (res && res.data && Array.isArray(res.data)) {
  1231.                             callback(res.data);
  1232.                         } else {
  1233.                             callback([]);
  1234.                         }
  1235.                     },
  1236.                     error: function () {
  1237.                         callback([]);
  1238.                     }
  1239.                 });
  1240.             },
  1241.         });
  1242.         \$(\"#send-qr-button\").click(function () {
  1243.             var selectedEmployee = \$(\".entityEmp\").val();
  1244.             var selectedCompany = \$(\"#company-name-qr\").val();
  1245.             if (!selectedEmployee || !selectedCompany) {
  1246.                 alert(\"Please select both an employee and a company.\");
  1247.                 return;
  1248.             }
  1249.             \$.ajax({
  1250.                 url: '/central_landing',
  1251.                 type: \"POST\",
  1252.                 data: {
  1253.                     employee_id: selectedEmployee,
  1254.                     company_name: selectedCompany
  1255.                 },
  1256.                 success: function (response) {
  1257.                     if (response.status === 'success') {
  1258.                         const messageBox = document.getElementById('message');
  1259.                         messageBox.textContent = 'Sent email successfully';
  1260.                         messageBox.classList.remove('d-none'); // Show message
  1261.                         // Hide after 5 seconds
  1262.                         setTimeout(() => {
  1263.                             messageBox.classList.add('d-none');
  1264.                         }, 5000);
  1265.                         window.location.href = \"";
  1266.         // line 1398
  1267.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("central_landing");
  1268.         yield "\";
  1269.                         alert(response.company_name);
  1270.                     } else {
  1271.                         alert(\"Unexpected response from server.\");
  1272.                     }
  1273.                 },
  1274.                 error: function (error) {
  1275.                     alert(\"Error sending data!\");
  1276.                 }
  1277.             });
  1278.         });
  1279.     });
  1280. </script>
  1281. ";
  1282.         // line 1415
  1283.         yield from         $this->loadTemplate("@HoneybeeWeb/website/flow_footer.html.twig""@Application/pages/dashboard/index_central_landing.html.twig"1415)->unwrap()->yield($context);
  1284.         // line 1416
  1285.         yield "<link rel=\"stylesheet\" type=\"text/css\"
  1286.       href=\"";
  1287.         // line 1417
  1288.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html"nulltrue);
  1289.         yield "buddybee_assets/DataTables/datatables.min.css\"/>
  1290. <script type=\"text/javascript\"
  1291.         src=\"";
  1292.         // line 1420
  1293.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html"nulltrue);
  1294.         yield "condensed_assets/pagination/pagination.js?version=";
  1295.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  1296.         yield "\"></script>
  1297. <script type=\"text/javascript\"
  1298.         src=\"";
  1299.         // line 1423
  1300.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html"nulltrue);
  1301.         yield "buddybee_assets/DataTables/datatables.min.js?version=";
  1302.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  1303.         yield "\"></script>
  1304. <script type=\"text/javascript\" src=\"";
  1305.         // line 1424
  1306.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html"nulltrue);
  1307.         yield "buddybee_assets/js/jquery.countTo.js\"></script>
  1308. <script type=\"text/javascript\"
  1309.         src=\"";
  1310.         // line 1426
  1311.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html"nulltrue);
  1312.         yield "buddybee_assets/js/jquery.knob.min.js\"></script>
  1313. <script>
  1314.     // open and close qr code
  1315.     document.getElementById('qr-code-button').addEventListener('click', function () {
  1316.         // showing qr card
  1317.         document.getElementById('qr-code-container').style.display = 'block';
  1318.         // hide form
  1319.         document.getElementById('employee-form-wrapper').style.display = 'none';
  1320.     })
  1321.     document.getElementById('cl-qr-card').addEventListener('click', function () {
  1322.         // hide qr card
  1323.         document.getElementById('qr-code-container').style.display = 'none';
  1324.         // showing the form again
  1325.         document.getElementById('employee-form-wrapper').style.display = 'block';
  1326.     })
  1327.     var selectEntityModal = {};
  1328.     var currentTabSelectEntityModal = 0;
  1329.     var accessList = [];
  1330.     ";
  1331.         // line 1448
  1332.         if ((!== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1448$this->source); })()), "session", [], "any"falsefalsefalse1448), "get", ["userAccessList"""], "method"falsefalsefalse1448), ""))) {
  1333.             // line 1449
  1334.             yield "    accessList =";
  1335.             yield json_encode(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1449$this->source); })()), "session", [], "any"falsefalsefalse1449), "get", ["userAccessList"""], "method"falsefalsefalse1449));
  1336.             yield "
  1337.             ";
  1338.         }
  1339.         // line 1451
  1340.         yield "
  1341.         function getUserCompanyList(userGetType) {
  1342.             userGetType = userGetType || '_LOCAL_';
  1343.             var pika_ind_id = \"_NA_\";
  1344.             \$('#selectEntityModal .cg_holder').empty();
  1345.             var userTypeTextObject = {
  1346.                 1: 'Admin',
  1347.                 2: 'User',
  1348.                 3: 'Vendor',
  1349.                 4: 'Customer',
  1350.                 5: 'Management User',
  1351.                 6: 'Group Owner',
  1352.                 7: 'GLobal User',
  1353.                 8: 'Applicant',
  1354.                 9: 'Collaborator',
  1355.             }
  1356.             var placeholderCount=6;
  1357.             if (userGetType === '_LOCAL_') {
  1358.                 \$.ajax({
  1359.                     url: BaseURL + \"get_users_by_query?queryStr=\" + \$('#tempUsername').val(),
  1360.                     type: 'POST',
  1361.                     dataType: 'json',
  1362.                     data: {},
  1363.                     error: function () {
  1364.                         // callback();
  1365.                     },
  1366.                     success: function (res) {
  1367.                         if (res.success === true) {
  1368.                             if (res.data.length === 1) {
  1369.                                 var dt = res.data[0];
  1370.                                 \$('#gocId').val(dt['gocId']);
  1371.                                 \$('#username').val(dt['loginUserName']);
  1372.                                 \$('#loginform').submit();
  1373.                             } else {
  1374.                                 for (var jj = 0; jj < res.data.length; jj++) {
  1375.                                     var dt = res.data[jj];
  1376.                                     var ggStr = ' <div class=\"box-selector cg_selector cg_' + dt['appId'] + '\" style=\"cursor:pointer;\"' + ' col-md-12 col-sm-12\"' +
  1377.                                         ' data-id=\"' + dt['gocId'] + '\"' +
  1378.                                         ' data-goc-id=\"' + dt['gocId'] + '\"' +
  1379.                                         ' data-user-name=\"' + dt['loginUserName'] + '\"' +
  1380.                                         ' data-gen-class=\"cg_selector\">' +
  1381.                                         '<div class=\"inside\" style=\"display: flex;\">' +
  1382.                                         '<div class=\"img\" style=\"' +
  1383.                                         \"background:url('\" + dt['companyLogoUrl'] + \"');\" +
  1384.                                         'height: 50px;width: 40%;background-position: left;background-size: contain;background-repeat: no-repeat;display: inline-block;\">' +
  1385.                                         '</div>' +
  1386.                                         '<h6 class=\"title\" style=\"height: 2rem; width: 60%;text-align: left;\">' + dt['companyName'] +
  1387.                                         ' <p class=\"sub-title\">' + userTypeTextObject[dt['userType']] + '</p></h6>' +
  1388.                                         '</div>' +
  1389.                                         '</div>';
  1390.                                     \$('#selectEntityModal .cg_holder').append(ggStr);
  1391.                                 }
  1392.                                 \$('#selectEntityModal').modal('show');
  1393.                             }
  1394.                         }
  1395.                     }
  1396.                 });
  1397.             }
  1398.             if (userGetType == '_CENTRAL_') {
  1399.                 {
  1400.                     for (var jj = 0; jj < accessList.length; jj++) {
  1401.                         var dt = accessList[jj];
  1402.                         var ggStr = ' <div class=\"swiper-slide cg_selector cg_' + dt['appId'] + '\" style=\"cursor:pointer;\"' +
  1403.                             ' data-id=\"' + dt['appId'] + '\"' +
  1404.                             ' data-app-id=\"' + dt['appId'] + '\"' +
  1405.                             ' data-goc-id=\"0\"' +
  1406.                             // ' data-user-name=\"' + dt['loginUserName'] + '\" ' +
  1407.                             ' data-gen-class=\"cg_selector\" ' +
  1408.                             ' data-auth-str=\"' + dt['authenticationStr'] + '\" ' +
  1409.                             ' data-server-url=\"' + dt['serverUrl'] + '\" ' +
  1410.                             ' data-cs-token=\"";
  1411.         // line 1531
  1412.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1531$this->source); })()), "session", [], "any"falsefalsefalse1531), "get", ["csToken"""], "method"falsefalsefalse1531), "html"nulltrue);
  1413.         yield "\" ' +
  1414.                             '>' +
  1415.                             ' <div class=\"card\">' +
  1416.                             // round circle
  1417.                             //'<input type=\"checkbox\" id=\"check\">' +
  1418.                             '<img src=\"";
  1419.         // line 1536
  1420.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::HONEYBEE_CENTRAL_SERVER"), "html"nulltrue);
  1421.         yield "' + dt['companyLogoUrl'] + '\" alt=\" Logo\">' +
  1422.                             '<h2>' + dt['companyName'] + '</h2>' +
  1423.                             ' <div class=\"role\">' + userTypeTextObject[dt['userType']] + '</div>' +
  1424.                             // '<p>Lorem ipsum dolor sit amet ect tur. Blandit donec tortor et et quisq. Lorem ipsum dolor sit amet ect tur. Blandit donec tortor et et quisq. Lorem ipsum ...</p> ' +
  1425.                             // '<a href=\"#\"><i class='bx bx-user-plus'></i>Add Employee</a> ' +
  1426.                             '</div> ' +
  1427.                             '</div>'
  1428.                         \$('.swiper-wrapper').append(ggStr);
  1429.                         placeholderCount--;
  1430.                     }
  1431.                 }
  1432.                 for (var jj = 0; jj < placeholderCount; jj++) {
  1433.                     var dt = accessList[jj];
  1434.                     var ggStr = ' <div class=\"swiper-slide  cg_skip cg_0\" style=\"cursor:pointer;\"' +
  1435.                         ' data-id=\"0' +
  1436.                         ' data-app-id=\"0\"' +
  1437.                         ' data-goc-id=\"0\"' +
  1438.                         // ' data-user-name=\"' + dt['loginUserName'] + '\" ' +
  1439.                         ' data-gen-class=\"cg_selector\" ' +
  1440.                         ' data-auth-str=\"\" ' +
  1441.                         ' data-server-url=\"\" ' +
  1442.                         ' data-cs-token=\"\" ' +
  1443.                         '>' +
  1444.                         ' <div class=\"card\">' +
  1445.                         // round circle
  1446.                         //'<input type=\"checkbox\" id=\"check\">' +
  1447.                         '<img src=\"";
  1448.         // line 1566
  1449.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::HONEYBEE_CENTRAL_SERVER"), "html"nulltrue);
  1450.         yield "/images/company_2.png\" alt=\" Logo\">' +
  1451.                         '<h2><i class=\"fa fa-plus\"></i>Add a Company</h2>' +
  1452.                         ' <div class=\"role\">Add or join a company</div>' +
  1453.                         '</div> ' +
  1454.                         '</div>'
  1455.                     \$('.swiper-wrapper').append(ggStr);
  1456.                 }
  1457.                 // swipper issue solved for company clicking issue
  1458.                 // var mySwiper = new Swiper('.swiper-container', {
  1459.                 //     loop: true,
  1460.                 //     speed: 400,
  1461.                 //     effect: \"coverflow\",
  1462.                 //     centeredSlides: true,
  1463.                 //     slidesPerView: 3,
  1464.                 //     mousewheel: true,
  1465.                 //     allowTouchMove: false, // drag/swipe disabled
  1466.                 //     coverflowEffect: {
  1467.                 //         rotate: 0,
  1468.                 //         stretch: 20,
  1469.                 //         depth: 200,
  1470.                 //         modifier: 2,
  1471.                 //         slideShadows: false,
  1472.                 //     },
  1473.                 //     pagination: {
  1474.                 //         el: \".swiper-pagination\",
  1475.                 //         clickable: true,
  1476.                 //     },
  1477.                 //     navigation: {
  1478.                 //         nextEl: \".swiper-button-next\",
  1479.                 //         prevEl: \".swiper-button-prev\",
  1480.                 //     },
  1481.                 // });
  1482.                 var role_company_page = new Swiper(\".role-company-page .content .swiper-container\",
  1483.                     {
  1484.                         loop: true,
  1485.                         speed: 400,
  1486.                         effect: \"coverflow\",
  1487.                         centeredSlides: true,
  1488.                         slidesPerView: 1,
  1489.                         mousewheel: true,
  1490.                         grabCursor: true,
  1491.                         coverflowEffect: {
  1492.                             rotate: 0,
  1493.                             stretch: 20,
  1494.                             depth: 200,
  1495.                             modifier: 2,
  1496.                             slideShadows: false,
  1497.                         },
  1498.                         breakpoints: {
  1499.                             640:  { slidesPerView: 2 },
  1500.                             1024: { slidesPerView: 3 },
  1501.                         },
  1502.                         pagination: {
  1503.                             el: \".swiper-pagination\",
  1504.                             clickable: true,
  1505.                         },
  1506.                         navigation: {
  1507.                             nextEl: \".swiper-button-next\",
  1508.                             prevEl: \".swiper-button-prev\",
  1509.                         },
  1510.                     }
  1511.                 );
  1512.                 // var role_company_page = new Swiper(\".role-company-page .content .swiper-container\",
  1513.                 //     {
  1514.                 //         loop: true,
  1515.                 //         speed: 400,
  1516.                 //         effect: \"coverflow\",
  1517.                 //         centeredSlides: true,
  1518.                 //         slidesPerView: 3,
  1519.                 //         mousewheel: true,
  1520.                 //         grabCursor: true,
  1521.                 //         coverflowEffect: {
  1522.                 //             rotate: 0,
  1523.                 //             stretch: 20,
  1524.                 //             depth: 200,
  1525.                 //             modifier: 2,
  1526.                 //             slideShadows: false,
  1527.                 //         },
  1528.                 //
  1529.                 //         pagination: {
  1530.                 //             el: \".swiper-pagination\",
  1531.                 //             clickable: true,
  1532.                 //
  1533.                 //         },
  1534.                 //         navigation: {
  1535.                 //             nextEl: \".swiper-button-next\",
  1536.                 //             prevEl: \".swiper-button-prev\",
  1537.                 //         },
  1538.                 //
  1539.                 //     }
  1540.                 // );
  1541.                 // var mySwiper=role_company_page;
  1542.                 // Stable click for center slide
  1543.                 // document.querySelector('.swiper-container').addEventListener('click', function () {
  1544.                 //     var activeSlide = mySwiper.slides[mySwiper.activeIndex];
  1545.                 //     var serverUrl = activeSlide.getAttribute('data-server-url');
  1546.                 //     var authStr = activeSlide.getAttribute('data-auth-str');
  1547.                 //     var appId = activeSlide.getAttribute('data-app-id');
  1548.                 //     var csToken = activeSlide.getAttribute('data-cs-token');
  1549.                 //
  1550.                 //     if (serverUrl) {
  1551.                 //         window.location.href =
  1552.                 //             serverUrl +
  1553.                 //             '?authStr=' + authStr +
  1554.                 //             '&appId=' + appId +
  1555.                 //             '&csToken=' + csToken;
  1556.                 //     }
  1557.                 // });
  1558.             }
  1559.         }
  1560.     jQuery(document).ready(function () {
  1561.         getUserCompanyList('_CENTRAL_')
  1562.         \$(document).on('click', '.box-selector', function () {
  1563.             \$('.' + \$(this).data('genClass')).removeClass('active')
  1564.             \$(this).addClass('active')
  1565.         });
  1566.         \$(document).on('click', '.cg_selector', function () {
  1567.             if (typeof \$(this).data('authStr') !== 'undefined') {
  1568.                 let serverUrl = \$(this).data('serverUrl').replace(/\\/\$/, ''); // avoid trailing slash
  1569.                 window.location.href = serverUrl + '/switch_app?spd=' + \$(this).data('authStr') + '&csToken=' + \$(this).data('csToken');
  1570.                 //previous line  window.location.href = \$(this).data('serverUrl') + '/switch_app?spd=' + \$(this).data('authStr') + '&csToken=' + \$(this).data('csToken');
  1571.             } else {
  1572.                 \$('#gocId').val(\$(this).data('gocId'));
  1573.                 \$('#username').val(\$(this).data('userName'));
  1574.                 \$('#loginform').submit();
  1575.             }
  1576.         });
  1577.         \$(document).on('click', '.cg_skip', function () {
  1578.             window.location.href = '";
  1579.         // line 1714
  1580.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("create_company");
  1581.         yield "';
  1582.             //previous line  window.location.href = \$(this).data('serverUrl') + '/switch_app?spd=' + \$(this).data('authStr') + '&csToken=' + \$(this).data('csToken');
  1583.         });
  1584.         // \$(document).on('click', '.applicant_action_selector', function () {
  1585.         //     window.location.href = \$(this).data('url')
  1586.         // });
  1587.     });
  1588. </script>
  1589. ";
  1590.         
  1591.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1592.         
  1593.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1594.         return; yield '';
  1595.     }
  1596.     /**
  1597.      * @codeCoverageIgnore
  1598.      */
  1599.     public function getTemplateName()
  1600.     {
  1601.         return "@Application/pages/dashboard/index_central_landing.html.twig";
  1602.     }
  1603.     /**
  1604.      * @codeCoverageIgnore
  1605.      */
  1606.     public function isTraitable()
  1607.     {
  1608.         return false;
  1609.     }
  1610.     /**
  1611.      * @codeCoverageIgnore
  1612.      */
  1613.     public function getDebugInfo()
  1614.     {
  1615.         return array (  1861 => 1714,  1710 => 1566,  1677 => 1536,  1669 => 1531,  1587 => 1451,  1581 => 1449,  1579 => 1448,  1554 => 1426,  1549 => 1424,  1543 => 1423,  1535 => 1420,  1529 => 1417,  1526 => 1416,  1524 => 1415,  1505 => 1398,  1425 => 1321,  1419 => 1318,  1413 => 1315,  1379 => 1284,  1367 => 1275,  1302 => 1213,  1276 => 1190,  1267 => 1184,  1218 => 1138,  1206 => 1128,  1203 => 1126,  1199 => 1123,  1196 => 1121,  1190 => 1116,  1172 => 1099,  1154 => 1082,  1134 => 1063,  1120 => 1050,  1112 => 1043,  1100 => 1032,  1094 => 1027,  1090 => 1024,  1087 => 1022,  1084 => 1020,  1081 => 1018,  1078 => 1016,  1075 => 1014,  1064 => 1005,  1045 => 988,  1042 => 986,  1033 => 978,  57 => 6,  54 => 5,  52 => 4,  50 => 3,  47 => 2,  44 => 1,);
  1616.     }
  1617.     public function getSourceContext()
  1618.     {
  1619.         return new Source("{% include '@HoneybeeWeb/website/flow_header.html.twig' %}
  1620. <meta name=\"robots\" content=\"noindex, nofollow\">
  1621. {% set isConsultant= session[UserConstants.IS_CONSULTANT] is defined? session[UserConstants.IS_CONSULTANT]:0 %}
  1622. {% set BUDDYBEE_ADMIN_LEVEL= session[UserConstants.BUDDYBEE_ADMIN_LEVEL] is defined? session[UserConstants.BUDDYBEE_ADMIN_LEVEL]:0 %}
  1623. <link rel=\"stylesheet\"
  1624.       href=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/css/imgProgress.css?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\">
  1625. <style>
  1626.     /*.swiper-slide {*/
  1627.     /*    pointer-events: auto;*/
  1628.     /*}*/
  1629.     /*.swiper-slide-prev,*/
  1630.     /*.swiper-slide-next {*/
  1631.     /*    pointer-events: auto; !* optional if you want them clickable *!*/
  1632.     /*}*/
  1633.     /*.swiper-slide-active {*/
  1634.     /*    z-index: 2; !* keep top slide visible *!*/
  1635.     /*}*/
  1636.     /*.swiper-wrapper {*/
  1637.     /*    overflow: visible; !* important: allows slide shadows/clicks outside container *!*/
  1638.     /*}*/
  1639.     .select-center {
  1640.         text-align-last: center;
  1641.         text-align: center;
  1642.     }
  1643.     .send-button:hover,
  1644.     .send-button:focus,
  1645.     .send-button:active {
  1646.         background-color: #2673B8;
  1647.         color: white;
  1648.         outline: none;
  1649.         box-shadow: none;
  1650.     }
  1651.     .modal div[class*=\"col-md\"], .modal div[class*=\"col-lg\"], .modal div[class*=\"col-xs\"], .modal div[class*=\"col-sm\"] {
  1652.         margin-bottom: 0px;
  1653.     }
  1654.     .d-flex {
  1655.         display: flex;
  1656.     }
  1657.     #selectEntityModal {
  1658.         box-shadow: 0px 6px 18px rgb(0 0 0 / 9%);
  1659.         */ border-radius: 12px;
  1660.     }
  1661.     #selectEntityModal .modal-body {
  1662.         padding: 0 1rem;
  1663.     }
  1664.     #selectEntityModal p {
  1665.         margin-bottom: .5rem;
  1666.     }
  1667.     /* Style for selected option in selectize */
  1668.     .selectize-input {
  1669.         padding: 10px;
  1670.         font-size: 1rem;
  1671.         color: #333;
  1672.         border: none;
  1673.     }
  1674.     #selectEntityModal .selectize-input.items {
  1675.         border: 1px solid #d0d0d0;
  1676.         padding: 8px 8px;
  1677.         display: inline-block;
  1678.         width: 100%;
  1679.         overflow: hidden;
  1680.         position: relative;
  1681.         z-index: 1;
  1682.         box-sizing: border-box;
  1683.         box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1);
  1684.         border-radius: 3px;
  1685.     }
  1686.     #selectEntityModalForm {
  1687.         /*max-width: 500px;*/
  1688.         background-color: var(--global-background-color, #ffffff);
  1689.         /*margin: 40px auto;*/
  1690.         padding: 40px;
  1691.         box-shadow: 0px 6px 18px rgb(0 0 0 / 9%);
  1692.         /*border-radius: 12px;*/
  1693.     }
  1694.     #selectEntityModalForm .form-header {
  1695.         gap: 5px;
  1696.         text-align: center;
  1697.         font-size: .9em;
  1698.     }
  1699.     #selectEntityModalForm .form-header .stepIndicator {
  1700.         position: relative;
  1701.         flex: 1;
  1702.         padding-bottom: 30px;
  1703.     }
  1704.     #selectEntityModalForm .form-header .stepIndicator.active {
  1705.         font-weight: 600;
  1706.     }
  1707.     #selectEntityModalForm .form-header .stepIndicator.finish {
  1708.         font-weight: 600;
  1709.         color: #009688;
  1710.     }
  1711.     #selectEntityModalForm .form-header .stepIndicator::before {
  1712.         content: \"\";
  1713.         position: absolute;
  1714.         left: 50%;
  1715.         bottom: 0;
  1716.         transform: translateX(-50%);
  1717.         z-index: 9;
  1718.         width: 20px;
  1719.         height: 20px;
  1720.         background-color: #d5efed;
  1721.         border-radius: 50%;
  1722.         border: 3px solid #ecf5f4;
  1723.     }
  1724.     #selectEntityModalForm .form-header .stepIndicator.active::before {
  1725.         background-color: #a7ede8;
  1726.         border: 3px solid #d5f9f6;
  1727.     }
  1728.     #selectEntityModalForm .form-header .stepIndicator.finish::before {
  1729.         background-color: #009688;
  1730.         border: 3px solid #b7e1dd;
  1731.     }
  1732.     #selectEntityModalForm .form-header .stepIndicator::after {
  1733.         content: \"\";
  1734.         position: absolute;
  1735.         left: 50%;
  1736.         bottom: 8px;
  1737.         width: 100%;
  1738.         height: 3px;
  1739.         background-color: #f3f3f3;
  1740.     }
  1741.     #selectEntityModalForm .form-header .stepIndicator.active::after {
  1742.         background-color: #a7ede8;
  1743.     }
  1744.     #selectEntityModalForm .form-header .stepIndicator.finish::after {
  1745.         background-color: #009688;
  1746.     }
  1747.     #selectEntityModalForm .form-header .stepIndicator:last-child:after {
  1748.         display: none;
  1749.     }
  1750.     #selectEntityModalForm input {
  1751.         padding: 15px 20px;
  1752.         width: 100%;
  1753.         font-size: 1em;
  1754.         border: 1px solid #e3e3e3;
  1755.         border-radius: 5px;
  1756.     }
  1757.     #selectEntityModalForm input:focus {
  1758.         border: 1px solid #009688;
  1759.         outline: 0;
  1760.     }
  1761.     #selectEntityModalForm input.invalid {
  1762.         border: 1px solid #ffaba5;
  1763.     }
  1764.     #selectEntityModalForm .step {
  1765.         display: none;
  1766.     }
  1767.     #selectEntityModalForm .form-footer {
  1768.         overflow: auto;
  1769.         gap: 20px;
  1770.     }
  1771.     #selectEntityModalForm .form-footer button {
  1772.         background-color: #1d5b9e;
  1773.         border: 1px solid #1d5b9e;
  1774.         color: #ffffff;
  1775.         border: none;
  1776.         padding: 13px 30px;
  1777.         font-size: 1em;
  1778.         cursor: pointer;
  1779.         border-radius: 5px;
  1780.         flex: 1;
  1781.         margin-top: 5px;
  1782.     }
  1783.     #selectEntityModalForm .form-footer button:hover {
  1784.         opacity: 0.8;
  1785.     }
  1786.     #selectEntityModalForm .form-footer #promptInfo_prevBtn {
  1787.         background-color: var(--global-background-color, #fff);
  1788.         color: #009688;
  1789.     }
  1790.     .box-selector {
  1791.         padding: 10px 4px;
  1792.         cursor: pointer;
  1793.     }
  1794.     .box-selector .inside {
  1795.         padding: 5px;
  1796.         background: white;
  1797.         border-radius: 5px;
  1798.         -webkit-box-shadow: 10px 10px 48px -24px rgba(14, 26, 87, 1);
  1799.         -moz-box-shadow: 10px 10px 48px -24px rgba(14, 26, 87, 1);
  1800.         box-shadow: 10px 10px 48px -24px rgba(14, 26, 87, 1);
  1801.     }
  1802.     .box-selector .inside input {
  1803.         cursor: pointer
  1804.     }
  1805.     .box-selector .inside textarea {
  1806.         text-align: center;
  1807.         cursor: pointer;
  1808.         width: 100%;
  1809.         border: none;
  1810.         resize: none;
  1811.         font-size: 14px;
  1812.         color: #1d5b9e;
  1813.         font-weight: bold;
  1814.     }
  1815.     .box-selector.sch_selector_mon .inside,
  1816.     .box-selector.sch_selector_day .inside
  1817.         /*.box-selector.sch_selector_time .inside*/
  1818.     {
  1819.         padding: 10px 5px;
  1820.     }
  1821.     .box-selector.sch_selector_time .inside {
  1822.         padding: 4px 5px;
  1823.     }
  1824.     .step .view_if_has_schedules {
  1825.         display: none;
  1826.     }
  1827.     .box-selector.active:not(.man_sch_selector) .inside {
  1828.         border: 2px solid #1d5b9e;
  1829.         -webkit-box-shadow: 10px 10px 24px -3px rgba(29, 91, 158, 1);
  1830.         -moz-box-shadow: 10px 10px 24px -3px rgba(29, 91, 158, 1);
  1831.         box-shadow: 10px 10px 24px -3px rgba(29, 91, 158, 1);
  1832.     }
  1833.     .box-selector.active.man_sch_selector .inside {
  1834.         border: 2px solid #1d5b9e;
  1835.         -webkit-box-shadow: none;
  1836.         -moz-box-shadow: none;
  1837.         box-shadow: none;
  1838.     }
  1839.     .box-selector.sch_selector_mon.active .inside,
  1840.     .box-selector.sch_selector_day.active .inside,
  1841.     .box-selector.sch_selector_time.active .inside {
  1842.         border: 2px solid #1d5b9e;
  1843.         -webkit-box-shadow: 4px 7px 24px -3px rgba(29, 91, 158, 1);
  1844.         -moz-box-shadow: 10px 10px 24px -3px rgba(29, 91, 158, 1);
  1845.         box-shadow: 4px 7px 24px -3px rgba(29, 91, 158, 1);
  1846.     }
  1847.     .box-selector .img {
  1848.         margin-left: 5px;
  1849.     }
  1850.     .box-selector .title {
  1851.         text-align: center;
  1852.         font-size: var(--cp-fs-base, 13px);
  1853.         margin-top: auto;
  1854.         margin-bottom: auto;
  1855.     }
  1856.     .box-selector.paymentMethodSelectorBtn .title {
  1857.         text-align: center;
  1858.         margin-bottom: 1px;
  1859.         font-size: 14px;
  1860.     }
  1861.     .box-selector .sub-title {
  1862.         font-size: 12px;
  1863.         color: grey;
  1864.     }
  1865.     .qr-card {
  1866.         position: absolute;
  1867.         top: 50%;
  1868.         left: 50%;
  1869.         transform: translate(-50%, -50%);
  1870.         width: min(350px, calc(100vw - 32px));
  1871.         margin-top: 10px;
  1872.         border-radius: 12px;
  1873.         z-index: 1000;
  1874.         padding: 10px;
  1875.     }
  1876.     .qr-card .card {
  1877.         border: none;
  1878.         background: transparent;
  1879.         text-align: center;
  1880.     }
  1881.     .qr-card img {
  1882.         width: 100%;
  1883.         margin: 10px auto;
  1884.         display: block;
  1885.     }
  1886.     .hidden {
  1887.         display: none;
  1888.     }
  1889.     /* Flexbox for card container to display them side by side */
  1890.     .employee-card-container {
  1891.         display: flex;
  1892.         justify-content: left; /* Center the cards horizontally */
  1893.         gap: 20px; /* Add space between the cards */
  1894.         flex-wrap: wrap;
  1895.         margin-top: 20px;
  1896.     }
  1897.     .employee-card {
  1898.         padding: 20px;
  1899.         box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  1900.         border-radius: 10px;
  1901.         max-width: 320px;
  1902.         width: 100%;
  1903.         text-align: center;
  1904.         display: inline-block;
  1905.     }
  1906.     .form-group {
  1907.         margin-bottom: 10px;
  1908.     }
  1909.     /* Style for the entire form */
  1910.     .form-group {
  1911.         margin-bottom: 1.5rem;
  1912.     }
  1913.     /* Style for the labels */
  1914.     .form-group label {
  1915.         font-size: .8rem;
  1916.         font-weight: 300;
  1917.         color: #333;
  1918.         margin-bottom: 0.1rem;
  1919.         display: block;
  1920.     }
  1921.     /* Style for the input fields */
  1922.     .form-control {
  1923.         width: 100%;
  1924.         max-width: 100%;
  1925.         padding: 0px;
  1926.         font-size: 1rem;
  1927.         border-radius: 5px;
  1928.         box-sizing: border-box;
  1929.     }
  1930.     /* Hover effect for input fields */
  1931.     .form-control:hover {
  1932.         border-color: #0056b3;
  1933.     }
  1934.     /* Focus effect for input fields */
  1935.     .form-control:focus {
  1936.         border-color: #0056b3;
  1937.         outline: none;
  1938.     }
  1939.     /* Dropdown list customization */
  1940.     .selectize-dropdown {
  1941.         border-radius: 5px;
  1942.         box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  1943.         font-size: 1rem;
  1944.         max-height: 200px;
  1945.     }
  1946.     /* Style for selectize items */
  1947.     .selectize-dropdown .option {
  1948.         padding: 10px;
  1949.         font-size: 1rem;
  1950.         color: #333;
  1951.     }
  1952.     /* Hover effect for selectize items */
  1953.     .selectize-dropdown .option:hover {
  1954.         background-color: #0056b3;
  1955.         color: white;
  1956.     }
  1957.     /* Style for the \"Add Employee\" and \"Close\" buttons */
  1958.     .btn-primary, .btn-secondary {
  1959.         padding: 10px 20px;
  1960.         font-size: 1rem;
  1961.         border: none;
  1962.         border-radius: 5px;
  1963.         cursor: pointer;
  1964.     }
  1965.     /* Style for the primary button */
  1966.     .btn-primary {
  1967.         color: white;
  1968.     }
  1969.     /* Hover effect for primary button */
  1970.     .btn-primary:hover {
  1971.         background-color: #0056b3;
  1972.     }
  1973.     /* Style for the secondary button */
  1974.     .btn-secondary {
  1975.         background-color: #6c757d;
  1976.         color: white;
  1977.     }
  1978.     /* Hover effect for secondary button */
  1979.     .btn-secondary:hover {
  1980.         background-color: #5a6268;
  1981.     }
  1982.     #selectEntityModal .routineTable {
  1983.         text-align: left;
  1984.         vertical-align: middle;
  1985.     }
  1986.     #selectEntityModal .routineTable .icon-delete {
  1987.         color: darkred;
  1988.         font-weight: bold;
  1989.     }
  1990.     #selectEntityModal .routineTable .icon-delete .fa {
  1991.         padding: 10px;
  1992.         border-radius: 39px;
  1993.         border: 1px solid #eddcdc;
  1994.         width: 34px;
  1995.         height: 34px;
  1996.         text-align: center;
  1997.     }
  1998.     #selectEntityModal .routineTable .icon-check {
  1999.         color: green;
  2000.         font-weight: bold;
  2001.     }
  2002.     #selectEntityModal .routineTable .icon-check .fa {
  2003.         opacity: 0.1;
  2004.     }
  2005.     #selectEntityModal .routineTable .icon-check.isChecked .fa {
  2006.         opacity: 1;
  2007.     }
  2008.     #selectEntityModal .routineTable .icon-check .fa {
  2009.         padding: 10px;
  2010.         border-radius: 39px;
  2011.         border: 1px solid #eddcdc;
  2012.         width: 34px;
  2013.         height: 34px;
  2014.         text-align: center;
  2015.     }
  2016.     #selectEntityModal .routineTable {
  2017.         text-align: left;
  2018.         vertical-align: middle;
  2019.     }
  2020.     #selectEntityModal .routineTable .icon-delete {
  2021.         color: darkred;
  2022.         font-weight: bold;
  2023.     }
  2024.     #selectEntityModal .routineTable .icon-delete .fa {
  2025.         padding: 10px;
  2026.         border-radius: 39px;
  2027.         border: 1px solid #eddcdc;
  2028.         width: 34px;
  2029.         height: 34px;
  2030.         text-align: center;
  2031.     }
  2032.     #selectEntityModal .routineTable .icon-check {
  2033.         color: green;
  2034.         font-weight: bold;
  2035.     }
  2036.     #selectEntityModal .routineTable .icon-check .fa {
  2037.         opacity: 0.1;
  2038.     }
  2039.     #selectEntityModal .routineTable .icon-check.isChecked .fa {
  2040.         opacity: 1;
  2041.     }
  2042.     #selectEntityModal .routineTable .icon-check .fa {
  2043.         padding: 10px;
  2044.         border-radius: 39px;
  2045.         border: 1px solid #eddcdc;
  2046.         width: 34px;
  2047.         height: 34px;
  2048.         text-align: center;
  2049.     }
  2050.     @media (min-width: 1400px) {
  2051.         .dashboard-main .container {
  2052.             max-width: 1400px;
  2053.         }
  2054.     }
  2055.     .upcoming_session_image_view {
  2056.         height: 60px;
  2057.         width: 60px;
  2058.         border-radius: 50%;
  2059.         background-size: cover !important;
  2060.         background-position: center !important;
  2061.     }
  2062.     .badge.transaction_completed {
  2063.         color: #7AE677;
  2064.         background-color: #D9FFD8;
  2065.         padding: .7rem;
  2066.     }
  2067.     .badge.transaction_canceled {
  2068.         color: #ED4C5C;
  2069.         background-color: #FFE3E2;
  2070.         padding: .7rem;
  2071.     }
  2072.     .badge.transaction_pending {
  2073.         color: #373A37;
  2074.         background-color: #F2F2F2;
  2075.         padding: .7rem;
  2076.     }
  2077.     .small_info .progress {
  2078.         height: 1rem;
  2079.         border-radius: 0.5rem;
  2080.     }
  2081.     .small_info .row {
  2082.         margin-top: 19px;
  2083.         margin-bottom: 20px;
  2084.     }
  2085.     .small_info .progress_holder {
  2086.         margin-top: auto;
  2087.         margin-bottom: auto;
  2088.         padding: 0px;
  2089.     }
  2090.     .small_info .value_type {
  2091.         margin-bottom: 0px;
  2092.         font-size: 18px;
  2093.         color: #373A37;
  2094.         font-weight: normal;
  2095.     }
  2096.     .small_info .percent_value {
  2097.         text-align: right;
  2098.         margin-bottom: 0px;
  2099.         font-size: 18px;
  2100.         color: #373A37;
  2101.         font-weight: normal;
  2102.     }
  2103.     .small_info .percent_holder {
  2104.         margin-top: auto;
  2105.         margin-bottom: auto;
  2106.         padding-left: 0px;
  2107.     }
  2108.     .small_info .value_type_holder {
  2109.         margin-top: auto;
  2110.         margin-bottom: auto;
  2111.     }
  2112.     .small_info .progress .progress-bar {
  2113.         background: #92E3A9;
  2114.     }
  2115.     .dashboard-main .card {
  2116.         margin-bottom: 13px;
  2117.     }
  2118.     .accordion-button:focus {
  2119.         z-index: 3;
  2120.         /* border-color: #86b7fe; */
  2121.         outline: 0;
  2122.         box-shadow: none;
  2123.     }
  2124.     .accordion-button:not(.collapsed) {
  2125.         /*color: #0c63e4;*/
  2126.         background-color: white;
  2127.         /*box-shadow: inset 0 -1px 0 rgb(0 0 0 / 13%);*/
  2128.     }
  2129.     .dial {
  2130.         border: 0px;
  2131.         width: 0px;
  2132.         font-size: 36px !important;
  2133.         color: white;
  2134.     }
  2135.     .rounded_border_card {
  2136.         border-radius: 1rem;;
  2137.     }
  2138.     .status_card {
  2139.         border-radius: 1rem;;
  2140.     }
  2141.     .status_card .card-body {
  2142.         padding-bottom: 0;
  2143.     }
  2144.     .status_card .card-title {
  2145.         color: #4B4B4B;
  2146.         font-size: var(--cp-fs-xl, 20px);
  2147.         font-weight: 400;
  2148.         font-family: 'Poppins';
  2149.     }
  2150.     .status_card .status_value {
  2151.         color: #4B4B4B;
  2152.         font-size: 60px;
  2153.         font-weight: normal;
  2154.         font-family: 'Poppins';
  2155.     }
  2156.     .status_card .col-md-7, .status_card .col-md-5, .status_card .col-md-6 {
  2157.         margin-top: auto;
  2158.         margin-bottom: auto;
  2159.         /*padding: 0;*/
  2160.     }
  2161.     .status_card .col-md-5 {
  2162.         padding-left: 0px;
  2163.     }
  2164.     .status_card .status_value_trend {
  2165.         float: right;
  2166.         font-size: 14px;
  2167.         font-weight: 400;
  2168.         padding: 8px;
  2169.         border-radius: 1em;
  2170.     }
  2171.     .status_value_trend.negative {
  2172.         background-color: #FFE4E4;
  2173.         color: #F07777;
  2174.     }
  2175.     .status_value_trend.positive {
  2176.         background-color: #C6F1F7;
  2177.         color: #137DC3;
  2178.     }
  2179.     .student_list_card {
  2180.         /*border-radius: 1rem;;*/
  2181.     }
  2182.     .student_list_card .card {
  2183.         /*border-radius: 1rem;;*/
  2184.         border: none;;
  2185.     }
  2186.     .student_list_card .card-body {
  2187.         padding: 8px;
  2188.         border-radius: 13px;
  2189.     }
  2190.     .student_list_card .card-title {
  2191.         color: #4B4B4B;
  2192.         font-size: var(--cp-fs-xl, 20px);
  2193.         font-weight: 400;
  2194.         font-family: 'Poppins';
  2195.     }
  2196.     .student_list_card .time {
  2197.         color: #818181;
  2198.         font-size: var(--cp-fs-lg, 16px);
  2199.         font-weight: bold;
  2200.         font-family: 'Roboto', sans-serif;
  2201.         padding-left: 4px;
  2202.     }
  2203.     .student_list_card .col-md-7,
  2204.     .student_list_card .col-md-5,
  2205.     .student_list_card .col-md-6,
  2206.     .student_list_card .col-md-9,
  2207.     .student_list_card .col-md-1,
  2208.     .student_list_card .col-md-2,
  2209.     .student_list_card .col-md-3 {
  2210.         margin-top: auto;
  2211.         margin-bottom: auto;
  2212.         /*padding: 0;*/
  2213.     }
  2214.     .student_list_card .col-md-5,
  2215.     .student_list_card .col-md-1 {
  2216.         padding-left: 0px;
  2217.     }
  2218.     .student_list_card img {
  2219.         width: 100%;
  2220.         border-radius: 50%;
  2221.     }
  2222.     .student_list_card .student_name {
  2223.         font-size: 18px;
  2224.         font-weight: bold;
  2225.         color: #4B4B4B;
  2226.         font-family: 'Poppins';
  2227.         margin-bottom: 0px;
  2228.     }
  2229.     .student_list_card .student_interest {
  2230.         font-size: var(--cp-fs-lg, 16px);
  2231.         font-weight: 400;
  2232.         color: #BCC7D8;
  2233.         margin-bottom: 0px;;
  2234.     }
  2235.     .student_list_card .more {
  2236.         font-size: var(--cp-fs-lg, 16px);
  2237.         font-weight: 400;
  2238.         color: #333333;
  2239.         margin-bottom: 0px;;
  2240.         padding-right: 8px;
  2241.     }
  2242.     .table > :not(caption) > * > * {
  2243.         padding: 1rem 1rem;
  2244.     }
  2245.     .more {
  2246.         font-size: var(--cp-fs-lg, 16px);
  2247.         font-weight: 400;
  2248.         color: #333333;
  2249.         margin-bottom: 0px;;
  2250.         padding-right: 8px;
  2251.     }
  2252.     .custom-icon-btn {
  2253.         background-color: #3498db;
  2254.         color: white;
  2255.         border: none;
  2256.         border-radius: 15px;
  2257.         text-align: center;
  2258.         font-size: var(--cp-fs-lg, 16px);
  2259.         font-weight: 500;
  2260.     }
  2261. </style>
  2262. <style>
  2263.     /* ── Nordic My Companies ─────────────────────────────────────────────────── */
  2264.     :root {
  2265.         --n-cream: #F7F5F0;
  2266.         --n-dark:  #1A1D2E;
  2267.         --n-amber: #C07D2A;
  2268.         --n-muted: #6B7280;
  2269.         /* Override global blue palette so style.css rules inherit Nordic tokens */
  2270.         --global-background-color: #ffffff;
  2271.         --primary-color: #1A1D2E;
  2272.         --swiper-theme-color: #C07D2A;
  2273.     }
  2274.     body { background: var(--n-cream) !important; }
  2275.     .role-company-page.section { background: var(--n-cream); padding: 48px 0 80px; }
  2276.     /* Page heading */
  2277.     .section-head-area { text-align: center; margin-bottom: 32px; }
  2278.     .section-title,
  2279.     .role-company-page .section-title,
  2280.     .role-company-page h1.section-title {
  2281.         font-family: 'Montserrat', sans-serif !important;
  2282.         font-size: clamp(1.6rem,3vw,2.2rem) !important;
  2283.         font-weight: 700 !important;
  2284.         color: var(--n-dark) !important;
  2285.         background: none !important;
  2286.         -webkit-background-clip: unset !important;
  2287.         -webkit-text-fill-color: var(--n-dark) !important;
  2288.         background-clip: unset !important;
  2289.         margin: 0;
  2290.     }
  2291.     /* Tabs */
  2292.     .tab-box { display: flex !important; align-items: center; gap: 4px; border-bottom: 2px solid rgba(26,29,46,.1); margin-bottom: 32px; padding-bottom: 0; overflow-x: auto; scrollbar-width: none; }
  2293.     .tab-box::-webkit-scrollbar { display: none; }
  2294.     .tab-btn.tab-btn-style { background: transparent !important; border: none !important; border-bottom: 3px solid transparent !important; margin-bottom: -2px; padding: 10px 18px; font-family: 'DM Sans', sans-serif; font-size: .875rem; font-weight: 600; color: var(--n-muted) !important; border-radius: 0 !important; cursor: pointer; transition: color .2s, border-color .2s; white-space: nowrap; box-shadow: none !important; }
  2295.     .tab-btn.tab-btn-style.active, .tab-btn.tab-btn-style:hover { color: var(--n-dark) !important; border-bottom-color: var(--n-amber) !important; }
  2296.     .tab-box .line { display: none; }
  2297.     /* Company Swiper cards — !important needed: style.css hardcodes rgba(230,248,250,1) blue */
  2298.     .role-company-page .tab-container .content-box .content .card {
  2299.         background: var(--global-background-color, #fff) !important;
  2300.         border: 1.5px solid rgba(26,29,46,.08) !important;
  2301.         border-radius: 14px !important;
  2302.         box-shadow: 0 4px 24px rgba(26,29,46,.08) !important;
  2303.         padding: 20px !important;
  2304.         text-align: center;
  2305.         transition: box-shadow .2s, transform .2s;
  2306.     }
  2307.     .role-company-page .tab-container .content-box .content .card:hover {
  2308.         box-shadow: 0 8px 32px rgba(26,29,46,.14) !important;
  2309.         transform: translateY(-2px);
  2310.     }
  2311.     /* Active slide: amber border instead of blue */
  2312.     .swiper-slide.swiper-slide-active .card {
  2313.         border: 2px solid var(--n-amber) !important;
  2314.         background-image: none !important; /* remove the old overlay.svg */
  2315.     }
  2316.     .swiper-slide .card img { width: 64px; height: 64px; border-radius: 10px; object-fit: contain; margin: 0 auto 12px; display: block; }
  2317.     .swiper-slide .card h2 { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700; color: var(--n-dark) !important; margin: 0 0 8px; }
  2318.     .swiper-slide .card .role { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--n-amber); background: rgba(192,125,42,.1); padding: 3px 10px; border-radius: 20px; }
  2319.     /* Action buttons — !important: style.css has high-specificity blue rules for these */
  2320.     .buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
  2321.     .app-btn.button {
  2322.         display: inline-flex !important; align-items: center !important; gap: 8px;
  2323.         padding: 11px 24px !important; border-radius: 8px !important;
  2324.         background: transparent !important;
  2325.         color: var(--n-dark) !important;
  2326.         border: 1.5px solid rgba(26,29,46,.25) !important;
  2327.         font-family: 'DM Sans',sans-serif !important; font-size: .9rem; font-weight: 600;
  2328.         cursor: pointer; transition: border-color .2s, color .2s; text-decoration: none;
  2329.     }
  2330.     .app-btn.button:hover { border-color: var(--n-amber) !important; color: var(--n-amber) !important; }
  2331.     .app-btn.button i { color: var(--n-dark) !important; }
  2332.     .app-btn.button:hover i { color: var(--n-amber) !important; }
  2333.     .create-btn.button {
  2334.         display: inline-flex !important; align-items: center !important; gap: 8px;
  2335.         padding: 11px 24px !important; border-radius: 8px !important;
  2336.         background: var(--n-dark) !important; color: #fff !important;
  2337.         border: 1.5px solid transparent !important;
  2338.         font-family: 'DM Sans',sans-serif !important; font-size: .9rem; font-weight: 600 !important;
  2339.         cursor: pointer; transition: background .2s, transform .15s; text-decoration: none !important;
  2340.     }
  2341.     .create-btn.button:hover { background: var(--n-amber) !important; color: #fff !important; transform: translateY(-1px); text-decoration: none !important; }
  2342.     /* Swiper nav */
  2343.     .swiper-button-prev::after, .swiper-button-next::after { color: var(--n-amber) !important; }
  2344.     .swiper-pagination-bullet-active { background: var(--n-amber) !important; }
  2345.     /* Action links bar (Join / Link / Delete) — override old absolute+blue style */
  2346.     .role-company-page .tab-container .content-box .content .links {
  2347.         position: relative !important;
  2348.         top: auto !important;
  2349.         display: flex !important;
  2350.         justify-content: center !important;
  2351.         align-items: stretch !important;
  2352.         max-width: 560px !important;
  2353.         width: 100% !important;
  2354.         margin: 24px auto 0 !important;
  2355.         border: 1.5px solid rgba(26,29,46,.12) !important;
  2356.         border-radius: 10px !important;
  2357.         background: var(--global-background-color, #fff) !important;
  2358.         overflow: hidden;
  2359.         flex-wrap: nowrap !important;
  2360.     }
  2361.     .role-company-page .tab-container .content-box .content .links .link {
  2362.         display: flex !important;
  2363.         align-items: center !important;
  2364.         justify-content: center !important;
  2365.         gap: 7px;
  2366.         flex: 1 1 0;
  2367.         padding: 11px 14px !important;
  2368.         font-family: 'DM Sans', sans-serif;
  2369.         font-size: .82rem;
  2370.         font-weight: 600;
  2371.         color: var(--n-muted) !important;
  2372.         cursor: pointer;
  2373.         border-right: 1px solid rgba(26,29,46,.08) !important;
  2374.         transition: color .15s, background .15s;
  2375.         white-space: nowrap;
  2376.     }
  2377.     .role-company-page .tab-container .content-box .content .links .link:last-child { border-right: none !important; }
  2378.     .role-company-page .tab-container .content-box .content .links .link:hover { color: var(--n-amber) !important; background: rgba(192,125,42,.05); }
  2379.     .role-company-page .tab-container .content-box .content .links .link.active { color: var(--n-dark) !important; }
  2380.     .role-company-page .tab-container .content-box .content .links .link i { font-size: 14px !important; color: var(--n-amber); padding: 0 !important; }
  2381.     /* Onboarding employee cards */
  2382.     .employee-card { background: var(--global-background-color, #fff); border-radius: 14px; box-shadow: 0 4px 24px rgba(26,29,46,.08); border: 1px solid rgba(26,29,46,.06); padding: 28px; }
  2383.     .employee-card h5 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--n-dark); }
  2384.     .employee-card .form-group label { font-size: .78rem; font-weight: 600; color: var(--n-muted); text-transform: uppercase; letter-spacing: .08em; }
  2385.     .employee-card .form-control, .employee-card select.form-control { border: 1.5px solid rgba(26,29,46,.12); border-radius: 8px; padding: 10px 14px; font-family: 'DM Sans', sans-serif; color: var(--n-dark); }
  2386.     .employee-card .form-control:focus { border-color: var(--n-amber); box-shadow: 0 0 0 3px rgba(192,125,42,.1); outline: none; }
  2387.     /* Buttons inside page */
  2388.     .global-button, .send-button { background: var(--n-dark) !important; color: #fff !important; border: none !important; border-radius: 8px !important; padding: 10px 24px !important; font-family: 'DM Sans', sans-serif !important; font-weight: 600 !important; cursor: pointer; transition: background .2s; }
  2389.     .global-button:hover, .send-button:hover, .global-button:focus, .send-button:focus { background: var(--n-amber) !important; color: #fff !important; box-shadow: none !important; }
  2390.     .global-outline-button.extra-btn { background: transparent !important; color: var(--n-dark) !important; border: 2px solid rgba(26,29,46,.25) !important; border-radius: 8px !important; padding: 9px 20px !important; font-family: 'DM Sans', sans-serif; font-weight: 600; cursor: pointer; }
  2391.     .global-outline-button.extra-btn:hover { border-color: var(--n-amber) !important; color: var(--n-amber) !important; }
  2392.     /* QR card */
  2393.     .qr-card .card { background: var(--global-background-color, #fff); border-radius: 14px; box-shadow: 0 8px 32px rgba(26,29,46,.12); border: 1px solid rgba(26,29,46,.06); }
  2394.     /* ── Responsive ──────────────────────────────────────────────────────────── */
  2395.     @media (max-width: 768px) {
  2396.         .role-company-page.section { padding: 32px 0 60px; }
  2397.         .employee-card-container { justify-content: center; }
  2398.         .employee-card { max-width: 100%; width: 100%; }
  2399.     }
  2400.     @media (max-width: 480px) {
  2401.         .tab-box { gap: 0; }
  2402.         .tab-btn.tab-btn-style { padding: 8px 12px; font-size: .8rem; }
  2403.         .employee-card-container { flex-direction: column; align-items: stretch; gap: 16px; }
  2404.         .buttons { flex-direction: column; }
  2405.         .app-btn.button, .create-btn.button { width: 100%; justify-content: center; }
  2406.     }
  2407. </style>
  2408. <section class=\"role-company-page section\">
  2409.     <div class=\"container\">
  2410.         <div class=\"row\">
  2411.             <div class=\"col-md-12 d-flex justify-content-center align-items-center\">
  2412.                 <div class=\"section-head-area\">
  2413.                     <h1 class=\"section-title\">Your Role & Company List</h1>
  2414.                 </div>
  2415.             </div>
  2416.         </div>
  2417.         <div class=\"row d-flex justify-content-center align-items-center\">
  2418.             <div class=\"tab-container\">
  2419.                 <div class=\"tab-box overflow-x-auto\">
  2420.                     <button class=\"tab-btn tab-btn-style active \" id=\"role-tab-1\">Your Company</button>
  2421.                     <button class=\"tab-btn tab-btn-style \" id=\"role-tab-2\">Your Role</button>
  2422.                     <button class=\"tab-btn tab-btn-style \" id=\"role-tab-3\">Your Dashboard</button>
  2423.                     <button class=\"tab-btn tab-btn-style \" id=\"add-employee-btn\">Onboarding</button>
  2424.                     <button class=\"tab-btn tab-btn-style \" id=\"role-tab-4\">Shared Company</button>
  2425.                     <button class=\"tab-btn tab-btn-style \" id=\"role-tab-5\">Applied Company</button>
  2426.                     <div class=\"line\"></div>
  2427.                 </div>
  2428.                 <div class=\"content-box\">
  2429.                     {# 1st div: your company #}
  2430.                     <div class=\"content active\" style=\"cursor:pointer;\">
  2431.                         <div class=\"swiper-container\">
  2432.                             <div class=\"swiper-wrapper\"></div>
  2433.                             {# <div id=\"selected-counter\" class=\"selected-counter\">0 out of 5 Selected</div> #}
  2434.                             {# three buttons #}
  2435.                             <div class=\"links\">
  2436.                                 <div class=\"link\">
  2437.                                     <i class='fa fa-user-plus'></i><span>Join this Account</span>
  2438.                                 </div>
  2439.                                 <div class=\"link active\">
  2440.                                     <i class='fa fa-link'></i><span>Link Accounts</span>
  2441.                                 </div>
  2442.                                 <div class=\"link active\">
  2443.                                     <i class='fa fa-trash'></i><span>Delete Account</span>
  2444.                                 </div>
  2445.                             </div>
  2446.                             <div class=\"swiper-pagination\"></div>
  2447.                             <div class=\"buttons\">
  2448.                                 <button class=\"app-btn button\"><i class=\"fa-regular fa-user\"></i>Apply for Employment
  2449.                                 </button>
  2450.                                 <a class=\"create-btn button\" href=\"{{ url('create_company') }}\">
  2451.                                     <i class=\"fa-regular fa-building\"></i> Create a Company
  2452.                                 </a>
  2453.                             </div>
  2454.                             <div class=\"swiper-button-prev\"></div>
  2455.                             <div class=\"swiper-button-next\"></div>
  2456.                         </div>
  2457.                         {# <div id=\"selected-counter\" class=\"selected-counter\">0 out of 5 Selected</div> #}
  2458.                     </div>
  2459.                     {# 2nd div: your role #}
  2460.                     <div class=\"content\">
  2461.                         {# role #}
  2462.                     </div>
  2463.                     {# 3rd div: your dashboard #}
  2464.                     <div class=\"content\">
  2465.                         {# dashboard #}
  2466.                     </div>
  2467.                     {# 4th div: add employee #}
  2468.                     <div class=\"content\">
  2469.                         <div class=\"employee-card-container hidden\" id=\"employee-card-container\">
  2470.                             {# employee card form #}
  2471.                             <div class=\"employee-card fade show\" id=\"employee-form-wrapper\">
  2472.                                 <div class=\"\" id=\"employee-card\">
  2473.                                     <h5 class='text-center mb-3'>By Generating QR/Link</h5>
  2474.                                     <form id=\"employee-form \">
  2475.                                         {# user type #}
  2476.                                         <div class=\"form-group\">
  2477.                                             <select id=\"employee-type\" name=\"qrEmpType\"
  2478.                                                     class=\"form-control p-2 select-center\">
  2479.                                                 <option value=\"\">Select User Type</option>
  2480.                                                 <option value=\"1\">Admin</option>
  2481.                                                 <option value=\"2\">User</option>
  2482.                                                 <option value=\"3\">Manager</option>
  2483.                                             </select>
  2484.                                         </div>
  2485.                                         {# select company #}
  2486.                                         <div class=\"form-group\">
  2487.                                             <select id=\"company-name-qr\" class=\"form-control\">
  2488.                                                 <option value=\"\">Select Company</option>
  2489.                                             </select>
  2490.                                         </div>
  2491.                                         {# select employee email #}
  2492.                                         <div class=\"form-group mt-3\">
  2493.                                             <select name=\"sys_user\" class=\"form-control entityEmp \" id=\"email\">
  2494.                                                 <option value=\"\">Select Employee</option>
  2495.                                             </select>
  2496.                                         </div>
  2497.                                         <button type=\"button\" class=\"global-button fs-6\" id=\"qr-code-button\">Generate
  2498.                                         </button>
  2499.                                     </form>
  2500.                                 </div>
  2501.                             </div>
  2502.                             {# end employee card form #}
  2503.                             <div class=\"employee-card fade show \" id=\"self-qr-form-wrapper\">
  2504.                                 <div id=\"self-qr-card\">
  2505.                                     <h5 class='text-center mb-3'>Generate QR for Yourself</h5>
  2506.                                     <form id=\"self-qr-form\">
  2507.                                         <div class=\"form-group \">
  2508.                                             <label>Your Email</label>
  2509.                                             <input style='' type=\"email\" id=\"self-email-input\"
  2510.                                                    class=\"form-control email-input\" placeholder=\"Enter your email\">
  2511.                                         </div>
  2512.                                         <button type=\"button\" class=\"global-button fs-6 mt-3\" id=\"generate-self-qr-btn\">
  2513.                                             Generate QR
  2514.                                         </button>
  2515.                                     </form>
  2516.                                 </div>
  2517.                             </div>
  2518.                             {# qr card #}
  2519.                             <div class=\"qr-card\" id=\"qr-code-container\" style=\"display: none; margin-top: 100px\">
  2520.                                 <div class=\"card\" style=''>
  2521.                                     <button type=\"button\"
  2522.                                             class=\"position-absolute top-0 end-0 m-2 p-0 border-0 bg-transparent\"
  2523.                                             aria-label=\"Close\">
  2524.                                         <i class=\"fa-solid fa-circle-xmark fs-4\" id=\"cl-qr-card\"></i>
  2525.                                     </button>
  2526.                                     <div class=\"card-body mt-4\">
  2527.                                         <h3 class=\"text-capitalize\" id=\"qr-company-name\"></h3>
  2528.                                         <img id=\"qr-image\" src=\"\" alt=\"QR Code\" class=\"img-fluid \">
  2529.                                         <p id=\"message\" class=\"mt-2 text-success fs-5 text-center d-none\"></p>
  2530.                                         <button type=\"button\" class=\" send-button mt-2 mx-2 fs-6\" id=\"send-qr-button\">
  2531.                                             Send Qr
  2532.                                         </button>
  2533.                                         {# working #}
  2534.                                         <button type=\"button\" class=\"global-outline-button extra-btn mt-2\"
  2535.                                                 id=\"copy-link-button\">
  2536.                                             <i class=\"fas fa-copy\" id=\"close-qr-card\"></i></button>
  2537.                                         <!-- Send QR Loader -->
  2538.                                         <div id=\"send-loader\" class=\"mt-3 d-none text-center\">
  2539.                                             <div class=\"spinner-border text-primary\" role=\"status\">
  2540.                                                 <span class=\"visually-hidden\">Loading...</span>
  2541.                                             </div>
  2542.                                         </div>
  2543.                                     </div>
  2544.                                 </div>
  2545.                             </div>
  2546.                             {# qr card end #}
  2547.                         </div>
  2548.                     </div>
  2549.                     {# 5th div: shared company #}
  2550.                     <div class=\"content\">
  2551.                         {# shared company #}
  2552.                     </div>
  2553.                     {# 6th div: applied company #}
  2554.                     <div class=\"content\">
  2555.                         {# applied company #}
  2556.                     </div>
  2557.                 </div>
  2558.             </div>
  2559.         </div>
  2560.     </div>
  2561. </section>
  2562. <script>
  2563.     document.addEventListener(\"DOMContentLoaded\", function () {
  2564.         const accessList = {{ app.session.get('userAccessList', [])|json_encode|raw() }};
  2565.         console.log(accessList);
  2566.         let qruserAccessList = [];
  2567.         function populateCompanyDropdown(selectId) {
  2568.             const selectElement = document.getElementById(selectId);
  2569.             qruserAccessList = accessList.map(company => ({
  2570.                 companyName: company.companyName,
  2571.                 appId: company.appId,
  2572.                 companyId: company.companyId,
  2573.                 userType: company.userType
  2574.             }));
  2575.             selectElement.innerHTML = '<option value=\"\">Select Company</option>';
  2576.             accessList.forEach(function (company) {
  2577.                 const option = document.createElement(\"option\");
  2578.                 option.value = company.companyName;
  2579.                 option.textContent = company.companyName;
  2580.                 selectElement.appendChild(option);
  2581.             });
  2582.             if (\$(selectElement)[0].selectize) {
  2583.                 \$(selectElement)[0].selectize.destroy();
  2584.             }
  2585.             \$(selectElement).selectize({
  2586.                 create: false,
  2587.                 sortField: 'text'
  2588.             });
  2589.         }
  2590.         populateCompanyDropdown(\"company-name-qr\");
  2591.         // generate qr code
  2592.         document.getElementById(\"qr-code-button\").addEventListener(\"click\", function () {
  2593.             var selectedCompany = document.getElementById(\"company-name-qr\").value;
  2594.             var qrCompanyName = document.getElementById(\"qr-company-name\");
  2595.             var userEmail = document.getElementById(\"email\")
  2596.             var qrImage = document.getElementById(\"qr-image\");
  2597.             var qrCodeContainer = document.getElementById(\"qr-code-container\");
  2598.             var selectedCompanyData = qruserAccessList.find(company => company.companyName === selectedCompany);
  2599.             var appId = selectedCompanyData.appId;
  2600.             var companyId = selectedCompanyData.companyId;
  2601.             var userType = selectedCompanyData.userType;
  2602.             var baseUrl = \"{{ url('employee_add_by_qr') }}\";
  2603.             var connector = baseUrl.includes(\"?\") ? \"&\" : \"?\";
  2604.             var finalUrl = baseUrl + connector + \"company=\" + encodeURIComponent(selectedCompany) + \"&appid=\" + encodeURIComponent(appId) + \"&companyId=\" + encodeURIComponent(companyId) + \"&userType=\" + encodeURIComponent(userType) + \"&CompanyQr=1\";
  2605.             if (selectedCompany) {
  2606.                 qrCompanyName.textContent = selectedCompany;
  2607.                 \$.get(\"{{ path('generate_qr_div') }}?url=\" + encodeURIComponent(finalUrl), function (data) {
  2608.                     \$('#qr-image').attr('src', data.html);
  2609.                     \$('#qr-code-container').show();
  2610.                 }, \"json\");
  2611.             } else {
  2612.                 alert(\"Please select a company to generate the QR code.\");
  2613.             }
  2614.         });
  2615.         document.getElementById(\"cl-qr-card\").addEventListener(\"click\", function (event) {
  2616.             event.stopPropagation();
  2617.             document.getElementById(\"qr-code-container\").style.display = \"none\";
  2618.         });
  2619.         document.getElementById(\"copy-link-button\").addEventListener(\"click\", function (event) {
  2620.             event.stopPropagation();
  2621.             var selectedCompany = document.getElementById(\"company-name-qr\").value;
  2622.             var selectedCompanyData = qruserAccessList.find(company => company.companyName === selectedCompany);
  2623.             var appId = selectedCompanyData.appId;
  2624.             var companyId = selectedCompanyData.companyId;
  2625.             var userType = selectedCompanyData.userType;
  2626.             var baseUrl = \"{{ url('employee_add_by_qr') }}\";
  2627.             var connector = baseUrl.includes(\"?\") ? \"&\" : \"?\";
  2628.             var finalUrl = baseUrl + connector + \"company=\" + encodeURIComponent(selectedCompany) +
  2629.                 \"&appid=\" + encodeURIComponent(appId) +
  2630.                 \"&companyId=\" + encodeURIComponent(companyId) +
  2631.                 \"&userType=\" + encodeURIComponent(userType);
  2632.             navigator.clipboard.writeText(finalUrl).then(() => {
  2633.                 var qrContainer = document.getElementById(\"qr-code-container\");
  2634.                 var copyMessage = document.getElementById(\"copy-message\");
  2635.                 const qrImage = document.getElementById(\"qr-image\");
  2636.                 if (!copyMessage) {
  2637.                     copyMessage = document.createElement(\"p\");
  2638.                     copyMessage.id = \"copy-message\";
  2639.                     copyMessage.style.color = \"green\";
  2640.                     copyMessage.style.marginTop = \"0px\";
  2641.                     copyMessage.style.fontWeight = \"bold\";
  2642.                     copyMessage.style.fontSize = \"16px\";
  2643.                     copyMessage.style.textAlign = \"center\";
  2644.                     qrImage.insertAdjacentElement(\"afterend\", copyMessage);
  2645.                     //qrContainer.appendChild(copyMessage);
  2646.                 }
  2647.                 copyMessage.textContent = \"Link copied to clipboard!\";
  2648.                 // remove 'Link copied to clipboard!' after 5 seconds
  2649.                 setTimeout(() => {
  2650.                     copyMessage.remove();
  2651.                     copyMessage = null;
  2652.                 }, 5000);
  2653.             }).catch(err => {
  2654.                 console.error(\"Failed to copy: \", err);
  2655.             });
  2656.         });
  2657.         document.getElementById(\"send-qr-button\").addEventListener(\"click\", function () {
  2658.             var selectedEmployee = document.getElementById(\"email\").value;
  2659.             var selectedCompany = document.getElementById(\"company-name-qr\").value;
  2660.             var selectedCompanyData = qruserAccessList.find(company => company.companyName === selectedCompany);
  2661.             var appId = selectedCompanyData.appId;
  2662.             var qrImage = document.getElementById(\"qr-image\");
  2663.             var loader = document.getElementById(\"send-loader\"); // loader variable
  2664.             if (!selectedEmployee || !selectedCompany) {
  2665.                 alert(\"Please select both an employee and a company.\");
  2666.                 return;
  2667.             }
  2668.             // Show loader
  2669.             loader.classList.remove(\"d-none\");
  2670.             var formData = new FormData();
  2671.             formData.append('company', selectedCompany);
  2672.             formData.append('email', selectedEmployee);
  2673.             formData.append('qr_image', dataURItoBlob(qrImage.src));
  2674.             formData.append('appid', appId);
  2675.             fetch(\"{{ path('employee_add_by_qr') }}\", {
  2676.                 method: \"POST\",
  2677.                 body: formData
  2678.             }).then(response => response.json())
  2679.                 .then(data => {
  2680.                     // Hide loader
  2681.                     loader.classList.add(\"d-none\");
  2682.                     if (data.status === 'success') {
  2683.                         window.location.href = \"{{ path('central_landing') }}\";
  2684.                         alert('QR Code for employee uploaded successfully!');
  2685.                     } else {
  2686.                         alert('Error: ' + data.message);
  2687.                     }
  2688.                 }).catch(error => {
  2689.                 console.error(\"Error uploading QR Code:\", error);
  2690.             });
  2691.         });
  2692.         function dataURItoBlob(dataURI) {
  2693.             var byteString = atob(dataURI.split(',')[1]);
  2694.             var arrayBuffer = new ArrayBuffer(byteString.length);
  2695.             var uintArray = new Uint8Array(arrayBuffer);
  2696.             for (var i = 0; i < byteString.length; i++) {
  2697.                 uintArray[i] = byteString.charCodeAt(i);
  2698.             }
  2699.             return new Blob([uintArray], {type: 'image/png'});
  2700.         }
  2701.         document.getElementById(\"generate-self-qr-btn\").addEventListener(\"click\", function () {
  2702.             const emailInput = document.getElementById(\"self-email-input\").value.trim();
  2703.             const qrCompanyName = document.getElementById(\"qr-company-name\");
  2704.             const qrImage = document.getElementById(\"qr-image\");
  2705.             const qrCodeContainer = document.getElementById(\"qr-code-container\");
  2706.             if (!emailInput) {
  2707.                 alert(\"Please enter your email to generate the QR code.\");
  2708.                 return;
  2709.             }
  2710.             \$.get(\"{{ path('employee_onboard_by_qr_api') }}\", {email: emailInput}, function (response) {
  2711.                 if (response.status === 'success') {
  2712.                     const userData = response.data;
  2713.                     const payloadUrl = \"{{ url('employee_onboard_by_qr_api') }}?email=\" + encodeURIComponent(userData.email) +
  2714.                         \"&applicantId=\" + encodeURIComponent(userData.id);
  2715.                     \$.get(\"{{ path('generate_qr_div') }}\", {url: payloadUrl}, function (qrRes) {
  2716.                         \$('#qr-company-name').text(userData.email);
  2717.                         \$('#qr-image').attr('src', qrRes.html);
  2718.                         \$('#qr-code-container').show();
  2719.                     }, 'json');
  2720.                 } else {
  2721.                     alert(response.message || \"User not found.\");
  2722.                 }
  2723.             }, \"json\");
  2724.         });
  2725.         \$('.entityEmp').selectize({
  2726.             placeholder: 'Enter Email',
  2727.             multiple: false,
  2728.             valueField: 'value',
  2729.             labelField: 'text',
  2730.             searchField: ['text'],
  2731.             preload: 'focus',
  2732.             load: function (query, callback) {
  2733.                 \$.ajax({
  2734.                     url: \"https://ourhoneybee.eu/select_data_ajax_public\",
  2735.                     type: 'POST',
  2736.                     dataType: 'json',
  2737.                     data: {
  2738.                         query: query,
  2739.                         entity_group: 1,
  2740.                         tableName: \"entity_applicant_details\",
  2741.                         valueField: \"email\",
  2742.                         textField: \"rendered_text\",
  2743.                         renderTextFormat: \"__email__\",
  2744.                         andOrConditions: [
  2745.                             {type: \"like\", field: \"email\", value: query},
  2746.                             {type: \"like\", field: \"firstname\", value: query},
  2747.                         ],
  2748.                     },
  2749.                     success: function (res) {
  2750.                         if (res && res.data && Array.isArray(res.data)) {
  2751.                             callback(res.data);
  2752.                         } else {
  2753.                             callback([]);
  2754.                         }
  2755.                     },
  2756.                     error: function () {
  2757.                         callback([]);
  2758.                     }
  2759.                 });
  2760.             },
  2761.         });
  2762.         \$(\"#send-qr-button\").click(function () {
  2763.             var selectedEmployee = \$(\".entityEmp\").val();
  2764.             var selectedCompany = \$(\"#company-name-qr\").val();
  2765.             if (!selectedEmployee || !selectedCompany) {
  2766.                 alert(\"Please select both an employee and a company.\");
  2767.                 return;
  2768.             }
  2769.             \$.ajax({
  2770.                 url: '/central_landing',
  2771.                 type: \"POST\",
  2772.                 data: {
  2773.                     employee_id: selectedEmployee,
  2774.                     company_name: selectedCompany
  2775.                 },
  2776.                 success: function (response) {
  2777.                     if (response.status === 'success') {
  2778.                         const messageBox = document.getElementById('message');
  2779.                         messageBox.textContent = 'Sent email successfully';
  2780.                         messageBox.classList.remove('d-none'); // Show message
  2781.                         // Hide after 5 seconds
  2782.                         setTimeout(() => {
  2783.                             messageBox.classList.add('d-none');
  2784.                         }, 5000);
  2785.                         window.location.href = \"{{ path('central_landing') }}\";
  2786.                         alert(response.company_name);
  2787.                     } else {
  2788.                         alert(\"Unexpected response from server.\");
  2789.                     }
  2790.                 },
  2791.                 error: function (error) {
  2792.                     alert(\"Error sending data!\");
  2793.                 }
  2794.             });
  2795.         });
  2796.     });
  2797. </script>
  2798. {# {% include '@Application/footer/central_footer_backup.html.twig' %} #}
  2799. {% include '@HoneybeeWeb/website/flow_footer.html.twig' %}
  2800. <link rel=\"stylesheet\" type=\"text/css\"
  2801.       href=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/DataTables/datatables.min.css\"/>
  2802. <script type=\"text/javascript\"
  2803.         src=\"{{ absolute_url(path('dashboard')) }}condensed_assets/pagination/pagination.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
  2804. <script type=\"text/javascript\"
  2805.         src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/DataTables/datatables.min.js?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"></script>
  2806. <script type=\"text/javascript\" src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/jquery.countTo.js\"></script>
  2807. <script type=\"text/javascript\"
  2808.         src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/jquery.knob.min.js\"></script>
  2809. <script>
  2810.     // open and close qr code
  2811.     document.getElementById('qr-code-button').addEventListener('click', function () {
  2812.         // showing qr card
  2813.         document.getElementById('qr-code-container').style.display = 'block';
  2814.         // hide form
  2815.         document.getElementById('employee-form-wrapper').style.display = 'none';
  2816.     })
  2817.     document.getElementById('cl-qr-card').addEventListener('click', function () {
  2818.         // hide qr card
  2819.         document.getElementById('qr-code-container').style.display = 'none';
  2820.         // showing the form again
  2821.         document.getElementById('employee-form-wrapper').style.display = 'block';
  2822.     })
  2823.     var selectEntityModal = {};
  2824.     var currentTabSelectEntityModal = 0;
  2825.     var accessList = [];
  2826.     {% if app.session.get('userAccessList','') !='' %}
  2827.     accessList ={{ app.session.get('userAccessList','')|json_encode|raw() }}
  2828.             {% endif %}
  2829.         function getUserCompanyList(userGetType) {
  2830.             userGetType = userGetType || '_LOCAL_';
  2831.             var pika_ind_id = \"_NA_\";
  2832.             \$('#selectEntityModal .cg_holder').empty();
  2833.             var userTypeTextObject = {
  2834.                 1: 'Admin',
  2835.                 2: 'User',
  2836.                 3: 'Vendor',
  2837.                 4: 'Customer',
  2838.                 5: 'Management User',
  2839.                 6: 'Group Owner',
  2840.                 7: 'GLobal User',
  2841.                 8: 'Applicant',
  2842.                 9: 'Collaborator',
  2843.             }
  2844.             var placeholderCount=6;
  2845.             if (userGetType === '_LOCAL_') {
  2846.                 \$.ajax({
  2847.                     url: BaseURL + \"get_users_by_query?queryStr=\" + \$('#tempUsername').val(),
  2848.                     type: 'POST',
  2849.                     dataType: 'json',
  2850.                     data: {},
  2851.                     error: function () {
  2852.                         // callback();
  2853.                     },
  2854.                     success: function (res) {
  2855.                         if (res.success === true) {
  2856.                             if (res.data.length === 1) {
  2857.                                 var dt = res.data[0];
  2858.                                 \$('#gocId').val(dt['gocId']);
  2859.                                 \$('#username').val(dt['loginUserName']);
  2860.                                 \$('#loginform').submit();
  2861.                             } else {
  2862.                                 for (var jj = 0; jj < res.data.length; jj++) {
  2863.                                     var dt = res.data[jj];
  2864.                                     var ggStr = ' <div class=\"box-selector cg_selector cg_' + dt['appId'] + '\" style=\"cursor:pointer;\"' + ' col-md-12 col-sm-12\"' +
  2865.                                         ' data-id=\"' + dt['gocId'] + '\"' +
  2866.                                         ' data-goc-id=\"' + dt['gocId'] + '\"' +
  2867.                                         ' data-user-name=\"' + dt['loginUserName'] + '\"' +
  2868.                                         ' data-gen-class=\"cg_selector\">' +
  2869.                                         '<div class=\"inside\" style=\"display: flex;\">' +
  2870.                                         '<div class=\"img\" style=\"' +
  2871.                                         \"background:url('\" + dt['companyLogoUrl'] + \"');\" +
  2872.                                         'height: 50px;width: 40%;background-position: left;background-size: contain;background-repeat: no-repeat;display: inline-block;\">' +
  2873.                                         '</div>' +
  2874.                                         '<h6 class=\"title\" style=\"height: 2rem; width: 60%;text-align: left;\">' + dt['companyName'] +
  2875.                                         ' <p class=\"sub-title\">' + userTypeTextObject[dt['userType']] + '</p></h6>' +
  2876.                                         '</div>' +
  2877.                                         '</div>';
  2878.                                     \$('#selectEntityModal .cg_holder').append(ggStr);
  2879.                                 }
  2880.                                 \$('#selectEntityModal').modal('show');
  2881.                             }
  2882.                         }
  2883.                     }
  2884.                 });
  2885.             }
  2886.             if (userGetType == '_CENTRAL_') {
  2887.                 {
  2888.                     for (var jj = 0; jj < accessList.length; jj++) {
  2889.                         var dt = accessList[jj];
  2890.                         var ggStr = ' <div class=\"swiper-slide cg_selector cg_' + dt['appId'] + '\" style=\"cursor:pointer;\"' +
  2891.                             ' data-id=\"' + dt['appId'] + '\"' +
  2892.                             ' data-app-id=\"' + dt['appId'] + '\"' +
  2893.                             ' data-goc-id=\"0\"' +
  2894.                             // ' data-user-name=\"' + dt['loginUserName'] + '\" ' +
  2895.                             ' data-gen-class=\"cg_selector\" ' +
  2896.                             ' data-auth-str=\"' + dt['authenticationStr'] + '\" ' +
  2897.                             ' data-server-url=\"' + dt['serverUrl'] + '\" ' +
  2898.                             ' data-cs-token=\"{{ app.session.get('csToken','') }}\" ' +
  2899.                             '>' +
  2900.                             ' <div class=\"card\">' +
  2901.                             // round circle
  2902.                             //'<input type=\"checkbox\" id=\"check\">' +
  2903.                             '<img src=\"{{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::HONEYBEE_CENTRAL_SERVER') }}' + dt['companyLogoUrl'] + '\" alt=\" Logo\">' +
  2904.                             '<h2>' + dt['companyName'] + '</h2>' +
  2905.                             ' <div class=\"role\">' + userTypeTextObject[dt['userType']] + '</div>' +
  2906.                             // '<p>Lorem ipsum dolor sit amet ect tur. Blandit donec tortor et et quisq. Lorem ipsum dolor sit amet ect tur. Blandit donec tortor et et quisq. Lorem ipsum ...</p> ' +
  2907.                             // '<a href=\"#\"><i class='bx bx-user-plus'></i>Add Employee</a> ' +
  2908.                             '</div> ' +
  2909.                             '</div>'
  2910.                         \$('.swiper-wrapper').append(ggStr);
  2911.                         placeholderCount--;
  2912.                     }
  2913.                 }
  2914.                 for (var jj = 0; jj < placeholderCount; jj++) {
  2915.                     var dt = accessList[jj];
  2916.                     var ggStr = ' <div class=\"swiper-slide  cg_skip cg_0\" style=\"cursor:pointer;\"' +
  2917.                         ' data-id=\"0' +
  2918.                         ' data-app-id=\"0\"' +
  2919.                         ' data-goc-id=\"0\"' +
  2920.                         // ' data-user-name=\"' + dt['loginUserName'] + '\" ' +
  2921.                         ' data-gen-class=\"cg_selector\" ' +
  2922.                         ' data-auth-str=\"\" ' +
  2923.                         ' data-server-url=\"\" ' +
  2924.                         ' data-cs-token=\"\" ' +
  2925.                         '>' +
  2926.                         ' <div class=\"card\">' +
  2927.                         // round circle
  2928.                         //'<input type=\"checkbox\" id=\"check\">' +
  2929.                         '<img src=\"{{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::HONEYBEE_CENTRAL_SERVER') }}/images/company_2.png\" alt=\" Logo\">' +
  2930.                         '<h2><i class=\"fa fa-plus\"></i>Add a Company</h2>' +
  2931.                         ' <div class=\"role\">Add or join a company</div>' +
  2932.                         '</div> ' +
  2933.                         '</div>'
  2934.                     \$('.swiper-wrapper').append(ggStr);
  2935.                 }
  2936.                 // swipper issue solved for company clicking issue
  2937.                 // var mySwiper = new Swiper('.swiper-container', {
  2938.                 //     loop: true,
  2939.                 //     speed: 400,
  2940.                 //     effect: \"coverflow\",
  2941.                 //     centeredSlides: true,
  2942.                 //     slidesPerView: 3,
  2943.                 //     mousewheel: true,
  2944.                 //     allowTouchMove: false, // drag/swipe disabled
  2945.                 //     coverflowEffect: {
  2946.                 //         rotate: 0,
  2947.                 //         stretch: 20,
  2948.                 //         depth: 200,
  2949.                 //         modifier: 2,
  2950.                 //         slideShadows: false,
  2951.                 //     },
  2952.                 //     pagination: {
  2953.                 //         el: \".swiper-pagination\",
  2954.                 //         clickable: true,
  2955.                 //     },
  2956.                 //     navigation: {
  2957.                 //         nextEl: \".swiper-button-next\",
  2958.                 //         prevEl: \".swiper-button-prev\",
  2959.                 //     },
  2960.                 // });
  2961.                 var role_company_page = new Swiper(\".role-company-page .content .swiper-container\",
  2962.                     {
  2963.                         loop: true,
  2964.                         speed: 400,
  2965.                         effect: \"coverflow\",
  2966.                         centeredSlides: true,
  2967.                         slidesPerView: 1,
  2968.                         mousewheel: true,
  2969.                         grabCursor: true,
  2970.                         coverflowEffect: {
  2971.                             rotate: 0,
  2972.                             stretch: 20,
  2973.                             depth: 200,
  2974.                             modifier: 2,
  2975.                             slideShadows: false,
  2976.                         },
  2977.                         breakpoints: {
  2978.                             640:  { slidesPerView: 2 },
  2979.                             1024: { slidesPerView: 3 },
  2980.                         },
  2981.                         pagination: {
  2982.                             el: \".swiper-pagination\",
  2983.                             clickable: true,
  2984.                         },
  2985.                         navigation: {
  2986.                             nextEl: \".swiper-button-next\",
  2987.                             prevEl: \".swiper-button-prev\",
  2988.                         },
  2989.                     }
  2990.                 );
  2991.                 // var role_company_page = new Swiper(\".role-company-page .content .swiper-container\",
  2992.                 //     {
  2993.                 //         loop: true,
  2994.                 //         speed: 400,
  2995.                 //         effect: \"coverflow\",
  2996.                 //         centeredSlides: true,
  2997.                 //         slidesPerView: 3,
  2998.                 //         mousewheel: true,
  2999.                 //         grabCursor: true,
  3000.                 //         coverflowEffect: {
  3001.                 //             rotate: 0,
  3002.                 //             stretch: 20,
  3003.                 //             depth: 200,
  3004.                 //             modifier: 2,
  3005.                 //             slideShadows: false,
  3006.                 //         },
  3007.                 //
  3008.                 //         pagination: {
  3009.                 //             el: \".swiper-pagination\",
  3010.                 //             clickable: true,
  3011.                 //
  3012.                 //         },
  3013.                 //         navigation: {
  3014.                 //             nextEl: \".swiper-button-next\",
  3015.                 //             prevEl: \".swiper-button-prev\",
  3016.                 //         },
  3017.                 //
  3018.                 //     }
  3019.                 // );
  3020.                 // var mySwiper=role_company_page;
  3021.                 // Stable click for center slide
  3022.                 // document.querySelector('.swiper-container').addEventListener('click', function () {
  3023.                 //     var activeSlide = mySwiper.slides[mySwiper.activeIndex];
  3024.                 //     var serverUrl = activeSlide.getAttribute('data-server-url');
  3025.                 //     var authStr = activeSlide.getAttribute('data-auth-str');
  3026.                 //     var appId = activeSlide.getAttribute('data-app-id');
  3027.                 //     var csToken = activeSlide.getAttribute('data-cs-token');
  3028.                 //
  3029.                 //     if (serverUrl) {
  3030.                 //         window.location.href =
  3031.                 //             serverUrl +
  3032.                 //             '?authStr=' + authStr +
  3033.                 //             '&appId=' + appId +
  3034.                 //             '&csToken=' + csToken;
  3035.                 //     }
  3036.                 // });
  3037.             }
  3038.         }
  3039.     jQuery(document).ready(function () {
  3040.         getUserCompanyList('_CENTRAL_')
  3041.         \$(document).on('click', '.box-selector', function () {
  3042.             \$('.' + \$(this).data('genClass')).removeClass('active')
  3043.             \$(this).addClass('active')
  3044.         });
  3045.         \$(document).on('click', '.cg_selector', function () {
  3046.             if (typeof \$(this).data('authStr') !== 'undefined') {
  3047.                 let serverUrl = \$(this).data('serverUrl').replace(/\\/\$/, ''); // avoid trailing slash
  3048.                 window.location.href = serverUrl + '/switch_app?spd=' + \$(this).data('authStr') + '&csToken=' + \$(this).data('csToken');
  3049.                 //previous line  window.location.href = \$(this).data('serverUrl') + '/switch_app?spd=' + \$(this).data('authStr') + '&csToken=' + \$(this).data('csToken');
  3050.             } else {
  3051.                 \$('#gocId').val(\$(this).data('gocId'));
  3052.                 \$('#username').val(\$(this).data('userName'));
  3053.                 \$('#loginform').submit();
  3054.             }
  3055.         });
  3056.         \$(document).on('click', '.cg_skip', function () {
  3057.             window.location.href = '{{ url('create_company') }}';
  3058.             //previous line  window.location.href = \$(this).data('serverUrl') + '/switch_app?spd=' + \$(this).data('authStr') + '&csToken=' + \$(this).data('csToken');
  3059.         });
  3060.         // \$(document).on('click', '.applicant_action_selector', function () {
  3061.         //     window.location.href = \$(this).data('url')
  3062.         // });
  3063.     });
  3064. </script>
  3065. ""@Application/pages/dashboard/index_central_landing.html.twig""/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/src/ApplicationBundle/Resources/views/pages/dashboard/index_central_landing.html.twig");
  3066.     }
  3067. }