@if (user &&allNotificationList?.length) {
@for (notificationss of allNotificationList; track notificationss; let index = $index) {
@if(shouldShowDateBadge(notificationss.created_date)){
@if(notificationss.created_date == today){
{{ 'Today' | translate }}
}
@else if(notificationss.created_date == yesterday){
{{ 'Yesterday' | translate }}
}
@else if(notificationss.created_date != today && notificationss.created_date != yesterday){
{{ notificationss.created_date | date: setting?.date_format : authtimezone }}
}
}
@if (notificationss?.data?.['status'] == 'New') {
@if (notificationss.read_at != null) {
{{notificationss.data['title'].slice(0,50)}}
{{'New Ticket' | translate}}
{{'Your new ticket has been created' |
translate}} {{
notificationss.data['ticket_id'] }} {{'View'|
translate}}
{{notificationss.created_at | custtimezone : undefined : setting?.time_format : timezone ?? 'UTC'}}
} @else {
{{notificationss.data['title'].slice(0,50)}}
{{'New Ticket' | translate}}
{{'Your new ticket has been created'|
translate}} {{
notificationss.data['ticket_id'] }} {{'View'|
translate}}
{{notificationss.created_at | custtimezone : undefined : setting?.time_format : timezone ?? 'UTC'}}
}
}
@if (notificationss?.data?.['status'] == 'Closed') {
@if (notificationss.read_at != null) {
{{notificationss.data['title'].slice(0,50)}}
{{'Closed Ticket' | translate}}
{{'Your ticket has been closed' |
translate}}
{{ notificationss.data['ticket_id'] }}
{{'View' |
translate}}
{{notificationss.created_at | custtimezone : undefined : setting?.time_format : timezone ?? 'UTC'}}
} @else {
{{notificationss.data['title'].slice(0,50)}}
{{'Closed Ticket' | translate}}
{{'Your ticket has been closed' |
translate}}
{{ notificationss.data['ticket_id'] }}
{{'View' |
translate}}
{{notificationss.created_at | custtimezone : undefined : setting?.time_format : timezone ?? 'UTC'}}
}
}
@if (notificationss?.data?.['status'] == 'On-Hold') {
@if (notificationss.read_at != null) {
{{notificationss.data['title'].slice(0,50)}}
{{'On-Hold Ticket' | translate}}
{{'Your ticket status is On-Hold' |
translate}}
{{ notificationss.data['ticket_id'] }}
{{'View' |
translate}}
{{notificationss.created_at | custtimezone : undefined : setting?.time_format : timezone ?? 'UTC'}}
} @else {
{{notificationss.data['title'].slice(0,50)}}
{{'On-Hold Ticket' | translate}}
{{'Your ticket status is On-Hold' |
translate}}
{{ notificationss.data['ticket_id'] }}
{{'View' |
translate}}
{{notificationss.created_at | custtimezone : undefined : setting?.time_format : timezone ?? 'UTC'}}
}
}
@if (notificationss?.data?.['status'] == 'overdue') {
@if (notificationss.read_at != null) {
{{notificationss.created_at | custtimezone : undefined : setting?.time_format : timezone ?? 'UTC'}}
} @else {
{{notificationss.created_at | custtimezone : undefined : setting?.time_format : timezone ?? 'UTC'}}
}
}
@if (notificationss?.data?.['status'] == 'Re-Open') {
@if (notificationss.read_at != null) {
{{notificationss.data['title'].slice(0,50)}}
{{'Re-Open Ticket' | translate}}
{{'Your ticket has been Reopened' |
translate}}
{{ notificationss.data['ticket_id'] }}
{{'View' |
translate}}
{{notificationss.created_at | custtimezone : undefined : setting?.time_format : timezone ?? 'UTC'}}
} @else {
{{notificationss.data['title'].slice(0,50)}}
{{'Re-Open Ticket' | translate}}
{{'Your ticket has been Reopened' |
translate}}
{{ notificationss.data['ticket_id'] }}
{{'View' |
translate}}
{{notificationss.created_at | custtimezone : undefined : setting?.time_format : timezone ?? 'UTC'}}
}
}
@if (notificationss?.data?.['status'] == 'Inprogress') {
@if (notificationss.read_at != null) {
{{notificationss.data['title'].slice(0,50)}}
{{'Inprogress Ticket' | translate}}
{{'You got a new reply on this ticket'
| translate}} {{
notificationss.data['ticket_id'] }} {{'View' |
translate}}
{{notificationss.created_at | custtimezone : undefined : setting?.time_format : timezone ?? 'UTC'}}
} @else {
{{notificationss.data['title'].slice(0,50)}}
{{'Inprogress Ticket' | translate}}
{{'You got a new reply on this ticket'
| translate}} {{
notificationss.data['ticket_id'] }} {{'View' |
translate}}
{{notificationss.created_at | custtimezone : undefined : setting?.time_format : timezone ?? 'UTC'}}
}
}
@if (notificationss?.data?.['status'] == 'mail') {
@if (notificationss.read_at != null) {
{{notificationss.created_at | custtimezone : undefined : setting?.time_format : timezone ?? 'UTC'}}
} @else {
{{notificationss.created_at | custtimezone : undefined : setting?.time_format : timezone ?? 'UTC'}}
}
}
@if((notificationss?.data['status'] == 'invoice') && (notificationss?.data['itemStatus'] == 'pending')) {
@if(notificationss?.read_at != null){
{{'New custom invoice created.' | translate }}
{{notificationss.created_at | custtimezone : undefined : setting?.time_format : timezone ?? 'UTC'}}
{{'Custom Invoice Created' | translate}}
{{'A new custom invoice is created' | translate}}
{{'View' | translate}}
}@else{
{{'New custom invoice created.' | translate}}
{{notificationss.created_at | custtimezone : undefined : setting?.time_format : timezone ?? 'UTC'}}
{{'Custom Invoice Created' | translate}}
{{'A new custom invoice is created' | translate}}
{{'View' | translate}}
}
}
@if((notificationss?.data['status'] == 'invoice') && (notificationss?.data['itemStatus'] == 'refundpending')){
@if(notificationss?.read_at != null){
{{'Your refund request is rejected.' | translate}}
{{notificationss.created_at | custtimezone : undefined : setting?.time_format : timezone ?? 'UTC'}}
{{'Refund Rejected' | translate}}
{{'Your refund request has been rejected.' | translate }}
{{'View' | translate }}
}@else{
{{'Your refund request is rejected.' | translate}}
{{notificationss.created_at | custtimezone : undefined : setting?.time_format : timezone ?? 'UTC'}}
{{'Refund Rejected' | translate}}
{{'Your refund request has been rejected.' | translate}}
{{'View' | translate}}
}
}
@if((notificationss?.data['status'] == 'invoice') && (notificationss?.data['itemStatus'] == 'refunded')){
@if(notificationss?.read_at != null){
{{'Your refund request is approved.' | translate}}
{{notificationss.created_at | custtimezone : undefined : setting?.time_format : timezone ?? 'UTC'}}
{{'Refund Approved' | translate}}
{{'Your refund request has been approved.' | translate}}
{{'View' | translate}}
}@else{
{{'Your refund request is approved.' | translate}}
{{notificationss.created_at | custtimezone : undefined : setting?.time_format : timezone ?? 'UTC'}}
{{'Refund Approved' | translate}}
{{'Your refund request has been approved.' | translate }}
{{'View' | translate}}
}
}
}
} @else {
{{'There are no new notifications to display'| translate}}
{{'There are no notifications. We will notify you when the new notification arrives.'|
translate}}
}
@if (isLoadingComments) {
}