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.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
@inject IReportDataScope Scope
@{
//page title
ViewBag.Title = Loc[$"{Scope.ResourceKeyPrefix}.Reports.LowStockReport"];
var area = ViewContext.RouteData.Values["area"]?.ToString();
}
@* no criteria and nothing to save: the page header and the grid in a flush card *@
<admin-page title="@Loc[$"{Scope.ResourceKeyPrefix}.Reports.LowStockReport"]" icon="bi-boxes">
<admin-card flush>
<admin-grid id="products-grid" read-url="@Url.Action("LowStockReportList", "Reports", new { area })">
@*Attributes is markup built by the product attribute formatter*@
<grid-column field="Name" title="@Loc["Admin.Catalog.Products.Fields.Name"]" width="300">
<cell-template>
<a class="text-decoration-none" href="@Url.Action("Edit", "Product", new { area })/{{ Id }}">{{ Name }}
<span data-if="Attributes != null"><br /><i> {{{ Attributes }}} </i></span>
</a>
</cell-template>
</grid-column>
<grid-column field="ManageInventoryMethod" title="@Loc["Admin.Catalog.Products.Fields.ManageInventoryMethod"]" width="150"/>
<grid-column field="StockQuantity" title="@Loc["Admin.Catalog.Products.Fields.StockQuantity"]" width="100"/>
<grid-column field="Published" title="@Loc["Admin.Catalog.Products.Fields.Published"]" width="100" align="Center">
<cell-template>
<i data-if="Published" class="bi bi-check-lg text-success" aria-hidden="true"></i>
<i data-else class="bi bi-x-lg text-danger" aria-hidden="true"></i>
</cell-template>
</grid-column>
</admin-grid>
</admin-card>
</admin-page>