@model PowderCoating.Application.DTOs.Notification.NotificationLogDto @{ ViewData["Title"] = "Notification Details"; ViewData["PageIcon"] = "bi-bell-history"; }

Audit record #@Model.Id

Back to Log
Notification Info
Sent At
@Model.SentAt.Tz(ViewBag.CompanyTimeZone as string).ToString("MMMM d, yyyy HH:mm:ss")
Channel
@if (Model.Channel == PowderCoating.Core.Enums.NotificationChannel.Email) { Email } else { SMS }
Type
@Model.NotificationTypeDisplay
Status
@{ var (badgeClass, icon) = Model.Status switch { PowderCoating.Core.Enums.NotificationStatus.Sent => ("bg-success", "bi-check-circle"), PowderCoating.Core.Enums.NotificationStatus.Failed => ("bg-danger", "bi-x-circle"), _ => ("bg-secondary", "bi-dash-circle") }; } @Model.StatusDisplay
@if (!string.IsNullOrEmpty(Model.ErrorMessage)) {
Error
@Model.ErrorMessage
} @if (!string.IsNullOrEmpty(Model.Subject)) {
Subject
@Model.Subject
}
Recipient
Name
@Model.RecipientName
Address
@Model.Recipient
@if (Model.CustomerId.HasValue) {
Customer
@(Model.CustomerName ?? "View Customer")
} @if (Model.JobId.HasValue) {
Job
@(Model.JobNumber ?? "View Job")
} @if (Model.QuoteId.HasValue) {
Quote
@(Model.QuoteNumber ?? "View Quote")
}
Message Body
@Model.Message