Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

993 B
Raw Blame
@{
    var area = ViewContext.RouteData.Values["area"]?.ToString();
    var gridPageSize = 5;
}
<admin-grid id="bestsellers-byamount-grid"
            read-url="@Url.Action("BestsellersBriefReportByAmountList", "Reports", new { area })"
            page-size="@(gridPageSize)"
            page-sizes="">
    <grid-text name="view" value="@Loc["Admin.Common.View"]"/>
    <grid-column field="ProductName" title="@Loc["Admin.Reports.Bestsellers.Fields.Name"]"/>
    <grid-column field="TotalQuantity" title="@Loc["Admin.Reports.Bestsellers.Fields.TotalQuantity"]"/>
    <grid-column field="TotalAmount" title="@Loc["Admin.Reports.Bestsellers.Fields.TotalAmount"]"/>
    <grid-column field="ProductId" title="@Loc["Admin.Common.View"]" width="100">
        <cell-template>
            <a class="btn btn-sm btn-default" href="@Url.Action("Edit", "Product", new { area })/{{ ProductId }}"><i class="bi bi-search"></i> {{ $texts.view }}</a>
        </cell-template>
    </grid-column>
</admin-grid>