'Plan Expired!', 'message' => 'Your current plan has expired. Please renew to continue using all features.', 'type' => 'error', 'dismissible' => true, 'screens' => ['dashboard'], 'image' => ALERTWISE_CDN_URL . 'alertwise/img/alertwise-logo.svg', 'actions' => [ [ 'label' => 'Renew Plan', 'url' => admin_url('admin.php?page=alertwise#/account/billing/subscription-update'), 'primary' => true, ], ], ] ); self::addNotice( PlanValidator::isSubscribersLimitExceeded(), [ 'title' => 'Subscribers Limit Reached!', 'message' => 'You have reached your subscriber limit. Upgrade your plan to add more subscribers.', 'type' => 'warning', 'dismissible' => true, 'screens' => ['dashboard'], 'actions' => [ [ 'label' => 'Upgrade Plan', 'url' => admin_url('admin.php?page=alertwise#/account/billing/subscription-update'), 'primary' => true, ], [ 'label' => 'View Subscribers', 'url' => admin_url('admin.php?page=alertwise#/subscribers'), 'primary' => false, ], ], ] ); self::addNotice( PlanValidator::isFairUsageExceeded(), [ 'title' => 'Fair Usage Exceeded!', 'message' => 'You have exceeded your fair usage limit for notifications. Consider upgrading your plan.', 'type' => 'warning', 'dismissible' => true, 'screens' => ['dashboard'], 'image' => ALERTWISE_APP_DASHBOARD_URL . 'assets/brand/alertwise-logo-circle.svg', 'actions' => [ [ 'label' => 'Upgrade Plan', 'url' => admin_url('admin.php?page=alertwise#/account/billing/subscription-update'), 'primary' => true, ], ], ] ); self::addNotice( PlanValidator::isPaymentDueSoon(7), [ 'title' => 'Payment Due Soon!', 'message' => 'Your next payment is due within 7 days. Ensure your plan remains active.', 'type' => 'info', 'dismissible' => true, 'screens' => ['dashboard'], 'image' => ALERTWISE_CDN_URL . 'alertwise/img/alertwise-logo.svg', 'actions' => [ [ 'label' => 'Pay Now', 'url' => admin_url('admin.php?page=alertwise#/account/billing/subscription-update'), 'primary' => true, ], ], ] ); self::addNotice( PlanValidator::isEmailNotVerified(), [ 'title' => 'Email Not Verified!', 'message' => 'Your account email is not verified. Please verify to access all features.', 'type' => 'warning', 'dismissible' => true, 'screens' => ['dashboard'], 'actions' => [ [ 'label' => 'Verify Email', 'url' => admin_url('admin.php?page=alertwise#/profile'), 'primary' => true, ], ], ] ); self::addNotice( PlanValidator::isSubscriberLimitApproaching(), [ 'title' => 'Subscriber Limit Approaching!', 'message' => 'You are close to reaching your subscriber limit. Consider upgrading your plan.', 'type' => 'info', 'dismissible' => true, 'screens' => ['dashboard'], 'actions' => [ [ 'label' => 'Upgrade Plan', 'url' => admin_url('admin.php?page=alertwise#/account/billing/subscription-update'), 'primary' => true, ], ], ] ); self::addNotice( PlanValidator::isTrialEndingSoon(3), [ 'title' => 'Trial Ending Soon!', 'message' => 'Your trial plan will end in 3 days. Upgrade to continue uninterrupted service.', 'type' => 'info', 'dismissible' => true, 'screens' => ['dashboard'], 'actions' => [ [ 'label' => 'Upgrade Now', 'url' => admin_url('admin.php?page=alertwise#/account/billing/subscription-update'), 'primary' => true, ], ], ] ); } public static function display_notices() { self::check_conditions(); AdminNotice::display_notices(); } } DashboardNotices::init();