@for (comment of comments; track comment; let i = $index) { @if (comment && comment.user_id != null) { @if (comment?.user_id == '741741741'){
@if (setting?.bot_image == null || setting?.bot_image == ""){ default }@else{ }
{{ setting?.bot_name }} {{ 'Bot' | translate }}
@if ((comment?.created_at |date : 'Y-M-d' : timezone) == (now | date : 'Y-M-d' : timezone)) { {{ comment?.created_at | date : 'hh:mm a' : timezone }} ({{ comment?.created_at | dateAgo : timezone}}) @if(ticketDataParent?.tickettype != 'emalitoticket'){ @if(comment?.lastseen == null){ {{'Sent' | translate}} } } } @else { {{ comment?.created_at | date : 'd M Y, hh:mm a' : timezone }} ({{ comment?.created_at | dateAgo : timezone }}) @if(ticketDataParent?.tickettype != 'emalitoticket'){ @if(comment?.lastseen == null){ {{'Sent' | translate}} } } } @if(ticketDataParent?.tickettype != 'emalitoticket'){ @if(comment?.lastseen != null){ {{comment?.lastseen | dateAgo : timezone}} } }
@if(setting?.emp_google_translate == 'on'){ }
} @else{
{{comment?.user?.profileimage}}
@if (comment && comment.user != null) {
{{ comment?.user?.name }} @if (comment?.user?.roles?.length) { {{comment?.user?.roles[0]?.name}} }
} @else {
~
}
~
@if ((comment?.created_at |date : 'Y-M-d' : timezone) == (now | date : 'Y-M-d' : timezone)) { {{ comment?.created_at | date : 'hh:mm a' : timezone }} ({{ comment?.created_at | dateAgo : timezone}}) } @else { {{ comment?.created_at | date : 'd M Y, hh:mm a' : timezone }} ({{ comment?.created_at | dateAgo : timezone }}) } @if (comment?.lastseen) { {{'Seen' | translate}} {{comment.lastseen | dateAgo : timezone}} }@else { {{'Sent' | translate}} } @if (user?.id == comment?.user_id) {
@for (media of comment.media; track media) {
@if (media?.mime_type == 'image/jpg' || media?.mime_type == 'image/jpeg' || media?.mime_type == 'image/JPG') { } @else if (media?.mime_type == 'image/pdf') { } @else if (media?.mime_type == 'image/csv') { } @else if (media?.mime_type == 'image/png') { } @else if (media?.mime_type != 'image/png' && media?.mime_type != 'image/csv' && media?.mime_type != 'image/pdf' && media?.mime_type != 'image/jpg' && media?.mime_type != 'image/jpeg' && media?.mime_type != 'image/JPG') { }

{{media?.file_name}}

}
} @else {
@for (media of comment.media; track media) {
@if (media?.mime_type == 'image/jpg' || media?.mime_type == 'image/jpeg' || media?.mime_type == 'image/JPG') { } @else if (media?.mime_type == 'image/pdf') { } @else if (media?.mime_type == 'image/csv') { } @else if (media?.mime_type == 'image/png') { } @else if (media?.mime_type != 'image/png' && media?.mime_type != 'image/csv' && media?.mime_type != 'image/pdf' && media?.mime_type != 'image/jpg' && media?.mime_type != 'image/jpeg' && media?.mime_type != 'image/JPG') { }

{{media?.file_name}}

}
}
@if(!comment?.lastseen && ticketData?.ticket?.tickettype != "emalitoticket" && setting?.emp_google_translate == 'on'){
@if (!comment?.lastseen) { @if ((user?.id == comment?.user_id || user?.roles[0]?.name == 'superadmin') && comment?.display != null && ticketDataParent?.ticket?.status != 'Closed') { {{"Edit" | translate}} {{"Delete" | translate}} @if (sendingResponse['delteComm']) { } } } @if(setting?.emp_google_translate == 'on'){ {{"Translate" | translate}} }
} @if (permissions?.includes('Article Create') && permissions?.includes('Article Access')) { @if (ticketDataParent?.ticket?.status == 'Closed') {
} }
} } @else {
{{comment?.cust?.profileimage}}
{{ comment?.cust?.username }}{{ comment?.cust?.userType }}
@if ((comment?.created_at |date : 'Y-M-d' : timezone) == (now | date : 'Y-M-d' : timezone)) { {{ comment?.created_at | date : 'hh:mm a' : timezone }} ({{ comment?.created_at | dateAgo : timezone}}) } @else { {{ comment?.created_at | date : 'd M Y, hh:mm a' : timezone }} ({{ comment?.created_at | dateAgo : timezone }}) }
@if (comment.emailcommentfile) { @if (comment.emailcommentfile == 'mismatch') {

{{'Upload Failed' | translate}}

} @else { @for (media of comment.emailcommentfile?.split(','); track media) {
@if (media?.split['.']?.[1] == 'image/jpg' || media?.split['.']?.[1] == 'image/jpeg' || media?.split['.']?.[1] == 'image/JPG') { } @else if (media?.split['.']?.[1] == 'image/pdf') { } @else if (media?.split['.']?.[1] == 'image/csv') { } @else if (media?.split['.']?.[1] == 'image/png') { } @else if (media?.split['.']?.[1] != 'image/png' && media?.split['.']?.[1] != 'image/csv' && media?.split['.']?.[1] != 'image/pdf' && media?.split['.']?.[1] != 'image/jpg' && media?.split['.']?.[1] != 'image/jpeg' && media?.split['.']?.[1] != 'image/JPG') { }

{{media}}

} } } @for (media of comment.media; track media) {
@if (media?.mime_type == 'image/jpg' || media?.mime_type == 'image/jpeg' || media?.mime_type == 'image/JPG') { } @else if (media?.mime_type == 'image/pdf') { } @else if (media?.mime_type == 'image/csv') { } @else if (media?.mime_type == 'image/png') { } @else if (media?.mime_type != 'image/png' && media?.mime_type != 'image/csv' && media?.mime_type != 'image/pdf' && media?.mime_type != 'image/jpg' && media?.mime_type != 'image/jpeg' && media?.mime_type != 'image/JPG') { }

{{media?.file_name}}

}
@if(setting?.emp_google_translate == 'on'){ }
} }