@for (holiday of holidays; track holiday) { @if (holiday?.status == 1) { @if (isAlertVisible(holiday, 'holiday')) {
{{ holiday?.occasion }}
@if (holiday.buttonon == 1) { {{ holiday.buttonname }} }
} } } @if (setting?.ANNOUNCEMENT_USER == 'non_login_users' && !user || setting?.ANNOUNCEMENT_USER == 'all_users') { @for (anct of announcement; track anct) { @if (anct?.status == 1) { @if (isAlertVisible(anct, 'anct')) {
{{ anct?.title }}
@if (anct.buttonon == 1) { {{ anct.buttonname }} @if (anct.buttonlable != null && anct.buttonurl != null){
{{ anct.buttonlable }}
} }
} } } @for (ancts of announcements; track ancts) { @for (announceDays of ancts?.announcementday?.split(','); track announceDays) { @if (ancts?.status == 1 && announceDays == (today | date : 'E')) { @if (isAlertVisible(ancts, 'anct')) {
{{ ancts?.title }}
{{ ancts?.buttonon | json }} @if (ancts?.buttonon == 1) { {{ ancts?.buttonname }} } @if (ancts?.buttonlable != null && ancts?.buttonurl != null){
{{ ancts?.buttonlable }}
}
} } } } } @else { @if (setting?.ANNOUNCEMENT_USER == 'only_login_user' && user) {
@for (anct of announcement; track anct) { @if (anct?.status == 1) { @if (isAlertVisible(anct, 'anct')) {
{{ anct?.title }}
@if (anct?.buttonon == 1) { {{ anct?.buttonname }} }
} } } @for (ancts of announcements; track ancts) { @for (announceDays of ancts?.announcementday.split(','); track announceDays) { @if (ancts?.status == 1 && announceDays == (today | date : 'E')) { @if(isAlertVisible(ancts, 'anct')) {
{{ ancts?.title }}
@if (ancts?.buttonon == 1) { {{ ancts?.buttonname }} }
} } } }
} }