<?php

namespace App\Enums;

use App\Traits\ProvidesEnumOptions;

enum PriceType: string
{
    use ProvidesEnumOptions;

    case DISTRIBUTOR = 'distributor';
    case AGENT = 'agent';
    case SUB_AGENT = 'sub_agent';
    case GROSIR = 'grosir';
    case RETAIL = 'retail';
    case TIKTOK = 'tiktok';
    case SHOPEE = 'shopee';
    case HARGA_MODAL = 'harga_modal';

    public function label(): string
    {
        return match ($this) {
            self::DISTRIBUTOR => 'Distributor',
            self::AGENT => 'Agen',
            self::SUB_AGENT => 'Sub Agen',
            self::GROSIR => 'Grosir',
            self::RETAIL => 'Eceran',
            self::TIKTOK => 'TikTok',
            self::SHOPEE => 'Shopee',
            self::HARGA_MODAL => 'Harga Modal',
        };
    }
}
