<?php

namespace App\Enums;

enum RenewalStatus: string
{
    case Pending   = 'pending';
    case Active    = 'active';
    case Paid      = 'paid';
    case Cancelled = 'cancelled';

    public function label(): string
    {
        return match($this) {
            self::Pending   => 'Pendiente',
            self::Active    => 'Activo',
            self::Paid      => 'Pagado',
            self::Cancelled => 'Cancelado',
        };
    }

    public function color(): string
    {
        return match($this) {
            self::Pending   => 'warning',
            self::Active    => 'info',
            self::Paid      => 'success',
            self::Cancelled => 'danger',
        };
    }
}
