@{ ViewData["Title"] = "Sample Panels"; ViewData["PageIcon"] = "bi-palette"; var manufacturers = ViewBag.Manufacturers as List ?? new List(); var selectedMfr = ViewBag.SelectedManufacturer as string; var activeTab = ViewBag.ActiveTab as string ?? "need"; var onHand = ViewBag.OnHandItems as List ?? new(); var needOrder = ViewBag.NeedToOrderItems as List ?? new(); var totalCoatings = (int)(ViewBag.TotalCoatings ?? 0); var totalOnHand = (int)(ViewBag.TotalOnHand ?? 0); var totalNeedOrder = (int)(ViewBag.TotalNeedOrder ?? 0); string? lastMfr = null; } @section Styles { }
Back to Inventory
@totalCoatings
Total Coating Colors
@totalOnHand
Panels on Wall
@totalNeedOrder
Need to Order
@if (!string.IsNullOrWhiteSpace(selectedMfr)) { Clear Filter }
@if (!needOrder.Any()) {
@if (string.IsNullOrWhiteSpace(selectedMfr)) {

All coating colors have a sample panel on the wall!

} else {

All @selectedMfr colors have a sample panel on the wall.

}
} else {
@{ lastMfr = null; } @foreach (var item in needOrder) { if (string.IsNullOrWhiteSpace(selectedMfr) && item.Manufacturer != lastMfr) { lastMfr = item.Manufacturer; } }
Color / Item Manufacturer Part # Finish In Stock Actions
@(string.IsNullOrWhiteSpace(item.Manufacturer) ? "No Manufacturer" : item.Manufacturer)
@if (!string.IsNullOrWhiteSpace(item.ColorCode)) { } else { }
@(item.ColorName ?? item.Name)
@if (!string.IsNullOrWhiteSpace(item.ColorName) && item.ColorName != item.Name) {
@item.Name
}
@(item.Manufacturer ?? "—") @(item.ManufacturerPartNumber ?? "—") @(item.Finish ?? "—") @if (item.QuantityOnHand > 0) { @item.QuantityOnHand.ToString("N2") @item.UnitOfMeasure } else { None }
}
@if (!onHand.Any()) {

No sample panels recorded yet. Use the Need to Order tab to mark colors as received.

} else {
@{ lastMfr = null; } @foreach (var item in onHand) { if (string.IsNullOrWhiteSpace(selectedMfr) && item.Manufacturer != lastMfr) { lastMfr = item.Manufacturer; } }
Color / Item Manufacturer Part # Finish Actions
@(string.IsNullOrWhiteSpace(item.Manufacturer) ? "No Manufacturer" : item.Manufacturer)
@if (!string.IsNullOrWhiteSpace(item.ColorCode)) { } else { }
@(item.ColorName ?? item.Name)
@if (!string.IsNullOrWhiteSpace(item.ColorName) && item.ColorName != item.Name) {
@item.Name
}
@(item.Manufacturer ?? "—") @(item.ManufacturerPartNumber ?? "—") @(item.Finish ?? "—")
}
@section Scripts { }