<?php

namespace App\Enums;

use App\Enums\Concerns\HasValues;

enum RegistrationStatus: string
{
    use HasValues;

    case Submitted = 'submitted';
    case Approved = 'approved';
    case Rejected = 'rejected';

    public function label(): string
    {
        return match ($this) {
            self::Submitted => 'Diajukan',
            self::Approved => 'Disetujui',
            self::Rejected => 'Ditolak',
        };
    }
}
