@model List @{ ViewData["Title"] = "Manage Products"; Layout = "_AdminLayout"; }
All Products (@Model.Count)
Add New Product
@if (Model.Any()) {
@foreach (var product in Model.OrderByDescending(p => p.CreatedAt)) { }
Image Name Category Price Stock Status Actions
@if (!string.IsNullOrEmpty(product.ImageUrl)) { @product.Name } else {
}
@product.Name @if (product.IsFeatured) { Featured } @if (product.IsTopSeller) { Top Seller } @product.Category $@product.Price.ToString("F2") @product.StockQuantity @if (product.IsActive) { Active } else { Inactive }
} else {

No products found. Create your first product!

}
@section Scripts { }