<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>

<div class="section section-white">
<div class="container">
  <div class="row">
    <div class="col-md-3 pt-5 card card-refine">

      <nav id="sidebar">
        <div>
          <h5><?php echo $jkl['hd76'];?></h5>

          <ul class="list-group list-group-flush">
            <?php if (isset($allcategories) && !empty($allcategories)) foreach ($allcategories as $c) { if ($c["subcat"] == 0) { ?>
              <li class="list-group-item">
                <a href="#dropdownMenuLink<?php echo $c["id"];?>" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle"><strong><?php echo $c["title"];?></strong></a> <span class="badge badge-pill badge-info pull-right"><?php echo $c["articles"];?></span>

                
                <ul class="collapse list-group list-group-flush<?php if ($c["id"] == $showcat) echo " show";?>" id="dropdownMenuLink<?php echo $c["id"];?>">
                  <li class="list-group-item"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $c["id"], JAK_rewrite::jakCleanurl($c["title"]));?>"><span class="fa fa-angle-right mr-2"></span><?php echo $c["title"];?></a></li>
                  <?php foreach ($allcategories as $sc) { if ($sc["subcat"] == $c["id"]) { ?>

                    <li class="list-group-item"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $sc["id"], JAK_rewrite::jakCleanurl($sc["title"]));?>"><span class="fa fa-angle-right mr-2"></span><?php echo $sc["title"];?></a> <span class="badge badge-pill badge-info pull-right"><?php echo $sc["articles"];?></span></li>
                    
                  <?php } } ?>
                </ul>
              </li>
            <?php } } ?>
          </ul>
          </div>
        </nav>
      </div>

      <div class="col-md-9">
        <div class="faq-title">
          <h2><?php echo $JAK_FORM_DATA["title"];?></h2>
        </div>
        
        <div class="article-content">
          <?php echo $JAK_FORM_DATA["content"];?>
        </div>
        <br>
        <div class="article-footer">
          <div class="container">
            <div class="row">
              <div class="col-md-6">
                <h5><?php echo $jkl['hd138'];?></h5>
                <?php echo jak_get_tags_frontend($opcacheid, "faqid", $page2);?>
              </div>
              <div class="col-md-4 ml-auto">
                <?php if ($JAK_FORM_DATA["socialbutton"]) { ?>
                  <div class="sharing">
                    <h5><?php echo $jkl['hd137'];?></h5>
                    <a href="mailto:?subject=<?php echo $JAK_FORM_DATA["title"];?>&amp;body=<?php echo urlencode(JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $page2, $page3))?>" class="btn btn-just-icon btn-border btn-email"><i class="fa fa-envelope"></i></a>
                    <a href="whatsapp://send?text=<?php echo $JAK_FORM_DATA["title"];?>%20<?php echo urlencode(JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $page2, $page3))?>" class="btn btn-just-icon btn-border btn-whatsapp"><i class="fab fa-whatsapp"></i></a>
                    <a href="https://twitter.com/intent/tweet/?text=<?php echo urlencode($JAK_FORM_DATA["title"]);?>&amp;url=<?php echo urlencode(JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $page2, $page3))?>" target="_blank" class="btn btn-just-icon btn-border btn-twitter"><i class="fab fa-twitter"></i></a>
                    <a href="https://www.facebook.com/sharer/sharer.php?href=<?php echo urlencode(JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $page2, $page3))?>&t=<?php echo $JAK_FORM_DATA["title"];?>" class="btn btn-just-icon btn-border btn-facebook"><i class="fab fa-facebook"></i></a>
                  </div>
                <?php } ?>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="row space-top">
      <div class="col-6">
        <?php if (isset($JAK_NAV_PREV) && !empty($JAK_NAV_PREV)) { ?>
        <a href="<?php echo $JAK_NAV_PREV;?>" class="btn btn-outline-info btn-round"><i class="fa fa-arrow-left"></i> <?php echo $JAK_NAV_PREV_TITLE;?></a>
        <?php } ?>
      </div>
      <div class="col-6 text-right">
        <?php if (isset($JAK_NAV_NEXT) && !empty($JAK_NAV_NEXT)) { ?>
        <a href="<?php echo $JAK_NAV_NEXT;?>" class="btn btn-outline-info btn-round"><?php echo $JAK_NAV_NEXT_TITLE;?> <i class="fa fa-arrow-right"></i></a>
        <?php } ?>
      </div>
    </div>
  </div>
</div>
<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
