<?php

namespace App\Enums;

enum CertificateStatus: string
{
    case NotDownloaded = 'not_downloaded';
    case Downloaded = 'downloaded';

    public function label(): string
    {
        return match ($this) {
            self::NotDownloaded => 'Belum dimuat turun',
            self::Downloaded => 'Telah dimuat turun',
        };
    }

    public function badgeClass(): string
    {
        return match ($this) {
            self::NotDownloaded => 'bg-warning text-dark',
            self::Downloaded => 'bg-success',
        };
    }
}
