ildar-shaymukhametov_grandnode-refactorings/Grand.Web/Views/Blog/Components/BlogCategories/Default.cshtml
@model IList<BlogPostCategoryModel>
@using Grand.Web.Models.Blogs
@if (Model.Any())
{
    <section id="block-blog-archive" class="block block-blog-archive mt-1">
        <h5 class="generalTitle"><strong>@T("Blog.Category")</strong></h5>
        <div class="viewBox">
            <ul class="list">
                @foreach (var category in Model)
                {
                    <li>
                        <a href="@Url.RouteUrl("BlogByCategory", new { categorySeName = category.SeName })">
                            @category.Name 
                            (@(category.BlogPostCount))
                        </a>
                    </li>
                }
            </ul>
        </div>
    </section>
}