<?php

namespace App\Domain\HR\Enums;

enum CompensationModel: string
{
    case Salary = 'salary';
    case Hourly = 'hourly';
    case PerSession = 'per_session';
    case PerGroup = 'per_group';
    case PerPlayer = 'per_player';
    case RevenueShare = 'revenue_share';
    case Contract = 'contract';
    case Hybrid = 'hybrid';

    public function label(): string
    {
        return match ($this) {
            self::Salary => 'راتب ثابت',
            self::Hourly => 'بالساعة',
            self::PerSession => 'بالحصة',
            self::PerGroup => 'بالمجموعة',
            self::PerPlayer => 'باللاعب',
            self::RevenueShare => 'نسبة من الإيرادات',
            self::Contract => 'عقد محدد',
            self::Hybrid => 'مختلط',
        };
    }
}
