@extends ('layouts/main')
    <!-- PRE start -->
@if ($p->categoryes)
    <!-- PRE h1Before -->
    <div class="f-mheader">
      <h1 id="fork-h1">{!! __('Forum list') !!}</h1>
    </div>
    <!-- PRE h1After -->
    <!-- PRE mainBefore -->
    <div class="f-main">
      <ol class="f-ftlist">
    @foreach ($p->categoryes as $id => $forums)
        <li id="cat-{{ $id }}" class="f-category">
          <h2 class="f-ftch2">{{ \current($forums)->cat_name }}</h2>
          <ol class="f-table">
            <li hidden class="f-row f-thead" value="0">
              <div class="f-hcell f-cmain">{!! __('Forum') !!}</div>
              <div class="f-hcell f-cstats">{!! __('Stats') !!}</div>
              <div class="f-hcell f-clast">{!! __('Last post') !!}</div>
            </li>
        @include ('layouts/subforums')
          </ol>
        </li>
    @endforeach
      </ol>
    </div>
    <!-- PRE mainAfter -->
    @if ($p->linkMarkRead)
    <!-- PRE linksBefore -->
    <div class="f-nav-links">
      <div class="f-nlinks">
        <div class="f-actions-links">
          <small>{!! __('ACTIONS') !!}</small>
          <small>|</small>
          <span class="f-act-span"><a class="f-btn f-btn-markread f-opacity" title="{{ __('Mark all as read') }}" href="{{ $p->linkMarkRead }}"><span>{!! __('All is read') !!}</span></a></span>
        </div>
      </div>
    </div>
    <!-- PRE linksAfter -->
    @endif
@endif
    <!-- PRE statsBefore -->
@include ('layouts/stats')
    <!-- PRE statsafter -->
    <!-- PRE end -->
