@using PowderCoating.Core.Enums @using PowderCoating.Web.Controllers @model List @{ ViewData["Title"] = "Platform Notifications"; int page = (int)ViewBag.Page; int totalPages = (int)ViewBag.TotalPages; } @section Styles { }

Platform Notifications

@* Summary *@
@ViewBag.TotalCount.ToString("N0")
Total Sent
@ViewBag.FailedCount.ToString("N0")
Failed
@ViewBag.Last24hCount.ToString("N0")
Last 24 Hours
@((int)ViewBag.FilteredCount)
Filtered Results
@* Filters *@
Clear
@* Table *@
@if (!Model.Any()) { } @foreach (var row in Model) { var sc = row.Status == NotificationStatus.Sent ? "success" : row.Status == NotificationStatus.Failed ? "danger" : "secondary"; }
Sent Company Type Channel Recipient Subject Status
No notifications found.
@row.SentAt.Tz(ViewBag.CompanyTimeZone as string).ToString("MM/dd/yy HH:mm") @(row.CompanyName ?? $"#{row.CompanyId}") @row.NotificationType @row.Channel @row.RecipientName
@row.Recipient
@row.Subject @row.Status View
@if (!Model.Any()) {

No notifications found.

} @foreach (var row in Model) { var sc = row.Status == NotificationStatus.Sent ? "success" : row.Status == NotificationStatus.Failed ? "danger" : "secondary";
@(row.Subject ?? row.NotificationType.ToString())
@row.SentAt.Tz(ViewBag.CompanyTimeZone as string).ToString("MM/dd/yy HH:mm")
Status @row.Status
Company @(row.CompanyName ?? $"#{row.CompanyId}")
Recipient @(row.RecipientName ?? row.Recipient)
Channel @row.Channel
}
@if (totalPages > 1) { }