@model ForumGroupModel
<div class="forums-table-section forum-group">
    <div class="forums-table-section-title">
        @Html.RouteLink(Model.Name, "ForumGroupSlug", new { id = Model.Id, slug = Model.SeName })
    </div>
    <div class="forums-table-section-body">
        <div class="panel panel-default">
            <table class="table table-bordered">
                <colgroup>
                    <col width="1" />
                    <col />
                    <col width="1" />
                    <col width="1" />
                    <col width="1" />
                </colgroup>
                <thead>
                    <tr>
                        <th class="forum-name" colspan="2">
                            @T("Forum.Forum")
                        </th>
                        <th class="topics">
                            @T("Forum.Topics")
                        </th>
                        <th class="posts">
                            @T("Forum.Posts")
                        </th>
                        <th class="last-post">
                            @T("Forum.LatestPost")
                        </th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var forum in Model.Forums)
                    {
                        <tr>
                            <td class="image">
                                <i class="fa fa-folder-open"></i>
                            </td>
                            <td class="forum-name">
                                <div class="forum-title">
                                    @Html.RouteLink(forum.Name, "ForumSlug", new { id = forum.Id, slug = forum.SeName })
                                </div>
                                <div class="forum-description">
                                    @forum.Description
                                </div>
                            </td>
                            <td class="topics">
                                @forum.NumTopics
                            </td>
                            <td class="posts">
                                @forum.NumPosts
                            </td>
                            <td class="last-post">
                                @await Component.InvokeAsync(typeof(ForumLastPostViewComponent), new {forumPostId = forum.LastPostId, showTopic = true})
                            </td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    </div>
</div>
