<?php

/**
 * Subscription Helper Functions - Additional Helpers
 *
 * Additional helper functions for subscription management.
 *
 * @package ArraySubs
 * @since 1.0.0
 */

defined('ABSPATH') || exit;

/**
 * Get subscription status name
 *
 * @param string $status Status slug
 * @return string Status name
 */
function arraysubs_get_subscription_status_name(string $status): string
{
    $statuses = [
        'arraysubs-pending' => __('Pending', 'arraysubs'),
        'arraysubs-active' => __('Active', 'arraysubs'),
        'arraysubs-on-hold' => __('On Hold', 'arraysubs'),
        'arraysubs-cancelled' => __('Cancelled', 'arraysubs'),
        'arraysubs-expired' => __('Expired', 'arraysubs'),
        'arraysubs-trial' => __('Trial', 'arraysubs'),
    ];

    return $statuses[$status] ?? $status;
}
