using System.Windows.Media; namespace UtopiaCanteenSystem.Models; /// /// One row in the Order History list (last 5 orders). /// public class OrderHistoryItem { /// HRMS employee document id (employee.id) for this order; used to load photo. public string ParentDocumentId { get; set; } = string.Empty; public string EmployeeId { get; set; } = string.Empty; public string EmployeeName { get; set; } = string.Empty; public string Department { get; set; } = string.Empty; public string ScanId { get; set; } = string.Empty; public DateTime OrderTimeUtc { get; set; } /// The meal/menu label to display (e.g. Breakfast or "Biryani + Nihari"). public string OrderItem { get; set; } = string.Empty; /// Total price for this row, based on the active meal's menu items. public double TotalPrice { get; set; } /// Display label: "Today", "Yesterday", or short date. public string RelativeDateLabel { get; set; } = string.Empty; /// Time only, e.g. "09:54 AM". public string TimeDisplay { get; set; } = string.Empty; /// Optional employee photo for this row; null = show placeholder. public ImageSource? EmployeePhoto { get; set; } /// True when EmployeePhoto is not null. public bool HasEmployeePhoto => EmployeePhoto != null; }