@model PowderCoating.Application.DTOs.Vendor.VendorDto @{ ViewData["Title"] = Model.CompanyName; ViewData["PageIcon"] = "bi-truck"; ViewData["PageHelpTitle"] = "Vendor Details"; ViewData["PageHelpContent"] = "Full detail for this vendor. Use Quick Actions to view or add inventory items assigned to this supplier, or create a purchase order. Business Information shows your account number at the vendor and their payment terms — these pre-fill on bills and purchase orders."; }
Status: @(Model.IsActive ? "Active Vendor" : "Inactive Vendor") @if (Model.IsPreferred) { Preferred Vendor }
Vendor Information

@Model.CompanyName

Contact Information

@if (!string.IsNullOrEmpty(Model.ContactName)) { @Model.ContactName } else { Not provided }

@if (!string.IsNullOrEmpty(Model.Email)) { @Model.Email } else { Not provided }

@if (!string.IsNullOrEmpty(Model.Phone)) { @Model.Phone } else { Not provided }

@if (!string.IsNullOrEmpty(Model.Website)) { @Model.Website } else { Not provided }

Address
@if (!string.IsNullOrEmpty(Model.Address)) {

@Model.Address

@if (!string.IsNullOrEmpty(Model.City)) { @Model.City } @if (!string.IsNullOrEmpty(Model.State)) { , @Model.State } @if (!string.IsNullOrEmpty(Model.ZipCode)) { @Model.ZipCode }

@if (!string.IsNullOrEmpty(Model.Country)) {

@Model.Country

} } else {

No address provided

}
Business Information

@(Model.AccountNumber ?? "Not provided")

@(Model.TaxId ?? "Not provided")

@(Model.PaymentTerms ?? "Not set")

@if (Model.CreditLimit.HasValue) { @Model.CreditLimit.Value.ToString("C") } else { Not set }

@if (!string.IsNullOrEmpty(Model.Notes)) {
Notes

@Model.Notes

}
Record Information

@Model.CreatedAt.ToString("MMMM dd, yyyy")

@if (Model.IsActive) { Active } else { Inactive }

@if (Model.IsPreferred) { Yes } else { No }