@model PowderCoating.Application.DTOs.Notification.NotificationLogDto
@{
ViewData["Title"] = "Notification Details";
ViewData["PageIcon"] = "bi-bell-history";
}
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
}
Message Body
@Model.Message