get_status() === NotificationStatus::PENDING ) {
$notification_status = 'cancelled';
$label = _x( 'Pending', 'stock notification status', 'woocommerce' );
} elseif ( $notification->get_status() === NotificationStatus::CANCELLED ) {
$notification_status = 'cancelled';
$label = _x( 'Cancelled', 'stock notification status', 'woocommerce' );
} elseif ( $notification->get_status() === NotificationStatus::SENT ) {
$notification_status = 'cancelled';
$label = _x( 'Sent', 'stock notification status', 'woocommerce' );
} else {
$notification_status = 'completed';
$label = _x( 'Active', 'stock notification status', 'woocommerce' );
}
printf( '%s', esc_attr( sanitize_html_class( 'status-' . $notification_status ) ), esc_html( $label ) );
?>