<?php

namespace App\Enums;

use App\Traits\ProvidesEnumOptions;

enum ActivityEventLabel: string
{
    use ProvidesEnumOptions;

    case CREATED = 'created';
    case UPDATED = 'updated';
    case DELETED = 'deleted';
    case LOGIN = 'login';
    case LOGOUT = 'logout';

    public function label(): string
    {
        return match ($this) {
            self::CREATED => 'Dibuat',
            self::UPDATED => 'Diperbarui',
            self::DELETED => 'Dihapus',
            self::LOGIN => 'Masuk',
            self::LOGOUT => 'Keluar',
        };
    }
}
