@using CarCareTracker.Helper @inject IConfigHelper config @{ var enableCsvImports = config.GetUserConfig(User).EnableCsvImports; var hideZero = config.GetUserConfig(User).HideZero; } @model List
@($"# of Supply Records: {Model.Count()}") @($"Total: {Model.Sum(x => x.Cost).ToString("C")}")
@if (enableCsvImports) {
} else { }
@foreach (SupplyRecord supplyRecord in Model) { }
Date Part # Supplier Description Quantity Cost Notes
@supplyRecord.Date.ToShortDateString() @supplyRecord.PartNumber @supplyRecord.PartSupplier @supplyRecord.Description @supplyRecord.Quantity @((hideZero && supplyRecord.Cost == default) ? "---" : supplyRecord.Cost.ToString("C")) @CarCareTracker.Helper.StaticHelper.TruncateStrings(supplyRecord.Notes)