@model NotificationItem @{ ViewData["Title"] = "Detail Notifikasi"; }
Notifikasi
Kembali
@GetCategoryLabel(Model.Category) @GetSeverityLabel(Model.Severity) @(Model.IsRead ? "Sudah Dibaca" : "Belum Dibaca") @Model.CreatedAt.ToString("dd MMMM yyyy HH:mm")
@Model.Summary
@functions { private static string GetCategoryLabel(NotificationCategory category) => category switch { NotificationCategory.StatusAkun => "Status Akun", NotificationCategory.Transaksi => "Transaksi", NotificationCategory.Pengajuan => "Pengajuan", _ => category.ToString() }; private static string GetSeverityClass(NotificationSeverity severity) => severity switch { NotificationSeverity.Success => "badge-success", NotificationSeverity.Warning => "badge-warning", NotificationSeverity.Error => "badge-error", _ => "badge-neutral" }; private static string GetSeverityLabel(NotificationSeverity severity) => severity switch { NotificationSeverity.Success => "Sukses", NotificationSeverity.Warning => "Peringatan", NotificationSeverity.Error => "Gagal", NotificationSeverity.Info => "Info", _ => severity.ToString() }; }