<?php

namespace App\Enums;

enum ContractStatus: string
{
    case DRAFT = 'draft';
    case NEGOTIATION = 'negotiation';
    case SIGNED = 'signed';
    case EXECUTION = 'execution';
    case COMPLETED = 'completed';
    case CANCELLED = 'cancelled';

    public function label(): string
    {
        return match($this) {
            self::DRAFT => 'Draft',
            self::NEGOTIATION => 'Negosiasi',
            self::SIGNED => 'Ditandatangani',
            self::EXECUTION => 'Eksekusi',
            self::COMPLETED => 'Selesai',
            self::CANCELLED => 'Dibatalkan',
        };
    }
}