<?php

namespace App\Enums;

enum ImportStatus: string
{
    case Pending = 'pending';
    case Processing = 'processing';
    case Completed = 'completed';
    case Failed = 'failed';
    case Partial = 'partial';

    public function label(): string
    {
        return match ($this) {
            self::Pending => 'Menunggu',
            self::Processing => 'Sedang diproses',
            self::Completed => 'Selesai',
            self::Failed => 'Gagal',
            self::Partial => 'Separa',
        };
    }
}
