{% extends 'my/layout.html.twig' %}

{% block title %}{{'group.my_group.content_title'|trans}} - {{ parent() }}{% endblock %}

{% set side_nav = 'my-group' %}
{% set tab_nav = 'index' %}
{% block main %}
    {% embed "bootstrap/panel.html.twig" with {class:'panel-col'} %}
      {% block heading %}
        {{'group.member_center.content_title'|trans}}
      {% endblock %}

      {% block body %}
          <div class="row">

            <div class="col-md-12">

              {% include 'group/group-member-nav-pill.html.twig' %}

              <div class="page-header">
                <h4> {{'group.member_center.my_join'|trans}}<a class="badge pull-right badge-primary" href="{{path('group_member_join',{type:'myGroup'})}}">{{groupsCount}}</a></h4>
              </div>

              {% include 'group/groups-ul.html.twig' with {
              'groups':groups,  }
              %}

            </div>

            <div class="col-md-12">

              <div class="page-header">
                <h4>{{'group.member_center.my_thread'|trans}}<a class="badge pull-right badge-primary" href="{{path('group_member_threads')}}">{{threadsCount}}</a></h4>
              </div>

              {% include 'my/learning/group/groups-threads-ul.html.twig' with {
              'threads':ownThreads,
              'groups':groupsAsOwnThreads, }
              %}

            </div>

            <div class="col-md-12">

              <div class="page-header">
                <h4>{{'group.member_center.my_reply_thread'|trans}}<a class="badge pull-right badge-primary" href="{{path('group_member_posts')}}">{{postsCount}}</a></h4>
              </div>

              {% include 'my/learning/group/groups-threads-ul.html.twig' with {
              'lastPostMembers':postLastPostMembers,
              'groups':groupsAsPostThreads,
              'threads':threads,
              'user':user,}
              %}

            </div>

            <div class="col-md-12">

              <div class="page-header">
                <h4>{{'group.member_center.my_collect_thread'|trans}}<a class="badge pull-right badge-primary" href="{{path('group_thread_collecting')}}">{{collectCount}}</a></h4>
              </div>

              {% include 'my/learning/group/groups-threads-ul.html.twig' with {
              'lastPostMembers':collectLastPostMembers,
              'groups':groupsAsCollectThreads,
              'threads':collectThreads,
              'user':user,}
              %}

            </div>

          </div>
      {% endblock %}
    {% endembed %}
{% endblock %}