<?php

namespace App\Enums;

enum UserRole: string
{
    case ADMIN = 'admin';
    case PPK = 'ppk';
    case CONTRACTOR = 'contractor';
    case AGENT = 'agent';
    case BANK = 'bank';
    case AUDITOR = 'auditor';

    public function label(): string
    {
        return match($this) {
            self::ADMIN => 'Admin Sistem',
            self::PPK => 'PPK / Pejabat Pengadaan',
            self::CONTRACTOR => 'Kontraktor OAP',
            self::AGENT => 'Agen Pengadaan',
            self::BANK => 'Bank',
            self::AUDITOR => 'Auditor / BPK',
        };
    }
}