{FaQ action="categories" sortby="category_name" allrow='faq_categories' summarytemplate=''}

{* Getting the category info by searching in the last item the cat id *}
{foreach from=$faq_categories item=cat}
  {if $items[0]->category_id === $cat.category_id}
    {if 'en' === $page_lang }
      {assign var='ArticleTitle' value=$cat.category_name|strip_tags}
      {assign var='metadescription' value=$cat.meta_desc_cat}
      {assign var='detail_keywords' value=$cat.meta_key_cat}
      {assign var='category_name' value=$cat.category_name}
    {else}
      {assign var='ArticleTitle' value=$cat.titlu_ro|strip_tags}
      {assign var='metadescription' value=$cat.meta_desc_cat_ro}
      {assign var='detail_keywords' value=$cat.meta_key_cat_ro}
      {assign var='category_name' value=$cat.titlu_ro}
    {/if}
  {/if}
{/foreach}

<section class="pbottom60 ptop60 mbottom30">
<div class="container">
  <div class="row">
    <div class="col-sm-2"></div>
    <div class="col-sm-8">
      <h2 class="title">{$category_name}</h2>
      <ul class="list-questions">
      {foreach from=$items item=item}
        {if 'en' === $page_lang}
          <li><a href="{$item->link}">{$item->title}</a></li>
        {else}
          <li><a href="{$item->link}">{$item->intrebare_ro}</a></li>
        {/if}
      {/foreach}
      </ul>

{if $page_lang == 'en'}
<a href="{cms_selflink href='faq'}" style="color: #47525d;"><span class="fa fa-chevron-left" style="font-size: 12px;"></span> BACK</a>

<div class="text-center">
  <h3>Get more help</h3>
  <p>Didn't find your answer? Get more help by sending us<br>
  your message completing the <a href="{cms_selflink href='contact'}">contact form</a>. Or call for support at <a href="tel:+40311011072"><strong>+4 031 101 10 72</strong></a>
  </p>
</div>

{else}
<a href="{cms_selflink href='intrebari-frecvente'}" style="color: #47525d;"><span class="fa fa-chevron-left" style="font-size: 12px;"></span> INAPOI</a>

<div class="text-center">
  <h3>Ai nevoie de ajutor?</h3>
  <p>Daca nu ai gasit inca raspuns la intrebare, te rugam sa<br>
  completezi <a href="{cms_selflink href='contacteaza-ne'}">formularul de contact</a> sau sa ne suni la <a href="tel:+40311011072"><strong>+4 031 101 10 72</strong></a>
  </p>
</div>
{/if}

    </div><!-- ./col-sm-8 -->
  </div><!-- ./ROW -->
</div><!-- ./container -->
</section>
