@model List @using PowderCoating.Core.Enums @{ ViewData["Title"] = "Customer Intakes"; string activeFilter = ViewBag.ActiveFilter as string ?? "all"; }

Customer Intakes

Walk-in and remote intake sessions

@* Filter tabs *@ @if (!Model.Any()) {

No intake sessions found.

} else {
@foreach (var s in Model) {
@s.CustomerFullName
@(s.SubmittedAt?.ToLocalTime().ToString("MM/dd/yy h:mm tt") ?? s.ExpiresAt.AddHours(-2).ToLocalTime().ToString("MM/dd/yy h:mm tt"))
Status @if (s.Status == KioskSessionStatus.Submitted && s.IsConverted) { Converted } else if (s.Status == KioskSessionStatus.Submitted) { Submitted } else if (s.Status == KioskSessionStatus.Active && !s.IsExpired) { In Progress } else { Expired }
Type @if (s.SessionType == KioskSessionType.InPerson) { In-Person } else { Remote }
@if (!string.IsNullOrEmpty(s.CustomerPhone)) { } @if (!string.IsNullOrEmpty(s.CustomerEmail)) { } @if (s.LinkedCustomerId.HasValue) { }
}
@foreach (var s in Model) { }
Date Customer Contact Project Type Status SMS Actions
@(s.SubmittedAt?.ToLocalTime().ToString("MM/dd/yy h:mm tt") ?? s.ExpiresAt.AddHours(-2).ToLocalTime().ToString("MM/dd/yy h:mm tt"))
@s.CustomerFullName
@if (s.LinkedCustomerId.HasValue) { Customer matched } @* Show date inline on mobile since the Date column is hidden *@
@(s.SubmittedAt?.ToLocalTime().ToString("MM/dd/yy h:mm tt") ?? s.ExpiresAt.AddHours(-2).ToLocalTime().ToString("MM/dd/yy h:mm tt"))
@if (!string.IsNullOrEmpty(s.CustomerPhone)) {
@s.CustomerPhone
} @if (!string.IsNullOrEmpty(s.CustomerEmail)) {
@s.CustomerEmail
}
@s.JobDescriptionSnippet @if (s.SessionType == KioskSessionType.InPerson) { In-Person } else { Remote } @if (s.Status == KioskSessionStatus.Submitted && s.IsConverted) { Converted } else if (s.Status == KioskSessionStatus.Submitted) { Submitted } else if (s.Status == KioskSessionStatus.Active && !s.IsExpired) { In Progress } else { Expired } @if (s.SmsOptIn) { } else { } @if (s.LinkedJobId.HasValue) { View JobJob } @if (s.LinkedQuoteId.HasValue) { View QuoteQuote } @if (s.LinkedCustomerId.HasValue) { Customer }
}